Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2000:
[Freeciv-Dev] Re: split server into library and main
Home

[Freeciv-Dev] Re: split server into library and main

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: split server into library and main
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Fri, 11 Aug 2000 12:56:07 +1000 (EST)

Jeff Mallatt wrote:

> This patch splits the server code into two parts: most goes into a library
> (called libcivserver.a) and just the main() is left in civserver.c.
> 
> This will allow people who want to write utilities that need access to
> server-side routines (like save-file saving and loading) to simply link
> against the library.  Just need to call srv_init() before using any server
> routines.

Looks good, but is there a reason for moving most of civserver.c
to a new module (srv_main.c) instead of leaving most in civserver.c
and just moving main() to the new module?

(I like 'struct server_arguments'!)

-- David



[Prev in Thread] Current Thread [Next in Thread]