Skip to content

Instantly share code, notes, and snippets.

@johnhaley81
Created August 20, 2014 17:26
Show Gist options
  • Save johnhaley81/787a468b9ae1a05aca8e to your computer and use it in GitHub Desktop.
Save johnhaley81/787a468b9ae1a05aca8e to your computer and use it in GitHub Desktop.
{
"GIT_EXTERN(": {
"js": "GIT_EXTERN("
},
"char": {
"js": "String",
"cpp": "String"
},
"char *": {
"js": "String",
"cpp": "String"
},
"char **": {
"js": "String",
"cpp": "String"
},
"const char *": {
"js": "String",
"cpp": "String"
},
"const char **": {
"js": "String",
"cpp": "String"
},
"const char*": {
"js": "String",
"cpp": "String"
},
"const unsigned char *": {
"js": "String",
"cpp": "String"
},
"const void *": {
"js": "Buffer",
"cpp": "Buffer"
},
"int": {
"js": "Int32",
"cpp": "Number"
},
"int (*)(const char *ref, const char *msg, void *data)": {
"js": "Number",
"cpp": "Int32"
},
"int (*)(git_submodule *sm, const char *name, void *payload)": {
"js": "Number",
"cpp": "Int32"
},
"int *": {
"js": "Number",
"cpp": "Int32"
},
"int32_t": {
"js": "int32_t",
"cpp": "int32_t"
},
"int32_t *": {
"js": "int32_t",
"cpp": "int32_t"
},
"int64_t": {
"js": "int64_t",
"cpp": "int64_t"
},
"int64_t *": {
"js": "int64_t",
"cpp": "int64_t"
},
"size_t": {
"js": "Number",
"cpp": "Uint32"
},
"size_t *": {
"js": "Number",
"cpp": "Uint32"
},
"uint32_t": {
"js": "Uint32",
"cpp": "Number"
},
"unsigned": {
"js": "Boolean",
"cpp": "Boolean"
},
"unsigned int": {
"js": "Uint32",
"cpp": "Number"
},
"unsigned int *": {
"js": "Number",
"cpp": "Int32"
},
"void": {
"js": "void",
"cpp": "void"
},
"void *": {
"js": "void",
"cpp": "void"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment