home *** CD-ROM | disk | FTP | other *** search
- diff -cbBw CAWF.DOS/cawf.c CAWF.OS2/cawf.c
- *** CAWF.DOS/cawf.c Thu Feb 21 18:14:54 1991
- --- CAWF.OS2/cawf.c Fri Apr 26 22:02:36 1991
- ***************
- *** 92,97 ****
- --- 92,106 ----
- Error(FATAL, NOLINE, " no string space for device file name",
- NULL);
- (void) sprintf(np, "%s/%s.dev", lib, ep);
- + if ( access(np, 0) )
- + {
- + free(np);
- + l = libl + 1 + strlen("dumb") + strlen(".dev") + 1;
- + if ((np = malloc(l)) == NULL)
- + Error(FATAL, NOLINE, " no string space for device file name",
- + NULL);
- + (void) sprintf(np, "%s/dumb.dev", lib, ep);
- + }
- files[nf++] = np;
- /*
- * Get common text file name.
- ***************
- *** 137,142 ****
- --- 146,153 ----
- */
- pc = nf;
- if (ax >= argc) {
- + if ( isatty(1) )
- + usage(argv[0]);
- files[nf++] = NULL; /* STDIN */
- } else {
- while (ax < argc) {
- ***************
- *** 236,241 ****
- --- 247,262 ----
- }
- Macro(NULL);
- exit(Err);
- + }
- +
- +
- + usage(name)
- + char *name;
- + {
- + printf("\nCAWF - C version of the nroff-like, Amazingly Workable (text) Formatter\n"
- + "\nUsage: %s [ -macros ] [ file ... ]\n"
- + "\n -macros may be -man or -ms, for example\n", name);
- + exit(1);
- }
-
-
- diff -cbBw CAWF.DOS/pass2.c CAWF.OS2/pass2.c
- *** CAWF.DOS/pass2.c Thu Feb 21 18:14:58 1991
- --- CAWF.OS2/pass2.c Fri Apr 26 22:37:00 1991
- ***************
- *** 75,80 ****
- --- 75,81 ----
- * End of macro expansion.
- */
- Pass3(DOBREAK, "need", NULL, 999); /* flush page */
- + Pass3(DOBREAK, "flush", NULL, 0);
- return;
- }
- /*
-