Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed compilation error in main.cpp and added error message argument …

…for printf.
  • Loading branch information...
commit 4ca4974968b74a40466b1fa2e23f3d266f1a4d1e 1 parent 38fad25
authored September 19, 2011

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  main.cpp
  2. 2  parser.y
2  main.cpp
@@ -11,7 +11,7 @@ int main(int argc, char **argv)
11 11
 {
12 12
 	yyparse();
13 13
 	std::cout << programBlock << endl;
14  
-        # see http://comments.gmane.org/gmane.comp.compilers.llvm.devel/33877
  14
+    // see http://comments.gmane.org/gmane.comp.compilers.llvm.devel/33877
15 15
 	InitializeNativeTarget();
16 16
 	CodeGenContext context;
17 17
 	context.generateCode(*programBlock);
2  parser.y
@@ -5,7 +5,7 @@
5 5
 	NBlock *programBlock; /* the top level root node of our final AST */
6 6
 
7 7
 	extern int yylex();
8  
-	void yyerror(const char *s) { std::printf("Error: %s\n");std::exit(1); }
  8
+	void yyerror(const char *s) { std::printf("Error: %s\n", s);std::exit(1); }
9 9
 %}
10 10
 
11 11
 /* Represents the many different ways we can access our data */

0 notes on commit 4ca4974

Please sign in to comment.
Something went wrong with that request. Please try again.