Skip to content

Commit

Permalink
refactor: HEADER_LIST to const
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jan 27, 2016
1 parent c6ac10a commit 517e9b3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
8 changes: 1 addition & 7 deletions src/backend/cdef.h
Expand Up @@ -256,15 +256,11 @@ char *strupr(char *);

// C/C++ Language Features
#define IMPLIED_PRAGMA_ONCE 1 // include guards count as #pragma once
#define PSEUDO_REGS 1
#define INLINE_ASM 1 // support inline assembler
#define HIDDENPARAM_1ST_ARG 1
#define HEADER_LIST 1
const bool HEADER_LIST = true;
#define PASCAL_STRINGS 0
#define KEYWORD_WITH 1
#define EECONTEXT 1
#define LOCALE 0 // locale support for Unicode conversion
#define HEXFLOATS 1 // support hex floating point constants
#define OVERLOAD_CV_PARAM 1 // if int foo(int i) and int foo(const int i)
// are different
#define CPP0X 1 // support C++0x features
Expand All @@ -279,8 +275,6 @@ char *strupr(char *);
#define TARGET_SEGMENTED (!MARS && TARGET_WINDOS)


#define STATEMENT_SCOPES CPP

#if __GNUC__
#define LDOUBLE 0 // no support for true long doubles
#else
Expand Down
4 changes: 0 additions & 4 deletions src/backend/cgreg.c
Expand Up @@ -667,11 +667,9 @@ void cgreg_map(Symbol *s, unsigned regmsw, unsigned reglsw)
case SCparameter:
s->Sfl = FLpara;
break;
#if PSEUDO_REGS
case SCpseudo:
s->Sfl = FLpseudo;
break;
#endif
case SCstack:
s->Sfl = FLstack;
break;
Expand Down Expand Up @@ -796,11 +794,9 @@ int cgreg_assign(Symbol *retsym)
case SCparameter:
s->Sfl = FLpara;
break;
#if PSEUDO_REGS
case SCpseudo:
s->Sfl = FLpseudo;
break;
#endif
case SCstack:
s->Sfl = FLstack;
break;
Expand Down
3 changes: 0 additions & 3 deletions src/backend/global.h
Expand Up @@ -305,13 +305,10 @@ int os_critsecsize32();
int os_critsecsize64();
#endif

#ifdef PSEUDO_REGS
/* pseudo.c */
Symbol *pseudo_declar(char *);

extern unsigned char pseudoreg[];
extern regm_t pseudomask[];
#endif /* PSEUDO_REGS */

/* Symbol.c */
symbol **symtab_realloc(symbol **tab, size_t symmax);
Expand Down
4 changes: 0 additions & 4 deletions src/backend/out.c
Expand Up @@ -635,9 +635,7 @@ STATIC void outelem(elem *e)
case SCglobal:
case SCcomdat:
case SCcomdef:
#if PSEUDO_REGS
case SCpseudo:
#endif
case SCinline:
case SCsinline:
case SCeinline:
Expand Down Expand Up @@ -1063,11 +1061,9 @@ STATIC void writefunc2(symbol *sfunc)
if (!(s->ty() & mTYvolatile))
s->Sflags |= GTregcand | SFLunambig; // assume register candidate */
break;
#if PSEUDO_REGS
case SCpseudo:
s->Sfl = FLpseudo;
break;
#endif
case SCstatic:
break; // already taken care of by datadef()
case SCstack:
Expand Down

0 comments on commit 517e9b3

Please sign in to comment.