From e4c70112ddbe8a1b012ea47c88d9134748d22077 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Tue, 14 Jan 2014 20:48:31 +0100 Subject: [PATCH] Docs: Checked for problems with common var-len-arrays and alloca() (written by Tom). --- ucw/trie.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ucw/trie.h b/ucw/trie.h index 3e577750..4aae65fa 100644 --- a/ucw/trie.h +++ b/ucw/trie.h @@ -30,12 +30,15 @@ * TRIE_WANT_FIND_BUF node *find_buf(byte *ptr, uns len) * TRIE_WANT_ADD add(*node) * TRIE_WANT_REPLACE node *replace(*node) - * TRIE_WANT_DELETE delete(char *str) - * TRIE_WANT_DELETE_BUF delete_buf(byte *ptr, uns len) - * TRIE_WANT_REMOVE remove(*node) + * TRIE_WANT_DELETE delete(char *str) + * TRIE_WANT_DELETE_BUF delete_buf(byte *ptr, uns len) + * TRIE_WANT_REMOVE remove(*node) * * TRIE_WANT_AUDIT audit() * TRIE_WANT_STATS + * + * Be warned that the implementation is not var-len-arrays friendly and all hell may me unleashed + * if you use these routines in the same function together with var-len-arrays. */ /*** Define once ***/ -- 2.39.2