Eric Green's Ident patch

From: Damian Jurzysta (interact@hem.passagen.se)
Date: 11/21/99


after the usual trouble patching something intended for an older bpl, I did my
best trying to patch the ident patch by Eric Green into bpl 16. I get most of
the things sorted out except for this in comm.c:

***************
*** 593,603 ****
        close_socket(d);
      }

      /* Process commands we just read from process_input */
      for (d = descriptor_list; d; d = next_d) {
        next_d = d->next;

-       if ((--(d->wait) <= 0) && get_from_q(&d->input, comm, &aliased)) {
      if (d->character) {
        /* Reset the idle timer & pull char back from void if necessary */
        d->character->char_specials.timer = 0;
--- 594,613 ----
        close_socket(d);
      }

+     /* process descriptors with ident pending */
+     for (d = descriptor_list; d; d = next_d) {
+       next_d = d->next;
+
+       if (waiting_for_ident(d))
+     ident_check(d, pulse);
+     }
+
      /* Process commands we just read from process_input */
      for (d = descriptor_list; d; d = next_d) {
        next_d = d->next;

+       if (!waiting_for_ident(d) && (--(d->wait) <= 0) &&
+       get_from_q(&d->input, comm, &aliased)) {
      if (d->character) {
        /* Reset the idle timer & pull char back from void if necessary */
        d->character->char_specials.timer = 0;
***************

just trying to remove:

      if (!get_from_q(&d->input, comm, &aliased))
        continue;

from bpl16 and replacing it with:

      if (!waiting_for_ident(d) && (--(d->wait) <= 0) &&
      get_from_q(&d->input, comm, &aliased)) {

gets me these errors:

comm.c: In function `game_loop':
comm.c:700: structure has no member named `wait'
comm.c:793: parse error before `void'
comm.c:819: `mins_since_crashsave' undeclared (first use in this function)
comm.c:819: (Each undeclared identifier is reported only once
comm.c:819: for each function it appears in.)


and, I get these errors when trying to compile ident.c:


ident.c: In function `ident_check':
ident.c:212: duplicate case value
ident.c:185: this is the first entry for that value
ident.c: In function `waiting_for_ident':
ident.c:315: duplicate case value
ident.c:314: this is the first entry for that value


how do I do to get this working?
--
/Damian/


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST