Skip to content

Commit

Permalink
Renamed buffer_init() to init_buffer() to match rest of function names.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 16, 2009
1 parent 9ab3b9e commit c2ae648
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mojoshader_preprocessor.c
Expand Up @@ -259,13 +259,13 @@ typedef struct Buffer
BufferList *tail;
} Buffer;

static void buffer_init(Buffer *buffer)
static void init_buffer(Buffer *buffer)
{
buffer->total_bytes = 0;
buffer->head.bytes = 0;
buffer->head.next = NULL;
buffer->tail = &buffer->head;
} // buffer_init
} // init_buffer


static int add_to_buffer(Buffer *buffer, const char *data,
Expand Down Expand Up @@ -328,7 +328,7 @@ static void free_buffer(Buffer *buffer, MOJOSHADER_free f, void *d)
f(item, d);
item = next;
} // while
buffer_init(buffer);
init_buffer(buffer);
} // free_buffer


Expand Down Expand Up @@ -1225,7 +1225,7 @@ const MOJOSHADER_preprocessData *MOJOSHADER_preprocess(const char *filename,
const char *tokstr = NULL;

Buffer buffer;
buffer_init(&buffer);
init_buffer(&buffer);

int nl = 1;
int indent = 0;
Expand Down

0 comments on commit c2ae648

Please sign in to comment.