[PATCH] eruby on tiger

Jb Evain <[email protected]> Mon, 18 Jul 2005 22:36:20 +0200
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Bonjour !

Attached is a very small patch to clean warnings during the build of
eruby on Tiger.

Juste another thing, i've read the list a little, it appears that some
people are not aware that the ruby bundled with Tiger sucks, here is a
link that may be provided on the site:

http://tech.rufy.com/entry/46

Otherwise, thanks for eruby, it's useful to me.

Jb
eruby.diff (application/octet-stream, 1.1 KB)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 67)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@
+Mon Jul  18 22:07:12  2005  Jb Evain  <[email protected]>
+
+	* eruby_lib.c: clean warnings
+
 Tue Mar  9 14:16:06 2004  Shugo Maeda <[email protected]>
 
 	* Makefile.in: use $(RUBY) to execute bin2c.
Index: eruby_lib.c
===================================================================
--- eruby_lib.c	(revision 67)
+++ eruby_lib.c	(working copy)
@@ -117,7 +117,7 @@
 int eruby_parse_options(int argc, char **argv, int *optind)
 {
     int i, result = 0;
-    unsigned char *s;
+    char *s;
 
     for (i = 1; i < argc; i++) {
 	if (argv[i][0] != '-' || argv[i][1] == '\0') {
@@ -157,7 +157,7 @@
 		break;
 	    }
 	    else {
-		unsigned char *p = s;
+		char *p = s;
 		while (*p && !isspace(*p)) p++;
 		eruby_charset = rb_str_new(s, p - s);
 		s = p;
@@ -481,7 +481,7 @@
     if (c == '#') {
 	c = nextc(compiler);
 	if (c == '!') {
-	    unsigned char *p;
+	    char *p;
 	    char *argv[2];
 	    char *line = RSTRING(compiler->lex_lastline)->ptr;