projects
/
platform
/
upstream
/
kbd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add functions to check diacr/func existance
[platform/upstream/kbd.git]
/
src
/
version.h
1
#include "kbd.h"
2
#include "nls.h"
3
#include "../config.h"
4
#include <stdio.h>
5
#include <string.h>
6
#include <stdlib.h>
7
8
char *progname;
9
10
static inline void
11
set_progname(char *name) {
12
char *p;
13
14
p = strrchr(name, '/');
15
progname = (p ? p+1 : name);
16
}
17
18
static inline void __attribute__ ((noreturn))
19
print_version_and_exit(void) {
20
printf(_("%s from %s\n"), progname, PACKAGE_STRING);
21
exit(0);
22
}