summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2011-07-17 20:20:14 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2011-07-17 20:20:14 +0400
commitf30cf73533aa8e13754b05aacac298160ee9f35e (patch)
tree6beb856fe8adec758155e93ec12e550428c48763 /preproc.c
parentd57a031616b97b9ebf77bccc5660394eb9b572c8 (diff)
downloadnasm-f30cf73533aa8e13754b05aacac298160ee9f35e.tar.gz
nasm-f30cf73533aa8e13754b05aacac298160ee9f35e.tar.bz2
nasm-f30cf73533aa8e13754b05aacac298160ee9f35e.zip
preproc: Align members in structures
For easier reading Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c92
1 files changed, 47 insertions, 45 deletions
diff --git a/preproc.c b/preproc.c
index f5d0fd1..835ad3e 100644
--- a/preproc.c
+++ b/preproc.c
@@ -117,10 +117,10 @@ struct SMacro {
* The context stack is composed of a linked list of these.
*/
struct Context {
- Context *next;
- char *name;
- struct hash_table localmac;
- uint32_t number;
+ Context *next;
+ char *name;
+ struct hash_table localmac;
+ uint32_t number;
};
/*
@@ -162,13 +162,13 @@ struct tokseq_match {
};
struct Token {
- Token *next;
- char *text;
+ Token *next;
+ char *text;
union {
- SMacro *mac; /* associated macro for TOK_SMAC_END */
- size_t len; /* scratch length field */
- } a; /* Auxiliary data */
- enum pp_token_type type;
+ SMacro *mac; /* associated macro for TOK_SMAC_END */
+ size_t len; /* scratch length field */
+ } a; /* Auxiliary data */
+ enum pp_token_type type;
};
/*
@@ -182,8 +182,8 @@ struct Token {
* if walked, would emit the expansion lines in the proper order.
*/
struct Line {
- Line *next;
- Token *first;
+ Line *next;
+ Token *first;
};
/*
@@ -208,30 +208,31 @@ enum pp_exp_type {
* `prev' field is for the global `expansions` linked-list.
*/
struct ExpDef {
- ExpDef *prev; /* previous definition */
- ExpDef *next; /* next in hash table */
- enum pp_exp_type type; /* expansion type */
- char *name; /* definition name */
- int nparam_min, nparam_max;
- bool casesense;
- bool plus; /* is the last parameter greedy? */
- bool nolist; /* is this expansion listing-inhibited? */
- Token *dlist; /* all defaults as one list */
- Token **defaults; /* parameter default pointers */
- int ndefs; /* number of default parameters */
-
- int prepend; /* label prepend state */
- Line *label;
- Line *line;
- Line *last;
- int linecount; /* number of lines within expansion */
-
- int64_t def_depth; /* current number of definition pairs deep */
- int64_t cur_depth; /* current number of expansions */
- int64_t max_depth; /* maximum number of expansions allowed */
-
- int state; /* condition state */
- bool ignoring; /* ignoring definition lines */
+ ExpDef *prev; /* previous definition */
+ ExpDef *next; /* next in hash table */
+ enum pp_exp_type type; /* expansion type */
+ char *name; /* definition name */
+ int nparam_min;
+ int nparam_max;
+ bool casesense;
+ bool plus; /* is the last parameter greedy? */
+ bool nolist; /* is this expansion listing-inhibited? */
+ Token *dlist; /* all defaults as one list */
+ Token **defaults; /* parameter default pointers */
+ int ndefs; /* number of default parameters */
+
+ int prepend; /* label prepend state */
+ Line *label;
+ Line *line;
+ Line *last;
+ int linecount; /* number of lines within expansion */
+
+ int64_t def_depth; /* current number of definition pairs deep */
+ int64_t cur_depth; /* current number of expansions */
+ int64_t max_depth; /* maximum number of expansions allowed */
+
+ int state; /* condition state */
+ bool ignoring; /* ignoring definition lines */
};
/*
@@ -269,13 +270,14 @@ struct ExpInv {
* stack (ie linked list) of these things.
*/
struct Include {
- Include *next;
- FILE *fp;
- Cond *conds;
- ExpInv *expansion;
- char *fname;
- int lineno, lineinc;
- int mmac_depth;
+ Include *next;
+ FILE *fp;
+ Cond *conds;
+ ExpInv *expansion;
+ char *fname;
+ int lineno;
+ int lineinc;
+ int mmac_depth;
};
/*
@@ -284,8 +286,8 @@ struct Include {
* attempt to find the file if it's not in the current directory.
*/
struct IncPath {
- IncPath *next;
- char *path;
+ IncPath *next;
+ char *path;
};
/*