diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-04 23:35:45 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-04 23:35:45 +0200 |
commit | 7cf6ccee8c6b59d8aac17ab6e4673bcb69f5e8d2 (patch) | |
tree | b329db03bae14fca178add9909b78b050345c140 /fitz/stm_buffer.c | |
parent | efc46353676c27b24f2933dce78305796951a01e (diff) | |
download | mupdf-7cf6ccee8c6b59d8aac17ab6e4673bcb69f5e8d2.tar.xz |
Le Roi est mort, vive le Roi!
The run-together words are dead! Long live the underscores!
The postscript inspired naming convention of using all run-together
words has served us well, but it is now time for more readable code.
In this commit I have also added the sed script, rename.sed, that I used
to convert the source. Use it on your patches and application code.
Diffstat (limited to 'fitz/stm_buffer.c')
-rw-r--r-- | fitz/stm_buffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fitz/stm_buffer.c b/fitz/stm_buffer.c index 9b1ee469..4c7410c3 100644 --- a/fitz/stm_buffer.c +++ b/fitz/stm_buffer.c @@ -1,7 +1,7 @@ #include "fitz.h" fz_buffer * -fz_newbuffer(int size) +fz_new_buffer(int size) { fz_buffer *b; @@ -17,14 +17,14 @@ fz_newbuffer(int size) } fz_buffer * -fz_keepbuffer(fz_buffer *buf) +fz_keep_buffer(fz_buffer *buf) { buf->refs ++; return buf; } void -fz_dropbuffer(fz_buffer *buf) +fz_drop_buffer(fz_buffer *buf) { if (--buf->refs == 0) { @@ -34,7 +34,7 @@ fz_dropbuffer(fz_buffer *buf) } void -fz_resizebuffer(fz_buffer *buf, int size) +fz_resize_buffer(fz_buffer *buf, int size) { buf->data = fz_realloc(buf->data, size, 1); buf->cap = size; @@ -43,7 +43,7 @@ fz_resizebuffer(fz_buffer *buf, int size) } void -fz_growbuffer(fz_buffer *buf) +fz_grow_buffer(fz_buffer *buf) { - fz_resizebuffer(buf, (buf->cap * 3) / 2); + fz_resize_buffer(buf, (buf->cap * 3) / 2); } |