proper usage of entities.h
| From: | Mike Frysinger | Date: | Mon, 12 Feb 2007 14:47:40 +0000 |
| Subject: | proper usage of entities.h | ||
| Groups: | php.gd.devel | ||
| Request: | Send a blank email to php-gd-devel+get-96@lists.php.net to get a copy of this message | ||
the entities.h header seems kind of an odd duck for exportation to users of
GD ... if you have a project that includes it, then every object file will
get its own copy of the large structure which can cause some problems
since the contents of the entities array/structure shouldnt be assumed to be
static (eg you can assume index 0 is always AElig), is there a good reason
for exporting the definition ?
shouldnt the header simply read like:
..
extern struct entities_s {
char *name;
int value;
} entities;
..
-mike
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]