Also, remove some no-longer-existent functions from checkAPIs.pl.
Change-Id: I2bf11e3ec03a34f9e89d58d560e340d76fd3ddc1
Reviewed-on: https://code.wireshark.org/review/6645
Reviewed-by: Guy Harris <guy@alum.mit.edu>
empty_tcp_stream@Base 1.9.1
ep_alloc0@Base 1.9.1
ep_alloc@Base 1.9.1
- ep_strdup@Base 1.9.1
ep_strdup_printf@Base 1.9.1
epan_cleanup@Base 1.9.1
epan_dissect_cleanup@Base 1.9.1
return memset(ep_alloc(size),'\0',size);
}
-static gchar *
-emem_strdup(const gchar *src, void *allocator(size_t))
-{
- guint len;
- gchar *dst;
-
- /* If str is NULL, just return the string "<NULL>" so that the callers don't
- * have to bother checking it.
- */
- if(!src)
- src = "<NULL>";
-
- len = (guint) strlen(src);
- dst = (gchar *)memcpy(allocator(len+1), src, len+1);
-
- return dst;
-}
-
-gchar *
-ep_strdup(const gchar *src)
-{
- return emem_strdup(src, ep_alloc);
-}
-
-
static gchar *
emem_strdup_vprintf(const gchar *fmt, va_list ap, void *allocator(size_t))
{
WS_DLL_PUBLIC
void* ep_alloc0(size_t size) G_GNUC_MALLOC;
-/** Duplicate a string with a packet lifetime scope */
-WS_DLL_PUBLIC
-gchar* ep_strdup(const gchar* src) G_GNUC_MALLOC;
-
/** Create a formatted string with a packet lifetime scope */
WS_DLL_PUBLIC
gchar* ep_strdup_printf(const gchar* fmt, ...)
# wmem calls should replace all emem calls (see doc/README.wmem)
'ep_alloc',
'ep_alloc0',
- 'ep_strdup',
'ep_strdup_printf',
- 'ep_alloc_array',
- 'ep_alloc_array0',
- 'ep_stack_new',
- 'ep_stack_push',
- 'ep_stack_pop',
- 'ep_stack_peek',
- 'emem_tree_insert32',
- 'emem_tree_lookup32',
- 'emem_tree_lookup32_le',
- 'emem_tree_insert32_array',
- 'emem_tree_lookup32_array',
- 'emem_tree_lookup32_array_le',
- 'emem_tree_insert_string',
- 'emem_tree_lookup_string',
- 'emem_tree_foreach',
- 'emem_print_tree',
# Locale-unsafe APIs
# These may have unexpected behaviors in some locales (e.g.,
# "I" isn't always the upper-case form of "i", and "i" isn't