Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
4 days ago [Issue 23935] ImportC for libuv | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23935 --- Comment #1 from a11e99z <black80@bk.ru> --- so 1st simple step: dmd/importc can not eat unsigned __intXX: typedef unsigned __int64 uintptr_t; gives: Error: missing comma or semicolon after declaration of `__anonymous`, found `uintptr_t` instead -- |
4 days ago [Issue 23935] ImportC for libuv | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23935 a11e99z <black80@bk.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #1875|0 |1 is obsolete| | --- Comment #2 from a11e99z <black80@bk.ru> --- Created attachment 1876 --> https://issues.dlang.org/attachment.cgi?id=1876&action=edit comressed uv9.i after fixing some issues preprocessed header with command: cl.exe -P -Fiuv.i -DUSING_UV_SHARED -DWIN32_LEAN_AND_MEAN -D__int64="long long" -D__int32="long" -D__cdecl="" -D__inline="inline" -D__forceinline="inline" -D__ptr64="" -D__ptr32="" -D__unaligned="" /std:c11 uv.h -- |
4 days ago [Issue 23935] ImportC for libuv | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23935 --- Comment #3 from a11e99z <black80@bk.ru> --- still fixing issues manually hint: '\' means code follows on next line w/o line break todo: ignore it in parser? -- |
4 days ago [Issue 23935] ImportC for libuv | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23935 --- Comment #4 from a11e99z <black80@bk.ru> --- fixed manually. not checked yet with calling libuv from D, but dmd gives uv9.obj. MSVC command: cl.exe -P -Fiuv.i -DUSING_UV_SHARED -DWIN32_LEAN_AND_MEAN -D__int64="long long" -D__int32="long" -D__cdecl="" -D__inline="inline" -D__forceinline="inline" -D__ptr64="" -D__ptr32="" -D__unaligned="" -D_CRT_SECURE_NO_WARNINGS /std:c11 uv.h and fixing is: 1) changed typedef struct __declspec(align(16)) __pragma(warning(push)) __pragma(warning(disable:4845)) __declspec(no_init_all) __pragma(warning(pop)) _CONTEXT { ... } CONTEXT, *PCONTEXT; with issues: uv9.i(4529): Error: missing tag `identifier` after `struct` uv9.i(4529): Error: identifier or `(` expected uv9.i(4598): Error: no type for declarator before `}` uv9.i(4598): Error: no type-specifier for declarator to: typedef struct /*__declspec(align(16)) __pragma(warning(push)) __pragma(warning(disable:4845)) __declspec(no_init_all) __pragma(warning(pop))*/ _CONTEXT { ... } CONTEXT __attribute__((aligned( 16))), *PCONTEXT; 2) removed '\' (no-line-break here) with issues: uv9.i(19384): Error: character '\' is not a valid token uv9.i(19385): Error: character '\' is not a valid token (2) should be fixed 100% (1) hmm, struct attrs should be reordered? -- |
3 days ago [Issue 23935] ImportC for libuv | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23935 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ImportC CC| |bugzilla@digitalmars.com -- |
Copyright © 1999-2021 by the D Language Foundation