Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
04b90fe3
Commit
04b90fe3
authored
Mar 24, 2018
by
Jonathan Wilkes
Browse files
correct comment that misled the reader about what binbuf_addbinbuf does
parent
84cbd6b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/x_interface.c
View file @
04b90fe3
...
...
@@ -215,10 +215,16 @@ void canvasinfo_args(t_canvasinfo *x, t_symbol *s, int argc, t_atom *argv)
}
else
{
/* For "boxtext" have to escape semi, comma, dollar, and
dollsym atoms, which is what binbuf_addbinbuf does.
Otherwise the user could pass them around or save them
unescaped, which might cause trouble. */
/* For "boxtext" we have to convert semi, comma, dollar, and
dollsym atoms to symbol atoms. Otherwise we could end up
outputting a message containing stray semis/commas/etc. which
might cause trouble.
We sent the atoms through binbuf_addbinbuf which does the
conversion to symbols for us. That way the user will get
expected output-- e.g., special characters will be properly
escaped when printing.
*/
t_binbuf
*
escaped
=
binbuf_new
();
binbuf_addbinbuf
(
escaped
,
b
);
n
=
binbuf_getnatom
(
escaped
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment