On Mon, Feb 18, 2002 at 11:36:19AM +0000, Bobby Solis wrote: >The below is taken out of act.comm.c where 2 errors and 2 warnings were >found: > > act("You can't write on $p.", FALSE, ch, paper, 0, TO_CHAR); >E1 char *backstr = NULL; > > if (paper->action_description) { >E2&W1 backstr = str_dup(paper->action_description); > send_to_char("There's something written on it already:\r\n", ch); > send_editor_help(ch->desc); >W2 string_write(ch->desc, &paper->action_description, MAX_NOTE_LENGTH, 0, >backstr); > >Error 1 (E1): syntax error : missing ';' before 'type' It doesn't like you putting the definition there. Move to top of the function with the rest of the declararations. >Error 2 (E2): 'backstr' : undeclared identifier Because of E1. >Warning 1 (W1): '=' : 'int ' differs in levels of indirection from 'char *' Because of E1. >Warning 2 (W2): 'string_write' : pointer mismatch for actual parameter 5 Because of E1. >After all this I'm pondering if OLC is worth it? Yup. -- Under the DMCA, I'm allowed to use my computer and the internet to design, discuss, and improve a thermonuclear weapon, but I can't use it to watch a DVD while running Linux. -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT