initial commit
This commit is contained in:
3
src/version/version.c.in
Normal file
3
src/version/version.c.in
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
const char* git_sha1 = "@@GIT_SHA1@@";
|
||||
|
4
src/version/version.h
Normal file
4
src/version/version.h
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
|
||||
extern const char *git_sha1;
|
||||
|
8
src/version/version_tools.c
Normal file
8
src/version/version_tools.c
Normal file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include "version.h"
|
||||
|
||||
|
||||
void print_version(void)
|
||||
{
|
||||
printf("version: %s\n", git_sha1);
|
||||
}
|
3
src/version/version_tools.h
Normal file
3
src/version/version_tools.h
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
void print_version(void);
|
||||
|
Reference in New Issue
Block a user