Added patch for bad fseeks
authorceriel <none@none>
Wed, 23 Mar 1988 18:04:08 +0000 (18:04 +0000)
committerceriel <none@none>
Wed, 23 Mar 1988 18:04:08 +0000 (18:04 +0000)
util/LLgen/src/gencode.c

index 0040a72..1e154c8 100644 (file)
@@ -341,6 +341,9 @@ getparams() {
        /*
         * Now copy the declarations 
         */
+       l = getc(fact);         /* patch: some implementations of fseek
+                                  do not work properly after "ungetc"
+                               */
        fseek(fact,off,0);
        getaction(0);
        fputs(" {\n",fpars);