Re: [CODE]help editor

From: Tony Robbins (robbinwa@mailbox.orst.edu)
Date: 04/17/01


> hedit.c: In function `hedit_setup_new':
> hedit.c:63: structure has no member named `help'
> hedit.c:65: structure has no member named `help'
> hedit.c:66: structure has no member named `help'
>
> but then, examining the function:
>
> void hedit_setup_new(struct descriptor_data *d, char *new_key)
> {
>   CREATE(OLC_HELP(d), struct help_index_element, 1);
>
>   OLC_HELP(d)->keywords = str_dup(new_key);
>   OLC_HELP(d)->entry = str_dup("This is an unfinished help entry.\r\n");
>   hedit_disp_menu(d);
>   OLC_VAL(d) = 0;
> }
>
> and the struct help_index_element:
>
> struct help_index_element {
>    char *keywords;
>    char *entry;
>    int min_level;
> };
[snip]

What is the macro OLC_HELP(d) defined as?  I'm guessing it's something like:
#define OLC_HELP(d)     (d)->olc->help

And if you look at your olc struct (heh, Oasis 2.0 does this in a funny way.
You probably need to look at oasis_olc_data, if I remember correctly),
you'll probably see that there's no:
  struct help_index_element *help;
in there.  Of course, just adding that can pose problems, but you may have
already preemptively fixed them.

We'll probably see.

-k.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST