Skip to content
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

Merged
merged 15 commits into from
Mar 22, 2013
Merged

Added printf builtin in fish #611

merged 15 commits into from
Mar 22, 2013

Conversation

siteshwar
Copy link
Contributor

No description provided.

#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')
Copy link
Contributor Author

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.

@siteshwar
Copy link
Contributor Author

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

@ridiculousfish ridiculousfish merged commit 5dbda6c into fish-shell:master Mar 22, 2013
@ridiculousfish
Copy link
Member

To git@github.com:fish-shell/fish-shell.git
7e96527..1d93e89 master -> master

Thanks! Wonderful!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants