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
Rishabh Gupta
purr-data
Commits
5f809c02
Commit
5f809c02
authored
Feb 13, 2017
by
Jonathan Wilkes
Browse files
fix #254: add l2ork version to [pdinfo]
parent
1ef71125
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/x_interface.c
View file @
5f809c02
...
...
@@ -859,6 +859,15 @@ void pdinfo_version(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv)
info_out
((
t_text
*
)
x
,
s
,
3
,
at
);
}
void
pdinfo_l2ork_version
(
t_pdinfo
*
x
,
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
)
{
char
buf
[
MAXPDSTRING
];
t_atom
at
[
1
];
sprintf
(
buf
,
PD_L2ORK_VERSION
" "
PD_BUILD_VERSION
);
SETSYMBOL
(
at
,
gensym
(
buf
));
info_out
((
t_text
*
)
x
,
s
,
1
,
at
);
}
void
pdinfo_print
(
t_pdinfo
*
x
)
{
info_print
((
t_text
*
)
x
);
...
...
@@ -930,6 +939,8 @@ void pdinfo_setup(void)
gensym
(
"samplerate"
),
A_GIMME
,
0
);
class_addmethod
(
pdinfo_class
,
(
t_method
)
pdinfo_version
,
gensym
(
"version"
),
A_GIMME
,
0
);
class_addmethod
(
pdinfo_class
,
(
t_method
)
pdinfo_l2ork_version
,
gensym
(
"l2ork_version"
),
A_GIMME
,
0
);
class_addmethod
(
pdinfo_class
,
(
t_method
)
pdinfo_print
,
gensym
(
"print"
),
0
);
...
...
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