Add in some missing Go keywords.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/cb1ae674 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/cb1ae674 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/cb1ae674 Branch: refs/heads/master Commit: cb1ae674a63267995c67f675a9c1a3dfd16b5008 Parents: 021f421 Author: Marvin Humphrey <[email protected]> Authored: Wed Jul 15 14:53:26 2015 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Mon Jul 20 13:40:37 2015 -0700 ---------------------------------------------------------------------- compiler/src/CFCGoTypeMap.c | 67 ++++++++++------------------------------ 1 file changed, 17 insertions(+), 50 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/cb1ae674/compiler/src/CFCGoTypeMap.c ---------------------------------------------------------------------- diff --git a/compiler/src/CFCGoTypeMap.c b/compiler/src/CFCGoTypeMap.c index d61ca47..7ddbf08 100644 --- a/compiler/src/CFCGoTypeMap.c +++ b/compiler/src/CFCGoTypeMap.c @@ -66,56 +66,23 @@ static struct { static int num_conversions = sizeof(conversions) / sizeof(conversions[0]); static const char* go_keywords[] = { - "break", - "case", - "chan", - "const", - "continue", - "default", - "defer", - "else", - "fallthrough", - "for", - "func", - "go", - "goto", - "if", - "import", - "interface", - "map", - "package", - "range", - "return", - "select", - "struct", - "switch", - "type", - "var", - "true", - "false", - "bool", - "int", - "uint", - "uintptr", - "int8", - "int16", - "int32", - "int32", - "int8", - "int16", - "int32", - "int64", - "uint8", - "uint16", - "uint32", - "uint64", - "float32", - "float64", - "complex64", - "complex128", - "byte", - "rune", - "string" + // Keywords. + "break", "default", "func", "interface", "select", + "case", "defer", "go", "map", "struct", + "chan", "else", "goto", "package", "switch", + "const", "fallthrough", "if", "range", "type", + "continue", "for", "import", "return", "var", + // Types. + "bool", "byte", "complex64", "complex128", "error", "float32", "float64", + "int", "int8", "int16", "int32", "int64", "rune", "string", + "uint", "uint8", "uint16", "uint32", "uint64", "uintptr", + // Constants. + "true", "false", "iota", + // Zero value. + "nil", + // Functions. + "append", "cap", "close", "complex", "copy", "delete", "imag", "len", + "make", "new", "panic", "print", "println", "real", "recover" }; static int num_go_keywords = sizeof(go_keywords) / sizeof(go_keywords[0]);
