summaryrefslogtreecommitdiff
path: root/sys/src/cmd/gs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-05-04 00:17:27 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-05-04 00:17:27 +0200
commit826f4c0daffe7c7d7599f407c2c6897823b64b6e (patch)
tree8950f764d13f38826e3300c43c2ba6859a12a149 /sys/src/cmd/gs
parent9cc9d6113cc2b25e1651771c967990939ce09581 (diff)
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.
Diffstat (limited to 'sys/src/cmd/gs')
-rw-r--r--sys/src/cmd/gs/src/ttinterp.c2
-rw-r--r--sys/src/cmd/gs/src/ttobjs.h6
-rw-r--r--sys/src/cmd/gs/src/tttables.h2
-rw-r--r--sys/src/cmd/gs/src/tttypes.h11
4 files changed, 5 insertions, 16 deletions
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