-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deleted unused variables
- Loading branch information
Showing
12 changed files
with
357 additions
and
144 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
/* | ||
/* | ||
py/pyext - python script object for PD and MaxMSP | ||
Copyright (c)2002-2011 Thomas Grill ([email protected]) | ||
Copyright (c)2002-2015 Thomas Grill ([email protected]) | ||
For information on usage and redistribution, and for a DISCLAIMER OF ALL | ||
WARRANTIES, see the file, "license.txt," in this distribution. | ||
$LastChangedRevision: 26 $ | ||
$LastChangedDate$ | ||
$LastChangedBy$ | ||
*/ | ||
|
||
#ifndef __MAIN_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
/* | ||
/* | ||
py/pyext - python script object for PD and Max/MSP | ||
Copyright (c)2002-2008 Thomas Grill ([email protected]) | ||
Copyright (c)2002-2015 Thomas Grill ([email protected]) | ||
For information on usage and redistribution, and for a DISCLAIMER OF ALL | ||
WARRANTIES, see the file, "license.txt," in this distribution. | ||
$LastChangedRevision: 26 $ | ||
$LastChangedDate$ | ||
$LastChangedBy$ | ||
*/ | ||
|
||
#include "main.h" | ||
|
@@ -19,3 +15,4 @@ class PyAtom | |
static PyObject *Retrieve(size_t id); | ||
static void Collect(); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
/* | ||
/* | ||
py/pyext - python script object for PD and MaxMSP | ||
Copyright (c)2002-2008 Thomas Grill ([email protected]) | ||
Copyright (c)2002-2015 Thomas Grill ([email protected]) | ||
For information on usage and redistribution, and for a DISCLAIMER OF ALL | ||
WARRANTIES, see the file, "license.txt," in this distribution. | ||
$LastChangedRevision: 26 $ | ||
$LastChangedDate$ | ||
$LastChangedBy$ | ||
*/ | ||
|
||
#ifndef __PYBASE_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
/* | ||
/* | ||
py/pyext - python script object for PD and Max/MSP | ||
Copyright (c)2002-2008 Thomas Grill ([email protected]) | ||
Copyright (c)2002-2015 Thomas Grill ([email protected]) | ||
For information on usage and redistribution, and for a DISCLAIMER OF ALL | ||
WARRANTIES, see the file, "license.txt," in this distribution. | ||
$LastChangedRevision: 26 $ | ||
$LastChangedDate$ | ||
$LastChangedBy$ | ||
*/ | ||
|
||
#ifndef __PYBUFFER_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
/* | ||
/* | ||
py/pyext - python script object for PD and Max/MSP | ||
Copyright (c)2002-2008 Thomas Grill ([email protected]) | ||
Copyright (c)2002-2015 Thomas Grill ([email protected]) | ||
For information on usage and redistribution, and for a DISCLAIMER OF ALL | ||
WARRANTIES, see the file, "license.txt," in this distribution. | ||
$LastChangedRevision: 26 $ | ||
$LastChangedDate$ | ||
$LastChangedBy$ | ||
*/ | ||
|
||
#ifndef __PYBUNDLE_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
/* | ||
/* | ||
py/pyext - python external object for PD and MaxMSP | ||
Copyright (c)2002-2008 Thomas Grill ([email protected]) | ||
Copyright (c)2002-2015 Thomas Grill ([email protected]) | ||
For information on usage and redistribution, and for a DISCLAIMER OF ALL | ||
WARRANTIES, see the file, "license.txt," in this distribution. | ||
$LastChangedRevision: 26 $ | ||
$LastChangedDate$ | ||
$LastChangedBy$ | ||
*/ | ||
|
||
#ifndef __PYEXT_H | ||
|
@@ -19,34 +15,34 @@ class pyext | |
: public pybase | ||
, public flext_dsp | ||
{ | ||
FLEXT_HEADER_S(pyext,flext_dsp,Setup) | ||
FLEXT_HEADER_S(pyext,flext_dsp,Setup) | ||
|
||
public: | ||
pyext(int argc,const t_atom *argv,bool sig = false); | ||
pyext(int argc,const t_atom *argv,bool sig = false); | ||
|
||
static PyObject *pyext__str__(PyObject *,PyObject *args); | ||
static PyObject *pyext__str__(PyObject *,PyObject *args); | ||
|
||
static PyObject *pyext_outlet(PyObject *,PyObject *args); | ||
static PyObject *pyext_outlet(PyObject *,PyObject *args); | ||
#if FLEXT_SYS == FLEXT_SYS_PD | ||
static PyObject *pyext_tocanvas(PyObject *,PyObject *args); | ||
static PyObject *pyext_tocanvas(PyObject *,PyObject *args); | ||
#endif | ||
|
||
static PyObject *pyext_setattr(PyObject *,PyObject *args); | ||
static PyObject *pyext_getattr(PyObject *,PyObject *args); | ||
static PyObject *pyext_setattr(PyObject *,PyObject *args); | ||
static PyObject *pyext_getattr(PyObject *,PyObject *args); | ||
|
||
static PyObject *pyext_detach(PyObject *,PyObject *args); | ||
static PyObject *pyext_stop(PyObject *,PyObject *args); | ||
static PyObject *pyext_isthreaded(PyObject *,PyObject *); | ||
static PyObject *pyext_detach(PyObject *,PyObject *args); | ||
static PyObject *pyext_stop(PyObject *,PyObject *args); | ||
static PyObject *pyext_isthreaded(PyObject *,PyObject *); | ||
|
||
static PyObject *pyext_inbuf(PyObject *,PyObject *args); | ||
static PyObject *pyext_invec(PyObject *,PyObject *args); | ||
static PyObject *pyext_outbuf(PyObject *,PyObject *args); | ||
static PyObject *pyext_outvec(PyObject *,PyObject *args); | ||
static PyObject *pyext_inbuf(PyObject *,PyObject *args); | ||
static PyObject *pyext_invec(PyObject *,PyObject *args); | ||
static PyObject *pyext_outbuf(PyObject *,PyObject *args); | ||
static PyObject *pyext_outvec(PyObject *,PyObject *args); | ||
|
||
int Inlets() const { return inlets; } | ||
int Outlets() const { return outlets; } | ||
int Inlets() const { return inlets; } | ||
int Outlets() const { return outlets; } | ||
|
||
static pyext *GetThis(PyObject *self); | ||
static pyext *GetThis(PyObject *self); | ||
|
||
protected: | ||
|
||
|
@@ -60,7 +56,7 @@ class pyext | |
|
||
virtual void DumpOut(const t_symbol *sym,int argc,const t_atom *argv); | ||
|
||
bool work(int n,const t_symbol *s,int argc,const t_atom *argv); | ||
bool work(int n,const t_symbol *s,int argc,const t_atom *argv); | ||
|
||
void m_help(); | ||
|
||
|
@@ -71,54 +67,54 @@ class pyext | |
void mg_dir_(AtomList &lst) { GetDir(pyobj,lst); } | ||
void m_doc_() { m__doc(((PyInstanceObject *)pyobj)->in_class->cl_dict); } | ||
|
||
void m_get(const t_symbol *s); | ||
void m_set(int argc,const t_atom *argv); | ||
void m_get(const t_symbol *s); | ||
void m_set(int argc,const t_atom *argv); | ||
|
||
const t_symbol *methname; | ||
PyObject *pyobj; | ||
int inlets,outlets; | ||
const t_symbol *methname; | ||
PyObject *pyobj; | ||
int inlets,outlets; | ||
int siginlets,sigoutlets; | ||
|
||
flext::AtomList initargs; | ||
|
||
virtual void LoadModule(); | ||
virtual void UnloadModule(); | ||
virtual void LoadModule(); | ||
virtual void UnloadModule(); | ||
|
||
virtual void Load(); | ||
virtual void Unload(); | ||
virtual void Load(); | ||
virtual void Unload(); | ||
|
||
virtual bool DoInit(); | ||
virtual void DoExit(); | ||
virtual bool DoInit(); | ||
virtual void DoExit(); | ||
|
||
virtual PyObject *GetSig(int ix,bool in); | ||
|
||
private: | ||
static void Setup(t_classid); | ||
static void Setup(t_classid); | ||
|
||
void SetThis(); | ||
void ClearThis(); | ||
void SetThis(); | ||
void ClearThis(); | ||
|
||
void ClearBinding(); | ||
bool MakeInstance(); | ||
void ClearBinding(); | ||
bool MakeInstance(); | ||
bool InitInOut(int &inlets,int &outlets); | ||
|
||
static PyObject *class_obj,*class_dict; | ||
static PyMethodDef attr_tbl[],meth_tbl[]; | ||
static const char *pyext_doc; | ||
static PyObject *class_obj,*class_dict; | ||
static PyMethodDef attr_tbl[],meth_tbl[]; | ||
static const char *pyext_doc; | ||
|
||
// -------- bind stuff ------------------ | ||
static PyObject *pyext_bind(PyObject *,PyObject *args); | ||
static PyObject *pyext_unbind(PyObject *,PyObject *args); | ||
// -------- bind stuff ------------------ | ||
static PyObject *pyext_bind(PyObject *,PyObject *args); | ||
static PyObject *pyext_unbind(PyObject *,PyObject *args); | ||
|
||
// --------------------------- | ||
// --------------------------- | ||
|
||
bool call(const char *meth,int inlet,const t_symbol *s,int argc,const t_atom *argv); | ||
bool call(const char *meth,int inlet,const t_symbol *s,int argc,const t_atom *argv); | ||
|
||
virtual void callpy(PyObject *fun,PyObject *args); | ||
static bool stcallpy(PyObject *fun,PyObject *args); | ||
|
||
#ifndef PY_USE_GIL | ||
ThrState pythr; | ||
ThrState pythr; | ||
#endif | ||
|
||
private: | ||
|
@@ -127,28 +123,28 @@ class pyext | |
FLEXT_CALLBACK(m_help) | ||
|
||
FLEXT_CALLBACK(m_reload) | ||
FLEXT_CALLBACK_V(m_reload_) | ||
FLEXT_CALLBACK(m_dir_) | ||
FLEXT_CALLGET_V(mg_dir_) | ||
FLEXT_CALLBACK(m_doc_) | ||
FLEXT_CALLBACK_V(m_reload_) | ||
FLEXT_CALLBACK(m_dir_) | ||
FLEXT_CALLGET_V(mg_dir_) | ||
FLEXT_CALLBACK(m_doc_) | ||
|
||
FLEXT_ATTRGET_V(initargs) | ||
FLEXT_CALLSET_V(ms_initargs) | ||
|
||
FLEXT_CALLBACK_S(m_get) | ||
FLEXT_CALLBACK_V(m_set) | ||
FLEXT_CALLBACK_S(m_get) | ||
FLEXT_CALLBACK_V(m_set) | ||
|
||
// callbacks | ||
FLEXT_ATTRVAR_I(detach) | ||
FLEXT_ATTRVAR_B(pymsg) | ||
FLEXT_ATTRVAR_B(respond) | ||
// callbacks | ||
FLEXT_ATTRVAR_I(detach) | ||
FLEXT_ATTRVAR_B(pymsg) | ||
FLEXT_ATTRVAR_B(respond) | ||
|
||
FLEXT_CALLBACK_V(m_stop) | ||
FLEXT_CALLBACK(m_dir) | ||
FLEXT_CALLGET_V(mg_dir) | ||
FLEXT_CALLBACK(m_doc) | ||
FLEXT_CALLBACK_V(m_stop) | ||
FLEXT_CALLBACK(m_dir) | ||
FLEXT_CALLGET_V(mg_dir) | ||
FLEXT_CALLBACK(m_doc) | ||
|
||
FLEXT_CALLBACK(CbClick) | ||
FLEXT_CALLBACK(CbClick) | ||
|
||
#ifdef FLEXT_THREADS | ||
FLEXT_CALLBACK_T(tick) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
/* | ||
/* | ||
py/pyext - python script object for PD and MaxMSP | ||
Copyright (c)2002-2009 Thomas Grill ([email protected]) | ||
Copyright (c)2002-2015 Thomas Grill ([email protected]) | ||
For information on usage and redistribution, and for a DISCLAIMER OF ALL | ||
WARRANTIES, see the file, "license.txt," in this distribution. | ||
$LastChangedRevision: 26 $ | ||
$LastChangedDate$ | ||
$LastChangedBy$ | ||
*/ | ||
|
||
#ifndef __PYPREFIX_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
/* | ||
/* | ||
py/pyext - python script object for PD and Max/MSP | ||
Copyright (c)2002-2008 Thomas Grill ([email protected]) | ||
Copyright (c)2002-2015 Thomas Grill ([email protected]) | ||
For information on usage and redistribution, and for a DISCLAIMER OF ALL | ||
WARRANTIES, see the file, "license.txt," in this distribution. | ||
$LastChangedRevision: 26 $ | ||
$LastChangedDate$ | ||
$LastChangedBy$ | ||
*/ | ||
|
||
#ifndef __PYSYMBOL_H | ||
|