its not a fucking float its a string why am i so retarded?

This commit is contained in:
speedie 2023-05-07 22:55:09 +02:00
parent 49973b40e2
commit 6c71982b58
3 changed files with 4 additions and 5 deletions

View file

@ -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();

View file

@ -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);
} }

View file

@ -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']
) )