shithub: mc

Download patch

ref: 224a25f16463b31a8f36f266d34d09e83175f170
parent: fe70d97044e43edd472a36ebecec4269759b2fac
author: Ori Bernstein <[email protected]>
date: Wed Feb 19 06:39:36 EST 2014

Fix a few typos.

--- a/parse/gram.y
+++ b/parse/gram.y
@@ -286,9 +286,9 @@
                 installucons(file->file.exports, $1.type);
             }
         | traitdef {
-            size_t i;
-            for (i = 0; i < $1->trait.nfuncs; i++)
-                 putdecl($file->file.exports, $1->trait.funcs[i]);
+                size_t i;
+                for (i = 0; i < $1->nfuncs; i++)
+                    putdcl(file->file.exports, $1->funcs[i]);
             }
         | implstmt
         | visdef {die("Unimplemented visdef");}
@@ -483,7 +483,7 @@
                 $$.ucl = NULL;
                 $$.nucl = 0;
                 if ($1)
-                    lappend(&$$.ucl, &$$.nucl, $1)
+                    lappend(&$$.ucl, &$$.nucl, $1);
              }
         | unionbody unionelt {
                 if ($2)