The unified diff between revisions [4029749b..] and [8583f573..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/lsc/parser.y'
# # old_revision [4029749b9ead646e788e96bfd20e494a8bf99f61] # new_revision [8583f573519b60d2a4dfb35aa4ec8079f05b88c1] # # patch "src/lsc/parser.y" # from [2e92a218e99f7522cbd4a48694ec2202d575e0d2] # to [9b444a45ad7c17497adb8a9b2982c004a418589f] # ============================================================ --- src/lsc/parser.y 2e92a218e99f7522cbd4a48694ec2202d575e0d2 +++ src/lsc/parser.y 9b444a45ad7c17497adb8a9b2982c004a418589f @@ -28,6 +28,8 @@ int main(int argc, char *argv[]) int main(int argc, char *argv[]) { + int rv; + argv++; /* skip over program name */ argc--; if (argc > 0) { @@ -60,10 +62,10 @@ int main(int argc, char *argv[]) err(1, "%s: Failed to open output file", "out.lc"); } - yyparse(); + rv = yyparse(); fclose(binout); fclose(yyin); - return 0; + return rv; } %}