[hackers] [scc] [cc1] Rename ISINIT to HASINIT || Roberto E. Vargas Caballero
commit a300bb7984c6d77b298981e1c6d6be00b4ab56b3
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Jan 26 12:43:16 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Jan 26 12:43:16 2016 +0100
[cc1] Rename ISINIT to HASINIT
This new name represents better the objective of the flag,
because ISINIT created some confusion about the symbol
itself being an initializer.
diff --git a/cc1/cc1.h b/cc1/cc1.h
index b0316b2..8d135cb 100644
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
_AT_@ -188,7 +188,7 @@ enum {
ISSTRING = 4096,
ISTYPEDEF = 8192,
ISINITLST = 16384,
- ISINIT = 32768
+ HASINIT = 32768
};
/* lexer mode, compiler or preprocessor directive */
diff --git a/cc1/code.c b/cc1/code.c
index e993671..49d4a8e 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -385,7 +385,7 @@ emitdcl(unsigned op, void *arg)
if (sym->flags & ISFIELD)
printf("\t#%c%llX", sizettype->letter, sym->u.i);
sym->flags |= ISEMITTED;
- if ((sym->flags & ISINIT) == 0)
+ if ((sym->flags & HASINIT) == 0)
putchar('\n');
}
diff --git a/cc1/expr.c b/cc1/expr.c
index 0af463f..6983591 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -619,7 +619,7 @@ primary(void)
switch (yytoken) {
case STRING:
np = constnode(sym);
- sym->flags |= ISINIT;
+ sym->flags |= HASINIT;
emit(ODECL, sym);
emit(OINIT, np);
np = decay(varnode(sym));
diff --git a/cc1/init.c b/cc1/init.c
index 4d06dde..cd3ec1f 100644
--- a/cc1/init.c
+++ b/cc1/init.c
_AT_@ -307,7 +307,7 @@ initializer(Symbol *sym, Type *tp)
errorp("initializer element is not constant");
return;
}
- sym->flags |= ISINIT;
+ sym->flags |= HASINIT;
emit(ODECL, sym);
emit(OINIT, np);
sym->flags |= ISDEFINED;
Received on Tue Jan 26 2016 - 14:22:10 CET
This archive was generated by hypermail 2.3.0
: Tue Jan 26 2016 - 14:24:29 CET