> enum {
> ERR_MALLOC_FAILED=0,
> ERR_NOT_ENOUGH_MEM_IN_CTX,
> ...
> }
>
> const char* code_map[] = {
> [ERR_MALLOC_FAILED] = "Malloc Failed",
> [ERR_NOT_ENOUGH_MEM_IN_CTX] = "Not enough context memory"
> ...
> }
>
> (I don't know if gcc would actually allow assigning table entries out
> of their numerical order, but the above at least seems to work)
Hadn't started working on it yet, but that is more readable -- I'll try it.
Thanks,
Kent
> -Klaus
>
>
>
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech