gs: remove PStorage data type from ttf interpreter
i dont see that pointers are stored in PStorage at all, so just use PLong directly avoding all this confusion.
This commit is contained in:
parent
9cc9d6113c
commit
826f4c0daf
4 changed files with 5 additions and 16 deletions
|
@ -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 )
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -191,7 +191,7 @@
|
|||
struct _TLoca
|
||||
{
|
||||
UShort Size;
|
||||
PStorage Table;
|
||||
PLong Table;
|
||||
};
|
||||
|
||||
typedef struct _TLoca TLoca;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue