mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Remove dependency to CPP: removed stuff related to CPP calls
Now that the built-in parser has support for all the feature of CPP being used by WindowMaker's default menu, we can remove the stuff related to calling CPP: - code for preparing and running CPP; - compile-time option to de-activate the call to CPP; - command-line option
This commit is contained in:
committed by
Carlos R. Mafra
parent
4658f4f9a1
commit
139f912e61
10
src/main.c
10
src/main.c
@@ -491,9 +491,6 @@ static void print_help(void)
|
||||
puts(_("The Window Maker window manager for the X window system"));
|
||||
puts("");
|
||||
puts(_(" -display host:dpy display to use"));
|
||||
#ifdef USECPP
|
||||
puts(_(" --no-cpp disable preprocessing of configuration files"));
|
||||
#endif
|
||||
puts(_(" --no-dock do not open the application Dock"));
|
||||
puts(_(" --no-clip do not open the workspace Clip"));
|
||||
puts(_(" --no-autolaunch do not autolaunch applications"));
|
||||
@@ -679,12 +676,9 @@ static int real_main(int argc, char **argv)
|
||||
|
||||
if (argc > 1) {
|
||||
for (i = 1; i < argc; i++) {
|
||||
#ifdef USECPP
|
||||
if (strcmp(argv[i], "-nocpp") == 0 || strcmp(argv[i], "--no-cpp") == 0) {
|
||||
wPreferences.flags.nocpp = 1;
|
||||
} else
|
||||
#endif
|
||||
if (strcmp(argv[i], "--for-real") == 0) {
|
||||
wwarning(_("option \"%s\" is deprecated, please remove it from your script"), argv[i]);
|
||||
} else if (strcmp(argv[i], "--for-real") == 0) {
|
||||
wPreferences.flags.restarting = 0;
|
||||
} else if (strcmp(argv[i], "--for-real=") == 0) {
|
||||
wPreferences.flags.restarting = 1;
|
||||
|
||||
Reference in New Issue
Block a user