libuv working on windows too
Added: vcc compilation flags for proper debug symbol generation
This commit is contained in:
parent
49d924c20b
commit
b7e8daf65d
7 changed files with 39 additions and 33 deletions
|
|
@ -106,8 +106,8 @@ clang.options.speed = "-O3"
|
||||||
clang.options.size = "-Os"
|
clang.options.size = "-Os"
|
||||||
|
|
||||||
# Configuration for the Visual C/C++ compiler:
|
# Configuration for the Visual C/C++ compiler:
|
||||||
vcc.options.linker = r"/F33554432" # set the stack size to 8 MB
|
vcc.options.linker = "/DEBUG /Zi /Fd\"$projectName.pdb\" /F33554432" # set the stack size to 8 MB
|
||||||
vcc.options.debug = "/RTC1 /ZI"
|
vcc.options.debug = "/RTC1 /Zi /Fd\"$projectName.pdb\""
|
||||||
vcc.options.always = "/nologo"
|
vcc.options.always = "/nologo"
|
||||||
vcc.options.speed = "/Ox /arch:SSE2"
|
vcc.options.speed = "/Ox /arch:SSE2"
|
||||||
vcc.options.size = "/O1"
|
vcc.options.size = "/O1"
|
||||||
|
|
|
||||||
12
doc/lib.txt
12
doc/lib.txt
|
|
@ -516,11 +516,17 @@ XML Processing
|
||||||
Wrapper of the expat XML parser.
|
Wrapper of the expat XML parser.
|
||||||
|
|
||||||
|
|
||||||
Internet Protocols and Support
|
Network Programming and Internet Protocols
|
||||||
------------------------------
|
------------------------------------------
|
||||||
|
|
||||||
|
* `libuv <libuv.html>`_
|
||||||
|
Wrapper for the libuv library used for async I/O programming.
|
||||||
|
|
||||||
|
* `joyent_http_parser <joyent_http_parser.html>`_
|
||||||
|
Wrapper for the joyent's high-performance HTTP parser.
|
||||||
|
|
||||||
* `libcurl <libcurl.html>`_
|
* `libcurl <libcurl.html>`_
|
||||||
Contains a wrapper for the libcurl library.
|
Wrapper for the libcurl library.
|
||||||
|
|
||||||
* `openssl <openssl.html>`_
|
* `openssl <openssl.html>`_
|
||||||
Wrapper for OpenSSL.
|
Wrapper for OpenSSL.
|
||||||
|
|
|
||||||
|
|
@ -886,10 +886,6 @@ type # these work for most platforms:
|
||||||
## This is the same as the type ``short`` in *C*.
|
## This is the same as the type ``short`` in *C*.
|
||||||
cint* {.importc: "int", nodecl.} = int32
|
cint* {.importc: "int", nodecl.} = int32
|
||||||
## This is the same as the type ``int`` in *C*.
|
## This is the same as the type ``int`` in *C*.
|
||||||
csize* {.importc: "size_t", nodecl.} = int
|
|
||||||
## This is the same as the type ``size_t`` in *C*.
|
|
||||||
cptrdiff* {.importc: "ptrdiff_t", nodecl.} = int
|
|
||||||
## This is the same as the type ``ptrdiff_t`` in *C*.
|
|
||||||
clong* {.importc: "long", nodecl.} = int
|
clong* {.importc: "long", nodecl.} = int
|
||||||
## This is the same as the type ``long`` in *C*.
|
## This is the same as the type ``long`` in *C*.
|
||||||
clonglong* {.importc: "long long", nodecl.} = int64
|
clonglong* {.importc: "long long", nodecl.} = int64
|
||||||
|
|
|
||||||
|
|
@ -225,30 +225,30 @@ const
|
||||||
proc WSAGetLastError*(): cint {.importc: "WSAGetLastError", dynlib: ws2dll.}
|
proc WSAGetLastError*(): cint {.importc: "WSAGetLastError", dynlib: ws2dll.}
|
||||||
|
|
||||||
type
|
type
|
||||||
TWSAData* {.pure, final.} = object
|
TWSAData* {.pure, final, importc: "WSADATA", header: "Winsock2.h".} = object
|
||||||
wVersion, wHighVersion: int16
|
wVersion, wHighVersion: int16
|
||||||
szDescription: array[0..WSADESCRIPTION_LEN, char]
|
szDescription: array[0..WSADESCRIPTION_LEN, char]
|
||||||
szSystemStatus: array[0..WSASYS_STATUS_LEN, char]
|
szSystemStatus: array[0..WSASYS_STATUS_LEN, char]
|
||||||
iMaxSockets, iMaxUdpDg: int16
|
iMaxSockets, iMaxUdpDg: int16
|
||||||
lpVendorInfo: cstring
|
lpVendorInfo: cstring
|
||||||
|
|
||||||
TSockAddr* {.pure, final.} = object
|
TSockAddr* {.pure, final, importc: "SOCKADDR", header: "Winsock2.h".} = object
|
||||||
sa_family*: int16 # unsigned
|
sa_family*: int16 # unsigned
|
||||||
sa_data: array[0..13, char]
|
sa_data: array[0..13, char]
|
||||||
|
|
||||||
TInAddr* {.pure, final.} = object ## struct in_addr
|
TInAddr* {.pure, final, importc: "IN_ADDR", header: "Winsock2.h".} = object
|
||||||
s_addr*: int32 # IP address
|
s_addr*: int32 # IP address
|
||||||
|
|
||||||
Tsockaddr_in* {.pure, final.} = object
|
Tsockaddr_in* {.pure, final, importc: "SOCKADDR_IN", header: "Winsock2.h".} = object
|
||||||
sin_family*: int16
|
sin_family*: int16
|
||||||
sin_port*: int16 # unsigned
|
sin_port*: int16 # unsigned
|
||||||
sin_addr*: TInAddr
|
sin_addr*: TInAddr
|
||||||
sin_zero*: array[0..7, char]
|
sin_zero*: array[0..7, char]
|
||||||
|
|
||||||
Tin6_addr* {.pure, final.} = object
|
Tin6_addr* {.pure, final, importc: "IN6_ADDR", header: "Winsock2.h".} = object
|
||||||
bytes*: array[0..15, char]
|
bytes*: array[0..15, char]
|
||||||
|
|
||||||
Tsockaddr_in6* {.pure, final.} = object
|
Tsockaddr_in6* {.pure, final, importc: "SOCKADDR_IN6", header: "Winsock2.h".} = object
|
||||||
sin6_family*: int16
|
sin6_family*: int16
|
||||||
sin6_port*: int16 # unsigned
|
sin6_port*: int16 # unsigned
|
||||||
sin6_flowinfo*: int32 # unsigned
|
sin6_flowinfo*: int32 # unsigned
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
type
|
type
|
||||||
HttpDataProc* = proc (a2: ptr THttpParser, at: cstring, length: csize): cint
|
csize = int
|
||||||
HttpProc* = proc (a2: ptr THttpParser): cint
|
|
||||||
|
HttpDataProc* = proc (a2: ptr THttpParser, at: cstring, length: csize): cint {.cdecl.}
|
||||||
|
HttpProc* = proc (a2: ptr THttpParser): cint {.cdecl.}
|
||||||
|
|
||||||
THttpMethod* = enum
|
THttpMethod* = enum
|
||||||
HTTP_DELETE = 0, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_CONNECT,
|
HTTP_DELETE = 0, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_CONNECT,
|
||||||
|
|
|
||||||
|
|
@ -12,22 +12,23 @@ else:
|
||||||
type
|
type
|
||||||
TPort* = distinct int16 ## port type
|
TPort* = distinct int16 ## port type
|
||||||
|
|
||||||
cssize* {.importc: "ssize_t", header: "stdint.h"} = int
|
cssize = int
|
||||||
coff* {.importc: "off_t", header: "types.h"} = int
|
coff = int
|
||||||
|
csize = int
|
||||||
|
|
||||||
AllocProc* = proc (handle: PHandle, suggested_size: csize): TBuf
|
AllocProc* = proc (handle: PHandle, suggested_size: csize): TBuf {.cdecl.}
|
||||||
ReadProc* = proc (stream: PStream, nread: cssize, buf: TBuf)
|
ReadProc* = proc (stream: PStream, nread: cssize, buf: TBuf) {.cdecl.}
|
||||||
ReadProc2* = proc (stream: PPipe, nread: cssize, buf: TBuf, pending: THandleType)
|
ReadProc2* = proc (stream: PPipe, nread: cssize, buf: TBuf, pending: THandleType) {.cdecl.}
|
||||||
WriteProc* = proc (req: PWrite, status: cint)
|
WriteProc* = proc (req: PWrite, status: cint) {.cdecl.}
|
||||||
ConnectProc* = proc (req: PConnect, status: cint)
|
ConnectProc* = proc (req: PConnect, status: cint) {.cdecl.}
|
||||||
ShutdownProc* = proc (req: PShutdown, status: cint)
|
ShutdownProc* = proc (req: PShutdown, status: cint) {.cdecl.}
|
||||||
ConnectionProc* = proc (server: PStream, status: cint)
|
ConnectionProc* = proc (server: PStream, status: cint) {.cdecl.}
|
||||||
CloseProc* = proc (handle: PHandle)
|
CloseProc* = proc (handle: PHandle) {.cdecl.}
|
||||||
TimerProc* = proc (handle: PTimer, status: cint)
|
TimerProc* = proc (handle: PTimer, status: cint) {.cdecl.}
|
||||||
AsyncProc* = proc (handle: PAsync, status: cint)
|
AsyncProc* = proc (handle: PAsync, status: cint) {.cdecl.}
|
||||||
PrepareProc* = proc (handle: PPrepare, status: cint)
|
PrepareProc* = proc (handle: PPrepare, status: cint) {.cdecl.}
|
||||||
CheckProc* = proc (handle: PCheck, status: cint)
|
CheckProc* = proc (handle: PCheck, status: cint) {.cdecl.}
|
||||||
IdleProc* = proc (handle: PIdle, status: cint)
|
IdleProc* = proc (handle: PIdle, status: cint) {.cdecl.}
|
||||||
|
|
||||||
PSockAddr* = ptr TSockAddr
|
PSockAddr* = ptr TSockAddr
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ webdoc: "wrappers/libcurl;pure/md5;wrappers/mysql;wrappers/iup"
|
||||||
webdoc: "wrappers/sqlite3;wrappers/postgres;wrappers/tinyc"
|
webdoc: "wrappers/sqlite3;wrappers/postgres;wrappers/tinyc"
|
||||||
webdoc: "wrappers/python;wrappers/tcl;wrappers/expat;wrappers/pcre"
|
webdoc: "wrappers/python;wrappers/tcl;wrappers/expat;wrappers/pcre"
|
||||||
webdoc: "wrappers/tre;wrappers/openssl"
|
webdoc: "wrappers/tre;wrappers/openssl"
|
||||||
|
webdoc: "wrappers/libuv;wrappers/joyent_http_parser"
|
||||||
|
|
||||||
webdoc: "posix/posix;wrappers/odbcsql;impure/dialogs"
|
webdoc: "posix/posix;wrappers/odbcsql;impure/dialogs"
|
||||||
webdoc: "wrappers/zip/zlib;wrappers/zip/libzip"
|
webdoc: "wrappers/zip/zlib;wrappers/zip/libzip"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue