summaryrefslogtreecommitdiff
path: root/spat.h
diff options
context:
space:
mode:
Diffstat (limited to 'spat.h')
-rw-r--r--spat.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/spat.h b/spat.h
index 04b30e464a..3bce100f5b 100644
--- a/spat.h
+++ b/spat.h
@@ -1,31 +1,32 @@
-/* $Header: spat.h,v 1.0.1.1 88/02/02 11:24:37 root Exp $
+/* $Header: spat.h,v 2.0 88/06/05 00:10:58 root Exp $
*
* $Log: spat.h,v $
- * Revision 1.0.1.1 88/02/02 11:24:37 root
- * patch13: added flag for stripping leading spaces on split.
- *
- * Revision 1.0 87/12/18 13:06:10 root
- * Initial revision
+ * Revision 2.0 88/06/05 00:10:58 root
+ * Baseline version 2.0.
*
*/
struct scanpat {
SPAT *spat_next; /* list of all scanpats */
- COMPEX spat_compex; /* compiled expression */
+ REGEXP *spat_regexp; /* compiled expression */
ARG *spat_repl; /* replacement string for subst */
ARG *spat_runtime; /* compile pattern at runtime */
- STR *spat_first; /* for a fast bypass of execute() */
+ STR *spat_short; /* for a fast bypass of execute() */
bool spat_flags;
- char spat_flen;
+ char spat_slen;
};
#define SPAT_USED 1 /* spat has been used once already */
-#define SPAT_USE_ONCE 2 /* use pattern only once per article */
+#define SPAT_ONCE 2 /* use pattern only once per article */
#define SPAT_SCANFIRST 4 /* initial constant not anchored */
-#define SPAT_SCANALL 8 /* initial constant is whole pat */
+#define SPAT_ALL 8 /* initial constant is whole pat */
#define SPAT_SKIPWHITE 16 /* skip leading whitespace for split */
+#define SPAT_FOLD 32 /* case insensitivity */
EXT SPAT *spat_root; /* list of all spats */
EXT SPAT *curspat; /* what to do \ interps from */
+EXT SPAT *lastspat; /* what to use in place of null pattern */
+
+EXT char *hint INIT(Nullch); /* hint from cmd_exec to do_match et al */
#define Nullspat Null(SPAT*)