Skip to content

Conversation

@akosthekiss
Copy link
Member

As a side effect, refactor the variable types in
print_unhandled_exception to reduce the overuse of sized integer
types (generic unsigned int is better than uint32_t if there is
no actual requirement on integer width).

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu

@akosthekiss akosthekiss added enhancement An improvement jerry-libc (Deprecated) Related to the jerry-libc library labels Jun 21, 2017
Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

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

LGTM


const char *str = nptr;

/* Skip leading whitespace */
Copy link
Member

Choose a reason for hiding this comment

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

whitespaces

str++;
}

/* Process base-10 digits */
Copy link
Member

Choose a reason for hiding this comment

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

full stop after sentences

}

/* Set endptr and return result*/
if (digits)
Copy link
Member

Choose a reason for hiding this comment

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

digits coulsd be a bool

@akosthekiss
Copy link
Member Author

updated according to the review and rebased onto latest master

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

int base) /**< numerical base or radix (MUST be 10) */
{
assert (base == 10);
(void) base; /* unused */
Copy link
Member

Choose a reason for hiding this comment

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

Unused.

As a side effect, refactor the variable types in
`print_unhandled_exception` to reduce the overuse of sized integer
types (generic `unsigned int` is better than `uint32_t` if there is
no actual requirement on integer width).

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
@akosthekiss akosthekiss merged commit 2f140e3 into jerryscript-project:master Jun 26, 2017
@akosthekiss akosthekiss deleted the libc-strtol branch June 26, 2017 15:10
yichoi pushed a commit that referenced this pull request Jul 19, 2017
Artik053 board is publicly announced about one month ago.
So I updated tizenrt-artik05x reference board from sidk_s5jt200 to artik053.
Now, tizenrt-artik05x port works with latest TizenRT repo on artik053 board.

Also, I replaced str_to_uint to strtol since #1891 is landed.

JerryScript-DCO-1.0-Signed-off-by: Sanggyu Lee sg5.lee@samsung.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement jerry-libc (Deprecated) Related to the jerry-libc library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants