Skip to content

Conversation

@alexander-gorshenev
Copy link

This is a patch we need in Kotlin/Native for the s2wasm to understand more advanced asm.

Copy link
Member

@dschuff dschuff left a comment

Choose a reason for hiding this comment

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

Thanks for the patch! It looks like this change handles escaped strings in several places, as well as braces in separated lists. It should have a test (you can add a file in tests/s2wasm) that covers those cases. Also please make the PR description more specific (you can just add one as a comment, we can copy/paste when we merge).

*strchr(temp, '@') = 0;
static const char* bads = "\";<>() ";
static const char* goods = "\'$__$$$";
int index = 0;
Copy link
Member

Choose a reason for hiding this comment

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

should be size_t

while (*s && !isspace(*s)) {
str += *s;
s++;
if (*s == '\"') {
Copy link
Member

Choose a reason for hiding this comment

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

This if-block is repeated 3 times here and below; can we factor it into a function? Any other common code from those uses that can also be factored out?

@axic
Copy link
Contributor

axic commented Jul 25, 2018

I think this PR can be closed since #1607 s2wasm has been removed.

@kripken kripken closed this Jul 25, 2018
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.

4 participants