Type safe newAst, fixes various warnings.
[fw/sdcc] / src / SDCCast.h
index c0eb2bb531229a38d8199bc8446fae600016863d..dbb49ab38c6e4615b3e9da2a882242f2f55a8f32 100644 (file)
@@ -155,7 +155,11 @@ extern     ast     *staticAutos    ;
 extern FILE *codeOutFile;
 
 /* forward definitions for functions   */
-ast     *newAst       (int  ,  void  *        );
+ast* newAst_VALUE(value*val);
+ast* newAst_OP   (unsigned op);
+ast* newAst_LINK (link*val);
+ast* newAst_STMNT(unsigned val);
+
 void      initAst      (                       );
 ast     *newNode       (long  ,ast *  ,ast *  );
 ast     *copyAst      (ast *                 );