Skip to content

Commit

Permalink
Include evconfig-private.h in internal files for great good.
Browse files Browse the repository at this point in the history
  • Loading branch information
kev009 committed Jan 2, 2011
1 parent f6d66bc commit 0915ca0
Show file tree
Hide file tree
Showing 38 changed files with 60 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ libevent_openssl.pc
/ltmain.sh
/missing
/stamp-h1
/stamp-h2

/include/event2/event-config.h
/evconfig-private.h
Expand Down
1 change: 0 additions & 1 deletion buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
#include "event2/bufferevent_compat.h"
#include "event2/bufferevent_struct.h"
#include "event2/thread.h"
#include "event2/event-config.h"
#include "log-internal.h"
#include "mm-internal.h"
#include "util-internal.h"
Expand Down
3 changes: 2 additions & 1 deletion buffer_iocp.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
This module implements overlapped read and write functions for evbuffer
objects on Windows.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#include "event2/buffer.h"
#include "event2/buffer_compat.h"
#include "event2/util.h"
#include "event2/thread.h"
#include "event2/event-config.h"
#include "util-internal.h"
#include "evthread-internal.h"
#include "evbuffer-internal.h"
Expand Down
1 change: 1 addition & 0 deletions bufferevent-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ extern "C" {
#endif

#include "event2/event-config.h"
#include "evconfig-private.h"
#include "event2/util.h"
#include "defer-internal.h"
#include "evthread-internal.h"
Expand Down
5 changes: 3 additions & 2 deletions bufferevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <sys/types.h>

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>

#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
Expand Down
1 change: 1 addition & 0 deletions bufferevent_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*/

#include "event2/event-config.h"
#include "evconfig-private.h"

#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
Expand Down
5 changes: 3 additions & 2 deletions bufferevent_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <sys/types.h>

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>

#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
Expand Down
4 changes: 2 additions & 2 deletions bufferevent_pair.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>

#ifdef WIN32
#include <winsock2.h>
#endif

#include "event2/event-config.h"

#include "event2/util.h"
#include "event2/buffer.h"
#include "event2/bufferevent.h"
Expand Down
5 changes: 3 additions & 2 deletions bufferevent_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <sys/types.h>

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>

#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
Expand Down
2 changes: 2 additions & 0 deletions defer-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ extern "C" {
#endif

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/queue.h>

struct deferred_cb;
Expand Down
1 change: 1 addition & 0 deletions devpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>
#include <sys/resource.h>
Expand Down
1 change: 1 addition & 0 deletions epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#include <stdint.h>
#include <sys/types.h>
Expand Down
1 change: 1 addition & 0 deletions evbuffer-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ extern "C" {
#endif

#include "event2/event-config.h"
#include "evconfig-private.h"
#include "event2/util.h"
#include "util-internal.h"
#include "defer-internal.h"
Expand Down
4 changes: 3 additions & 1 deletion evdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
* Version: 0.1b
*/

#include <sys/types.h>
#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>

#ifndef _FORTIFY_SOURCE
#define _FORTIFY_SOURCE 3
Expand Down
2 changes: 2 additions & 0 deletions event-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ extern "C" {
#endif

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/queue.h>
#include "event2/event_struct.h"
#include "minheap-internal.h"
Expand Down
1 change: 1 addition & 0 deletions event.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#ifdef WIN32
#include <winsock2.h>
Expand Down
1 change: 1 addition & 0 deletions event_tagging.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*/

#include "event2/event-config.h"
#include "evconfig-private.h"

#ifdef _EVENT_HAVE_SYS_TYPES_H
#include <sys/types.h>
Expand Down
1 change: 1 addition & 0 deletions evmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#ifdef WIN32
#include <winsock2.h>
Expand Down
1 change: 1 addition & 0 deletions evport.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
*/

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/time.h>
#include <sys/queue.h>
Expand Down
1 change: 1 addition & 0 deletions evrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
Expand Down
4 changes: 3 additions & 1 deletion evthread-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
extern "C" {
#endif

#include "event2/thread.h"
#include "event2/event-config.h"
#include "evconfig-private.h"

#include "event2/thread.h"
#include "util-internal.h"

struct event_base;
Expand Down
1 change: 1 addition & 0 deletions evthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/

#include "event2/event-config.h"
#include "evconfig-private.h"

#ifndef _EVENT_DISABLE_THREAD_SUPPORT

Expand Down
6 changes: 3 additions & 3 deletions evthread_pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

/* With glibc we need to define this to get PTHREAD_MUTEX_RECURSIVE.
* _GNU_SOURCE, now from event-private
/* With glibc we need to define _GNU_SOURCE to get PTHREAD_MUTEX_RECURSIVE.
* This comes from evconfig-private.h
*/
#include "evconfig-private.h"
#include <pthread.h>

struct event_base;
Expand Down
1 change: 1 addition & 0 deletions evthread_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#ifdef WIN32
#include <winsock2.h>
Expand Down
1 change: 1 addition & 0 deletions evutil_rand.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
*/

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <limits.h>

Expand Down
1 change: 1 addition & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*/

#include "event2/event-config.h"
#include "evconfig-private.h"

#ifdef _EVENT_HAVE_SYS_PARAM_H
#include <sys/param.h>
Expand Down
4 changes: 3 additions & 1 deletion ipv6-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
#ifndef _EVENT_IPV6_INTERNAL_H
#define _EVENT_IPV6_INTERNAL_H

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>
#ifdef _EVENT_HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#include "event2/event-config.h"
#include "event2/util.h"

#ifdef __cplusplus
Expand Down
1 change: 0 additions & 1 deletion kqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"

#include "event-private.h"

#include <sys/types.h>
Expand Down
5 changes: 3 additions & 2 deletions listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <sys/types.h>

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>

#ifdef WIN32
#include <winsock2.h>
Expand Down
1 change: 1 addition & 0 deletions log.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
*/

#include "event2/event-config.h"
#include "evconfig-private.h"

#ifdef WIN32
#include <winsock2.h>
Expand Down
1 change: 1 addition & 0 deletions minheap-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#define _MIN_HEAP_H_

#include "event2/event-config.h"
#include "evconfig-private.h"
#include "event2/event.h"
#include "event2/event_struct.h"
#include "event2/util.h"
Expand Down
1 change: 1 addition & 0 deletions poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>
#ifdef _EVENT_HAVE_SYS_TIME_H
Expand Down
1 change: 1 addition & 0 deletions select.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>
#ifdef _EVENT_HAVE_SYS_TIME_H
Expand Down
1 change: 1 addition & 0 deletions signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
Expand Down
1 change: 1 addition & 0 deletions strlcpy-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ extern "C" {
#endif

#include "event2/event-config.h"
#include "evconfig-private.h"

#ifndef _EVENT_HAVE_STRLCPY
#include <string.h>
Expand Down
5 changes: 3 additions & 2 deletions strlcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */

#include <sys/types.h>

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <sys/types.h>

#ifndef _EVENT_HAVE_STRLCPY
#include "strlcpy-internal.h"
Expand Down
2 changes: 2 additions & 0 deletions util-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#define _EVENT_UTIL_INTERNAL_H

#include "event2/event-config.h"
#include "evconfig-private.h"

#include <errno.h>

/* For EVUTIL_ASSERT */
Expand Down
3 changes: 2 additions & 1 deletion win32select.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "event2/event-config.h"
#include "evconfig-private.h"

#include <winsock2.h>
#include <windows.h>
Expand All @@ -38,7 +40,6 @@
#include <errno.h>

#include "event2/util.h"
#include "event2/event-config.h"
#include "util-internal.h"
#include "log-internal.h"
#include "event2/event.h"
Expand Down

0 comments on commit 0915ca0

Please sign in to comment.