diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-03 19:58:47 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-03 19:58:47 +0000 |
commit | a80ea2eb47d298095eb6e5b0455309daa3a631cb (patch) | |
tree | 14b33edbf4c143d13b9486622957c45b2d85ca11 /source/script | |
parent | 0c700fb609adf80cb3191f2976c6d56088d81232 (diff) | |
download | samba-a80ea2eb47d298095eb6e5b0455309daa3a631cb.tar.gz |
three types of array-creation / array-deletion functions:
char*
UNISTR2*
SID*
decided to create a higher-order function set, add_item_to_array()
free_item_array().
higher-order support routines needed to add a new type:
type* item_dup(const type*)
void item_free(type*)
of course, strdup() and free() are perfect, pre-existing examples
of such functions, used in the implementation of add_chars_to_array()
and free_char_array().
sid_dup() and free() work for the add_sids_to_array() and free_sid_array()
implementations.
use unistr2_dup() and created unistr2_free() because the functionality
behind these may change into something horrible, like [horror] dynamic
memory allocation of the UNISTR2 character array. argh!!!!
jean-francois, this function set implements what we talked about over...
a year ago, now :-)
Diffstat (limited to 'source/script')
-rw-r--r-- | source/script/mkproto.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/script/mkproto.awk b/source/script/mkproto.awk index c35883aec0a..bc6f50af99f 100644 --- a/source/script/mkproto.awk +++ b/source/script/mkproto.awk @@ -94,7 +94,7 @@ END { gotstart = 1; } - if( $0 ~ /^LOCAL_GRP|^DOMAIN_GRP|^DOM_SID|^SEC_DESC/ ) { + if( $0 ~ /^UNISTR2|^LOCAL_GRP|^DOMAIN_GRP|^DOM_SID|^SEC_DESC/ ) { gotstart = 1; } |