Mercurial > hg > xemacs-beta
comparison src/regex.c @ 1425:74cb069b8417
[xemacs-hg @ 2003-04-23 15:42:44 by stephent]
stale match data <87fzo99rje.fsf@tleepslib.sk.tsukuba.ac.jp>
new split-string <87d6jd9qis.fsf@tleepslib.sk.tsukuba.ac.jp>
support (info "(file)node") <87adeh9qa7.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Wed, 23 Apr 2003 15:42:52 +0000 |
parents | 56496b493888 |
children | 0f42689481f0 |
comparison
equal
deleted
inserted
replaced
1424:c35e2ad2f97d | 1425:74cb069b8417 |
---|---|
5207 (XEmacs) reuse register structures which may contain stale | 5207 (XEmacs) reuse register structures which may contain stale |
5208 information, and permit attempts to access those registers. | 5208 information, and permit attempts to access those registers. |
5209 | 5209 |
5210 It would be possible to require the caller to do this, but we'd | 5210 It would be possible to require the caller to do this, but we'd |
5211 have to change the API for this function to reflect that, and | 5211 have to change the API for this function to reflect that, and |
5212 audit all callers. */ | 5212 audit all callers. Note: as of 2003-04-17 callers in XEmacs |
5213 do clear the registers, but it's safer to leave this code in | |
5214 because of reallocation. | |
5215 */ | |
5213 if (regs && regs->num_regs > 0) | 5216 if (regs && regs->num_regs > 0) |
5214 for (mcnt = num_nonshy_regs; mcnt < regs->num_regs; mcnt++) | 5217 for (mcnt = num_nonshy_regs; mcnt < regs->num_regs; mcnt++) |
5215 regs->start[mcnt] = regs->end[mcnt] = -1; | 5218 regs->start[mcnt] = regs->end[mcnt] = -1; |
5216 } | 5219 } |
5217 DEBUG_PRINT4 ("%u failure points pushed, %u popped (%u remain).\n", | 5220 DEBUG_PRINT4 ("%u failure points pushed, %u popped (%u remain).\n", |