// other standard headers
#include <ctype.h>
+#ifdef __VMS
+/* silence warnings for comparing unsigned int's <0 */
+# pragma message disable unscomzer
+#endif
+
// this is a class to extend wxArrayString...
class wxMimeArrayString : public wxArrayString
{
// a) for "brief" format:
// <mime type> <space separated list of extensions>
// b) for "expanded" format:
-// type=<mime type> \
-// desc="<description>" \
+// type=<mime type> \
+// desc="<description>" \
// exts="<comma separated list of extensions>"
//
// We try to autodetect the format of mime.types: if a non-comment line starts
const wxString& sExtraDir)
{
// read mimecap amd mime.types
- if ( (mailcapStyles & wxMAILCAP_NETSCAPE) || (mailcapStyles & wxMAILCAP_BASE) )
+ if ( (mailcapStyles & wxMAILCAP_NETSCAPE) ||
+ (mailcapStyles & wxMAILCAP_STANDARD) )
GetMimeInfo(sExtraDir);
// read GNOME tables
bool wxMimeTypesManagerImpl::WriteToMimeTypes (int index, bool delete_index)
{
// check we have the right manager
- if (! ( m_mailcapStylesInited & wxMAILCAP_BASE) )
+ if (! ( m_mailcapStylesInited & wxMAILCAP_STANDARD) )
return FALSE;
bool bTemp;
{
//check we have the right managers
if ( !( ( m_mailcapStylesInited & wxMAILCAP_NETSCAPE) ||
- ( m_mailcapStylesInited & wxMAILCAP_BASE) ) )
+ ( m_mailcapStylesInited & wxMAILCAP_STANDARD) ) )
return FALSE;
bool bTemp;
sTmp = sTmp + wxT(";") + sCmd ; //includes wxT(" %s ");
// write it in the format that Netscape uses (default)
- if (! ( m_mailcapStylesInited & wxMAILCAP_BASE ) )
+ if (! ( m_mailcapStylesInited & wxMAILCAP_STANDARD ) )
{
if (! delete_index) file.InsertLine (sTmp, nIndex);
nIndex ++;
{
bool ok = TRUE;
- if ( m_mailcapStylesInited & wxMAILCAP_BASE )
+ if ( m_mailcapStylesInited & wxMAILCAP_STANDARD )
{
// write in metamail format;
if (WriteToMimeTypes (nIndex, delete_mime) )