Skip to content

Commit

Permalink
Only include necessary headers in PyrSlot.h and PyrSymbol.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jleben committed Feb 23, 2011
1 parent dda8205 commit 00efebd
Show file tree
Hide file tree
Showing 21 changed files with 39 additions and 4 deletions.
2 changes: 2 additions & 0 deletions include/lang/FIFOT.h
Expand Up @@ -26,6 +26,8 @@ A Fifo for sending/receiving some type of object.
#ifndef _FIFOT_ #ifndef _FIFOT_
#define _FIFOT_ #define _FIFOT_


#include "SCBase.h"

template <class T, int N> class FIFOT template <class T, int N> class FIFOT
{ {
public: public:
Expand Down
2 changes: 2 additions & 0 deletions include/lang/PyrArchiverT.h
Expand Up @@ -32,9 +32,11 @@ An object archiving system for SuperCollider.


#include "PyrKernel.h" #include "PyrKernel.h"
#include "PyrPrimitive.h" #include "PyrPrimitive.h"
#include "PyrSymbol.h"
#include "VMGlobals.h" #include "VMGlobals.h"
#include "GC.h" #include "GC.h"
#include "ReadWriteMacros.h" #include "ReadWriteMacros.h"
#include "SCBase.h"


const int32 kArchHdrSize = 12; const int32 kArchHdrSize = 12;
const int32 kObjectArrayInitialCapacity = 32; const int32 kObjectArrayInitialCapacity = 32;
Expand Down
1 change: 1 addition & 0 deletions include/lang/PyrLexer.h
Expand Up @@ -24,6 +24,7 @@


#include "PyrSymbol.h" #include "PyrSymbol.h"
#include "SC_Export.h" #include "SC_Export.h"
#include "SCBase.h"


extern int charno, lineno, linepos; extern int charno, lineno, linepos;
extern int *linestarts; extern int *linestarts;
Expand Down
4 changes: 3 additions & 1 deletion include/lang/PyrSlot32.h
Expand Up @@ -29,10 +29,12 @@ A PyrSlot is an 8-byte value which is either a double precision float or a
#define _PYRSLOT32_H_ #define _PYRSLOT32_H_


#include "SC_Endian.h" #include "SC_Endian.h"
#include "PyrSymbol.h" #include "PyrErrors.h"


#include <cassert> #include <cassert>


struct PyrSymbol;

/* /*
Pyrite slots are the size of an 8 byte double. If the upper bits Pyrite slots are the size of an 8 byte double. If the upper bits
indicate that the double is a 'Not-A-Number' then the upper 32 indicate that the double is a 'Not-A-Number' then the upper 32
Expand Down
6 changes: 5 additions & 1 deletion include/lang/PyrSlot64.h
Expand Up @@ -23,10 +23,14 @@
#define _PYRSLOTGENERIC_H_ #define _PYRSLOTGENERIC_H_


#include "SC_Endian.h" #include "SC_Endian.h"
#include "PyrSymbol.h" #include "SC_Types.h"
#include "PyrErrors.h"


#include <cstddef>
#include <cassert> #include <cassert>


struct PyrSymbol;

enum { enum {
tagNotInitialized, // uninitialized slots have a tag of 0 tagNotInitialized, // uninitialized slots have a tag of 0
tagObj, tagObj,
Expand Down
2 changes: 1 addition & 1 deletion include/lang/PyrSymbol.h
Expand Up @@ -26,7 +26,7 @@ A PyrSymbol is a unique string that resides in a global hash table.
#ifndef _PYRSYMBOL_H_ #ifndef _PYRSYMBOL_H_
#define _PYRSYMBOL_H_ #define _PYRSYMBOL_H_


#include "SCBase.h" #include "SC_Types.h"


struct PyrSymbol { struct PyrSymbol {
char *name; char *name;
Expand Down
4 changes: 4 additions & 0 deletions include/lang/PyrSymbolTable.h
Expand Up @@ -23,10 +23,14 @@


#include "PyrSymbol.h" #include "PyrSymbol.h"
#include "AdvancingAllocPool.h" #include "AdvancingAllocPool.h"
#include "SC_Export.h"


#define STRINGCHUNK 32000 #define STRINGCHUNK 32000
#define SYMBOLCHUNK 32000 #define SYMBOLCHUNK 32000


SC_DLLEXPORT_C PyrSymbol* getsym(const char *name);
SC_DLLEXPORT_C PyrSymbol* findsym(const char *name);

class SymbolSpace class SymbolSpace
{ {
public: public:
Expand Down
1 change: 1 addition & 0 deletions lang/LangPrimSource/OSCData.cpp
Expand Up @@ -23,6 +23,7 @@
#include "PyrKernel.h" #include "PyrKernel.h"
#include "PyrInterpreter.h" #include "PyrInterpreter.h"
#include "PyrSched.h" #include "PyrSched.h"
#include "PyrSymbol.h"
#include "GC.h" #include "GC.h"
//#include "PyrOMS.h" //#include "PyrOMS.h"
//#include "MidiQ.h" //#include "MidiQ.h"
Expand Down
2 changes: 2 additions & 0 deletions lang/LangPrimSource/PyrFilePrim.cpp
Expand Up @@ -27,9 +27,11 @@ Primitives for File i/o.
#include "GC.h" #include "GC.h"
#include "PyrKernel.h" #include "PyrKernel.h"
#include "PyrPrimitive.h" #include "PyrPrimitive.h"
#include "PyrSymbol.h"
#include "PyrFilePrim.h" #include "PyrFilePrim.h"
#include "PyrFileUtils.h" #include "PyrFileUtils.h"
#include "ReadWriteMacros.h" #include "ReadWriteMacros.h"
#include "SCBase.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
Expand Down
2 changes: 2 additions & 0 deletions lang/LangPrimSource/PyrListPrim.cpp
Expand Up @@ -22,13 +22,15 @@
#include "PyrKernelProto.h" #include "PyrKernelProto.h"
#include "PyrPrimitive.h" #include "PyrPrimitive.h"
#include "PyrPrimitiveProto.h" #include "PyrPrimitiveProto.h"
#include "PyrSymbol.h"
#include "PyrListPrim.h" #include "PyrListPrim.h"
#include "SC_InlineUnaryOp.h" #include "SC_InlineUnaryOp.h"
#include "SC_InlineBinaryOp.h" #include "SC_InlineBinaryOp.h"
#include "PyrSignal.h" #include "PyrSignal.h"
#include "PyrMessage.h" #include "PyrMessage.h"
#include "PyrSched.h" #include "PyrSched.h"
#include "SC_RGen.h" #include "SC_RGen.h"
#include "SCBase.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>


Expand Down
1 change: 1 addition & 0 deletions lang/LangPrimSource/PyrMathPrim.cpp
Expand Up @@ -32,6 +32,7 @@
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>
#include "SC_Endian.h" #include "SC_Endian.h"
#include "SCBase.h"


const int INT_MAX_BY_PyrSlot = INT_MAX / sizeof(PyrSlot); const int INT_MAX_BY_PyrSlot = INT_MAX / sizeof(PyrSlot);


Expand Down
3 changes: 2 additions & 1 deletion lang/LangPrimSource/PyrSched.cpp
Expand Up @@ -23,6 +23,7 @@
#include "PyrSched.h" #include "PyrSched.h"
#include "GC.h" #include "GC.h"
#include "PyrPrimitive.h" #include "PyrPrimitive.h"
#include "PyrSymbol.h"
#ifdef SC_DARWIN #ifdef SC_DARWIN
# include <CoreAudio/HostTime.h> # include <CoreAudio/HostTime.h>
#endif #endif
Expand All @@ -36,7 +37,7 @@
#endif #endif


#include "SC_Win32Utils.h" #include "SC_Win32Utils.h"

#include "SCBase.h"


static const double dInfinity = std::numeric_limits<double>::infinity(); static const double dInfinity = std::numeric_limits<double>::infinity();


Expand Down
1 change: 1 addition & 0 deletions lang/LangPrimSource/PyrSerialPrim.cpp
Expand Up @@ -41,6 +41,7 @@
#include "PyrKernel.h" #include "PyrKernel.h"
#include "PyrPrimitive.h" #include "PyrPrimitive.h"
#include "SC_LanguageClient.h" #include "SC_LanguageClient.h"
#include "SCBase.h"


#include "SC_FIFO.h" #include "SC_FIFO.h"


Expand Down
2 changes: 2 additions & 0 deletions lang/LangPrimSource/PyrSignalPrim.cpp
Expand Up @@ -18,13 +18,15 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include "PyrSymbol.h"
#include "PyrKernel.h" #include "PyrKernel.h"
#include "PyrObject.h" #include "PyrObject.h"
#include "PyrPrimitive.h" #include "PyrPrimitive.h"
#include "PyrSignal.h" #include "PyrSignal.h"
#include "PyrSignalPrim.h" #include "PyrSignalPrim.h"
#include "PyrMessage.h" #include "PyrMessage.h"
#include "SC_Constants.h" #include "SC_Constants.h"
#include "SCBase.h"
#include "clz.h" #include "clz.h"
extern "C" { extern "C" {
#include "fftlib.h" #include "fftlib.h"
Expand Down
2 changes: 2 additions & 0 deletions lang/LangPrimSource/PyrSymbolPrim.cpp
Expand Up @@ -26,8 +26,10 @@ Primitives for Symbol.
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include "PyrPrimitive.h" #include "PyrPrimitive.h"
#include "PyrSymbol.h"
#include "VMGlobals.h" #include "VMGlobals.h"
#include "PyrKernel.h" #include "PyrKernel.h"
#include "SCBase.h"


/* /*
int prSymbolString(struct VMGlobals *g, int numArgsPushed); int prSymbolString(struct VMGlobals *g, int numArgsPushed);
Expand Down
1 change: 1 addition & 0 deletions lang/LangPrimSource/PyrUnixPrim.cpp
Expand Up @@ -37,6 +37,7 @@ Primitives for Unix.
#include "SC_RGen.h" #include "SC_RGen.h"
#include "SC_DirUtils.h" #include "SC_DirUtils.h"
#include "sc_popen.h" #include "sc_popen.h"
#include "SCBase.h"


#ifdef SC_WIN32 #ifdef SC_WIN32
#include "SC_Win32Utils.h" #include "SC_Win32Utils.h"
Expand Down
1 change: 1 addition & 0 deletions lang/LangSource/GC.cpp
Expand Up @@ -22,6 +22,7 @@
#include "GC.h" #include "GC.h"
#include "PyrKernel.h" #include "PyrKernel.h"
#include "PyrObjectProto.h" #include "PyrObjectProto.h"
#include "PyrSymbol.h"
#include "InitAlloc.h" #include "InitAlloc.h"
#include <string.h> #include <string.h>
#include <stdexcept> #include <stdexcept>
Expand Down
1 change: 1 addition & 0 deletions lang/LangSource/PyrMathOps.cpp
Expand Up @@ -36,6 +36,7 @@ double log2(double x);
#include "PyrParseNode.h" #include "PyrParseNode.h"
#include "PyrSignal.h" #include "PyrSignal.h"
#include "PyrSched.h" #include "PyrSched.h"
#include "PyrSymbol.h"
#include "SC_InlineUnaryOp.h" #include "SC_InlineUnaryOp.h"
#include "SC_InlineBinaryOp.h" #include "SC_InlineBinaryOp.h"
#include "MiscInlineMath.h" #include "MiscInlineMath.h"
Expand Down
2 changes: 2 additions & 0 deletions lang/LangSource/PyrMessage.cpp
Expand Up @@ -23,12 +23,14 @@
#include "PyrInterpreter.h" #include "PyrInterpreter.h"
#include "PyrPrimitive.h" #include "PyrPrimitive.h"
#include "PyrListPrim.h" #include "PyrListPrim.h"
#include "PyrSymbol.h"
#include "GC.h" #include "GC.h"
#include "bullet.h" #include "bullet.h"
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
#include "PredefinedSymbols.h" #include "PredefinedSymbols.h"
#include "PyrObjectProto.h" #include "PyrObjectProto.h"
#include "SCBase.h"


#define DEBUGMETHODS 0 #define DEBUGMETHODS 0
#define METHODMETER 0 #define METHODMETER 0
Expand Down
1 change: 1 addition & 0 deletions lang/LangSource/SC_LanguageClient.cpp
Expand Up @@ -45,6 +45,7 @@
#include "GC.h" #include "GC.h"
#include "VMGlobals.h" #include "VMGlobals.h"
#include "SC_DirUtils.h" #include "SC_DirUtils.h"
#include "SCBase.h"


void closeAllGUIScreens(); void closeAllGUIScreens();
void initGUI(); void initGUI();
Expand Down
2 changes: 2 additions & 0 deletions lang/LangSource/dumpByteCodes.cpp
Expand Up @@ -20,6 +20,8 @@


#include "PyrKernel.h" #include "PyrKernel.h"
#include "PyrParseNode.h" #include "PyrParseNode.h"
#include "PyrSymbol.h"
#include "SCBase.h"


void numBlockTemps(PyrBlock *block, long level, long *numArgNames, long *numVarNames); void numBlockTemps(PyrBlock *block, long level, long *numArgNames, long *numVarNames);
void numBlockTemps(PyrBlock *block, long level, long *numArgNames, long *numVarNames) void numBlockTemps(PyrBlock *block, long level, long *numArgNames, long *numVarNames)
Expand Down

0 comments on commit 00efebd

Please sign in to comment.