From 0a7bde9fa807f2e84bd7417d928581f40194b007 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 25 Apr 2000 19:33:07 +0000 Subject: [PATCH] isc_interval_t and isc_time_t typedefs moved to isc/types.h --- lib/isc/include/isc/timer.h | 4 ---- lib/isc/include/isc/types.h | 40 +++++++++++++++++--------------- lib/isc/unix/include/isc/time.h | 10 ++++---- lib/isc/win32/include/isc/time.h | 11 ++++----- 4 files changed, 31 insertions(+), 34 deletions(-) diff --git a/lib/isc/include/isc/timer.h b/lib/isc/include/isc/timer.h index 9f4a189db6..55a1cc9c09 100644 --- a/lib/isc/include/isc/timer.h +++ b/lib/isc/include/isc/timer.h @@ -70,10 +70,6 @@ ***/ #include -#include -#include -#include -#include #include #include #include diff --git a/lib/isc/include/isc/types.h b/lib/isc/include/isc/types.h index 95f426ab41..30492a07b5 100644 --- a/lib/isc/include/isc/types.h +++ b/lib/isc/include/isc/types.h @@ -23,35 +23,37 @@ #include /*** - *** Core Types. + *** Core Types. Alphabetized by defined type. ***/ -typedef unsigned int isc_result_t; +typedef struct isc_bitstring isc_bitstring_t; +typedef struct isc_buffer isc_buffer_t; +typedef struct isc_event isc_event_t; +typedef ISC_LIST(struct isc_event) isc_eventlist_t; +typedef unsigned int isc_eventtype_t; +typedef struct isc_interval isc_interval_t; +typedef struct isc_lex isc_lex_t; +typedef struct isc_log isc_log_t; +typedef struct isc_logcategory isc_logcategory_t; +typedef struct isc_logconfig isc_logconfig_t; +typedef struct isc_logmodule isc_logmodule_t; typedef struct isc_mem isc_mem_t; typedef struct isc_mempool isc_mempool_t; typedef struct isc_msgcat isc_msgcat_t; -typedef unsigned int isc_eventtype_t; -typedef struct isc_event isc_event_t; -typedef ISC_LIST(struct isc_event) isc_eventlist_t; -typedef struct isc_task isc_task_t; +typedef struct isc_netaddr isc_netaddr_t; +typedef struct isc_region isc_region_t; +typedef unsigned int isc_result_t; +typedef struct isc_rwlock isc_rwlock_t; +typedef struct isc_sockaddr isc_sockaddr_t; typedef struct isc_socket isc_socket_t; -typedef struct isc_socketmgr isc_socketmgr_t; typedef struct isc_socketevent isc_socketevent_t; +typedef struct isc_socketmgr isc_socketmgr_t; +typedef struct isc_task isc_task_t; typedef struct isc_taskmgr isc_taskmgr_t; +typedef struct isc_textregion isc_textregion_t; +typedef struct isc_time isc_time_t; typedef struct isc_timer isc_timer_t; typedef struct isc_timermgr isc_timermgr_t; -typedef struct isc_rwlock isc_rwlock_t; -typedef struct isc_bitstring isc_bitstring_t; -typedef struct isc_sockaddr isc_sockaddr_t; -typedef struct isc_netaddr isc_netaddr_t; -typedef struct isc_buffer isc_buffer_t; -typedef struct isc_log isc_log_t; -typedef struct isc_logconfig isc_logconfig_t; -typedef struct isc_logcategory isc_logcategory_t; -typedef struct isc_logmodule isc_logmodule_t; -typedef struct isc_region isc_region_t; -typedef struct isc_textregion isc_textregion_t; -typedef struct isc_lex isc_lex_t; typedef void (*isc_taskaction_t)(isc_task_t *, isc_event_t *); diff --git a/lib/isc/unix/include/isc/time.h b/lib/isc/unix/include/isc/time.h index a2c002c3e8..b5d24b4e78 100644 --- a/lib/isc/unix/include/isc/time.h +++ b/lib/isc/unix/include/isc/time.h @@ -22,7 +22,7 @@ #include #include -#include +#include ISC_LANG_BEGINDECLS @@ -36,10 +36,10 @@ ISC_LANG_BEGINDECLS * * The contents are exposed only to allow callers to avoid dynamic allocation. */ -typedef struct isc_interval { +struct isc_interval { unsigned int seconds; unsigned int nanoseconds; -} isc_interval_t; +}; extern isc_interval_t *isc_interval_zero; @@ -79,10 +79,10 @@ isc_interval_iszero(isc_interval_t *i); * The contents are exposed only to allow callers to avoid dynamic allocation. */ -typedef struct isc_time { +struct isc_time { time_t seconds; unsigned int nanoseconds; -} isc_time_t; +}; extern isc_time_t *isc_time_epoch; diff --git a/lib/isc/win32/include/isc/time.h b/lib/isc/win32/include/isc/time.h index 7322d84330..92c71271ee 100644 --- a/lib/isc/win32/include/isc/time.h +++ b/lib/isc/win32/include/isc/time.h @@ -20,10 +20,9 @@ #include -#include #include #include -#include +#include ISC_LANG_BEGINDECLS @@ -37,9 +36,9 @@ ISC_LANG_BEGINDECLS * * The contents are exposed only to allow callers to avoid dynamic allocation. */ -typedef struct isc_interval { +struct isc_interval { isc_int64_t interval; -} isc_interval_t; +}; extern isc_interval_t *isc_interval_zero; @@ -79,9 +78,9 @@ isc_interval_iszero(isc_interval_t *i); * The contents are exposed only to allow callers to avoid dynamic allocation. */ -typedef struct isc_time { +struct isc_time { FILETIME absolute; -} isc_time_t; +}; extern isc_time_t *isc_time_epoch;