diff options
author | Han-Wen Nienhuys <hanwen@xs4all.nl> | 1998-01-27 19:26:37 +0100 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@xs4all.nl> | 1998-01-27 19:26:37 +0100 |
commit | 745b9d0980d8811783e4fe62380363d05fd6140c (patch) | |
tree | af42072831e35ef7d7b2cb188d0f25cfc158dd7f /flower | |
parent | b3735dc71a2d69d87a52fdc363cdef3039c4e325 (diff) |
release: 0.1.42
Diffstat (limited to 'flower')
-rw-r--r-- | flower/TODO | 1 | ||||
-rw-r--r-- | flower/include/dictionary.hh | 15 | ||||
-rw-r--r-- | flower/include/libc-extension.hh | 2 | ||||
-rw-r--r-- | flower/include/out/dummy.dep | 0 | ||||
-rw-r--r-- | flower/out/dummy.dep | 0 | ||||
-rw-r--r-- | flower/test/out/dummy.dep | 0 |
6 files changed, 16 insertions, 2 deletions
diff --git a/flower/TODO b/flower/TODO index 5468633cf7..e572af7954 100644 --- a/flower/TODO +++ b/flower/TODO @@ -3,7 +3,6 @@ * Unicode support in strings * write a decent Dictionary - - write a String_hash template - write a Pointer_hash template * Array::slice() upper too diff --git a/flower/include/dictionary.hh b/flower/include/dictionary.hh index 11bb27329b..87af9f9f7a 100644 --- a/flower/include/dictionary.hh +++ b/flower/include/dictionary.hh @@ -13,6 +13,21 @@ #include "string.hh" #include "assoc.hh" +/** + UGH: write a String_hash template, + + SEE: + + #include <search.h> + + ENTRY *hsearch(ENTRY item, ACTION action); + + int hcreate (unsigned nel); + + void hdestroy (void); + + (should be frobnified to allow multiple hashes) + */ template<class T> class Dictionary : public Assoc<String, T> { diff --git a/flower/include/libc-extension.hh b/flower/include/libc-extension.hh index 3f94a03a0e..975950d4bb 100644 --- a/flower/include/libc-extension.hh +++ b/flower/include/libc-extension.hh @@ -16,7 +16,7 @@ char* strnlwr (char* start_l ,int n); char* strnupr (char* start_l, int n); #if !HAVE_MEMMEM // GNU extension. -char *memmem (Byte const * haystack, int haystack_len, +Byte *memmem (Byte const * haystack, int haystack_len, Byte const *needle, int needle_len); #endif HAVE_MEMMEM diff --git a/flower/include/out/dummy.dep b/flower/include/out/dummy.dep new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/flower/include/out/dummy.dep diff --git a/flower/out/dummy.dep b/flower/out/dummy.dep new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/flower/out/dummy.dep diff --git a/flower/test/out/dummy.dep b/flower/test/out/dummy.dep new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/flower/test/out/dummy.dep |