fep
Greg Lee
lee at uhccux.uhcc.hawaii.edu
Sun Nov 13 16:21:11 AEST 1988
Here are a couple minor changes to the fep program that was just
posted in comp.sources.unix. (1) re#defines CTRL to what the
code apparently supposes it to mean, (2) changes an error check
of the malloc return value from '<= 0' to '== 0'.
Fep has support for Kanji entry and I'm wondering if I can
use it. The program notes say you have to have "ASCII UNIX".
What's this? Can someone explain?
Greg, lee at uhccux.uhcc.hawaii.edu
*** orig.fep_defs.h Sat Nov 12 20:04:05 1988
--- fep_defs.h Fri Nov 11 09:58:17 1988
***************
*** 5,10
"$Header: fep_defs.h,v 4.0 88/08/05 20:21:51 utashiro Rel $ (SRA)"
#endif lint
#define MAXCOMLEN 512 /* maximum command length */
#define MAXARGS 64 /* maximum number of arguments */
#define ON 1 /* on switch */
--- 5,14 -----
"$Header: fep_defs.h,v 4.0 88/08/05 20:21:51 utashiro Rel $ (SRA)"
#endif lint
+ /* changed CTRL: -- gl */
+ #undef CTRL
+ #define CTRL(c) ('c'-64)
+
#define MAXCOMLEN 512 /* maximum command length */
#define MAXARGS 64 /* maximum number of arguments */
#define ON 1 /* on switch */
*** orig.fep_main.c Sat Nov 12 20:02:59 1988
--- fep_main.c Fri Nov 11 10:08:52 1988
***************
*** 243,249
* Initialize output buffer.
*/
output_buffer->buf = (char *) malloc (5120);
! if (output_buffer->buf <= 0) {
fprintf (stderr, "Can't allocate enough momory\n");
kill_process ();
exit (1);
--- 243,250 -----
* Initialize output buffer.
*/
output_buffer->buf = (char *) malloc (5120);
! /* if (output_buffer->buf <= 0) { changed -- gl */
! if (output_buffer->buf == 0) {
fprintf (stderr, "Can't allocate enough momory\n");
kill_process ();
exit (1);
More information about the Comp.sources.bugs
mailing list