changeset 1154:b0d632cc9edf

More fixes for NetBSD support
author Adam Chlipala <adamc@hcoop.net>
date Sat, 06 Feb 2010 20:47:23 -0500
parents a62ac791f7fb
children 042f618f7c77
files .hgignore Makefile.am Makefile.in src/c/cgi.c
diffstat 4 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Sat Feb 06 20:13:51 2010 -0500
+++ b/.hgignore	Sat Feb 06 20:47:23 2010 -0500
@@ -16,6 +16,8 @@
 .libs
 *.lo
 *.la
+*.mlton.grm
+*.mlton.lex
 
 src/config.sml
 
--- a/Makefile.am	Sat Feb 06 20:13:51 2010 -0500
+++ b/Makefile.am	Sat Feb 06 20:47:23 2010 -0500
@@ -33,15 +33,15 @@
 	| sed 's/^\(.*\).lex$$/\1.mlton.lex.sml/' \
 	>$@
 
-%.mlton.lex: %.lex
+src/urweb.mlton.lex: src/urweb.lex
 	cp $< $@
-%.mlton.grm: %.grm
+src/urweb.mlton.grm: src/urweb.grm
 	cp $< $@
 
-%.mlton.lex.sml: %.mlton.lex
+src/urweb.mlton.lex.sml: src/urweb.mlton.lex
 	mllex $<
 
-%.mlton.grm.sig %.mlton.grm.sml: %.mlton.grm
+src/urweb.mlton.grm.sig src/urweb.mlton.grm.sml: src/urweb.mlton.grm
 	mlyacc $<
 
 MLTON := mlton
--- a/Makefile.in	Sat Feb 06 20:13:51 2010 -0500
+++ b/Makefile.in	Sat Feb 06 20:47:23 2010 -0500
@@ -727,15 +727,15 @@
 	| sed 's/^\(.*\).lex$$/\1.mlton.lex.sml/' \
 	>$@
 
-%.mlton.lex: %.lex
+src/urweb.mlton.lex: src/urweb.lex
 	cp $< $@
-%.mlton.grm: %.grm
+src/urweb.mlton.grm: src/urweb.grm
 	cp $< $@
 
-%.mlton.lex.sml: %.mlton.lex
+src/urweb.mlton.lex.sml: src/urweb.mlton.lex
 	mllex $<
 
-%.mlton.grm.sig %.mlton.grm.sml: %.mlton.grm
+src/urweb.mlton.grm.sig src/urweb.mlton.grm.sml: src/urweb.mlton.grm
 	mlyacc $<
 
 #ifdef DEBUG
--- a/src/c/cgi.c	Sat Feb 06 20:13:51 2010 -0500
+++ b/src/c/cgi.c	Sat Feb 06 20:47:23 2010 -0500
@@ -25,7 +25,7 @@
 
   strcpy(uppercased, "HTTP_");
   for (s = uppercased+5; *h; ++h)
-    *s++ = *h == '-' ? '_' : toupper(*h);
+    *s++ = *h == '-' ? '_' : toupper((int)*h);
   *s = 0;
 
   if ((r = getenv(uppercased)))