# HG changeset patch # User Adam Chlipala # Date 1265507243 18000 # Node ID b0d632cc9edf5bc16b35c4765302714b176caa1b # Parent a62ac791f7fb0caa9b1e1f8dd7428a0f30887207 More fixes for NetBSD support diff -r a62ac791f7fb -r b0d632cc9edf .hgignore --- 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 diff -r a62ac791f7fb -r b0d632cc9edf Makefile.am --- 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 diff -r a62ac791f7fb -r b0d632cc9edf Makefile.in --- 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 diff -r a62ac791f7fb -r b0d632cc9edf src/c/cgi.c --- 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)))