[Frugalware-darcs] setup: moved init_dialog() and end_dialog() to the framwork

VMiklos vmiklos at frugalware.org
Thu Mar 30 00:48:22 CEST 2006


[moved init_dialog() and end_dialog() to the framwork
VMiklos <vmiklos at frugalware.org>**20051104004424] {
hunk ./src/Makefile 5
+LDFLAGS += -ldialog -lcurses -lm -rdynamic
hunk ./src/plugins/asklang.c 45
-	FILE *input = stdin;
-	dialog_state.output = stderr;
-	char my_buffer[MAX_LEN + 1] = "";
-
-	init_dialog(input, dialog_state.output);
-
-	dialog_vars.input_result = my_buffer;
hunk ./src/plugins/asklang.c 47
+	dlg_clear();
hunk ./src/plugins/asklang.c 52
-
-	end_dialog();
hunk ./src/plugins/greet.c 23
-	FILE *input = stdin;
-	dialog_state.output = stderr;
hunk ./src/plugins/greet.c 28
-	init_dialog(input, dialog_state.output);
-
hunk ./src/plugins/greet.c 30
+	dlg_clear();
hunk ./src/plugins/greet.c 38
-	end_dialog();
hunk ./src/setup.c 7
+#if 1
+#include <dialog.h>
+#endif
hunk ./src/setup.c 81
+#if 1
+	FILE *input = stdin;
+	dialog_state.output = stderr;
+	char my_buffer[MAX_LEN + 1] = "";
+#endif
hunk ./src/setup.c 88
+
+#if 1
+	init_dialog(input, dialog_state.output);
+	dialog_vars.input_result = my_buffer;
+#endif
+
hunk ./src/setup.c 99
+
+#if 1
+	end_dialog();
+#endif
+
}


More information about the Frugalware-darcs mailing list