diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-14 20:05:44 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-14 20:05:44 +0400 |
commit | 49ccf975f25c11d217e6db462986998991383291 (patch) | |
tree | 2d6119e1c59bf6cb11ab530d1e2ddcaa8ec88819 /source/blender/makesdna | |
parent | 5b5f776eae79811b7c807b4a7eabfc7727d764cf (diff) |
minor cleanup
- use NULL rather then 0 for pointers
- use static functions where possible
- add own includes to ensure func's and their declarations don't get out of sync.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index c060eb186c9..ebd51d1c102 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -64,7 +64,7 @@ /* Included the path relative from /source/blender/ here, so we can move */ /* headers around with more freedom. */ -const char *includefiles[] = { +static const char *includefiles[] = { // if you add files here, please add them at the end // of makesdna.c (this file) as well @@ -224,7 +224,7 @@ void printStructLenghts(void); /* ************************* MAKEN DNA ********************** */ -int add_type(const char *str, int len) +static int add_type(const char *str, int len) { int nr; char *cp; @@ -399,7 +399,7 @@ static int add_name(const char *str) return nr_names-1; } -short *add_struct(int namecode) +static short *add_struct(int namecode) { int len; short *sp; @@ -522,7 +522,7 @@ static void *read_file_data(char *filename, int *len_r) return data; } -int convert_include(char *filename) +static int convert_include(char *filename) { /* read include file, skip structs with a '#' before it. store all data in temporal arrays. @@ -659,7 +659,7 @@ int convert_include(char *filename) return 0; } -int arraysize(char *astr, int len) +static int arraysize(char *astr, int len) { int a, mul=1; char str[100], *cp=NULL; |