#define YY_NO_UNPUT
-int yyparse();
+int yyparse(void);
int yyerror(const char *);
-int yylex();
+int yylex(void);
static time_t conf_find_time(char*);
break;
case CF_STRING:
case CF_QSTRING:
- DupString(new->v.string, str);
+ new->v.string = rb_strdup(str);
break;
}
{
$$ = rb_malloc(sizeof(conf_parm_t));
$$->type = CF_QSTRING;
- DupString($$->v.string, $1);
+ $$->v.string = rb_strdup($1);
}
| timespec
{
else
{
$$->type = CF_STRING;
- DupString($$->v.string, $1);
+ $$->v.string = rb_strdup($1);
}
}
;
#ifndef STATIC_MODULES
char *m_bn;
- m_bn = irc_basename((char *) $2);
+ m_bn = rb_basename((char *) $2);
if (findmodule_byname(m_bn) == -1)
load_one_module($2, 0);