aboutsummaryrefslogtreecommitdiff
path: root/jimregexp.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2014-01-11 21:13:16 +1000
committerSteve Bennett <steveb@workware.net.au>2014-01-21 16:10:19 +1000
commitfcfb8169cfa5fefe5610bcc4297500ead2dfaf42 (patch)
tree01f5b859d134e7f164a3b6935bffe9607d6fb05b /jimregexp.c
parent30a78d4c698c3d47ecf2d399cd553d9e4340c788 (diff)
downloadjimtcl-fcfb8169cfa5fefe5610bcc4297500ead2dfaf42.zip
jimtcl-fcfb8169cfa5fefe5610bcc4297500ead2dfaf42.tar.gz
jimtcl-fcfb8169cfa5fefe5610bcc4297500ead2dfaf42.tar.bz2
many comment changes, some small code changes
Sweep through and clean up all (most) of the comments in the code. While there, adjust some variable and function names to be more consistent, and make a few small code changes - again, mostly for consistency. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jimregexp.c')
-rw-r--r--jimregexp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/jimregexp.c b/jimregexp.c
index d32f316..9c7d70c 100644
--- a/jimregexp.c
+++ b/jimregexp.c
@@ -51,18 +51,19 @@
* precedence is structured in regular expressions. Serious changes in
* regular-expression syntax might require a total rethink.
*/
+
+#include "jimautoconf.h"
+
+#if defined(JIM_REGEXP)
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "jim.h"
-#include "jimautoconf.h"
#include "jimregexp.h"
#include "utf8.h"
-#if !defined(HAVE_REGCOMP) || defined(JIM_REGEXP)
-
/* An arbitrary limit, but this seems enough. Must be less than 1000. */
#define REG_MAX_PAREN 100