Commit 7896e459 authored by David Lawrence's avatar David Lawrence
Browse files

121. [cleanup] <isc/symtab.h> does not need <isc/mem.h> or

                        <isc/result.h>.  Multiple inclusion protection
                        symbol fixed from ISC_SYMBOL_H to ISC_SYMTAB_H.
                        isc_symtab_t moved to <isc/types.h>.
parent ed94876a
121. [cleanup] <isc/symtab.h> does not need <isc/mem.h> or
<isc/result.h>. Multiple inclusion protection
symbol fixed from ISC_SYMBOL_H to ISC_SYMTAB_H.
isc_symtab_t moved to <isc/types.h>.
120. [cleanup] <isc/socket.h> does not need <isc/boolean.h>,
<isc/bufferlist.h>, <isc/task.h>, <isc/mem.h> or
<isc/net.h>.
......
......@@ -15,8 +15,8 @@
* SOFTWARE.
*/
#ifndef ISC_SYMBOL_H
#define ISC_SYMBOL_H 1
#ifndef ISC_SYMTAB_H
#define ISC_SYMTAB_H 1
/*****
***** Module Info
......@@ -77,11 +77,8 @@
*** Imports.
***/
#include <isc/mem.h>
#include <isc/result.h>
#include <isc/lang.h>
ISC_LANG_BEGINDECLS
#include <isc/types.h>
/***
*** Symbol Tables.
......@@ -102,14 +99,12 @@ typedef enum {
isc_symexists_add = 2
} isc_symexists_t;
typedef struct isc_symtab isc_symtab_t;
ISC_LANG_BEGINDECLS
isc_result_t
isc_symtab_create(isc_mem_t *mctx, unsigned int size,
isc_symtabaction_t undefine_action,
void *undefine_arg,
isc_boolean_t case_sensitive,
isc_symtab_t **symtabp);
isc_symtabaction_t undefine_action, void *undefine_arg,
isc_boolean_t case_sensitive, isc_symtab_t **symtabp);
void
isc_symtab_destroy(isc_symtab_t **symtabp);
......@@ -127,4 +122,4 @@ isc_symtab_undefine(isc_symtab_t *symtab, char *key, unsigned int type);
ISC_LANG_ENDDECLS
#endif /* ISC_SYMBOL_H */
#endif /* ISC_SYMTAB_H */
......@@ -67,6 +67,7 @@ typedef struct isc_sockaddr isc_sockaddr_t;
typedef struct isc_socket isc_socket_t;
typedef struct isc_socketevent isc_socketevent_t;
typedef struct isc_socketmgr isc_socketmgr_t;
typedef struct isc_symtab isc_symtab_t;
typedef struct isc_task isc_task_t;
typedef struct isc_taskmgr isc_taskmgr_t;
typedef struct isc_textregion isc_textregion_t;
......
......@@ -22,7 +22,8 @@
#include <string.h>
#include <isc/assertions.h>
#include <isc/list.h>
#include <isc/mem.h>
#include <isc/result.h>
#include <isc/symtab.h>
#include <isc/util.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment