[llvm-commits] CVS: llvm/projects/Stacker/lib/runtime/stacker_rt.c
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 27 01:49:01 PST 2003
Changes in directory llvm/projects/Stacker/lib/runtime:
stacker_rt.c updated: 1.3 -> 1.4
---
Log message:
* Squelch warning on Sun
* stdlib and friends are system headers
* 'long long' is the type that consistently turns into the LLVM 'long' type.
---
Diffs of the changes: (+6 -6)
Index: llvm/projects/Stacker/lib/runtime/stacker_rt.c
diff -u llvm/projects/Stacker/lib/runtime/stacker_rt.c:1.3 llvm/projects/Stacker/lib/runtime/stacker_rt.c:1.4
--- llvm/projects/Stacker/lib/runtime/stacker_rt.c:1.3 Sun Nov 23 20:57:25 2003
+++ llvm/projects/Stacker/lib/runtime/stacker_rt.c Thu Nov 27 01:48:45 2003
@@ -17,12 +17,12 @@
//
//===----------------------------------------------------------------------===//
-#include "ctype.h"
-#include "stdio.h"
-#include "stdlib.h"
+#include <ctype.h>
+#include <stdio.h>
+#include <stdlib.h>
-extern long _index_;
-extern int _stack_[1024];
+extern long long _index_;
+extern int _stack_[];
extern void _MAIN_();
void
@@ -49,7 +49,7 @@
// so that they get popped in the order presented
while ( a > 0 )
{
- if ( isdigit( argv[--a][0] ) )
+ if ( isdigit( (int) argv[--a][0] ) )
{
_stack_[_index_++] = atoi( argv[a] );
}
More information about the llvm-commits
mailing list