add: if (scope_type == SN_GLOBAL_NAMESPACE) { assert(funcname == NULL); funcname = "GLOBAL"; scope_type = SN_FUNC_DEF; }
context: int sn_insert_xref(int type, int scope_type, int scope_level,                   char *classname, char *funcname, char *argtypes,                    char *refclass, char *refsymbol, char *ref_arg_types,                   char *filename, int lineno, int acc){  if (sn_cross_referencing())  {    return put_cross_ref(type, scope_type, scope_level, classname, funcname,                          argtypes, refclass, refsymbol, ref_arg_types,                          filename, lineno, acc);  }  return(0);}