Path: utzoo!attcan!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!lll-tis!helios.ee.lbl.gov!nosc!humu!uhccux!lee From: lee@uhccux.uhcc.hawaii.edu (Greg Lee) Newsgroups: comp.sources.bugs Subject: fep Message-ID: <2626@uhccux.uhcc.hawaii.edu> Date: 13 Nov 88 06:21:11 GMT Organization: University of Hawaii Lines: 55 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@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);