-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Draft: Multibyte wb support #23430
base: master
Are you sure you want to change the base?
Draft: Multibyte wb support #23430
Conversation
4848cfc
to
3a4e307
Compare
TODO:
|
// TODO: Do we need some bound check for | ||
// `core->offset + block_offset`? Other | ||
// functions don't seem to implement any. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
libr/core/cmd_write.inc.c
Outdated
for (i = 0; i < uil; i++) { | ||
c = input[i]; | ||
// Ignore whitespaces, \r and \n chars | ||
if (c == ' ' || c == '\r' || c == '\n') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use isspace() its more portable and fast and comes with libc. Also handles tab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libr/core/cmd_write.inc.c
Outdated
continue; | ||
} | ||
// Check that user input only contains ones and zeros | ||
else if (c != '0' && c != '1') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for else after continue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
5e9ade2
to
a39784e
Compare
a39784e
to
f5561b0
Compare
Lgtm |
Description