diff options
author | nijtmans <nijtmans> | 2010-01-29 09:46:58 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-01-29 09:46:58 (GMT) |
commit | a98a5188b672f397d17abf6e04182566e1d7a7bb (patch) | |
tree | e8a816cbfc9c3367efef062e54a7696bc9661d83 | |
parent | f3131e02a818a4647fb118dab1f89a77a05005c0 (diff) | |
download | tcl-a98a5188b672f397d17abf6e04182566e1d7a7bb.zip tcl-a98a5188b672f397d17abf6e04182566e1d7a7bb.tar.gz tcl-a98a5188b672f397d17abf6e04182566e1d7a7bb.tar.bz2 |
Fix macro conflict on CYGWIN: don't use "small".
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | generic/rege_dfa.c | 24 |
2 files changed, 17 insertions, 16 deletions
@@ -1,9 +1,10 @@ 2010-01-29 Jan Nijtmans <nijtmans@users.sf.net> - * generic/tcl.h Use correct TCL_LL_MODIFIER for CYGWIN. - Formatting (all backported from HEAD) - * generic/tclTest.c: Fix gcc 4.4 warning: ignoring return value of ‘write’, - * unix/tclUnixPipe.c + * generic/tcl.h Use correct TCL_LL_MODIFIER for CYGWIN. + Formatting (all backported from HEAD) + * generic/rege_dfa.c: Fix macro conflict on CYGWIN: don't use "small". + * generic/tclTest.c: Fix gcc 4.4 warning: ignoring return value of + * unix/tclUnixPipe.c ‘write’ * unix/tclUnixNotify.c 2010-01-19 Donal K. Fellows <dkf@users.sf.net> diff --git a/generic/rege_dfa.c b/generic/rege_dfa.c index c80996a..e233680 100644 --- a/generic/rege_dfa.c +++ b/generic/rege_dfa.c @@ -318,32 +318,32 @@ newdfa( struct vars *v, struct cnfa *cnfa, struct colormap *cm, - struct smalldfa *small) /* preallocated space, may be NULL */ + struct smalldfa *sml) /* preallocated space, may be NULL */ { struct dfa *d; size_t nss = cnfa->nstates * 2; int wordsper = (cnfa->nstates + UBITS - 1) / UBITS; - struct smalldfa *smallwas = small; + struct smalldfa *smallwas = sml; assert(cnfa != NULL && cnfa->nstates != 0); if (nss <= FEWSTATES && cnfa->ncolors <= FEWCOLORS) { assert(wordsper == 1); - if (small == NULL) { - small = (struct smalldfa *) MALLOC(sizeof(struct smalldfa)); - if (small == NULL) { + if (sml == NULL) { + sml = (struct smalldfa *) MALLOC(sizeof(struct smalldfa)); + if (sml == NULL) { ERR(REG_ESPACE); return NULL; } } - d = &small->dfa; - d->ssets = small->ssets; - d->statesarea = small->statesarea; + d = &sml->dfa; + d->ssets = sml->ssets; + d->statesarea = sml->statesarea; d->work = &d->statesarea[nss]; - d->outsarea = small->outsarea; - d->incarea = small->incarea; + d->outsarea = sml->outsarea; + d->incarea = sml->incarea; d->cptsmalloced = 0; - d->mallocarea = (smallwas == NULL) ? (char *)small : NULL; + d->mallocarea = (smallwas == NULL) ? (char *)sml : NULL; } else { d = (struct dfa *)MALLOC(sizeof(struct dfa)); if (d == NULL) { @@ -388,7 +388,7 @@ newdfa( /* - freedfa - free a DFA - ^ static VOID freedfa(struct dfa *); + ^ static void freedfa(struct dfa *); */ static void freedfa( |