its not a fucking float its a string why am i so retarded?
This commit is contained in:
parent
49973b40e2
commit
6c71982b58
|
@ -61,9 +61,8 @@ void readargs(int argc, char *argv[]) {
|
||||||
|
|
||||||
// no arguments
|
// no arguments
|
||||||
for (i = 1; i < argc; i++)
|
for (i = 1; i < argc; i++)
|
||||||
if (!strcmp(argv[i], "-v") || (!strcmp(argv[i], "--version"))) { // prints version information
|
if (!strcmp(argv[i], "-v") || (!strcmp(argv[i], "--version"))) { // prints version information
|
||||||
//puts("spmenu-"VERSION);
|
puts("spmenu-"VERSION);
|
||||||
puts("spmenu-unknown");
|
|
||||||
exit(0);
|
exit(0);
|
||||||
} else if (!strcmp(argv[i], "-h") || (!strcmp(argv[i], "--help"))) { // help
|
} else if (!strcmp(argv[i], "-h") || (!strcmp(argv[i], "--help"))) { // help
|
||||||
usage();
|
usage();
|
||||||
|
|
|
@ -198,7 +198,7 @@ int parsemarkup(int index) {
|
||||||
|
|
||||||
// spmenu:version
|
// spmenu:version
|
||||||
if (!strncmp("version", items[index].ex, strlen("version"))) {
|
if (!strncmp("version", items[index].ex, strlen("version"))) {
|
||||||
fprintf(stdout, "spmenu version %f", VERSION);
|
fprintf(stdout, "spmenu version %s", VERSION);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
project(
|
project(
|
||||||
'spmenu',
|
'spmenu',
|
||||||
'c',
|
'c',
|
||||||
version : '1.1',
|
version : '"1.1"',
|
||||||
default_options : ['warning_level=3']
|
default_options : ['warning_level=3']
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue