mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-05 15:31:16 +00:00
trim off the trailing _ from method def names
This commit is contained in:
parent
2a73235d35
commit
3a99ab8cea
1 changed files with 2 additions and 1 deletions
|
@ -103,10 +103,11 @@ method_def (class_t *class, method_t *method)
|
||||||
class->class_name,
|
class->class_name,
|
||||||
class->category_name ? class->category_name : "",
|
class->category_name ? class->category_name : "",
|
||||||
method->name);
|
method->name);
|
||||||
|
str->str[--str->size - 1] = 0;
|
||||||
for (s = str->str; *s; s++)
|
for (s = str->str; *s; s++)
|
||||||
if (*s == ':')
|
if (*s == ':')
|
||||||
*s = '_';
|
*s = '_';
|
||||||
//printf ("%s %s %s\n", method->name, method->types, str->str);
|
//printf ("%s %s %s %ld\n", method->name, method->types, str->str, str->size);
|
||||||
// FIXME need a file scope
|
// FIXME need a file scope
|
||||||
def = PR_GetDef (method->type, str->str, 0, &numpr_globals);
|
def = PR_GetDef (method->type, str->str, 0, &numpr_globals);
|
||||||
dstring_delete (str);
|
dstring_delete (str);
|
||||||
|
|
Loading…
Reference in a new issue