Ignore:
Timestamp:
Apr 13, 2006, 2:50:41 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Renamed cucul_export into cucul_buffer. We'll use it for other things.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/export_html.c

    r738 r757  
    3535 *  the current image.
    3636 */
    37 void _cucul_get_html(cucul_t *qq, struct cucul_export *ex)
     37void _cucul_get_html(cucul_t *qq, struct cucul_buffer *ex)
    3838{
    3939    static int const palette[] =
     
    5151     *          7 chars for "</span>" */
    5252    ex->size = 13000 + qq->height * (7 + qq->width * (18 + 9 + 7));
    53     ex->buffer = malloc(ex->size);
     53    ex->data = malloc(ex->size);
    5454
    55     cur = ex->buffer;
     55    cur = ex->data;
    5656
    5757    /* HTML header */
     
    101101
    102102    /* Crop to really used size */
    103     ex->size = strlen(ex->buffer) + 1;
    104     ex->buffer = realloc(ex->buffer, ex->size);
     103    ex->size = strlen(ex->data) + 1;
     104    ex->data = realloc(ex->data, ex->size);
    105105}
    106106
     
    114114 *  a correct header.
    115115 */
    116 void _cucul_get_html3(cucul_t *qq, struct cucul_export *ex)
     116void _cucul_get_html3(cucul_t *qq, struct cucul_buffer *ex)
    117117{
    118118    static int const palette[] =
     
    133133     *          12 chars for "</font></td>" */
    134134    ex->size = 13000 + qq->height * (10 + qq->width * (40 + 9 + 12));
    135     ex->buffer = malloc(ex->size);
     135    ex->data = malloc(ex->size);
    136136
    137     cur = ex->buffer;
     137    cur = ex->data;
    138138
    139139    /* Table */
     
    186186
    187187    /* Crop to really used size */
    188     ex->size = (uintptr_t)(cur - ex->buffer);
    189     ex->buffer = realloc(ex->buffer, ex->size);
     188    ex->size = (uintptr_t)(cur - ex->data);
     189    ex->data = realloc(ex->data, ex->size);
    190190}
    191191
Note: See TracChangeset for help on using the changeset viewer.