Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ remort problems

remort problems

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Kik   (18 posts)  Bio
Date Tue 14 Oct 2003 03:20 AM (UTC)

Amended on Tue 14 Oct 2003 03:26 AM (UTC) by Kik

Message
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;
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #1 on Tue 14 Oct 2003 07:52 AM (UTC)
Message
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.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Kik   (18 posts)  Bio
Date Reply #2 on Tue 14 Oct 2003 09:14 PM (UTC)
Message
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
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,646 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.