]> git.sur5r.net Git - cc65/blobdiff - src/cc65/function.c
Make AddConstSym from AddEnumSym
[cc65] / src / cc65 / function.c
index c3dfc6cf7e1f76fe972f184a1a00f5b080f60fa0..8b4e92c741d4a0568d1a74ddc8233d8abb2abc4c 100644 (file)
@@ -231,14 +231,14 @@ void NewFunc (SymEntry* Func)
      * The latter is different depending on the type of the function (variadic
      * or not).
      */
-    AddLocalSym ("__fixargs__", type_uint, SC_DEF | SC_CONST, D->ParamSize);
+    AddConstSym ("__fixargs__", type_uint, SC_DEF | SC_CONST, D->ParamSize);    
     if (D->Flags & FD_ELLIPSIS) {
        /* Variadic function. The variable must be const. */
        static const type T [] = { T_UCHAR | T_QUAL_CONST, T_END };
        AddLocalSym ("__argsize__", T, SC_DEF | SC_REF | SC_AUTO, 0);
     } else {
        /* Non variadic */
-       AddLocalSym ("__argsize__", type_uchar, SC_DEF | SC_CONST, D->ParamSize);
+               AddConstSym ("__argsize__", type_uchar, SC_DEF | SC_CONST, D->ParamSize);
     }
 
     /* Function body now defined */