Yo All! Given all this talk of GO, I decided to look for a C to GO translator.
This one easy to install: go get -u github.com/elliotchance/c2go But it barfs on the simple program that is ntptime.c: # /root/go/bin/c2go transpile ntptime.c panic: could not match regexp '(?P<address>[0-9a-fx]+) <(?P<position>.*)>(?P<a> \d+)(?P<b> \d+)?' with string 'NonNullAttr 0x555da7181ba8 </usr/include/string.h:458:99> Inherited 0' goroutine 83 [running]: github.com/elliotchance/c2go/ast.groupsFromRegex(0xc420131ef0, 0x41, 0xc4203f23e5, 0x45, 0x1) /root/go/src/github.com/elliotchance/c2go/ast/ast.go:238 +0x373 github.com/elliotchance/c2go/ast.parseNonNullAttr(0xc4203f23e5, 0x45, 0x5d8628) /root/go/src/github.com/elliotchance/c2go/ast/non_null_attr.go:18 +0x62 github.com/elliotchance/c2go/ast.Parse(0xc4203f23e5, 0x45, 0x5d71c3, 0x5) /root/go/src/github.com/elliotchance/c2go/ast/ast.go:156 +0x1f5c main.convertLinesToNodes(0xc420441a20, 0x22a, 0xcfc, 0x0, 0x0, 0x0) /root/go/src/github.com/elliotchance/c2go/main.go:94 +0x198 main.convertLinesToNodesParallel.func1.1(0xc4204e80c0, 0xc420092018, 0xc420441a20, 0x22a, 0xcfc, 0x0) /root/go/src/github.com/elliotchance/c2go/main.go:118 +0x59 created by main.convertLinesToNodesParallel.func1 /root/go/src/github.com/elliotchance/c2go/main.go:116 +0x12d Ditto for ntpd.c: # /root/go/bin/c2go transpile ntpd.c panic: could not match regexp '(?P<address>[0-9a-fx]+) <(?P<position>.*)>(?P<a> \d+)(?P<b> \d+)?' with string 'NonNullAttr 0x55b4ccb97af8 </usr/include/string.h:458:99> Inherited 0' goroutine 58 [running]: github.com/elliotchance/c2go/ast.groupsFromRegex(0xc4207e6370, 0x41, 0xc42062044c, 0x45, 0x1) /root/go/src/github.com/elliotchance/c2go/ast/ast.go:238 +0x373 github.com/elliotchance/c2go/ast.parseNonNullAttr(0xc42062044c, 0x45, 0x5d8628) /root/go/src/github.com/elliotchance/c2go/ast/non_null_attr.go:18 +0x62 github.com/elliotchance/c2go/ast.Parse(0xc42062044c, 0x45, 0x5d71c3, 0x5) /root/go/src/github.com/elliotchance/c2go/ast/ast.go:156 +0x1f5c main.convertLinesToNodes(0xc4206cadf0, 0x345, 0x1d6a, 0x0, 0x0, 0x0) /root/go/src/github.com/elliotchance/c2go/main.go:94 +0x198 main.convertLinesToNodesParallel.func1.2(0xc4200a8360, 0xc42013e000, 0xc4206cadf0, 0x345, 0x1d6a, 0x0) /root/go/src/github.com/elliotchance/c2go/main.go:126 +0x59 created by main.convertLinesToNodesParallel.func1 /root/go/src/github.com/elliotchance/c2go/main.go:124 +0x1b8 Maybe simple, maybe not, Maybe someone with Go skills has a clue? RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@rellim.com Tel:+1 541 382 8588 Veritas liberabit vos. -- Quid est veritas? "If you can’t measure it, you can’t improve it." - Lord Kelvin
pgpErXDtly5aH.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel