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
c6a3bd3d
Commit
c6a3bd3d
authored
May 27, 2018
by
Pranay Gupta
Browse files
printing double values in the patch rather than pd-window
parent
92ccd578
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/x_interface.c
View file @
c6a3bd3d
...
...
@@ -12,11 +12,19 @@
#include
<stdlib.h>
#include
<stdio.h>
#if PD_FLOATSIZE == 32
#define FLOAT_SPECIFIER "%s%s%.6g"
#elif PD_FLOATSIZE == 64
#define FLOAT_SPECIFIER "%s%s%.14lg"
#endif
/* we need the following for [pdinfo] ... */
#define MAXNDEV 20
#define DEVDESCSIZE 80
/* -------------------------- print ------------------------------ */
t_class
*
print_class
;
...
...
@@ -86,7 +94,7 @@ static void print_pointer(t_print *x, t_gpointer *gp)
static
void
print_float
(
t_print
*
x
,
t_floatarg
f
)
{
if
(
sys_nogui
)
post
(
"%s%s%g"
,
x
->
x_sym
->
s_name
,
(
*
x
->
x_sym
->
s_name
?
": "
:
""
),
f
);
post
(
FLOAT_SPECIFIER
,
x
->
x_sym
->
s_name
,
(
*
x
->
x_sym
->
s_name
?
": "
:
""
),
f
);
else
{
gui_start_vmess
(
"gui_print"
,
"xs"
,
x
,
x
->
x_sym
->
s_name
);
...
...
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