On Thu, Nov 01, 2001 at 02:18:17PM +0000, Tom Hughes wrote:
> > Could you try rewriting them using an enum, like the vtable stuff and
> > the original string encoding stuff does?
> 
> Allocating them globally is not possible if we're going allow people
> to add arbitrary encodings and character sets - as things stand adding
> the foo encoding will be as simple as adding foo.so to the encodings
> directory.

As things stand, that won't work, because you're doing a string lookup in one
of the core functions, and you still need some way of registering incoming
stuff. With an enum, you can keep hold of a fake encoding_max, and hand
encoding_max++ to the initialisation function for each encoding.

-- 
                Relf Test Passed.

Reply via email to