remort problems

Posted by Kik on Tue 14 Oct 2003 03:20 AM — 3 posts, 13,328 views.

#0
me again yall...ok heres the problem, i keep getting this annoying parse error..heres my buffer after make all

comm.c:2087: structure has no member named `remort_race'
comm.c:2461: parse error before `is_reserved_name'
comm.c:2465: `res' undeclared (first use in this function)
comm.c:2465: (Each undeclared identifier is reported only once
comm.c:2465: for each function it appears in.)
comm.c:2466: `name' undeclared (first use in this function)
comm.c:2468: warning: `return' with a value, in function returning void
comm.c:2469: warning: `return' with a value, in function returning void
comm.c: In function `check_parse_name':
comm.c:2487: warning: implicit declaration of function `is_reserved_name'
make[1]: *** [comm.o] Error 1

this is line 2460 to line 2490 of comm.c....


bool is_reserved_name( char *name )
{
RESERVE_DATA *res;

for (res = first_reserved; res; res = res->next)
if ((*res->name == '*' && !str_infix(res->name+1, name)) ||
!str_cmp(res->name, name))
return TRUE;
return FALSE;
}


/*
* Parse a name for acceptability.
*/
bool check_parse_name( char *name, bool newchar )
{

if ( is_reserved_name(name) && newchar )
return FALSE;
Amended on Tue 14 Oct 2003 03:26 AM by Kik
Canada #1
Ok, well whatever union you are calling on line 2087, apparently it does not have a field called "remort race". The parse error is likely unclosed nested braces from the function directly before is_reserve_name. That would be like most likely case if your starting a new function. Other possibilities are that you are missing a close bracket, or that you are missing a semicolon. The implicit declaration warning means that you need the prototype for is_reserved_name declared somewhere in the file. Hope that helps.
#2
man i cant find this error...i searched for everything you said it might be..but everytime i compile..1 parse error.. i will keep ya updated if i ever find it