version.sh.c File Reference

#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Defines

#define CTRL   "version.log"

Functions

long get_value (char *)
char * get_value_str (char *)
void load_ctrl (FILE *)
int main ()
void parse_line (FILE *, char *)
void parse_version (FILE *)
char * strip (char *)
void write_version (FILE *)

Variables

long build
char version [1024]
long version_build
char version_dotted [1024]
char * version_extra = NULL
long version_major
long version_minor
long version_patch


Define Documentation

#define CTRL   "version.log"

Definition at line 20 of file version.sh.c.

Referenced by main().


Function Documentation

long get_value ( char *   ) 

Definition at line 107 of file version.sh.c.

References get_value_str().

Referenced by load_ctrl(), and parse_version().

char * get_value_str ( char *   ) 

Definition at line 112 of file version.sh.c.

References strdup().

Referenced by get_value(), and load_ctrl().

void load_ctrl ( FILE *   ) 

Definition at line 72 of file version.sh.c.

References get_value(), get_value_str(), strip(), version_build, version_extra, version_major, version_minor, and version_patch.

Referenced by main().

int main (  ) 

Definition at line 36 of file version.sh.c.

References build, CTRL, load_ctrl(), parse_version(), version, version_build, version_dotted, version_extra, version_major, version_minor, version_patch, and write_version().

void parse_line ( FILE *  ,
char *   
)

Definition at line 179 of file version.sh.c.

References build, version, version_build, version_dotted, version_extra, version_major, version_minor, and version_patch.

Referenced by write_version().

void parse_version ( FILE *   ) 

Definition at line 128 of file version.sh.c.

References build, get_value(), and strip().

Referenced by main().

char * strip ( char *   ) 

Definition at line 97 of file version.sh.c.

Referenced by lftocrlf(), load_ctrl(), main(), mysql_LoadFromFile(), parse_version(), smtp_parse_header(), and write_version().

void write_version ( FILE *   ) 

Definition at line 158 of file version.sh.c.

References parse_line(), and strip().

Referenced by main().


Variable Documentation

long build

Definition at line 22 of file version.sh.c.

Referenced by main(), parse_line(), and parse_version().

char version[1024]

Definition at line 24 of file version.sh.c.

Referenced by get_file_version(), loadModule(), main(), and parse_line().

long version_build

Definition at line 22 of file version.sh.c.

char version_dotted[1024]

Definition at line 25 of file version.sh.c.

Referenced by main(), and parse_line().

char* version_extra = NULL

Definition at line 23 of file version.sh.c.

Referenced by load_ctrl(), main(), and parse_line().

long version_major

Definition at line 22 of file version.sh.c.

Referenced by load_ctrl(), main(), and parse_line().

long version_minor

Definition at line 22 of file version.sh.c.

Referenced by load_ctrl(), main(), and parse_line().

long version_patch

Definition at line 22 of file version.sh.c.

Referenced by load_ctrl(), main(), and parse_line().


Generated on Sun Dec 30 09:26:55 2007 for Anope by  doxygen 1.5.1-20070107