File jtools.return.patch of Package jtools
--- jchar.c
+++ jchar.c
@@ -46,8 +46,8 @@
#ifdef THINK_C
#include <console.h>
-#include <stdlib.h>
#endif
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
--- jcode.c
+++ jcode.c
@@ -96,8 +96,8 @@
#ifdef THINK_C
#include <console.h>
-#include <stdlib.h>
#endif
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
@@ -498,6 +498,8 @@
strcpy(ko,DEFAULT_OKO);
return DEFAULT_O;
}
+ else
+ abort();
}
}
@@ -894,6 +896,8 @@
return (data - ASCII_ZERO);
else if (data >= 'A' && data <= 'F')
return (data - 55);
+ else
+ abort();
}
int convert2code(int p1,int p2,int incode)
--- jconv.c
+++ jconv.c
@@ -104,8 +104,8 @@
#ifdef THINK_C
#include <console.h>
-#include <stdlib.h>
#endif
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
@@ -516,6 +516,8 @@
strcpy(extension,DEFAULT_RS);
return DEFAULT_R;
}
+ else
+ abort();
}
}
--- jgrep.c
+++ jgrep.c
@@ -119,8 +119,8 @@
programs.
*/
-/* #include <console.h>
-#include <stdlib.h> */
+/* #include <console.h> */
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>