Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nerrons
purr-data
Commits
f4aacadc
Commit
f4aacadc
authored
7 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Plain Diff
Merge branch 'pdgui-refactor'
parents
da0a9e84
ac61e201
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pd/nw/pdgui.js
+1541
-1601
1541 additions, 1601 deletions
pd/nw/pdgui.js
pd/src/m_obj.c
+22
-0
22 additions, 0 deletions
pd/src/m_obj.c
with
1563 additions
and
1601 deletions
pd/nw/pdgui.js
+
1541
−
1601
View file @
f4aacadc
This diff is collapsed.
Click to expand it.
pd/src/m_obj.c
+
22
−
0
View file @
f4aacadc
...
@@ -78,12 +78,16 @@ static void inlet_wrong(t_inlet *x, t_symbol *s)
...
@@ -78,12 +78,16 @@ static void inlet_wrong(t_inlet *x, t_symbol *s)
x
->
i_symfrom
->
s_name
,
s
->
s_name
);
x
->
i_symfrom
->
s_name
,
s
->
s_name
);
}
}
static
void
inlet_list
(
t_inlet
*
x
,
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
);
/* LATER figure out how to make these efficient: */
/* LATER figure out how to make these efficient: */
static
void
inlet_bang
(
t_inlet
*
x
)
static
void
inlet_bang
(
t_inlet
*
x
)
{
{
if
(
x
->
i_symfrom
==
&
s_bang
)
if
(
x
->
i_symfrom
==
&
s_bang
)
pd_vmess
(
x
->
i_dest
,
x
->
i_symto
,
""
);
pd_vmess
(
x
->
i_dest
,
x
->
i_symto
,
""
);
else
if
(
!
x
->
i_symfrom
)
pd_bang
(
x
->
i_dest
);
else
if
(
!
x
->
i_symfrom
)
pd_bang
(
x
->
i_dest
);
else
if
(
x
->
i_symfrom
==
&
s_list
)
inlet_list
(
x
,
&
s_bang
,
0
,
0
);
else
inlet_wrong
(
x
,
&
s_bang
);
else
inlet_wrong
(
x
,
&
s_bang
);
}
}
...
@@ -92,6 +96,12 @@ static void inlet_pointer(t_inlet *x, t_gpointer *gp)
...
@@ -92,6 +96,12 @@ static void inlet_pointer(t_inlet *x, t_gpointer *gp)
if
(
x
->
i_symfrom
==
&
s_pointer
)
if
(
x
->
i_symfrom
==
&
s_pointer
)
pd_vmess
(
x
->
i_dest
,
x
->
i_symto
,
"p"
,
gp
);
pd_vmess
(
x
->
i_dest
,
x
->
i_symto
,
"p"
,
gp
);
else
if
(
!
x
->
i_symfrom
)
pd_pointer
(
x
->
i_dest
,
gp
);
else
if
(
!
x
->
i_symfrom
)
pd_pointer
(
x
->
i_dest
,
gp
);
else
if
(
x
->
i_symfrom
==
&
s_list
)
{
t_atom
a
;
SETPOINTER
(
&
a
,
gp
);
inlet_list
(
x
,
&
s_pointer
,
1
,
&
a
);
}
else
inlet_wrong
(
x
,
&
s_pointer
);
else
inlet_wrong
(
x
,
&
s_pointer
);
}
}
...
@@ -103,6 +113,12 @@ static void inlet_float(t_inlet *x, t_float f)
...
@@ -103,6 +113,12 @@ static void inlet_float(t_inlet *x, t_float f)
x
->
i_un
.
iu_floatsignalvalue
=
f
;
x
->
i_un
.
iu_floatsignalvalue
=
f
;
else
if
(
!
x
->
i_symfrom
)
else
if
(
!
x
->
i_symfrom
)
pd_float
(
x
->
i_dest
,
f
);
pd_float
(
x
->
i_dest
,
f
);
else
if
(
x
->
i_symfrom
==
&
s_list
)
{
t_atom
a
;
SETFLOAT
(
&
a
,
f
);
inlet_list
(
x
,
&
s_float
,
1
,
&
a
);
}
else
inlet_wrong
(
x
,
&
s_float
);
else
inlet_wrong
(
x
,
&
s_float
);
}
}
...
@@ -111,6 +127,12 @@ static void inlet_symbol(t_inlet *x, t_symbol *s)
...
@@ -111,6 +127,12 @@ static void inlet_symbol(t_inlet *x, t_symbol *s)
if
(
x
->
i_symfrom
==
&
s_symbol
)
if
(
x
->
i_symfrom
==
&
s_symbol
)
pd_vmess
(
x
->
i_dest
,
x
->
i_symto
,
"s"
,
s
);
pd_vmess
(
x
->
i_dest
,
x
->
i_symto
,
"s"
,
s
);
else
if
(
!
x
->
i_symfrom
)
pd_symbol
(
x
->
i_dest
,
s
);
else
if
(
!
x
->
i_symfrom
)
pd_symbol
(
x
->
i_dest
,
s
);
else
if
(
x
->
i_symfrom
==
&
s_list
)
{
t_atom
a
;
SETSYMBOL
(
&
a
,
s
);
inlet_list
(
x
,
&
s_symbol
,
1
,
&
a
);
}
else
inlet_wrong
(
x
,
&
s_symbol
);
else
inlet_wrong
(
x
,
&
s_symbol
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment