Browse Source

* Rename _cucul_set_canvas_size into __cucul_set_canvas_size to prevent

collisions due to symbol mangling.
tags/v0.99.beta14
Sam Hocevar sam 17 years ago
parent
commit
31cbfb5bea
13 changed files with 20 additions and 18 deletions
  1. +1
    -1
      caca/driver_cocoa.m
  2. +2
    -2
      caca/driver_conio.c
  3. +1
    -1
      caca/driver_gl.c
  4. +1
    -1
      caca/driver_ncurses.c
  5. +1
    -1
      caca/driver_raw.c
  6. +1
    -1
      caca/driver_slang.c
  7. +1
    -1
      caca/driver_vga.c
  8. +3
    -2
      caca/driver_win32.c
  9. +1
    -1
      caca/driver_x11.c
  10. +1
    -1
      caca/graphics.c
  11. +4
    -4
      cucul/cucul.c
  12. +2
    -1
      cucul/cucul_internals.h
  13. +1
    -1
      msvc/libcucul.def

+ 1
- 1
caca/driver_cocoa.m View File

@@ -834,7 +834,7 @@ static int cocoa_init_graphics(caca_display_t *dp)
return -1;

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
if(![[NSBundle mainBundle] bundleIdentifier])


+ 2
- 2
caca/driver_conio.c View File

@@ -58,8 +58,8 @@ static int conio_init_graphics(caca_display_t *dp)
# else
/* FIXME */
# 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;
}



+ 1
- 1
caca/driver_gl.c View File

@@ -102,7 +102,7 @@ static int gl_init_graphics(caca_display_t *dp)
sscanf(geometry, "%ux%u", &width, &height);
#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 */
fonts = cucul_get_font_list();


+ 1
- 1
caca/driver_ncurses.c View File

@@ -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;
}


+ 1
- 1
caca/driver_raw.c View File

@@ -40,7 +40,7 @@ static int raw_init_graphics(caca_display_t *dp)
sscanf(geometry, "%ux%u", &width, &height);
#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;
}


+ 1
- 1
caca/driver_slang.c View File

@@ -170,7 +170,7 @@ static int slang_init_graphics(caca_display_t *dp)
SLtt_utf8_enable(1);
#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;
}


+ 1
- 1
caca/driver_vga.c View File

@@ -76,7 +76,7 @@ static int vga_init_graphics(caca_display_t *dp)
outb(tmp, 0x3d5);

/* We don't have much choice */
_cucul_set_canvas_size(dp->cv, 80, 25);
__cucul_set_canvas_size(dp->cv, 80, 25);

return 0;
}


+ 3
- 2
caca/driver_win32.c View File

@@ -126,8 +126,9 @@ static int win32_init_graphics(caca_display_t *dp)
if(!GetConsoleScreenBufferInfo(dp->drv.p->screen, &csbi))
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);



+ 1
- 1
caca/driver_x11.c View File

@@ -88,7 +88,7 @@ static int x11_init_graphics(caca_display_t *dp)
sscanf(geometry, "%ux%u", &width, &height);
#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);
if(dp->drv.p->dpy == NULL)


+ 1
- 1
caca/graphics.c View File

@@ -238,7 +238,7 @@ void _caca_handle_resize(caca_display_t *dp)

/* Tell libcucul we changed size */
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)


+ 4
- 4
cucul/cucul.c View File

@@ -81,7 +81,7 @@ cucul_canvas_t * cucul_create_canvas(unsigned int width, unsigned int height)
_cucul_load_frame_info(cv);
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();
free(cv->frames[0].name);
@@ -137,7 +137,7 @@ int cucul_set_canvas_size(cucul_canvas_t *cv, unsigned int width,
return -1;
}

return _cucul_set_canvas_size(cv, width, height);
return __cucul_set_canvas_size(cv, width, height);
}

/** \brief Get the canvas width.
@@ -231,8 +231,8 @@ int cucul_rand(int min, int max)
* 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;



+ 2
- 1
cucul/cucul_internals.h View File

@@ -61,7 +61,8 @@ struct cucul_buffer
};

/* 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 */
extern uint16_t _cucul_attr_to_rgb12fg(uint32_t);


+ 1
- 1
msvc/libcucul.def View File

@@ -1,4 +1,4 @@
LIBRARY "libcucul"

EXPORTS
_cucul_set_canvas_size ; Private symbol used by libcaca
__cucul_set_canvas_size ; Private symbol used by libcaca

Loading…
Cancel
Save