projects
/
platform
/
upstream
/
kbd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.0.4
[platform/upstream/kbd.git]
/
src
/
version.h
1
#include "config.h"
2
#include "kbd.h"
3
#include "nls.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
{
13
char *p;
14
15
p = strrchr(name, '/');
16
progname = (p ? p + 1 : name);
17
}
18
19
static inline void __attribute__((noreturn))
20
print_version_and_exit(void)
21
{
22
printf(_("%s from %s\n"), progname, PACKAGE_STRING);
23
exit(0);
24
}