Releases: gotranspile/cxgo
v0.4.0
Changelog
- 06fa8d2 Add support for GLFW/glfw3.h
- 6d93194 Added errno values (#67)
- 1cde7e0 Automatic RegisterLibrary for embedded includes (#68)
- 9e9544f Changed placement of include files
- 14418eb Extract headers from go sources to h files
- 4a0d2b1 Fix header registry.
- e489b85 Fix panic for typdef void (#65)
- d48145f This is a quick implementation for the
putchar(c)
just by replacing calls withputc(c, stdio)
. - c7e2713 Unify header registry with custom types and identifiers.
- a739cda cxgo: Add new test case for a discovered bug.
- 52ac65b cxgo: Allow disabling libs and remapping includes.
- bdc666f cxgo: Allow keeping free() calls.
- 38570a8 cxgo: Allow overriding glob configs.
- 0df0dd7 cxgo: Better error messages for slice hint.
- 7495c5f cxgo: Better error when converting types.
- c37b0f6 cxgo: Check a different rel path syntax as well.
- 182293c cxgo: Convert dynamic C arrays to slices.
- a0e0548 cxgo: Correctly format negative integers with a custom base.
- b5c3dbf cxgo: Do not split package when converting a single file.
- b45431d cxgo: Fix a few issues with int conversions.
- d039b93 cxgo: Fix crash when checking declaration specs.
- 7ee96b8 cxgo: Fix file path when converting single file.
- b3cfa47 cxgo: Fix remapping, make it work for local includes.
- 79d8d4e cxgo: Generate "do not edit" comments.
- 6d30911 cxgo: Option to export struct fields in single file mode.
- 17065b7 cxgo: Preserve int literal formatting.
- 81b4a91 cxgo: Properly convert untyped float consts to int.
- 8ec43f7 cxgo: Properly return usages from func decl.
- 120c81d deps: Replace math32 library. Fixes #61.
- d626074 deps: Update dependencies including CC.
- e99ed1a fix GetFramebufferSize signature
- 2987159 latest installation cmd added
- aee4bf7 libc: Fix fabsf signature.
- ab3cfb3 libs: Add a few more stub headers.
- d75dfea libs: Add bzlib stubs.
- c363a3f libs: Add memory.h stub.
- f084eb8 libs: Minimal support for strings.h.
- 105caa8 libs: Minor fixes to math lib.
- f6a1096 libs: implement OpenGL functions
- 9a8147e runtime: Do not use linkname. Fixes #74.
v0.3.7
- Allow adding source files via config (ca028ff)
- Support type hints for function return type (786bc16)
- Use
any
instead of empty interface (e739eb6) - Significantly improve support for Go slices (fc83063)
- Better errors for unknown operands (081a530)
- Allow converting strings to bytes directly (8e1d8f1)
- Support
strndup
(f825adc) - Remove
strdup
/strndup
when cloning Go strings (aeacff3) - Recognize abort-like patters for
assert
(2e3e90d) - Inline
sizeof
for bytes array (f921f98) - Fix unnecessary enum casts (3c97eef)
- Dereference first element directly (53c1d05)
- Do not cast runes to int (7c95ef6)
- Rewrite assert statements (f05df98)
Full Changelog: v0.3.6...v0.3.7
v0.3.6
v0.3.5
Full Changelog: v0.3.4...v0.3.5
v0.3.4
v0.3.3
What's Changed
- release: fix goreleaser flow by @chenrui333 in #54
- deps: switch to go1.18 by @chenrui333 in #53
- deps: updated cc/v3 by @dennwc in 8eaee06
- cxgo: allow adding a prefix to generated files by @dennwc in d458d25
- cxgo: properly unwrap new value when using calloc by @dennwc in a8be1f8
- cxgo: unwrap take address in selector expr by @dennwc in 669abaf
- libs: implement
pthread_cond_t
by @dennwc in 7576789 - libs: bare minimum support for
sched.h
by @dennwc in 1409caf - libs: bare minimum support for
semaphore.h
by @dennwc in 66ff734 - libs: bare minimum to not fail on
pthread_cond_t
by @dennwc in 431a532 - libs: support
pthread_once_t
by @dennwc in bf54001 - cxgo: allow omitting
go.mod
file for subpackagesby @dennwc in 227936a - cxgo: allow keeping struct fields unexported by @dennwc in 82db7b5
- cxgo: log file position in
typedef
ofvoid
TODO by @dennwc in bd42396 - cxgo: prevent collisions with
map
keyword by @dennwc in 5b8880e
New Contributors
- @chenrui333 made their first contribution in #54
Full Changelog: v0.3.2...v0.3.3
v0.3.2
What's Changed
- Switch to Go 1.17 by @dennwc in #39
- Use unsafe.Add by @dennwc in #40
- Support direct array access; fixes #44 by @TotallyGamerJet in #45
- Handle calls to funcs from arrays; fixes #46 by @TotallyGamerJet in #47
- libs/time: support CLOCK_MONOTONIC by @koteyur in #48
- Upate cc by @TotallyGamerJet in #49
- Do not flatten blocks with declarations by @dennwc in #50
New Contributors
Full Changelog: v0.3.1...v0.3.2
v0.3.1
Changelog
ed62694 Add newline after CHAR_BIT definition in limits.h
cf3a7e7 Add windows stubs
ac40214 RAND_MAX (#15)
ce9b713 builtin: define ptrdiff_t and size_t; fixes #33
bd6831f constants
d4b2d9f cxgo: assign arg names automatically when only some are set
29aec51 cxgo: properly preserve unused expr statements; fixes #13
4952273 cxgo: require Go 1.16
121362e cxgo: use GetLibrary in more places; fixes #26
803c094 deps: update cc/v3
18fb1b5 libs/math: support fmod function
1d064da support typed strings
5b77c74 update parser
0435ecd update parser (#17)
v0.3.0
Changelog
47a15b5 cxgo: convert simple macro const usages to idents
34f6b27 cxgo: convert string constant defines
7a1200c cxgo: fix regression with array indexes
610f147 cxgo: fix regression with builtin macros
e99683c cxgo: handle nested struct initializers
13be078 cxgo: move sdl package to a separate repo
ca96cb3 cxgo: properly convert loops with multiple inits
3bcca12 deps: update cc to v3.31.1
9aa1f6d libs/limits: correctly print large int constants
7597bdb libs/time: support CLOCKS_PER_SEC