mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
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>.
This commit is contained in:
5
CHANGES
5
CHANGES
@@ -1,3 +1,8 @@
|
|||||||
|
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>,
|
120. [cleanup] <isc/socket.h> does not need <isc/boolean.h>,
|
||||||
<isc/bufferlist.h>, <isc/task.h>, <isc/mem.h> or
|
<isc/bufferlist.h>, <isc/task.h>, <isc/mem.h> or
|
||||||
<isc/net.h>.
|
<isc/net.h>.
|
||||||
|
@@ -15,8 +15,8 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ISC_SYMBOL_H
|
#ifndef ISC_SYMTAB_H
|
||||||
#define ISC_SYMBOL_H 1
|
#define ISC_SYMTAB_H 1
|
||||||
|
|
||||||
/*****
|
/*****
|
||||||
***** Module Info
|
***** Module Info
|
||||||
@@ -77,11 +77,8 @@
|
|||||||
*** Imports.
|
*** Imports.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <isc/mem.h>
|
|
||||||
#include <isc/result.h>
|
|
||||||
#include <isc/lang.h>
|
#include <isc/lang.h>
|
||||||
|
#include <isc/types.h>
|
||||||
ISC_LANG_BEGINDECLS
|
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*** Symbol Tables.
|
*** Symbol Tables.
|
||||||
@@ -102,14 +99,12 @@ typedef enum {
|
|||||||
isc_symexists_add = 2
|
isc_symexists_add = 2
|
||||||
} isc_symexists_t;
|
} isc_symexists_t;
|
||||||
|
|
||||||
typedef struct isc_symtab isc_symtab_t;
|
ISC_LANG_BEGINDECLS
|
||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
isc_symtab_create(isc_mem_t *mctx, unsigned int size,
|
isc_symtab_create(isc_mem_t *mctx, unsigned int size,
|
||||||
isc_symtabaction_t undefine_action,
|
isc_symtabaction_t undefine_action, void *undefine_arg,
|
||||||
void *undefine_arg,
|
isc_boolean_t case_sensitive, isc_symtab_t **symtabp);
|
||||||
isc_boolean_t case_sensitive,
|
|
||||||
isc_symtab_t **symtabp);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
isc_symtab_destroy(isc_symtab_t **symtabp);
|
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
|
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_socket isc_socket_t;
|
||||||
typedef struct isc_socketevent isc_socketevent_t;
|
typedef struct isc_socketevent isc_socketevent_t;
|
||||||
typedef struct isc_socketmgr isc_socketmgr_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_task isc_task_t;
|
||||||
typedef struct isc_taskmgr isc_taskmgr_t;
|
typedef struct isc_taskmgr isc_taskmgr_t;
|
||||||
typedef struct isc_textregion isc_textregion_t;
|
typedef struct isc_textregion isc_textregion_t;
|
||||||
|
@@ -22,7 +22,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <isc/assertions.h>
|
#include <isc/assertions.h>
|
||||||
#include <isc/list.h>
|
#include <isc/mem.h>
|
||||||
|
#include <isc/result.h>
|
||||||
#include <isc/symtab.h>
|
#include <isc/symtab.h>
|
||||||
#include <isc/util.h>
|
#include <isc/util.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user