You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@hyperreal.org on 1998/09/21 04:30:14 UTC
cvs commit: apache-1.3/src/helpers TestCompile
jim 98/09/20 19:30:14
Modified: . STATUS
src/helpers TestCompile
Log:
Fix the fact that TestCompile was not
forcing main to return an int which appears to be required
Revision Changes Path
1.484 +0 -3 apache-1.3/STATUS
Index: STATUS
===================================================================
RCS file: /export/home/cvs/apache-1.3/STATUS,v
retrieving revision 1.483
retrieving revision 1.484
diff -u -r1.483 -r1.484
--- STATUS 1998/09/21 02:23:47 1.483
+++ STATUS 1998/09/21 02:30:13 1.484
@@ -117,9 +117,6 @@
Needs patch:
- * TestCompile creates bogus code with "void main(...". main
- always returns an int.
-
* Ralf: mod_so doesn't correctly initialise modules. For instance
the handlers of mod_perl are not initialised.
An ap_init_modules() could be done from mod_so but this is too much.
1.17 +6 -3 apache-1.3/src/helpers/TestCompile
Index: TestCompile
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/helpers/TestCompile,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- TestCompile 1998/09/17 04:09:41 1.16
+++ TestCompile 1998/09/21 02:30:14 1.17
@@ -73,7 +73,7 @@
TARGET='dummy'
else
TARGET='testfunc'
- echo "void main(void) { $3(); }" > testfunc.c
+ echo "int main(void) { $3(); return(0); }" > testfunc.c
fi
;;
"sanity")
@@ -97,8 +97,9 @@
fi
TARGET='testfunc'
cat <<EOF >testfunc.c
-void main(void) {
+int main(void) {
$2();
+ return(0)
}
EOF
;;
@@ -115,7 +116,9 @@
TARGET='testfunc'
cat <<EOF >testfunc.c
#include <$2>
-void main(void) { }
+int main(void) {
+ return(0);
+}
EOF
;;
*)