summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2011-10-09 19:04:14 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2011-10-09 19:04:14 +0400
commit5c607760fe1f6e3ec8a7b3017c7e5478faf04ff9 (patch)
treed33236a6c27606cadef9fe24bf4d9f7bd051954c /preproc.c
parent9900c6b0815a1e90d9a511a22a14cc13c2e5264d (diff)
downloadnasm-5c607760fe1f6e3ec8a7b3017c7e5478faf04ff9.tar.gz
nasm-5c607760fe1f6e3ec8a7b3017c7e5478faf04ff9.tar.bz2
nasm-5c607760fe1f6e3ec8a7b3017c7e5478faf04ff9.zip
preproc: Drop NULL assignments for static variables
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/preproc.c b/preproc.c
index 2e7d56b..76b0ac1 100644
--- a/preproc.c
+++ b/preproc.c
@@ -400,14 +400,14 @@ static int LocalOffset = 0;
static Context *cstk;
static Include *istk;
-static IncPath *ipath = NULL;
+static IncPath *ipath;
static int pass; /* HACK: pass 0 = generate dependencies only */
static StrList **dephead, **deptail; /* Dependency list */
static uint64_t unique; /* unique identifier numbers */
-static Line *predef = NULL;
+static Line *predef;
static bool do_predef;
static ListGen *list;
@@ -425,12 +425,12 @@ static struct hash_table smacros;
/*
* Linked List of all active expansion definitions
*/
-struct ExpDef *expansions = NULL;
+struct ExpDef *expansions;
/*
* The expansion we are currently defining
*/
-static ExpDef *defining = NULL;
+static ExpDef *defining;
static uint64_t nested_mac_count;
static uint64_t nested_rep_count;
@@ -438,7 +438,7 @@ static uint64_t nested_rep_count;
/*
* Linked-list of lines to preprocess, prior to cleanup
*/
-static Line *finals = NULL;
+static Line *finals;
static bool in_final = false;
/*
@@ -456,20 +456,20 @@ static macros_t *stdmacpos;
* The extra standard macros that come from the object format, if
* any.
*/
-static macros_t *extrastdmac = NULL;
+static macros_t *extrastdmac;
static bool any_extrastdmac;
/*
* Tokens are allocated in blocks to improve speed
*/
#define TOKEN_BLOCKSIZE 4096
-static Token *freeTokens = NULL;
+static Token *freeTokens;
struct Blocks {
Blocks *next;
void *chunk;
};
-static Blocks blocks = { NULL, NULL };
+static Blocks blocks;
/*
* Forward declarations.