tinygo/cgo
Ayke van Laethem cadb75a4aa cgo: implement the constant parser as a real parser
Previously it was just a combination of heuristics to try to fit a
constant in an *ast.BasicLit. For more complex expressions, this is not
enough.

This change also introduces proper syntax error with locations, if
parsing a constant failed. For example, this will print a real error
message with source location:

    #define FOO 5)
2019-11-05 14:18:38 +01:00
..
testdata cgo: add tests for most C types 2019-11-03 19:15:38 +01:00
cgo.go cgo: implement the constant parser as a real parser 2019-11-05 14:18:38 +01:00
cgo_test.go cgo: add tests for most C types 2019-11-03 19:15:38 +01:00
const.go cgo: implement the constant parser as a real parser 2019-11-05 14:18:38 +01:00
const_test.go cgo: implement the constant parser as a real parser 2019-11-05 14:18:38 +01:00
libclang.go cgo: implement the constant parser as a real parser 2019-11-05 14:18:38 +01:00
libclang_config.go macos: use llvm@8 instead of just llvm in paths 2019-11-03 21:02:39 +01:00
libclang_stubs.c cgo: add support for bitfields using generated getters and setters 2019-06-03 16:13:19 +02:00
sync.go cgo: refactor; support multiple cgo files in a single package 2019-05-12 10:49:15 +02:00