Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#9394) secfile_insert_str_vec()
Home

[Freeciv-Dev] (PR#9394) secfile_insert_str_vec()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9394) secfile_insert_str_vec()
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Thu, 15 Jul 2004 00:23:50 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9394 >

> And there is no secfile_insert_str_vec() function!. That's why
> all_improvements need to be one string("Airport|Aqueduct|Bank..")
Does anybody know the registry.c code well enough to write it or help  
me?
It looks very complicated and registry.c code is ugly.
section_file_save() knows nothing about vectors, so this task isn't as  
easy as writing wrapper which does something like this:
for (i = 0; i < nelems; i++) {
 pentry = secfile_insert_internal("%s,%d", path, i);
 pentry->svalue = vec[i];
}

--
mateusz




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9394) secfile_insert_str_vec(), Mateusz Stefek <=