* Sebastian Hammer, Adam Dickmeiss
*
* $Log: grepper.c,v $
- * Revision 1.2 1994-10-03 17:22:18 adam
+ * Revision 1.3 1994-10-04 17:46:43 adam
+ * Function options now returns arg with error option.
+ *
+ * Revision 1.2 1994/10/03 17:22:18 adam
* Optimization of grepper.
*
* Revision 1.1 1994/09/27 16:31:18 adam
}
else
{
- log (LOG_FATAL, "unknown option");
+ log (LOG_FATAL, "Unknown option '-%s'", arg);
exit (1);
}
}
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: lexer.c,v $
- * Revision 1.3 1994-10-03 17:22:19 adam
+ * Revision 1.4 1994-10-04 17:46:44 adam
+ * Function options now returns arg with error option.
+ *
+ * Revision 1.3 1994/10/03 17:22:19 adam
* Optimization of grepper.
*
* Revision 1.2 1994/09/27 16:31:20 adam
return 1;
}
else while (--argc > 0)
- if (**++argv != '-' && **argv)
- {
- ++no;
- i = read_file (*argv, &dfa);
- if (i)
- return i;
- dfas = mk_dfas (dfa, 2000);
- rm_dfa (&dfa);
- rm_dfas (&dfas);
- }
+ if (**++argv != '-' && **argv)
+ {
+ ++no;
+ i = read_file (*argv, &dfa);
+ if (i)
+ return i;
+ dfas = mk_dfas (dfa, 2000);
+ rm_dfa (&dfa);
+ rm_dfas (&dfas);
+ }
#ifdef MEMDEBUG
imemstat();
#endif
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dictext.c,v $
- * Revision 1.2 1994-09-28 13:07:08 adam
+ * Revision 1.3 1994-10-04 17:46:54 adam
+ * Function options now returns arg with error option.
+ *
+ * Revision 1.2 1994/09/28 13:07:08 adam
* Use log_mask_str now.
*
* Revision 1.1 1994/09/16 15:39:11 adam
}
else
{
- log (LOG_FATAL, "unknown option");
+ log (LOG_FATAL, "Unknown option '-%s'", arg);
exit (1);
}
}
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dicttest.c,v $
- * Revision 1.13 1994-10-04 12:08:05 adam
+ * Revision 1.14 1994-10-04 17:46:55 adam
+ * Function options now returns arg with error option.
+ *
+ * Revision 1.13 1994/10/04 12:08:05 adam
* Some bug fixes and some optimizations.
*
* Revision 1.12 1994/10/03 17:23:03 adam
}
else
{
- log (LOG_FATAL, "unknown option");
+ log (LOG_FATAL, "Unknown option '-%s'", arg);
exit (1);
}
}
# Copyright (C) 1994, Index Data I/S
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.14 1994-09-22 10:45:19 adam Exp $
+# $Id: Makefile,v 1.15 1994-10-04 17:47:09 adam Exp $
SHELL=/bin/sh
INCLUDE=-I../include
all: $(LIB)
+alll: opt-test res-test all
+
opt-test: opt-test.o $(LIB)
$(CC) -o opt-test opt-test.o $(LIB)
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: res-test.c,v $
- * Revision 1.3 1994-08-18 11:02:27 adam
+ * Revision 1.4 1994-10-04 17:47:11 adam
+ * Function options now returns arg with error option.
+ *
+ * Revision 1.3 1994/08/18 11:02:27 adam
* Implementation of res_write.
*
* Revision 1.2 1994/08/18 10:02:01 adam
write_flag = 1;
else
{
- log (LOG_FATAL, "unknown option");
+ log (LOG_FATAL, "Unknown option '-%s'", arg);
exit (1);
}
if (!resfile)
{
- log (LOG_FATAL, "Now resource file given.");
+ log (LOG_FATAL, "No resource file given.");
exit (1);
}
res = res_open (resfile);