]> git.sur5r.net Git - cc65/blobdiff - src/cc65/function.c
Added the lineinfo module. Changed the complete code generation to use the
[cc65] / src / cc65 / function.c
index 463c4f2c6353e93093db2f20bfd8b63780634091..bcddf88d2610bc075f59cbbe348162d4d71565b3 100644 (file)
@@ -294,8 +294,8 @@ void NewFunc (SymEntry* Func)
 
     /* Now process statements in this block */
     HadReturn = 0;
-    while (curtok != TOK_RCURLY) {
-       if (curtok != TOK_CEOF) {
+    while (CurTok.Tok != TOK_RCURLY) {
+       if (CurTok.Tok != TOK_CEOF) {
            HadReturn = Statement ();
        } else {
            break;