shithub: choc

Download patch

ref: fb5f3408beef89872cbc2c51b5ce5e594e119031
parent: 49b5380150354db8d9ec7be93964af0a0ca53e16
author: Simon Howard <[email protected]>
date: Sat Sep 9 15:11:05 EDT 2006

Add command line arguments to main() in textscreen examples.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 602

--- a/textscreen/examples/calculator.c
+++ b/textscreen/examples/calculator.c
@@ -148,7 +148,7 @@
     UpdateInputBox();
 }
 
-int main()
+int main(int argc, char *argv[])
 {
     TXT_Init();
     TXT_SetDesktopTitle("Calculator demo");
--- a/textscreen/examples/guitest.c
+++ b/textscreen/examples/guitest.c
@@ -178,7 +178,7 @@
     }
 }
 
-int main()
+int main(int argc, char *argv[])
 {
     TXT_Init();