Browse Source

* Re-added cucul_getchar() to the legacy functions. Debian's current version

of toilet needs it.
tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
5b08e789e4
2 changed files with 7 additions and 0 deletions
  1. +2
    -0
      cucul/cucul.h
  2. +5
    -0
      cucul/legacy.c

+ 2
- 0
cucul/cucul.h View File

@@ -256,6 +256,8 @@ char const * const * cucul_get_export_list(void);
# endif
int cucul_putchar(cucul_canvas_t *, int, int,
unsigned long int) CUCUL_DEPRECATED;
unsigned long int cucul_getchar(cucul_canvas_t *,
int, int) CUCUL_DEPRECATED;
int cucul_putstr(cucul_canvas_t *, int, int,
char const *) CUCUL_DEPRECATED;
int cucul_set_color(cucul_canvas_t *, unsigned char,


+ 5
- 0
cucul/legacy.c View File

@@ -37,6 +37,11 @@ int cucul_putchar(cucul_canvas_t *cv, int x, int y, unsigned long int ch)
return cucul_put_char(cv, x, y, ch);
}

unsigned long int cucul_getchar(cucul_canvas_t *cv, int x, int y)
{
return cucul_get_char(cv, x, y);
}

int cucul_putstr(cucul_canvas_t *cv, int x, int y, char const *s)
{
return cucul_put_str(cv, x, y, s);


Loading…
Cancel
Save