It's probably needless to say, but I'm completely new to coding. I'm trying to add a few snippets to the SmaugFUSS 1.9 codebase, such as Samson's delete code and running into some problems. In tables.c, I'm not quite sure where to add the statements. In previous searches I've seen instructions for adding it in the case by lines such as:
if ( !str_cmp( name, "do_cast" )) return do_cast;
but I'm not seeing anything like that in my tables.c. I tried adding:
KEY( "Delete", skill->delete, fread_string_nohash( fp ) );
but get the compile error:
tables.c:1125:6: error: expected unqualified-id before ‘delete’
tables.c:1125:6: error: expected ‘)’ before ‘delete’
Thanks in advance for any advice.
if ( !str_cmp( name, "do_cast" )) return do_cast;
but I'm not seeing anything like that in my tables.c. I tried adding:
KEY( "Delete", skill->delete, fread_string_nohash( fp ) );
but get the compile error:
tables.c:1125:6: error: expected unqualified-id before ‘delete’
tables.c:1125:6: error: expected ‘)’ before ‘delete’
Thanks in advance for any advice.