[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] script to rename Graph to Synth



Ross,

I applied your pypatch and I think it went OK. Then I ran
./clean-compile.sh to rebuild and the build failed while building
scsynth. I'll copy the output from running your script, and the build
error, below. Let me know if you can spot what's at fault...

(BTW your revert suggestion doesn't work perfectly. "svn revert
--recursive ." catches everything though.)

Dan


I'm on an Intel Mac with SuperCollider svn rev 7244. Here's what the
patching did:

dan-s:~/SuperCollider3 danstowell$ python ./GraphToSynthPatch.py
Source/plugins/DelayUGens.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/plugins/IOUGens.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Headers/plugin_interface/SC_World.h
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Headers/plugin_interface/SC_Graph.h
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Headers/plugin_interface/SC_WorldOptions.h
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Headers/plugin_interface/SC_InterfaceTable.h
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Headers/plugin_interface/SC_Unit.h
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Headers/server/SC_GraphDef.h
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Headers/server/SC_HiddenWorld.h
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Headers/server/SC_Prototypes.h
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Headers/server/SC_SequencedCommand.h
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Headers/server/SC_Group.h
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/SC_CoreAudio.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/SC_Graph.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/SC_GraphDef.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/SC_Group.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/SC_MiscCmds.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/SC_Node.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/SC_SequencedCommand.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/SC_UnitDef.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/SC_World.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/scsynth_main.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/lang/LangPrimSource/OSCData.cpp
Graph : Synth
graph-> : synth->
Synth *graph : Synth *synth
graphDef : synthDef
Synth* graph : Synth* synth
deletegraphfifo : deletesynthfifo
graphUnits : synthUnits
graphControls : synthControls
graphMapControls : synthMapControls
graphWires : synthWires
graphUnits : synthUnits
GRAPHDEF : SYNTHDEF
GRAPH_PARAM_TABLE : SYNTH_PARAM_TABLE
Source/server/SC_Graph.cpp
graph : synth
Source/server/SC_MiscCmds.cpp
graph : synth
Source/server/SC_UnitDef.cpp
graph : synth
Headers/plugin_interface/SC_World.h
Headers/plugin_interface/SC_Graph.h
Headers/plugin_interface/SC_WorldOptions.h
Headers/plugin_interface/SC_World.h
A         SC_Synth.h
D         Headers/plugin_interface/SC_Graph.h
A         SC_SynthDef.h
D         Headers/server/SC_GraphDef.h
A         SC_Synth.cpp
A         SC_SynthDef.cpp
D         Source/server/SC_GraphDef.cpp



and here's the error message:

CompileC "Intermediate Build
Files/Synth.build/scsynth.build/Objects-normal/ppc/SC_CoreAudio.o"
/Users/danstowell/SuperCollider3/Source/server/SC_CoreAudio.cpp normal
ppc c++ com.apple.compilers.gcc.4_0
    cd /Users/danstowell/SuperCollider3
    /usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs
-fpascal-strings -fasm-blocks -Os -fmessage-length=0 -mtune=G4
-ftree-vectorize -fvisibility=hidden -fvisibility-inlines-hidden
-mmacosx-version-min=10.4
-I/Users/danstowell/SuperCollider3/Intermediate\ Build\
Files/Synth.build/scsynth.build/scsynth.hmap -mdynamic-no-pic
-F/Users/danstowell/SuperCollider3/build
-I/Users/danstowell/SuperCollider3/build/include
-I/Users/danstowell/SuperCollider3/Intermediate\ Build\
Files/Synth.build/scsynth.build/DerivedSources -DSC_DARWIN -faltivec
-isysroot /Developer/SDKs/MacOSX10.4u.sdk -c
/Users/danstowell/SuperCollider3/Source/server/SC_CoreAudio.cpp -o
/Users/danstowell/SuperCollider3/Intermediate\ Build\
Files/Synth.build/scsynth.build/Objects-normal/ppc/SC_CoreAudio.o
/Users/danstowell/SuperCollider3/Headers/server/SC_SequencedCommand.h:446:
error: ISO C++ forbids declaration of 'SynthDef' with no type
/Users/danstowell/SuperCollider3/Headers/server/SC_SequencedCommand.h:446:
error: expected ';' before '*' token
/Users/danstowell/SuperCollider3/Headers/server/SC_SequencedCommand.h:469:
error: ISO C++ forbids declaration of 'SynthDef' with no type
/Users/danstowell/SuperCollider3/Headers/server/SC_SequencedCommand.h:469:
error: expected ';' before '*' token
/Users/danstowell/SuperCollider3/Headers/server/SC_SequencedCommand.h:490:
error: ISO C++ forbids declaration of 'SynthDef' with no type
/Users/danstowell/SuperCollider3/Headers/server/SC_SequencedCommand.h:490:
error: expected ';' before '*' token
** BUILD FAILED **









2008/2/6, Ross Bencina <rossb@xxxxxxxxxxxxxx>:
> Hi Guys
>
> Better late than never... I've attached a Python script which renames Graph
> to Synth, GraphDef to SynthDef etc. throughout the scsynth sources. This was
> produced after reviewing all appearances of "graph" in the source, it is
> careful to only rename relevant stuff. Please review the instructions at the
> top of the script before applying it.
>
> Note that it shells out to SVN to rename some files, but doesn't do a
> commit.
>
> Note that you can revert after applying the script using
> >svn revert --recursive *.*
>
> It needs to be tested.. would be good to hear how it goes.
>
> Thanks
>
> Ross.
>
>