Check size against SIZE_T_CEILING in realloc too.
[tor/rransom.git] / Win32Build / mingw / CHANGES-libevent
blobe723d9755f6da013c65650e264a2f703f84d3bb5
1 Changes related to compilation under MinGW/any sane win32 gcc
2 =============================================================
4 * event.c
5 - If gcc include "WIN32-Code/misc.h" instead of "misc.h"
7 * WIN32-Code/misc.h
8 - Add struct prototypes for timeval and timezone
10 * buffer.c
11 - changed type of "i" from "u_int" to "unsigned int". My MinGW wasn't 
12   recognizing it. (u_int is normally typedef'ed to unsigned int, right?)
14 * evbuffer.c
15 - removed incorrect win32 error checking, see bufferevent_writecb().
16   (this needs to be fixed by anyone planning to use evbuffer on win32)
18 * log.c
19 - If gcc include "WIN32-Code/misc.h" instead of "misc.h" 
21 * WIN32-Code/misc.c
22 - if gcc, include "misc.h"
23 - added newline at end of file to shut up gcc
25 * WIN32-Code/win32.c
26 - Altered the prototypes of win32_*() so their argument types didn't conflict
27   with the function definitions.
28 - Casted types of win32_* to void inside win32ops so that it didn't conflict
29   with the definition of eventops (gcc doesn't like this)
30 - Altered prototype of signal_handler to be static since definition is static
31   (why wasn't it like this before)
32 - Casted the second argument of signal() to be void*, some reason my MinGW 
33   doesn't have sighandler_t typedef'ed.
35 * configure.in
36 - some code to check if we are compiling for WIN32. 
37   
38 * Makefile.am
39 - if BUILD_WIN32 is defined, include WIN32-Code/misc.c and
40   WIN32-Code/win32.c as source files.
41 - if WIN32, do not build test stuff. (not windows friendly)
42 - if WIN32, explicitly link to ws2_32.dll
43   
44 Notes
45 -----
46 - We assume that if __GNUC__ is undefined we are building with MSVC
47 - If the user wishes to build a dll, they are on their own, the syntax is 
48   compiler specific. 
49 - Getting this warning from libtool, no idea why
50   "libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32
51    shared libraries"
53   
54 Changes related to "custom eventops"
55 ====================================
57 * configure.in
58 - add argument --enable-custom-eventops, sets USE_CUSTOM_EVENTOPS in config.h
59 - add argument --enable-custom-code, sets USE_CUSTOM_CODE in Makefile
61 * Makefile.am
62 - if USE_CUSTOM_CODE, include custom/custom.c as a source file.
63   (I can't think of a way to pass a string to Makefile.am, so I'm stuck naming
64    the new source file custom.c. It just seems simpler this way, but I'm open 
65    to suggestions)
66    
67 * event.c
68 - if USE_CUSTOM_EVENTOPS, use eventops as defined in custom-eventops.h
70 Notes
71 -----
72 Just in case it isn't completely obvious, the goal of "custom eventops" is to
73 allow the user to include their own event processing system without requiring a 
74 fork. This is accomplished through two parts. Firstly, by allowing the user to 
75 redefine eventops. (for example, the user may wish to use epoll() exclusively). 
76 Secondly, by allowing the user to include their own code to support a private
77 eventop (note, this may not be necessary, as the user may choose to include 
78 already defined eventop's.