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
|
||||
for (i = 1; i < argc; i++)
|
||||
if (!strcmp(argv[i], "-v") || (!strcmp(argv[i], "--version"))) { // prints version information
|
||||
//puts("spmenu-"VERSION);
|
||||
puts("spmenu-unknown");
|
||||
if (!strcmp(argv[i], "-v") || (!strcmp(argv[i], "--version"))) { // prints version information
|
||||
puts("spmenu-"VERSION);
|
||||
exit(0);
|
||||
} else if (!strcmp(argv[i], "-h") || (!strcmp(argv[i], "--help"))) { // help
|
||||
usage();
|
||||
|
|
|
@ -198,7 +198,7 @@ int parsemarkup(int index) {
|
|||
|
||||
// spmenu:version
|
||||
if (!strncmp("version", items[index].ex, strlen("version"))) {
|
||||
fprintf(stdout, "spmenu version %f", VERSION);
|
||||
fprintf(stdout, "spmenu version %s", VERSION);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
project(
|
||||
'spmenu',
|
||||
'c',
|
||||
version : '1.1',
|
||||
version : '"1.1"',
|
||||
default_options : ['warning_level=3']
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue