mirror of
https://git.wuffs.org/MWCC
synced 2025-12-12 14:46:09 +00:00
more cleanup
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1 +1,50 @@
|
||||
/*
|
||||
/*
|
||||
* CWPluginErrors.h - CW_Result constants for plugin errors
|
||||
*
|
||||
* Copyright <20> 1995-1997 Metrowerks, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __CWPluginErrors_H__
|
||||
#define __CWPluginErrors_H__
|
||||
|
||||
#ifdef __MWERKS__
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
enum
|
||||
{
|
||||
// common errors for all plugins
|
||||
|
||||
cwNoErr, /* successful return */
|
||||
cwErrUserCanceled, /* operation canceled by user */
|
||||
cwErrRequestFailed, /* generic failure when plugin fails */
|
||||
cwErrInvalidParameter, /* one or more callback parameters invalid */
|
||||
cwErrInvalidCallback, /* invalid given current request and plugin type*/
|
||||
cwErrInvalidMPCallback, /* this request is not support from MP threads */
|
||||
cwErrOSError, /* OS-specific, call CWGetCallbackOSError() */
|
||||
cwErrOutOfMemory, /* not enough memory */
|
||||
cwErrFileNotFound, /* file not found on disk */
|
||||
cwErrUnknownFile, /* bad file number, doesn't exist */
|
||||
cwErrSilent, /* request failed but plugin didn't report any */
|
||||
/* errors and doesn't want IDE to report that */
|
||||
/* an unknown error occurred */
|
||||
cwErrCantSetAttribute, /* plugin requested inapplicable file flags in */
|
||||
/* CWAddProjectEntry */
|
||||
cwErrStringBufferOverflow, /* an output string buffer was too small */
|
||||
cwErrDirectoryNotFound, /* unable to find a directory being sought */
|
||||
cwErrLastCommonError = 512,
|
||||
|
||||
// compiler/linker errors
|
||||
|
||||
cwErrUnknownSegment, /* bad segment number, doesn't exist */
|
||||
cwErrSBMNotFound, /* */
|
||||
cwErrObjectFileNotStored, /* No external object file has been stored */
|
||||
cwErrLicenseCheckFailed,/* license check failed, error reported by IDE */
|
||||
cwErrFileSpecNotSpecified, /* a file spec was unspecified */
|
||||
cwErrFileSpecInvalid, /* a file spec was invalid */
|
||||
cwErrLastCompilerLinkerError = 1024
|
||||
|
||||
};
|
||||
|
||||
#endif // __CWPluginErrors_H__
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
/*
|
||||
@@ -1 +0,0 @@
|
||||
#include <Win32Headers.mch>
|
||||
@@ -1 +0,0 @@
|
||||
#ifndef __CATTYPES_H__
|
||||
@@ -1 +1,138 @@
|
||||
/*
|
||||
/*
|
||||
* CompilerMapping.h - File Type & Extension => Compiler Mapping for Metrowerks CodeWarrior<6F>
|
||||
*
|
||||
* Copyright <20> 1995 Metrowerks, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __COMPILERMAPPING_H__
|
||||
#define __COMPILERMAPPING_H__
|
||||
|
||||
#ifdef __MWERKS__
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#ifndef __CWPLUGINS_H__
|
||||
#include "CWPlugins.h"
|
||||
#endif
|
||||
|
||||
#ifdef __MWERKS__
|
||||
#pragma options align=mac68k
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma pack(push,2)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
const CWDataType Lang_C_CPP = CWFOURCHAR('c','+','+',' ');
|
||||
const CWDataType Lang_Pascal = CWFOURCHAR('p','a','s','c');
|
||||
const CWDataType Lang_Rez = CWFOURCHAR('r','e','z',' ');
|
||||
const CWDataType Lang_Java = CWFOURCHAR('j','a','v','a');
|
||||
const CWDataType Lang_MISC = CWFOURCHAR('\?','\?','\?','\?');
|
||||
#else
|
||||
#define Lang_C_CPP CWFOURCHAR('c','+','+',' ')
|
||||
#define Lang_Pascal CWFOURCHAR('p','a','s','c')
|
||||
#define Lang_Rez CWFOURCHAR('r','e','z',' ')
|
||||
#define Lang_Java CWFOURCHAR('j','a','v','a')
|
||||
#define Lang_MISC CWFOURCHAR('\?','\?','\?','\?')
|
||||
#endif
|
||||
|
||||
/* Compiler flags, as used in member dropinflags of struct DropInFlags returned by compilers */
|
||||
enum
|
||||
{
|
||||
kGeneratescode = 1L << 31, /* this compiler generates code */
|
||||
kGeneratesrsrcs = 1L << 30, /* this compiler generates resources */
|
||||
kCanpreprocess = 1L << 29, /* this compiler can accept a Preprocess request */
|
||||
kCanprecompile = 1L << 28, /* this compiler can accept a Precompile request */
|
||||
kIspascal = 1L << 27, /* this is the pascal compiler */
|
||||
kCanimport = 1L << 26, /* this compiler needs the "Import Weak" popup */
|
||||
kCandisassemble = 1L << 25, /* this compiler can disassemble */
|
||||
kPersistent = 1L << 24, /* keep the compiler resident except on context switches*/
|
||||
kCompAllowDupFileNames = 1L << 23, /* allow multiple project files with the same name */
|
||||
kCompMultiTargAware = 1L << 22, /* the compiler can be used with multiple targets */
|
||||
kIsMPAware = 1L << 21, /* the compiler can be run in an MP thread */
|
||||
kCompUsesTargetStorage = 1L << 20, /* the compiler keeps storage per target */
|
||||
kCompEmitsOwnBrSymbols = 1L << 19, /* browser info includes compiler-specific symbols */
|
||||
kCompAlwaysReload = 1L << 18, /* always reload the compiler before request */
|
||||
kCompRequiresProjectBuildStartedMsg = 1L << 17, /* Compiler listens for project build started messages */
|
||||
kCompRequiresTargetBuildStartedMsg = 1L << 16, /* Compiler listens for target build started messages */
|
||||
kCompRequiresSubProjectBuildStartedMsg = 1L << 15, /* Compiler listens for Sub project build started messages */
|
||||
kCompRequiresFileListBuildStartedMsg = 1L << 14, /* Compiler listens for filelist build started messages */
|
||||
kCompReentrant = 1L << 13, /* Compiler can use re-entrant DropIn and is re-entry safe */
|
||||
kCompSavesDbgPreprocess = 1 << 12, /* Compiler will save preprocessed files for debugging needs */
|
||||
kCompRequiresTargetCompileStartedMsg = 1 << 11 /* Compiler listens for target compile started/ended messages */
|
||||
/* remaining flags are reserved for future use and should be zero-initialized */
|
||||
};
|
||||
|
||||
/* Compiler mapping flags, used in CompilerMapping.flags & CWExtensionMapping.flags */
|
||||
typedef unsigned long CompilerMappingFlags;
|
||||
enum
|
||||
{
|
||||
kPrecompile = 1L << 31, /* should this file type be Precompiled? */
|
||||
kLaunchable = 1L << 30, /* can this file type be double-clicked on? */
|
||||
kRsrcfile = 1L << 29, /* does this file type contain resources for linking? */
|
||||
kIgnored = 1L << 28 /* should files of this type be ignored during Make? */
|
||||
/* remaining flags are reserved for future use and should be zero-initialized */
|
||||
};
|
||||
|
||||
/* Format of data in 'EMap' resource, or as returned by a compiler's */
|
||||
/* GetExtensionMapping entry point */
|
||||
|
||||
typedef struct CWExtensionMapping {
|
||||
CWDataType type; /* MacOS file type, e.g. 'TEXT' or 0 */
|
||||
char extension[32]; /* file extension, e.g. .c/.cp/.pch or "" */
|
||||
CompilerMappingFlags flags; /* see above */
|
||||
} CWExtensionMapping;
|
||||
|
||||
#define kCurrentCWExtMapListVersion 1
|
||||
#define kCurrentCWExtMapListResourceVersion 1
|
||||
|
||||
typedef struct CWExtMapList {
|
||||
short version;
|
||||
short nMappings;
|
||||
CWExtensionMapping* mappings;
|
||||
} CWExtMapList;
|
||||
|
||||
/* Format of data returned by GetTargetList entry point */
|
||||
|
||||
#define kCurrentCWTargetListVersion 1
|
||||
#define kCurrentCWTargetListResourceVersion 1
|
||||
|
||||
typedef struct CWTypeList {
|
||||
short count;
|
||||
CWDataType items[1];
|
||||
} CW_CPUList, CW_OSList;
|
||||
|
||||
typedef struct CWTargetList {
|
||||
short version;
|
||||
short cpuCount;
|
||||
CWDataType* cpus;
|
||||
short osCount;
|
||||
CWDataType* oss;
|
||||
} CWTargetList;
|
||||
|
||||
typedef struct CWTargetListResource {
|
||||
short version;
|
||||
CW_CPUList cpus;
|
||||
CW_OSList oss;
|
||||
} CWTargetListResource;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma pack(pop,2)
|
||||
#endif
|
||||
|
||||
#ifdef __MWERKS__
|
||||
#pragma options align=reset
|
||||
#endif
|
||||
|
||||
#endif /* __COMPILERMAPPING_H__ */
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
/*
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
/*
|
||||
@@ -1 +0,0 @@
|
||||
/*
|
||||
Reference in New Issue
Block a user