-static OidMacro *om_list = NULL;
-
-/* Replace an OID Macro invocation with its full numeric OID.
- * If the macro is used with "macroname:suffix" append ".suffix"
- * to the expansion.
- */
-static char *
-find_oidm(char *oid)
-{
- OidMacro *om;
-
- /* OID macros must start alpha */
- if ( OID_LEADCHAR( *oid ) ) {
- return oid;
- }
-
- for (om = om_list; om; om=om->som_next) {
- char **names = om->som_names;
-
- if( names == NULL ) {
- continue;
- }
-
- for( ; *names != NULL ; names++ ) {
- int pos = dscompare(*names, oid, ':');
-
- if( pos ) {
- int suflen = strlen(oid + pos);
- char *tmp = ch_malloc( om->som_oid.bv_len
- + suflen + 1);
- strcpy(tmp, om->som_oid.bv_val);
- if( suflen ) {
- suflen = om->som_oid.bv_len;
- tmp[suflen++] = '.';
- strcpy(tmp+suflen, oid+pos+1);
- }
- return tmp;
- }
- }
- }
- return NULL;
-}
-
-void
-oidm_destroy()