summaryrefslogtreecommitdiff
path: root/include/Main.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Main.h')
-rw-r--r--include/Main.h120
1 files changed, 60 insertions, 60 deletions
diff --git a/include/Main.h b/include/Main.h
index ee0e157..f0db8ca 100644
--- a/include/Main.h
+++ b/include/Main.h
@@ -1,60 +1,60 @@
-/*
- * Baltisot
- * Copyright (C) 1999-2003 Nicolas "Pixel" Noble
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-/* $Id: Main.h,v 1.14 2004-07-17 14:48:51 pixel Exp $ */
-
-#ifndef __MAIN_H__
-#define __MAIN_H__
-
-#include <Exceptions.h>
-#include <gettext.h>
-
-extern char ** environ;
-
-class Main : public Base {
- public:
- Main();
- virtual ~Main();
- virtual int startup() throw (GeneralException) = 0;
- static int truemain(Main *, int, char **, char **);
- protected:
- int argc;
- char ** argv;
- char ** enve;
- bool setted;
- private:
- void set_args(int, char **, char **);
-
-};
-
-#define CODE_BEGINS \
-class Appli; \
-Appli * Application; \
-class Appli : public Main {
-#define CODE_ENDS }; \
-int main(int argc, char ** argv) { \
- int r; \
- setlocale(LC_ALL, ""); \
- Application = new Appli(); \
- r = Main::truemain(Application, argc, argv, environ); \
- delete Application; \
- return r; \
- }
-
-#endif
+/*
+ * Baltisot
+ * Copyright (C) 1999-2003 Nicolas "Pixel" Noble
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+/* $Id: Main.h,v 1.15 2004-11-27 21:43:48 pixel Exp $ */
+
+#ifndef __MAIN_H__
+#define __MAIN_H__
+
+#include <Exceptions.h>
+#include <gettext.h>
+
+extern char ** environ;
+
+class Main : public Base {
+ public:
+ Main();
+ virtual ~Main();
+ virtual int startup() throw (GeneralException) = 0;
+ static int truemain(Main *, int, char **, char **);
+ protected:
+ int argc;
+ char ** argv;
+ char ** enve;
+ bool setted;
+ private:
+ void set_args(int, char **, char **);
+
+};
+
+#define CODE_BEGINS \
+class Appli; \
+Appli * Application; \
+class Appli : public Main {
+#define CODE_ENDS }; \
+int main(int argc, char ** argv) { \
+ int r; \
+ setlocale(LC_ALL, ""); \
+ Application = new Appli(); \
+ r = Main::truemain(Application, argc, argv, environ); \
+ delete Application; \
+ return r; \
+ }
+
+#endif