aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2016-12-04 16:50:50 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2016-12-04 16:50:50 -0500
commit16761af5b3cec40f1e341cb33787af33cb2b45c2 (patch)
treed29bc360a9c234bed55a2922d8fcca3fbe89f2a8 /doc
parent4a20341b487c17b49fc455ba37df84946eda38a7 (diff)
downloadegawk-16761af5b3cec40f1e341cb33787af33cb2b45c2.tar.gz
egawk-16761af5b3cec40f1e341cb33787af33cb2b45c2.tar.bz2
egawk-16761af5b3cec40f1e341cb33787af33cb2b45c2.zip
Improve API regex support.
Diffstat (limited to 'doc')
-rw-r--r--doc/ChangeLog5
-rw-r--r--doc/gawktexi.in10
2 files changed, 14 insertions, 1 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 2e08deff..ddf454f0 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,5 +1,10 @@
2016-12-04 Andrew J. Schorr <aschorr@telemetry-investments.com>
+ * gawktexi.in: Remove make_regex and replace it with make_const_regex
+ and make_malloced_regex.
+
+2016-12-04 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
* gawktexi.in: Document new flatten_array_typed API function, and
indicate that the old flatten_array function has been superseded.
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index 17206bce..1450d09d 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -31796,9 +31796,17 @@ This function simply creates a numeric value in the @code{awk_value_t} variable
pointed to by @code{result}.
@item static inline awk_value_t *
-@itemx make_regex(const char *string, size_t length, awk_value_t *result);
+@itemx make_const_regex(const char *string, size_t length, awk_value_t *result);
+This function creates a strongly typed regexp value by allocating a copy of the string.
+@code{string} is the regular expression of length @code{len}.
+
+@item static inline awk_value_t *
+@itemx make_malloced_regex(const char *string, size_t length, awk_value_t *result);
This function creates a strongly typed regexp value.
@code{string} is the regular expression of length @code{len}.
+It expects @code{string} to be a @samp{char *}
+value pointing to data previously obtained from @code{gawk_malloc()}, @code{gawk_calloc()}, or @code{gawk_realloc()}.
+
@end table
@node Registration Functions