diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-10-25 14:18:42 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-10-25 14:18:42 -0700 |
commit | bbd4273f328e93d429a6edb8872a74f8fb82b259 (patch) | |
tree | 287be5486f756d49edead3f16c9b60ca28c711e0 /polyinfo.h | |
parent | 9db7347730f3c8c9d77e5be4c9746f6d614ce470 (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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 */ |