proper usage of entities.h

[email protected] (Mike Frysinger)
Newsgroups php.gd.devel
Organization wh0rd.org
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 827 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.2 (GNU/Linux)

iQIVAwUARdB+DEFjO5/oN/WBAQLbBRAAs+xpjFvFIAHQ2V9n9EnBvfu0L0roeiUi
PT6MChszx7wL+Y5eSx+cV93Nev+vpHAgeghTMynr9F2upeIAumNoUPSEi3zSZCuA
VVdno3VmTphtOHlc6ZNMcSStQ2HQooGwPW3FopxG+XI6bIG/uKwqEuGBXeNhYbpy
9Hx0wXQkLeb4ZDHx7+Ss66nZpMeCjgWpYUv5eA1D/C7kgVsLpXJMr1UK1tZnfAWs
N0JjIGNuJ7MF0SzSZweSYLe9gFgHnP8NmCkGj/AAYbFQviNEj6kkDcr9uG5BWc+N
sYdXI194rIluSNVSfYORt02LYqkGkeK9buiW1a+muPfNENat9p90F3w9TMczZqho
F3+11mjw0HfhEX++Wjt+mDJJWt5KKueWYx6os4SLGcPkeojQsw1HcFZRzxgPnrnM
gNyUUKnstcqVaiN8sxPX945LtxyqDmbASIfl68LyFXJCAgBpwj5JsZufch1oflDp
2dPQgglfqnNc5UyVgN5JcZuFkgCiPRLzN/GDltd1XfjuYaCFQkr1FqHQXobL/Ek2
8PNJld2CkeM7Q6o0IYadCLOxbSD8G4ISTlHUHNZhfZCwXtVVlx2DPjnoJn6ya8EM
ltNZHXE4KCSsNPqxfiLkJOMTswDplfxZvXjO9u2MRaGqNvHWhduRnGG9Ju8ZQ2ug
wTqbYclrxUo=
=O5j9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.