Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aayush
purr-data
Commits
22793c2d
Commit
22793c2d
authored
Dec 30, 2018
by
Jonathan Wilkes
Browse files
add pd_anything, fix some formatting
parent
9484aff7
Changes
3
Hide whitespace changes
Inline
Side-by-side
pd/src/g_canvas.h
View file @
22793c2d
...
...
@@ -125,8 +125,8 @@ typedef struct _editor
unsigned
int
e_textdirty
:
1
;
/* one if e_textedfor has changed */
unsigned
int
e_selectedline
:
1
;
/* one if a line is selected */
t_magicGlass
*
gl_magic_glass
;
/* magic glass object */
char
canvas_cnct_inlet_tag
[
4096
];
/* tags for currently highlighted nlets */
char
canvas_cnct_outlet_tag
[
4096
];
char
canvas_cnct_inlet_tag
[
4096
];
/* tags for currently highlighted nlets */
char
canvas_cnct_outlet_tag
[
4096
];
t_clock
*
e_clock
;
/* clock to filter GUI move messages */
int
e_xnew
;
/* xpos for next move event */
int
e_ynew
;
/* ypos, similarly */
...
...
@@ -151,8 +151,8 @@ typedef struct _arrayvis
t_garray
*
av_garray
;
/* owning structure */
}
t_arrayvis
;
t_garray
*
array_garray
;
/* used for sending bangs when
array is changed via gui */
t_garray
*
array_garray
;
/* used for sending bangs when
array is changed via gui */
/* the t_tick structure describes where to draw x and y "ticks" for a glist */
...
...
@@ -171,7 +171,7 @@ area of a window.
//#include "g_undo.h"
struct
_glist
{
{
t_object
gl_obj
;
/* header in case we're a glist */
t_gobj
*
gl_list
;
/* the actual data */
struct
_gstub
*
gl_stub
;
/* safe pointer handler */
...
...
@@ -736,7 +736,7 @@ EXTERN t_symbol *iemgui_dollar2raute(t_symbol *s);
EXTERN
t_undo_action
*
canvas_undo_init
(
t_canvas
*
x
);
EXTERN
t_undo_action
*
canvas_undo_add
(
t_canvas
*
x
,
int
type
,
const
char
*
name
,
void
*
data
);
int
type
,
const
char
*
name
,
void
*
data
);
EXTERN
void
canvas_undo_undo
(
t_canvas
*
x
);
EXTERN
void
canvas_undo_redo
(
t_canvas
*
x
);
EXTERN
void
canvas_undo_rebranch
(
t_canvas
*
x
);
...
...
pd/src/g_traversal.c
View file @
22793c2d
...
...
@@ -68,7 +68,6 @@ void gstub_cutoff(t_gstub *gs)
if
(
!
gs
->
gs_refcount
)
t_freebytes
(
gs
,
sizeof
(
*
gs
));
}
int
gpointer_docheck
(
const
t_gpointer
*
gp
,
int
headok
,
int
gobjok
)
{
t_gstub
*
gs
=
gp
->
gp_stub
;
...
...
@@ -1104,7 +1103,6 @@ static void setsize_float(t_setsize *x, t_float f)
}
}
static
void
setsize_free
(
t_setsize
*
x
)
{
gpointer_unset
(
&
x
->
x_gp
);
...
...
@@ -1118,7 +1116,6 @@ static void setsize_setup(void)
class_addfloat
(
setsize_class
,
setsize_float
);
class_addmethod
(
setsize_class
,
(
t_method
)
setsize_set
,
gensym
(
"set"
),
A_SYMBOL
,
A_SYMBOL
,
0
);
}
/* ---------------------- append ----------------------------- */
...
...
pd/src/m_pd.c
View file @
22793c2d
...
...
@@ -439,6 +439,11 @@ void pd_list(t_pd *x, t_symbol *s, int argc, t_atom *argv)
(
*
(
*
x
)
->
c_listmethod
)(
x
,
&
s_list
,
argc
,
argv
);
}
void
pd_anything
(
t_pd
*
x
,
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
)
{
(
*
(
*
x
)
->
c_anymethod
)(
x
,
s
,
argc
,
argv
);
}
void
mess_init
(
void
);
void
obj_init
(
void
);
void
conf_init
(
void
);
...
...
Write
Preview
Markdown
is supported
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