summaryrefslogtreecommitdiff
path: root/polyinfo.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-10-25 14:18:42 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-10-25 14:18:42 -0700
commitbbd4273f328e93d429a6edb8872a74f8fb82b259 (patch)
tree287be5486f756d49edead3f16c9b60ca28c711e0 /polyinfo.h
parent9db7347730f3c8c9d77e5be4c9746f6d614ce470 (diff)
Make polygon info const - moves 22k from .data to .rodata
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'polyinfo.h')
-rw-r--r--polyinfo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/polyinfo.h b/polyinfo.h
index c4b80f1..daf68db 100644
--- a/polyinfo.h
+++ b/polyinfo.h
@@ -16,7 +16,7 @@ typedef struct {
} Point3D;
/* structure of the include files which define the polyhedra */
-typedef struct {
+struct polyinfo {
const char *longname; /* long name of object */
const char *shortname; /* short name of object */
const char *dual; /* long name of dual */
@@ -25,6 +25,7 @@ typedef struct {
int numfaces; /* number of faces */
Point3D v[MAXVERTS]; /* the vertices */
int f[MAXEDGES*2+MAXFACES]; /* the faces */
-} Polyinfo;
+};
+typedef const struct polyinfo Polyinfo;
/* end */