-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Added printf builtin in fish #611
Conversation
… builtin_printf Conflicts: Makefile.in builtin.cpp builtin_printf.cpp
#define isodigit(c) ((c) >= L'0' && (c) <= L'7') | ||
#define hextobin(c) ((c) >= L'a' && (c) <= L'f' ? (c) - L'a' + 10 : \ | ||
(c) >= L'A' && (c) <= L'F' ? (c) - L'A' + 10 : (c) - L'0') | ||
#define octtobin(c) ((c) - L'0') |
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.
I am not sure if it's a portable way to convet wide characters to numbers.
Link to version of GNU Coreutils from which I imported printf http://ftp.gnu.org/gnu/coreutils/coreutils-6.9.tar.bz2 Check src/printf.c |
To git@github.com:fish-shell/fish-shell.git Thanks! Wonderful! |
No description provided.