X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCval.h;h=b783970805403048de1ca9dffd49ff010fca5337;hb=ade1f34b1a07fa66c67f668b49cafd1c17b9241f;hp=0ca0de48047d548d327b5e033631170e7f83a32f;hpb=9be3db2ae30121352125653520083dbc47b08afe;p=fw%2Fsdcc diff --git a/src/SDCCval.h b/src/SDCCval.h index 0ca0de48..b7839708 100644 --- a/src/SDCCval.h +++ b/src/SDCCval.h @@ -37,6 +37,14 @@ typedef struct value } value; +typedef struct literalList +{ + double literalValue; + unsigned count; + struct literalList *next; +} literalList; + + enum { INIT_NODE, @@ -89,7 +97,7 @@ value *valCompare (value *, value *, int); value *valBitwise (value *, value *, int); value *valLogicAndOr (value *, value *, int); value *valCastLiteral (sym_link *, double); -value *valueFromLit (float); +value *valueFromLit (double); initList *newiList (int, void *); initList *revinit (initList *); initList *copyIlist (initList *); @@ -104,4 +112,6 @@ 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); +literalList *copyLiteralList(literalList *src); #endif