summaryrefslogtreecommitdiff
path: root/fitz/base_string.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-04 23:35:45 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-04 23:35:45 +0200
commit7cf6ccee8c6b59d8aac17ab6e4673bcb69f5e8d2 (patch)
treeb329db03bae14fca178add9909b78b050345c140 /fitz/base_string.c
parentefc46353676c27b24f2933dce78305796951a01e (diff)
downloadmupdf-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/base_string.c')
-rw-r--r--fitz/base_string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/base_string.c b/fitz/base_string.c
index 30d544d5..72a7a556 100644
--- a/fitz/base_string.c
+++ b/fitz/base_string.c
@@ -1,7 +1,7 @@
#include "fitz.h"
int
-fz_isbigendian(void)
+fz_is_big_endian(void)
{
static const int one = 1;
return *(char*)&one == 0;
@@ -11,8 +11,8 @@ char *
fz_strsep(char **stringp, const char *delim)
{
char *ret = *stringp;
- if (ret == nil) return nil;
- if ((*stringp = strpbrk(*stringp, delim)) != nil)
+ if (ret == NULL) return NULL;
+ if ((*stringp = strpbrk(*stringp, delim)) != NULL)
*((*stringp)++) = '\0';
return ret;
}