diff --git a/sys/src/cmd/gs/src/ttinterp.c b/sys/src/cmd/gs/src/ttinterp.c index dcaad78e2..cefa11c21 100644 --- a/sys/src/cmd/gs/src/ttinterp.c +++ b/sys/src/cmd/gs/src/ttinterp.c @@ -166,7 +166,7 @@ static int nInstrCount=0; #endif -#define INS_ARG EXEC_OPS PStorage args /* see ttexec.h */ +#define INS_ARG EXEC_OPS PLong args /* see ttexec.h */ #define SKIP_Code() SkipCode( EXEC_ARG ) diff --git a/sys/src/cmd/gs/src/ttobjs.h b/sys/src/cmd/gs/src/ttobjs.h index 2b25e37a9..bed1b3c03 100644 --- a/sys/src/cmd/gs/src/ttobjs.h +++ b/sys/src/cmd/gs/src/ttobjs.h @@ -589,7 +589,7 @@ typedef struct _TExecution_Context TExecution_Context; PLong cvt; Int storeSize; /* The storage area is now part of the */ - PStorage storage; /* instance */ + PLong storage; /* instance */ }; @@ -638,11 +638,11 @@ typedef struct _TExecution_Context TExecution_Context; /* useful for the debugger */ Int storeSize; /* size of current storage */ - PStorage storage; /* storage area */ + PLong storage; /* storage area */ Int stackSize; /* size of exec. stack */ Int top; /* top of exec. stack */ - PStorage stack; /* current exec. stack */ + PLong stack; /* current exec. stack */ Int args, new_top; /* new top after exec. */ diff --git a/sys/src/cmd/gs/src/tttables.h b/sys/src/cmd/gs/src/tttables.h index ed6c9b387..20d1a3857 100644 --- a/sys/src/cmd/gs/src/tttables.h +++ b/sys/src/cmd/gs/src/tttables.h @@ -191,7 +191,7 @@ struct _TLoca { UShort Size; - PStorage Table; + PLong Table; }; typedef struct _TLoca TLoca; diff --git a/sys/src/cmd/gs/src/tttypes.h b/sys/src/cmd/gs/src/tttypes.h index 62de545ee..0c7673761 100644 --- a/sys/src/cmd/gs/src/tttypes.h +++ b/sys/src/cmd/gs/src/tttypes.h @@ -117,17 +117,6 @@ #define NULL (void*)0 #endif -#ifdef Plan9 - typedef unsigned int* PStorage; -#elif ARCH_SIZEOF_PTR == SIZEOF_LONG - typedef long* PStorage; -#elif ARCH_SIZEOF_PTR == SIZEOF_INT - typedef int* PStorage; -#else -#error "Size of pointer type is not equal to either long or int" -#endif - - /* Rounding mode constants */ #define TT_Round_Off 5