Anope IRC Services  Version 1.8
Macros | Functions | Variables
version.sh.c File Reference
#include <stdio.h>
#include <string.h>
Include dependency graph for version.sh.c:

Go to the source code of this file.

Macros

#define CTRL   "version.log"
 

Functions

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

Variables

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

Macro Definition Documentation

#define CTRL   "version.log"

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

Referenced by main().

Function Documentation

long get_value ( char *  string)

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 *  string)

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

References strdup().

Referenced by get_value(), and load_ctrl().

void load_ctrl ( FILE *  fd)
int main ( )
void parse_line ( FILE *  fd,
char *  line 
)
void parse_version ( FILE *  fd)

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

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

Referenced by main().

char * strip ( char *  str)

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

References c.

Referenced by load_ctrl(), parse_version(), and write_version().

void write_version ( FILE *  fd)

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 fill_db_ptr(), get_file_version(), main(), and parse_line().

long version_build

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

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

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().