summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjkoan <jkoan@gmx.de>2020-05-21 08:39:54 +0200
committerjkoan <jkoan@gmx.de>2020-05-28 15:46:24 +0200
commitaff19d0f140eea9545916687212378a810fa4ace (patch)
tree9c4b673cd1cff36614372bfc95387b69031143b6
parent9f85b14d396097addf4fa90fe9a4293d8a812dea (diff)
downloadnavit-aff19d0f140eea9545916687212378a810fa4ace.tar.gz
change:core:Reformat all files for ci check (even those i havent touched)
-rw-r--r--navit/browserplugin.c3
-rw-r--r--navit/command.c5
-rw-r--r--navit/graphics/gd/graphics_gd.c21
-rw-r--r--navit/graphics/null/graphics_null.c24
-rw-r--r--navit/graphics/opengl/graphics_opengl_x11.c6
-rw-r--r--navit/speech/espeak/speak.c2
6 files changed, 40 insertions, 21 deletions
diff --git a/navit/browserplugin.c b/navit/browserplugin.c
index 84f0002ed..ec8acb60c 100644
--- a/navit/browserplugin.c
+++ b/navit/browserplugin.c
@@ -132,7 +132,8 @@ NP_Shutdown() {
return NPERR_NO_ERROR;
}
-NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char *argn[], char *argv[], NPSavedData * saved) {
+NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char *argn[], char *argv[],
+ NPSavedData * saved) {
char *args[]= {"/usr/bin/navit",NULL};
// Make sure we can render this plugin
NPBool browserSupportsWindowless = false;
diff --git a/navit/command.c b/navit/command.c
index 032e0f887..cc498b1a7 100644
--- a/navit/command.c
+++ b/navit/command.c
@@ -1223,7 +1223,7 @@ static void command_evaluate_to(struct attr *attr, const char *expr, struct cont
}
enum attr_type command_evaluate_to_attr(struct attr *attr, char *expr, int *error, struct attr *ret) {
- struct result res={{0,},};
+ struct result res= {{0,},};
struct context ctx;
command_evaluate_to(attr, expr, &ctx, &res);
if (ctx.error)
@@ -1501,7 +1501,8 @@ void command_interpreter(struct attr *attr) {
}
#endif
-static void command_table_call(struct command_table *table, int count, void *data, char *command, struct attr **in, struct attr ***out, int *valid) {
+static void command_table_call(struct command_table *table, int count, void *data, char *command, struct attr **in,
+ struct attr ***out, int *valid) {
int i;
for (i = 0 ; i < count ; i++) {
if (!strcmp(command,table->command)) {
diff --git a/navit/graphics/gd/graphics_gd.c b/navit/graphics/gd/graphics_gd.c
index 7c8a45693..4d25439fd 100644
--- a/navit/graphics/gd/graphics_gd.c
+++ b/navit/graphics/gd/graphics_gd.c
@@ -279,7 +279,8 @@ static struct graphics_gc_priv *gc_new(struct graphics_priv *gr, struct graphics
}
-static struct graphics_image_priv *image_new(struct graphics_priv *gr, struct graphics_image_methods *meth, char *name, int *w, int *h, struct point *hot, int rotation) {
+static struct graphics_image_priv *image_new(struct graphics_priv *gr, struct graphics_image_methods *meth, char *name,
+ int *w, int *h, struct point *hot, int rotation) {
FILE *file;
struct graphics_image_priv *ret=NULL;
gdImagePtr im=NULL;
@@ -376,7 +377,8 @@ static void draw_circle(struct graphics_priv *gr, struct graphics_gc_priv *gc, s
}
-static void draw_text(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct graphics_gc_priv *bg, struct graphics_font_priv *font, char *text, struct point *p, int dx, int dy) {
+static void draw_text(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct graphics_gc_priv *bg,
+ struct graphics_font_priv *font, char *text, struct point *p, int dx, int dy) {
struct font_freetype_text *t;
struct font_freetype_glyph *g, **gp;
gdImagePtr im;
@@ -428,7 +430,8 @@ static void draw_text(struct graphics_priv *gr, struct graphics_gc_priv *fg, str
gr->freetype_methods.text_destroy(t);
}
-static void draw_image(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, struct graphics_image_priv *img) {
+static void draw_image(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p,
+ struct graphics_image_priv *img) {
gdImageCopy(gr->im, img->im, p->x, p->y, 0, 0, img->im->sx, img->im->sy);
}
@@ -507,7 +510,8 @@ static void draw_mode(struct graphics_priv *gr, enum draw_mode_num mode) {
}
}
-static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound);
+static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p,
+ int w, int h, int wraparound);
static void add_overlays(struct graphics_priv *overlay, gdImagePtr im) {
while (overlay) {
@@ -756,7 +760,8 @@ static struct graphics_methods graphics_methods = {
NULL, /* hide_native_keyboard */
};
-static struct graphics_priv *overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound) {
+static struct graphics_priv *overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p,
+ int w, int h, int wraparound) {
struct font_priv * (*font_freetype_new)(void *meth);
struct graphics_priv *ret;
@@ -784,7 +789,8 @@ static void emit_callback(struct graphics_priv *priv) {
}
-static struct graphics_priv *graphics_gd_new(struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl) {
+static struct graphics_priv *graphics_gd_new(struct navit *nav, struct graphics_methods *meth, struct attr **attrs,
+ struct callback_list *cbl) {
struct font_priv * (*font_freetype_new)(void *meth);
struct graphics_priv *ret;
event_request_system("glib","graphics_gd_new");
@@ -794,7 +800,8 @@ static struct graphics_priv *graphics_gd_new(struct navit *nav, struct graphics_
*meth=graphics_methods;
ret=g_new0(struct graphics_priv, 1);
font_freetype_new(&ret->freetype_methods);
- meth->font_new=(struct graphics_font_priv *(*)(struct graphics_priv *, struct graphics_font_methods *, char *, int, int))ret->freetype_methods.font_new;
+ meth->font_new=(struct graphics_font_priv *(*)(struct graphics_priv *, struct graphics_font_methods *, char *, int,
+ int))ret->freetype_methods.font_new;
meth->get_text_bbox=ret->freetype_methods.get_text_bbox;
ret->cb=callback_new_attr_1(callback_cast(emit_callback), attr_navit, ret);
navit_add_callback(nav, ret->cb);
diff --git a/navit/graphics/null/graphics_null.c b/navit/graphics/null/graphics_null.c
index c3a21185b..552999d45 100644
--- a/navit/graphics/null/graphics_null.c
+++ b/navit/graphics/null/graphics_null.c
@@ -65,7 +65,8 @@ static struct graphics_font_methods font_methods = {
font_destroy
};
-static struct graphics_font_priv *font_new(struct graphics_priv *gr, struct graphics_font_methods *meth, char *font, int size, int flags) {
+static struct graphics_font_priv *font_new(struct graphics_priv *gr, struct graphics_font_methods *meth, char *font,
+ int size, int flags) {
*meth=font_methods;
return &graphics_font_priv;
}
@@ -98,7 +99,8 @@ static struct graphics_gc_priv *gc_new(struct graphics_priv *gr, struct graphics
return &graphics_gc_priv;
}
-static struct graphics_image_priv *image_new(struct graphics_priv *gr, struct graphics_image_methods *meth, char *path, int *w, int *h, struct point *hot, int rotation) {
+static struct graphics_image_priv *image_new(struct graphics_priv *gr, struct graphics_image_methods *meth, char *path,
+ int *w, int *h, struct point *hot, int rotation) {
return &graphics_image_priv;
}
@@ -115,10 +117,12 @@ static void draw_circle(struct graphics_priv *gr, struct graphics_gc_priv *gc, s
}
-static void draw_text(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct graphics_gc_priv *bg, struct graphics_font_priv *font, char *text, struct point *p, int dx, int dy) {
+static void draw_text(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct graphics_gc_priv *bg,
+ struct graphics_font_priv *font, char *text, struct point *p, int dx, int dy) {
}
-static void draw_image(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, struct graphics_image_priv *img) {
+static void draw_image(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p,
+ struct graphics_image_priv *img) {
}
static void draw_drag(struct graphics_priv *gr, struct point *p) {
@@ -130,7 +134,8 @@ static void background_gc(struct graphics_priv *gr, struct graphics_gc_priv *gc)
static void draw_mode(struct graphics_priv *gr, enum draw_mode_num mode) {
}
-static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound);
+static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p,
+ int w, int h, int wraparound);
static void resize_callback(int w, int h) {
callback_list_call_attr_2(callbacks, attr_resize, GINT_TO_POINTER(1), GINT_TO_POINTER(1));
@@ -159,7 +164,8 @@ static void *get_data(struct graphics_priv *this, char const *type) {
static void image_free(struct graphics_priv *gr, struct graphics_image_priv *priv) {
}
-static void get_text_bbox(struct graphics_priv *gr, struct graphics_font_priv *font, char *text, int dx, int dy, struct point *ret, int estimate) {
+static void get_text_bbox(struct graphics_priv *gr, struct graphics_font_priv *font, char *text, int dx, int dy,
+ struct point *ret, int estimate) {
}
static void overlay_disable(struct graphics_priv *gr, int disable) {
@@ -193,13 +199,15 @@ static struct graphics_methods graphics_methods = {
NULL, /* hide_native_keyboard */
};
-static struct graphics_priv *overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound) {
+static struct graphics_priv *overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p,
+ int w, int h, int wraparound) {
*meth=graphics_methods;
return &graphics_priv;
}
-static struct graphics_priv *graphics_null_new(struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl) {
+static struct graphics_priv *graphics_null_new(struct navit *nav, struct graphics_methods *meth, struct attr **attrs,
+ struct callback_list *cbl) {
struct attr *event_loop_system = NULL;
*meth=graphics_methods;
diff --git a/navit/graphics/opengl/graphics_opengl_x11.c b/navit/graphics/opengl/graphics_opengl_x11.c
index f56b2b9d5..e8af93028 100644
--- a/navit/graphics/opengl/graphics_opengl_x11.c
+++ b/navit/graphics/opengl/graphics_opengl_x11.c
@@ -46,7 +46,8 @@ static void *graphics_opengl_get_window(struct graphics_opengl_window_system *x1
return (void *)x11->window;
}
-static void graphics_opengl_set_callbacks(struct graphics_opengl_window_system *x11, void *data, void *resize, void *button, void *motion, void *keypress) {
+static void graphics_opengl_set_callbacks(struct graphics_opengl_window_system *x11, void *data, void *resize,
+ void *button, void *motion, void *keypress) {
x11->data=data;
x11->resize=resize;
x11->button=button;
@@ -104,7 +105,8 @@ static void graphics_opengl_x11_watch(struct graphics_opengl_window_system *x11)
}
struct graphics_opengl_window_system *
-graphics_opengl_x11_new(void *displayname, int w, int h, int depth, struct graphics_opengl_window_system_methods **methods) {
+graphics_opengl_x11_new(void *displayname, int w, int h, int depth,
+ struct graphics_opengl_window_system_methods **methods) {
struct graphics_opengl_window_system *ret=g_new0(struct graphics_opengl_window_system, 1);
XSetWindowAttributes attributes;
unsigned long valuemask;
diff --git a/navit/speech/espeak/speak.c b/navit/speech/espeak/speak.c
index 1aebcf318..593e1677b 100644
--- a/navit/speech/espeak/speak.c
+++ b/navit/speech/espeak/speak.c
@@ -68,7 +68,7 @@ int GetFileLength(const char *filename) {
return(statbuf.st_size);
}
-void MarkerEvent(int type, unsigned int char_position, int value, int value2, unsigned char *out_ptr){
+void MarkerEvent(int type, unsigned int char_position, int value, int value2, unsigned char *out_ptr) {
}
char *Alloc(int size) {