X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCval.h;h=61217835db23848e3b47236efe06e4d959df406a;hb=6c78bc0cba530b6d01daaedcbb327a1f06013c27;hp=98a1a7eb8b33df29db4c895324da058857545104;hpb=7429c585c92f395f5f2ad8f66b9da7462f342156;p=fw%2Fsdcc diff --git a/src/SDCCval.h b/src/SDCCval.h index 98a1a7eb..61217835 100644 --- a/src/SDCCval.h +++ b/src/SDCCval.h @@ -18,7 +18,7 @@ In other words, you are welcome to use, share and improve this program. You are forbidden to forbid anyone else to use, share and improve - what you give them. Help stamp out software-hoarding! + what you give them. Help stamp out software-hoarding! -------------------------------------------------------------------------*/ #ifndef SDCCVAL_H #define SDCCVAL_H @@ -47,7 +47,6 @@ typedef struct value symbol *sym; /* Original Symbol */ struct value *next; /* used in initializer list */ unsigned vArgs:1; /* arg list ended with variable arg */ - } value; @@ -95,9 +94,9 @@ CCR_RESULT; #define IS_VARG(x) (x->vArgs) /* forward definitions for the symbol table related functions */ -void initValue (); -value *newValue (); +value *newValue (void); value *constVal (const char *); +value *constCharVal (unsigned char); value *reverseVal (value *); value *reverseValWithType (value *); value *copyValue (value *); @@ -139,13 +138,13 @@ value *list2val (initList *); struct ast *list2expr (initList *); void resolveIvalSym (initList *, sym_link *); value *valFromType (sym_link *); -value *constFloatVal (char *); -value *constFixed16x16Val (char *); +value *constFloatVal (const char *); +value *constFixed16x16Val (const char *); int getNelements (sym_link *, initList *); value *valForArray (struct ast *); value *valForStructElem (struct ast *, struct ast *); value *valForCastAggr (struct ast *, sym_link *, struct ast *, int); value *valForCastArr (struct ast * , sym_link *); -bool convertIListToConstList(initList *src, literalList **lList); +bool convertIListToConstList(initList *src, literalList **lList, int size); literalList *copyLiteralList(literalList *src); #endif