Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1:/tmp/cvs-serv13828/include

Modified Files:
        Moptions.h 
Log Message:
added support for using file config by default under Windows

Index: Moptions.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/Moptions.h,v
retrieving revision 1.80
retrieving revision 1.81
diff -b -u -2 -r1.80 -r1.81
--- Moptions.h  26 Sep 2003 09:33:43 -0000      1.80
+++ Moptions.h  27 Sep 2003 23:11:15 -0000      1.81
@@ -60,10 +60,15 @@
 extern const MOption MP_RUNONEONLY;
 
+#ifdef OS_WIN
+extern const MOption MP_USE_CONFIG_FILE;
+#endif // OS_WIN
+
 extern const MOption MP_TBARIMAGES;
 
+extern const MOption MP_USER_MDIR;
+
 #ifdef OS_UNIX
 extern const MOption MP_PATHLIST;
 extern const MOption MP_ROOTDIRNAME;
-extern const MOption MP_USER_MDIR;
 extern const MOption MP_AFMPATH;
 extern const MOption MP_ETCPATH;
@@ -501,4 +506,9 @@
 #define MP_RUNONEONLY_NAME "RunOneOnly"
 
+#ifdef OS_WIN
+/// use config file even under Windows?
+#define MP_USE_CONFIG_FILE_NAME "UseConfigFile"
+#endif // OS_WIN
+
 /// show images in the toolbar
 #define MP_TBARIMAGES_NAME "ShowTbarImages"
@@ -507,4 +517,7 @@
 #define MP_HELPDIR_NAME "HelpDir"
 
+/// the name of the M directory
+#   define   MP_USER_MDIR_NAME         "MDirName"
+
 // Unix-only entries
 #ifdef OS_UNIX
@@ -513,6 +526,4 @@
 /// the name of M's root directory
 #   define   MP_ROOTDIRNAME_NAME         "RootDirectoryName"
-/// the name of the M directory
-#   define   MP_USER_MDIR_NAME         "MDirName"
 /// the path where to find .afm files
 #   define   MP_AFMPATH_NAME         "AfmPath"
@@ -1329,7 +1340,19 @@
 #define MP_RUNONEONLY_DEFVAL 1l
 
+#ifdef OS_WIN
+/// use config file even under Windows?
+#define MP_USE_CONFIG_FILE_DEFVAL _T("")
+#endif // OS_WIN
+
 /// show images in the toolbar
 #define MP_TBARIMAGES_DEFVAL 0l // == TbarShow_Icons - 1
 
+#ifdef OS_UNIX
+/// the name of the M directory under users HOME
+#  define   MP_USER_MDIR_DEFVAL         _T(".M")
+#elif defined(OS_WIN)
+#  define   MP_USER_MDIR_DEFVAL         _T("Mahogany")
+#endif
+
 // Unix-only entries
 #ifdef OS_UNIX
@@ -1340,6 +1363,4 @@
 /// the name of M's root directory
 #  define   MP_ROOTDIRNAME_DEFVAL   _T("Mahogany")
-/// the name of the M directory
-#  define   MP_USER_MDIR_DEFVAL         _T(".M")
 /// the path where to find .afm files
 #  define   MP_AFMPATH_DEFVAL M_BASEDIR 
_T("/afm:/usr/share:/usr/lib:/usr/local/share:/usr/local/lib:/opt/ghostscript:/opt/enscript")



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to