Skip to content

Releases: gotranspile/cxgo

v0.5.2

18 Mar 09:44
Compare
Choose a tag to compare

Changelog

  • e682671 cxgo: New void hint for func returns.
  • 18ce7df cxgo: Skip void returns in non-void functions.
  • 71cd459 libs: Fix putchar macro.

v0.5.1

09 Mar 19:48
Compare
Choose a tag to compare

Changelog

  • 2b1040a cxgo: Add function name for "panic: function doesn't return" error
  • 0a35d48 libs: Add fabsl and lround functions from C math.h
  • 7e9b722 runtime: Add getter for underlying stdio.File.

v0.5.0

01 Mar 13:10
Compare
Choose a tag to compare

Changelog

  • 8c779cb cxgo: Add another test for loop generation.
  • a11fd78 cxgo: Correctly handle string-array conversion.
  • de7a165 cxgo: Fix negative enums.
  • f87ee45 cxgo: Fix ternary expr in loops.
  • b1e58d9 cxgo: Optimize pointer subtraction.
  • d23185c cxgo: Switch to typedefs for stdint. Fixes #87.
  • 3e0c75c cxgo: Use a different name for temp vars.
  • 81cdb29 libs: Add permission defines.
  • 2200d14 libs: Safer macros for file IO.

v0.4.3

23 Feb 09:38
Compare
Choose a tag to compare

Changelog

  • c946fff cxgo: Account for null terminator. Fixes #88.

v0.4.2

22 Feb 19:23
Compare
Choose a tag to compare

Changelog

  • 468e382 Update README.md
  • 6a1f069 cxgo: Convert string sizeof to len. Fixes #88.
  • d5760bf cxgo: Skip .h file if corresponding .c already processed. Fixes #86.
  • c53afe9 libs: Add a few missing signatures for math.

v0.4.1

09 Nov 14:30
Compare
Choose a tag to compare

Changelog

  • 4a6556d cxgo: Fix composite literals cast to primitives. Fixes #81.
  • 7f68602 cxgo: Fix explicit bool->float conversion. Fixes #75.
  • ce10c14 cxgo: Fix panic in switch with unreachable stmt. Fixes #80.
  • e094974 cxgo: Fix side effects for assign expr. Fixes #77.
  • 1bd2a8e cxgo: Fix untyped bool->float conversion. Fixes #76.

v0.4.0

06 Jul 11:34
Compare
Choose a tag to compare

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 with putc(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

16 Oct 12:51
Compare
Choose a tag to compare
  • 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

04 Sep 12:39
Compare
Choose a tag to compare

Changelog

v0.3.5

31 Jul 10:02
Compare
Choose a tag to compare

Full Changelog: v0.3.4...v0.3.5