Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change import format to yaml #83

Merged
merged 6 commits into from Nov 29, 2016
Merged

Change import format to yaml #83

merged 6 commits into from Nov 29, 2016

Conversation

frangarcj
Copy link
Contributor

WIP

@@ -36,6 +37,7 @@ int yaml_iterate_sequence(yaml_node *node, sequence_functor functor, void *userd

int process_32bit_integer(yaml_node *node, uint32_t *nid);
int process_boolean(yaml_node *node, uint32_t *boolean);
int process_bool(yaml_node *node, bool *boolean);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cannot use process_boolean? that look same (least same in c)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got a warning between uint32_t and bool

@xyzz
Copy link
Contributor

xyzz commented Nov 29, 2016

seems like we're leaking memory in every strdup

}

char* booltostr(char *buf, int x){
if(x){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return x ? "true" : "false"

{
json_t *json_symbols = json_object();
char* hextostr(char *buf, int x){
sprintf(buf,"0x%x",x);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove buf argument completely here and below and make it

static char buf[20];
sprintf(buf, "0x%x", x);
return buf;

@xyzz xyzz merged commit 851dcdb into vitasdk:master Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants