[CF-Devel] Little confused on arch.c:first_arch_pass()

Bob Tanner tanner at real-time.com
Thu Feb 22 02:00:15 CST 2001


First, I'd like to make a suggestion. If a function has the side effect of
loading/altering/etc a static data struct it should be documented in that
function somewhere.

I believe a case in point is arch.c:first_arch_pass(). The comments says:

/*
 * Reads/parses the archetype-file, and copies into a linked list
 * of archetype-structures.
 */

Yet the prototype is void, so it looks like it must load the archtype linked
list into a static variable somewhere.

Once first_arch_pass() is called, what is the name of the linked list it
creates?

-- 
Bob Tanner <
     
     tanner at real-time.com
     
     >       | Phone : (952)943-8700
     
     http://www.mn-linux.org
     
                      | Fax   : (952)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9 


    
    


More information about the crossfire mailing list