home *** CD-ROM | disk | FTP | other *** search
- .. file: tmcode.ct
- /* file: tmcode.c
- template file: tmcode.ct
- datastructure file: ${dsfilename}
- tm version: $(tmvers) ($(tmdate))
- */
-
- .insert uflatconfig.t
-
- /* Standard UNIX libraries */
- #include <stdio.h>
-
- /* Standard tm library */
- #include <tmc.h>
- #include <cvr.h>
-
- /* Local definitions */
- #include "uflatconfig.h"
- #include "tmcode.h"
- #include "uflatconst.h"
-
- static int fscan_bool (f, s)
- FILE *f;
- bool *s;
- { char buf[BUFSZ];
- if (fscanf (f, " %s", buf) != 1)
- { (void) strcpy (tmerrmsg, "boolean expected");
- return (1);
- };
- if (strcmp (buf, FALSESTR) == 0)
- { *s = FALSE;
- return (0);
- };
- if (strcmp (buf, TRUESTR) == 0)
- { *s = TRUE;
- return (0);
- };
- (void) strcpy (tmerrmsg, "boolean expected");
- return (1);
- };
-
- static void fprint_bool (f, s)
- FILE *f;
- bool s;
- { fprintf (f, s?TRUESTR:FALSESTR);
- };
- .include $(libpath)$(pathsep)calu.ct
-