collisions due to symbol mangling.tags/v0.99.beta14
| @@ -834,7 +834,7 @@ static int cocoa_init_graphics(caca_display_t *dp) | |||||
| return -1; | return -1; | ||||
| unsigned int width = dp->cv->width, height = dp->cv->height; | unsigned int width = dp->cv->width, height = dp->cv->height; | ||||
| _cucul_set_canvas_size(dp->cv, width ? width : 80, height ? height : 32); | |||||
| __cucul_set_canvas_size(dp->cv, width ? width : 80, height ? height : 32); | |||||
| // first create a full cocoa app if the host has no bundle | // first create a full cocoa app if the host has no bundle | ||||
| if(![[NSBundle mainBundle] bundleIdentifier]) | if(![[NSBundle mainBundle] bundleIdentifier]) | ||||
| @@ -58,8 +58,8 @@ static int conio_init_graphics(caca_display_t *dp) | |||||
| # else | # else | ||||
| /* FIXME */ | /* FIXME */ | ||||
| # endif | # endif | ||||
| _cucul_set_canvas_size(dp->cv, dp->drv.p->ti.screenwidth, | |||||
| dp->drv.p->ti.screenheight); | |||||
| __cucul_set_canvas_size(dp->cv, dp->drv.p->ti.screenwidth, | |||||
| dp->drv.p->ti.screenheight); | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| @@ -102,7 +102,7 @@ static int gl_init_graphics(caca_display_t *dp) | |||||
| sscanf(geometry, "%ux%u", &width, &height); | sscanf(geometry, "%ux%u", &width, &height); | ||||
| #endif | #endif | ||||
| _cucul_set_canvas_size(dp->cv, width ? width : 80, height ? height : 32); | |||||
| __cucul_set_canvas_size(dp->cv, width ? width : 80, height ? height : 32); | |||||
| /* Load a libcucul internal font */ | /* Load a libcucul internal font */ | ||||
| fonts = cucul_get_font_list(); | fonts = cucul_get_font_list(); | ||||
| @@ -301,7 +301,7 @@ static int ncurses_init_graphics(caca_display_t *dp) | |||||
| } | } | ||||
| } | } | ||||
| _cucul_set_canvas_size(dp->cv, COLS, LINES); | |||||
| __cucul_set_canvas_size(dp->cv, COLS, LINES); | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| @@ -40,7 +40,7 @@ static int raw_init_graphics(caca_display_t *dp) | |||||
| sscanf(geometry, "%ux%u", &width, &height); | sscanf(geometry, "%ux%u", &width, &height); | ||||
| #endif | #endif | ||||
| _cucul_set_canvas_size(dp->cv, width ? width : 80, height ? height : 24); | |||||
| __cucul_set_canvas_size(dp->cv, width ? width : 80, height ? height : 24); | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| @@ -170,7 +170,7 @@ static int slang_init_graphics(caca_display_t *dp) | |||||
| SLtt_utf8_enable(1); | SLtt_utf8_enable(1); | ||||
| #endif | #endif | ||||
| _cucul_set_canvas_size(dp->cv, SLtt_Screen_Cols, SLtt_Screen_Rows); | |||||
| __cucul_set_canvas_size(dp->cv, SLtt_Screen_Cols, SLtt_Screen_Rows); | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| @@ -76,7 +76,7 @@ static int vga_init_graphics(caca_display_t *dp) | |||||
| outb(tmp, 0x3d5); | outb(tmp, 0x3d5); | ||||
| /* We don't have much choice */ | /* We don't have much choice */ | ||||
| _cucul_set_canvas_size(dp->cv, 80, 25); | |||||
| __cucul_set_canvas_size(dp->cv, 80, 25); | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| @@ -126,8 +126,9 @@ static int win32_init_graphics(caca_display_t *dp) | |||||
| if(!GetConsoleScreenBufferInfo(dp->drv.p->screen, &csbi)) | if(!GetConsoleScreenBufferInfo(dp->drv.p->screen, &csbi)) | ||||
| return -1; | return -1; | ||||
| _cucul_set_canvas_size(dp->cv, csbi.srWindow.Right - csbi.srWindow.Left + 1, | |||||
| csbi.srWindow.Bottom - csbi.srWindow.Top + 1); | |||||
| __cucul_set_canvas_size(dp->cv, | |||||
| csbi.srWindow.Right - csbi.srWindow.Left + 1, | |||||
| csbi.srWindow.Bottom - csbi.srWindow.Top + 1); | |||||
| SetConsoleMode(dp->drv.p->screen, 0); | SetConsoleMode(dp->drv.p->screen, 0); | ||||
| @@ -88,7 +88,7 @@ static int x11_init_graphics(caca_display_t *dp) | |||||
| sscanf(geometry, "%ux%u", &width, &height); | sscanf(geometry, "%ux%u", &width, &height); | ||||
| #endif | #endif | ||||
| _cucul_set_canvas_size(dp->cv, width ? width : 80, height ? height : 32); | |||||
| __cucul_set_canvas_size(dp->cv, width ? width : 80, height ? height : 32); | |||||
| dp->drv.p->dpy = XOpenDisplay(NULL); | dp->drv.p->dpy = XOpenDisplay(NULL); | ||||
| if(dp->drv.p->dpy == NULL) | if(dp->drv.p->dpy == NULL) | ||||
| @@ -238,7 +238,7 @@ void _caca_handle_resize(caca_display_t *dp) | |||||
| /* Tell libcucul we changed size */ | /* Tell libcucul we changed size */ | ||||
| if(dp->resize.w != dp->cv->width || dp->resize.h != dp->cv->height) | if(dp->resize.w != dp->cv->width || dp->resize.h != dp->cv->height) | ||||
| _cucul_set_canvas_size(dp->cv, dp->resize.w, dp->resize.h); | |||||
| __cucul_set_canvas_size(dp->cv, dp->resize.w, dp->resize.h); | |||||
| } | } | ||||
| void _caca_set_term_title(char const *str) | void _caca_set_term_title(char const *str) | ||||
| @@ -81,7 +81,7 @@ cucul_canvas_t * cucul_create_canvas(unsigned int width, unsigned int height) | |||||
| _cucul_load_frame_info(cv); | _cucul_load_frame_info(cv); | ||||
| cucul_set_color_ansi(cv, CUCUL_DEFAULT, CUCUL_TRANSPARENT); | cucul_set_color_ansi(cv, CUCUL_DEFAULT, CUCUL_TRANSPARENT); | ||||
| if(_cucul_set_canvas_size(cv, width, height) < 0) | |||||
| if(__cucul_set_canvas_size(cv, width, height) < 0) | |||||
| { | { | ||||
| int saved_errno = geterrno(); | int saved_errno = geterrno(); | ||||
| free(cv->frames[0].name); | free(cv->frames[0].name); | ||||
| @@ -137,7 +137,7 @@ int cucul_set_canvas_size(cucul_canvas_t *cv, unsigned int width, | |||||
| return -1; | return -1; | ||||
| } | } | ||||
| return _cucul_set_canvas_size(cv, width, height); | |||||
| return __cucul_set_canvas_size(cv, width, height); | |||||
| } | } | ||||
| /** \brief Get the canvas width. | /** \brief Get the canvas width. | ||||
| @@ -231,8 +231,8 @@ int cucul_rand(int min, int max) | |||||
| * XXX: The following functions are local. | * XXX: The following functions are local. | ||||
| */ | */ | ||||
| int _cucul_set_canvas_size(cucul_canvas_t *cv, unsigned int width, | |||||
| unsigned int height) | |||||
| int __cucul_set_canvas_size(cucul_canvas_t *cv, unsigned int width, | |||||
| unsigned int height) | |||||
| { | { | ||||
| unsigned int x, y, f, old_width, old_height, new_size, old_size; | unsigned int x, y, f, old_width, old_height, new_size, old_size; | ||||
| @@ -61,7 +61,8 @@ struct cucul_buffer | |||||
| }; | }; | ||||
| /* Canvas functions */ | /* Canvas functions */ | ||||
| extern int _cucul_set_canvas_size(cucul_canvas_t *, unsigned int, unsigned int); | |||||
| extern int __cucul_set_canvas_size(cucul_canvas_t *, | |||||
| unsigned int, unsigned int); | |||||
| /* Colour functions */ | /* Colour functions */ | ||||
| extern uint16_t _cucul_attr_to_rgb12fg(uint32_t); | extern uint16_t _cucul_attr_to_rgb12fg(uint32_t); | ||||
| @@ -1,4 +1,4 @@ | |||||
| LIBRARY "libcucul" | LIBRARY "libcucul" | ||||
| EXPORTS | EXPORTS | ||||
| _cucul_set_canvas_size ; Private symbol used by libcaca | |||||
| __cucul_set_canvas_size ; Private symbol used by libcaca | |||||