the reply to reply_fd.
# Europagate, 1995
#
# $Log: Makefile,v $
-# Revision 1.6 1995/02/21 14:00:08 adam
+# Revision 1.7 1995/02/22 08:51:34 adam
+# Output function can be customized in fml, which is used to print
+# the reply to reply_fd.
+#
+# Revision 1.6 1995/02/21 14:00:08 adam
# Minor changes.
#
# Revision 1.5 1995/02/21 12:11:59 adam
CFLAGS=-g -Wall
TPROG1=kernel
O=main.o urp.o
-CPP=cc -E
+CPP=$(CC) -E
USELIBS1=../lib/ccl.a ../lib/fml.a ../lib/libzass.a ../lib/libres+log.a \
../lib/util.a $(ZLIB)
DEFS=$(INCLUDE) -DUSE_FML=1
* Europagate, 1995
*
* $Log: main.c,v $
- * Revision 1.5 1995/02/20 21:16:20 adam
+ * Revision 1.6 1995/02/22 08:51:34 adam
+ * Output function can be customized in fml, which is used to print
+ * the reply to reply_fd.
+ *
+ * Revision 1.5 1995/02/20 21:16:20 adam
* FML support. Bug fixes. Profile for drewdb.
*
* Revision 1.4 1995/02/17 17:06:16 adam
return 0;
}
#if USE_FML
+static void fml_inf_write (int ch)
+{
+ putc (ch, reply_fd);
+}
static FILE *fml_inf;
static int fml_inf_read (void)
{
info.fml = fml_open ();
info.fml->read_func = fml_inf_read;
+ info.fml->write_func = fml_inf_write;
fml_preprocess (info.fml);
fml_exec (info.fml);
fclose (fml_inf);
* Europagate, 1995
*
* $Log: urp.c,v $
- * Revision 1.9 1995/02/21 17:46:21 adam
+ * Revision 1.10 1995/02/22 08:51:35 adam
+ * Output function can be customized in fml, which is used to print
+ * the reply to reply_fd.
+ *
+ * Revision 1.9 1995/02/21 17:46:21 adam
* Minor changes.
*
* Revision 1.8 1995/02/21 12:12:00 adam
li = li->next->next;
}
}
+ if (!li->next)
+ {
+ fprintf (reply_fd, "%s\n", "Missing token after '='");
+ return -2;
+ }
li = li->next;
}
else
#endif
fprintf (reply_fd, "--- %d/%d ---\n",
i+offset, offset+zp->num-1);
+#if 0
if (pp->which == ZASS_REC_DIAG)
{
fprintf (reply_fd, "Record error %d: %s\n",
pp->which);
continue;
}
+#endif
rec = iso2709_cvt (pp->record);
#if USE_FML
if (format_token)