Re: strange problem (bug?) with set_inline_types

From: <>
Date: Tue, 23 Nov 1999 18:43:09 +0100 (MET)
Message-Id: <>

In our previous episode, Kent Landfield said:

Ah, I didn't know if it was a bug or a design choice :)

> Warning ... brainstorming...
> We could add a boolean variable to struct Config in setup.h that would be
> (currently) used only for list variables. It would be set in PreConfig()
> for each of the lists. When the ConfigAddItem() encounters a list it could
> then check the boolean flag to see if this is the first time a list element
> has been added since the builtin initialization. If so then we would free
> any existing memory, re-initialize the list with the new information and
> set the boolean flag variable to false. Subsequent calls to ConfigAddItem()
> would find the flag off and add the new element to the list as is done now.
> Does this sound reasonable ?

Sounds OK to me. The change should go somewhere in ConfigAddItem. I wonder if you could use the cfg[i].changed flag to do what you're proposing?

-Jose Received on Tue 23 Nov 1999 07:44:24 PM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:11 AM GMT GMT