Re: [newbie] [dg scripts] foolish errors and some notes

From: George Greer (greerga@circlemud.org)
Date: 06/26/02


On Wed, 26 Jun 2002, Mathew Earle Reuther wrote:

>George removed get_obj from the most recent CVS, and DG actually uses it.
>I tossed the prototype back in handler.h as a kludge.  Relevant DG code
>follows if anyone feels like taking a stab at why it calls it:

get_obj() hasn't existed since CircleMUD 2.x. I simply removed the
prototype for a non-existant function.

>*shrug* I cannot follow what it's attempting here at all.  (And yes, there
>is plenty of code I can follow!  I know it doesn't SEEM like it!)  Anyone
>with an idea of why it would be using a non-existant function, please let
>me in on the secret?

It provides its own version.  See dg_scripts.c.

>Now, for my big "showstopper" right now.  Posting this before bed,
>hopefully when I wake up someone will have made some sense to me.
>
>dg_db_scripts.c: In function `parse_trigger':
>dg_db_scripts.c:55: `buf2' undeclared (first use in this function)

No more buf, buf1, buf2, or arg global variables.  Add a 'char
buf2[MAX_STRING_LENGTH]' to fudge it, or use a different available buffer.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | 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