src/version.c File Reference

#include "copyright.h"
#include "config.h"
#include "db.h"
#include "mudconf.h"
#include "alloc.h"
#include "externs.h"
#include "patchlevel.h"

Include dependency graph for version.c:

Go to the source code of this file.

Functions

void do_version (dbref player, dbref cause, int extra)
void init_version (void)

Variables

char * mux_version


Function Documentation

void do_version ( dbref  player,
dbref  cause,
int  extra 
)

Definition at line 52 of file version.c.

References mudstate, notify, and statedata::version.

00053 {
00054         notify(player, mudstate.version);
00055 }

void init_version ( void   ) 

Definition at line 82 of file version.c.

References ENDLOG, LOG_ALWAYS, log_text(), mudstate, mux_version, STARTLOG, strlcpy(), and statedata::version.

Referenced by main().

00083 {
00084     strlcpy(mudstate.version, mux_version, sizeof(mudstate.version));
00085 
00086         STARTLOG(LOG_ALWAYS, "INI", "START") {
00087                 log_text((char *) "Starting: ");
00088                 log_text(mudstate.version);
00089                 ENDLOG;
00090         } STARTLOG(LOG_ALWAYS, "INI", "START") {
00091                 log_text((char *) "Build date: ");
00092 
00093                 log_text((char *) MUX_BUILD_DATE);
00094                 ENDLOG;
00095         }
00096 }


Variable Documentation

char* mux_version

Initial value:

 PACKAGE_STRING "." MINOR_REVNUM




    "+HAG"










    " RELEASE svn revision " SVN_REVISION

    " '" RELEASE_NAME "' build #" MUX_BUILD_NUM " on " MUX_BUILD_DATE

Definition at line 57 of file version.c.

Referenced by init_version().


Generated on Mon May 28 04:25:48 2007 for BattletechMUX by  doxygen 1.4.7