/* * reftypes.c * * Copyright (c) Chris Putnam 2003-2009 * * Program and source code released under the GPL * */ #include #include #include "is_ws.h" #include "fields.h" #include "reftypes.h" int get_reftype( char *p, long refnum, char *progname, variants *all, int nall, char *tag ) { int i; p = skip_ws( p ); for ( i=0; intags; ++i ) /* if ( !strcasecmp( ((all[reftype]).tags[i]).oldstr, oldtag ) )*/ if ( !strcasecmp( (v->tags[i]).oldstr, oldtag ) ) return i; return -1; }