]> git.mdlowis.com Git - proto/gir.git/commitdiff
Fixed some warnings
authorMike D. Lowis <mike.lowis@gentex.com>
Tue, 9 Jun 2015 15:45:54 +0000 (11:45 -0400)
committerMike D. Lowis <mike.lowis@gentex.com>
Tue, 9 Jun 2015 15:45:54 +0000 (11:45 -0400)
source/main.c
source/parser.c

index a38afcc293f76bfdb9b0e36e5624bcd6501e767b..62d3413c86e68d3d63d839e286d9e722b94d8576 100644 (file)
@@ -1,14 +1,13 @@
-#include <stdio.h>
+#include <libc.h>
 
 /* Main
  *****************************************************************************/
-int main(int argc, char** argv) {
+void main(int argc, char** argv) {
     extern void world_init(void);
     extern void exec_file(FILE* file, const char* prompt);
     world_init();
     exec_file(stdin, ":> ");
     (void)argc;
     (void)argv;
-    return 0;
 }
 
index 2257d7b3be7f8a9b511c5181f798b0cbdd6f69ab..462b13434ca447f7043128d65a9e3f6354ed54d8 100644 (file)
@@ -115,7 +115,7 @@ static void push_reduce(int type, int nchildren);
 // String Buffer
 static void strbuf_init(strbuf_t* buf);
 static void strbuf_putc(strbuf_t* buf, int ch);
-static void strbuf_print(strbuf_t* buf, const char* str);
+//static void strbuf_print(strbuf_t* buf, const char* str);
 static char* strbuf_string(strbuf_t* buf);
 
 
@@ -543,11 +543,11 @@ static void strbuf_putc(strbuf_t* buf, int ch)
     buf->string[buf->index] = '\0';
 }
 
-static void strbuf_print(strbuf_t* buf, const char* str)
-{
-    while(*str)
-        strbuf_putc(buf, *str++);
-}
+//static void strbuf_print(strbuf_t* buf, const char* str)
+//{
+//    while(*str)
+//        strbuf_putc(buf, *str++);
+//}
 
 static char* strbuf_string(strbuf_t* buf)
 {