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

Exports quote and unquote functions for C bindings #543

Merged
merged 1 commit into from
Oct 16, 2014

Conversation

mgreter
Copy link
Contributor

@mgreter mgreter commented Oct 15, 2014

Needed to exchange strings with registered custom functions.

Libsass passes strings in quoted form inclusive quotemarks to the C bindings. I guess this is also how it is handled internally (I see a lot of unquote stuff going on in functions.cpp). IMO it would have been better to unquote on reading and quote on output if needed. Probably too late now. So this should be handy for all C Bindings if they have to consume or return strings in custom functions.

Needed to exchange strings with registered functions.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) when pulling 8f1a7a8 on mgreter:expose-quote-function into 9569ba1 on sass:master.

HamptonMakes added a commit that referenced this pull request Oct 16, 2014
Exports quote and unquote functions for C bindings
@HamptonMakes HamptonMakes merged commit f660ede into sass:master Oct 16, 2014
@mgreter mgreter deleted the expose-quote-function branch April 6, 2015 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants