Created
June 16, 2014 16:56
-
-
Save lfittl/5b22168d3af790c25d15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List *tree; | |
| char *str; | |
| str = StringValueCStr(input); | |
| tree = raw_parser(str); | |
| str = nodeToJSONString(tree); | |
| // Save stderr for result | |
| read(stderr_pipe[0], stderr_buffer, STDERR_BUFFER_LEN); | |
| result = rb_ary_new(); | |
| rb_ary_push(result, rb_tainted_str_new_cstr(str)); | |
| rb_ary_push(result, rb_str_new2(stderr_buffer)); | |
| pfree(str); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment