Actually, there is a third option available.
If you are on at least a 32 bit system (which I figure almost everyone
is), you can use the tag as a four-letter representation of an int value,
which you could use to assemble a hash table. Access it in binary search
like the OEDIT/etc modified real_object/real_room/real_mobile functions
search through the indexes.
Or, simpler yet:
switch (*((int *)tag_ptr))
case 'Atag':
case 'Btag':
case 'Ctag':
case 'C2tg':
etc...
default:
- Chris Jacobson
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST