-
Notifications
You must be signed in to change notification settings - Fork 684
Fix JerryScript build with clang-6.0 #2610
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -458,9 +458,8 @@ jerry_value_t jerry_create_number_nan (void); | |
jerry_value_t jerry_create_null (void); | ||
jerry_value_t jerry_create_object (void); | ||
jerry_value_t jerry_create_promise (void); | ||
jerry_value_t jerry_create_regexp (const jerry_char_t *pattern, jerry_regexp_flags_t flags); | ||
jerry_value_t jerry_create_regexp_sz (const jerry_char_t *pattern, jerry_size_t pattern_size, | ||
jerry_regexp_flags_t flags); | ||
jerry_value_t jerry_create_regexp (const jerry_char_t *pattern, uint16_t flags); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reasion why this is limited to 16 bits? Usually this takes a register regardless of type. I would use a 32 bit value. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could use a 32 bit value, however that would go way out of the scope of this patch. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think @DanielBallaSZTE is right here. The API mirrors the internals. On the other hand, if the goal is to break away from the internals, then I'd suggest not to use a bitwidth-fixed (e.g., 32 bit) type, but a simple ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @akosthekiss Using an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, I was not pushing for a change here. I was only reflecting to @zherczeg 's proposal to change this to |
||
jerry_value_t jerry_create_regexp_sz (const jerry_char_t *pattern, jerry_size_t pattern_size, uint16_t flags); | ||
jerry_value_t jerry_create_string_from_utf8 (const jerry_char_t *str_p); | ||
jerry_value_t jerry_create_string_sz_from_utf8 (const jerry_char_t *str_p, jerry_size_t str_size); | ||
jerry_value_t jerry_create_string (const jerry_char_t *str_p); | ||
|
Uh oh!
There was an error while loading. Please reload this page.