aboutsummaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-03-18 13:36:58 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-03-18 13:36:58 +0000
commit8500d9de5b108aba5221bd3d92a2743b050ddf19 (patch)
tree592273a1eba9c79a31629eb6c97d28c98ae02b41 /NEWS
parentccef20a48e758594256dbfa246dc6c4bcffc9003 (diff)
downloadmailfromd-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--NEWS26
1 files changed, 26 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 2fb9957c..a3cbe49a 100644
--- a/NEWS
+++ b/NEWS
@@ -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

Return to:

Send suggestions and report system problems to the System administrator.