diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-03-18 13:36:58 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-03-18 13:36:58 +0000 |
commit | 8500d9de5b108aba5221bd3d92a2743b050ddf19 (patch) | |
tree | 592273a1eba9c79a31629eb6c97d28c98ae02b41 /NEWS | |
parent | ccef20a48e758594256dbfa246dc6c4bcffc9003 (diff) | |
download | mailfromd-8500d9de5b108aba5221bd3d92a2743b050ddf19.tar.gz mailfromd-8500d9de5b108aba5221bd3d92a2743b050ddf19.tar.bz2 |
Implement `#pragma regex push|pop'
git-svn-id: file:///svnroot/mailfromd/trunk@1293 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -9,2 +9,28 @@ Version 3.1.91, SVN +* #pragma regex stack + +The `#pragma regex' statement can keep a stack of regex flags. The +stack is maintained using `push' and `pop' commands. The statement + + #pragma regex push [options] + +saves current regex flags on stack and then optionally modifies them +as requested by options. + +The statement + + #pragma regex pop [options] + +does the reverse: restores the current regex flags from the top of +stack and applies [options] to it. + +This statement is useful in include files to avoid disturbing user +regex settings. E.g.: + + #pragma regex push +extended +icase + . + . + . + #pragma regex pop + * Optional arguments in user-defined functions |