To be sure . I'm looking to find the way to comment in 'src/map/script.c' . I think we can use block comment.
const char* skip_space(const char* p)
{
if( p == NULL )
return NULL;
for(;
{
while( ISSPACE(*p) )
++p;
if( *p == '/' && p[1] == '/' )
{// line comment
while(*p && *p!='n')
++p;
}
else if( *p == '/' && p[1] == '*' )
{// block comment
p += 2;
for(;
{
if( *p == '0' )
return p;//disp_error_message("script:skip_space: end of file while parsing block comment. expected "CL_BOLD"*/"CL_NORM, p);
if( *p == '*' && p[1] == '/' )
{// end of block comment
p += 2;
break;
}
++p;
}
}
else
break;
}
return p;
}