Skip to content

Commit 96fda1c

Browse files
committed
Format C declarations
1 parent 55319ed commit 96fda1c

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/vips/cdefs.lua

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,51 +37,51 @@ ffi.cdef [[
3737

3838
int vips_enum_from_nick (const char* domain,
3939
GType gtype, const char* str);
40-
const char *vips_enum_nick (GType gtype, int value);
40+
const char* vips_enum_nick (GType gtype, int value);
4141

4242
void g_value_set_boolean (GValue* value, int v_boolean);
4343
void g_value_set_int (GValue* value, int i);
4444
void g_value_set_double (GValue* value, double d);
4545
void g_value_set_enum (GValue* value, int e);
4646
void g_value_set_flags (GValue* value, unsigned int f);
47-
void g_value_set_string (GValue* value, const char *str);
47+
void g_value_set_string (GValue* value, const char* str);
4848
void vips_value_set_ref_string (GValue* value, const char* str);
4949
void g_value_set_object (GValue* value, void* object);
5050
void vips_value_set_array_double (GValue* value,
51-
const double* array, int n );
51+
const double* array, int n);
5252
void vips_value_set_array_int (GValue* value,
53-
const int* array, int n );
54-
void vips_value_set_array_image (GValue *value, int n);
53+
const int* array, int n);
54+
void vips_value_set_array_image (GValue* value, int n);
5555
void vips_value_set_blob (GValue* value,
5656
void (*free_fn)(void* data), void* data, size_t length);
5757
void vips_value_set_blob_free (GValue* value,
5858
void* data, size_t length);
5959

6060
int g_value_get_boolean (const GValue* value);
61-
int g_value_get_int (GValue* value);
62-
double g_value_get_double (GValue* value);
63-
int g_value_get_enum (GValue* value);
64-
unsigned int g_value_get_flags (GValue* value);
65-
const char* g_value_get_string (GValue* value);
61+
int g_value_get_int (const GValue* value);
62+
double g_value_get_double (const GValue* value);
63+
int g_value_get_enum (const GValue* value);
64+
unsigned int g_value_get_flags (const GValue* value);
65+
const char* g_value_get_string (const GValue* value);
6666
const char* vips_value_get_ref_string (const GValue* value, size_t* length);
67-
void* g_value_get_object (GValue* value);
67+
void* g_value_get_object (const GValue* value);
6868
double* vips_value_get_array_double (const GValue* value, int* n);
6969
int* vips_value_get_array_int (const GValue* value, int* n);
7070
void* vips_value_get_blob (const GValue* value, size_t* length);
7171

7272
typedef struct _GObject {
73-
void *g_type_instance;
73+
void* g_type_instance;
7474
unsigned int ref_count;
75-
void *qdata;
75+
void* qdata;
7676
} GObject;
7777

7878
typedef struct _VipsObject {
7979
GObject parent_instance;
8080
bool constructed;
8181
bool static_object;
82-
void *argument_table;
83-
char *nickname;
84-
char *description;
82+
void* argument_table;
83+
char* nickname;
84+
char* description;
8585
bool preclose;
8686
bool close;
8787
bool postclose;
@@ -104,7 +104,7 @@ ffi.cdef [[
104104
} GParamSpec;
105105

106106
typedef struct _VipsArgument {
107-
GParamSpec *pspec;
107+
GParamSpec* pspec;
108108
} VipsArgument;
109109

110110
typedef struct _VipsArgumentInstance {
@@ -128,19 +128,19 @@ ffi.cdef [[
128128
typedef struct _VipsArgumentClass {
129129
VipsArgument parent;
130130

131-
VipsObjectClass *object_class;
131+
VipsObjectClass* object_class;
132132
VipsArgumentFlags flags;
133133
int priority;
134134
uint64_t offset;
135135
} VipsArgumentClass;
136136

137137
int vips_object_get_argument (VipsObject* object,
138-
const char *name, GParamSpec** pspec,
138+
const char* name, GParamSpec** pspec,
139139
VipsArgumentClass** argument_class,
140140
VipsArgumentInstance** argument_instance);
141141

142142
void g_object_set_property (VipsObject* object,
143-
const char *name, GValue* value);
143+
const char* name, const GValue* value);
144144
void g_object_get_property (VipsObject* object,
145145
const char* name, GValue* value);
146146

@@ -162,7 +162,7 @@ ffi.cdef [[
162162
VipsImage* vips_image_new_matrix_from_array (int width, int height,
163163
const double* array, int size);
164164

165-
VipsImage* vips_image_new_from_memory (const void *data, size_t size,
165+
VipsImage* vips_image_new_from_memory (const void* data, size_t size,
166166
int width, int height, int bands, int format);
167167
unsigned char* vips_image_write_to_memory (VipsImage* image,
168168
size_t* size_out);
@@ -201,7 +201,7 @@ ffi.cdef [[
201201
const char*** names, int** flags, int* n_args);
202202

203203
VipsOperation* vips_cache_operation_build (VipsOperation* operation);
204-
void vips_object_unref_outputs (VipsOperation *operation);
204+
void vips_object_unref_outputs (VipsOperation* operation);
205205

206206
void vips_leak_set (int leak);
207207
void vips_cache_set_max (int max);

0 commit comments

Comments
 (0)