⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 error.c

📁 CC386 is a general-purpose 32-bit C compiler. It is not an optimizing compiler but given that the co
💻 C
📖 第 1 页 / 共 4 页
字号:
            sprintf(buf, "Nonportable pointer conversion");
            if (!(int)err->data)
                errlvl = 1;
            break;
        case ERR_UNREACHABLE:
            sprintf(buf, "Unreachable code");
            errlvl = 1;
            break;
        case ERR_CODENONE:
            sprintf(buf, "Code has no effect");
            errlvl = 1;
            break;
        case ERR_BADEQUATE:
            sprintf(buf, "Possible incorrect assignment");
            errlvl = 1;
            break;
        case ERR_NOANDREG:
            sprintf(buf, "Cannot take address of register variable '%s'", 
                (char*)err->data);
            break;
        case ERR_NOCONTINUE:
            sprintf(buf, "Break or Continue outside loop");
            break;
        case ERR_DUPLABEL:
            sprintf(buf, "Duplicate label '%s'", (char*)err->data);
            break;
        case ERR_NOFUNCARRAY:
            sprintf(buf, "Function cannot return array");
            break;
        case ERR_NOVOIDRET:
            sprintf(buf, "Return type is void");
            errlvl = 1;
            break;
        case ERR_ZEROSTORAGE:
            sprintf(buf, "No memory allocated for '%s'", (char*)err->data);
            errlvl = 1;
            break;
        case ERR_ZEROPTR:
            sprintf(buf, "Illegal use of void pointer");
            break;
        case ERR_SHORTPOINTER:
            sprintf(buf, "Dangerous pointer conversion");
            errlvl = 1;
            break;
        case ERR_NOSTATICFUNC:
            sprintf(buf, "Nonexistant static func '%s'", (char*)err->data);
            break;
        case ERR_UNUSEDLABEL:
            errlvl = 3;
            sprintf(buf, "Unused label '%s'", (char*)err->data);
            break;
        case ERR_NOPROTO:
            sprintf(buf, "Call to function '%s' with no prototype", (char*)err
                ->data);
            errlvl = 1;
            //                                    errlvl = prm_cplusplus==0;
            break;
        case ERR_LOSTCONV:
            sprintf(buf, "Conversion may truncate significant digits");
            errlvl = 3;
            break;
        case ERR_UNDEFLABEL:
            sprintf(buf, "Undefined label '%s'", (char*)err->data);
            break;
        case ERR_ILLREGISTER:
            sprintf(buf, "Illegal register var '%s'", (char*)err->data);
            errlvl = 1;
            break;
        case ERR_SUPERAND:
            sprintf(buf, "Possible superfluous &");
            errlvl = 3;
            break;
        case ERR_NODECLARE:
            sprintf(buf, "Declaration not allowed here");
            break;
        case ERR_NOMAIN:
            sprintf(buf, "Illegal call to main() from within program");
            break;
        case ERR_NOREF:
            sprintf(buf, "Illegal use of reference operator");
            break;
        case ERR_CANTREF:
            sprintf(buf, 
                "Cannot define a reference to a pointer or a reference");
            break;
        case ERR_TEMPUSED:
            sprintf(buf, "Temporary used for parameter '%s'", (char*)err->data);
            errlvl = 3;
            break;
        case ERR_REFMUSTINIT:
            sprintf(buf, "Reference member '%s' must be initialized", (char*)
                err->data);
            break;
        case ERR_TEMPINIT:
            sprintf(buf, "Temporary used to initialize '%s'", (char*)err->data);
            errlvl = referrorlvl;
            break;
        case ERR_REFLVALUE:
            sprintf(buf, "Reference initialization needs lvalue");
            break;
        case ERR_REFNOCONS:
            sprintf(buf, 
                "Reference member '%s' in a class with no constructors", (char*)
                err->data);
            break;
        case ERR_CONSTNOCONS:
            sprintf(buf, "Constant member '%s' in a class with no constructors",
                (char*)err->data);
            break;
        case ERR_MISSINGDEFAULT:
            sprintf(buf, "Default missing after parameter '%s'", (char*)err
                ->data);
            break;
        case ERR_AMBIGFUNC:
            sprintf(buf, "Ambiguity between '%s'", (char*)err->data);
            break;
        case ERR_NOLOCALDEFAULT:
            sprintf(buf, 
                "Local variables may not be used as parameter defaults");
            break;
        case ERR_CPPMISMATCH:
            sprintf(buf, "Cannot convert %s", (char*)err->data);
            break;
        case ERR_NOOVERMAIN:
            sprintf(buf, "Cannot overload 'main'", (char*)err->data);
            break;
        case ERR_SWITCHINT:
            sprintf(buf, "Switch controlling expression must be of integral type");
            break;
        case ERR_NOFUNCMATCH:
            sprintf(buf, "Could not find a match for '%s'", (char*)err->data);
            break;

        case ERR_PREDEFSTRUCT:
            sprintf(buf, "'%s' must be a predefined class or struct", (char*)
                err->data);
            break;
        case ERR_LOCALCLASS:
            sprintf(buf, "Local class functions not supported", (char*)err
                ->data);
            break;
        case ERR_PUREDECL:
            sprintf(buf, "Illegal pure declaration syntax of '%s'", (char*)err
                ->data);
            break;
        case ERR_BADESTRUCT:
            sprintf(buf, "Destructor for class '%s' expected", (char*)err->data)
                ;
            break;
        case ERR_TYPECONSTRUCT:
            sprintf(buf, "Constructor/destructor must be untyped");
            break;
        case ERR_NOTYPEQUAL:
            sprintf(buf, "Variable '%s' cannot have a type qualifier", (char*)
                err->data);
            break;
        case ERR_NOTACLASS:
            sprintf(buf, "Variable '%s' is not a class instance", (char*)err
                ->data);
            break;
        case ERR_SIZE:
            if (err->data)
                sprintf(buf, "Size of '%s' is unknown or zero", (char*)err
                    ->data);
            else
                sprintf(buf, "Size is unknown or zero");
            break;
        case ERR_NEVERSTRUCT:
            sprintf(buf, "Structure '%s' is undefined", (char*)err->data);
            errlvl = 3;
            break;

        case ERR_LONGLONG:
            sprintf(buf, 
                "long long int type not supported, defaulting to long int");
            errlvl = 1;
            break;
        case ERR_UPDOWN:
            sprintf(buf, 
                "Startup/rundown function '%s' is unknown or not a function", 
                (char*)err->data);
            break;
        case ERR_INTBITFIELDS:
            sprintf(buf, "Bit fields must be signed or unsigned int");
            break;
        case ERR_COMMENTMATCH:
            sprintf(buf, "File ended with comment in progress");
            break;
        case ERR_PASCAL_NO_ELLIPSE:
            sprintf(buf, "Ellipse (...) not allowed in pascal declaration");
            break;
        case ERR_PASCAL_NO_INT:
            sprintf(buf, "_interrupt keyword not allowed in pascal declaration")
                ;
            break;
        case ERR_SUSPICIOUS:
            sprintf(buf, "Suspicious pointer conversion");
            errlvl = 1;
            break;
        case ERR_NOFUNCSTRUCT:
            sprintf(buf, "Function declaration not allowed here");
            break;
        case ERR_STRINGTOOBIG:
            sprintf(buf, "String constant too long");
            break;
        case ERR_FPCON:
            sprintf(buf, "Invalid floating point constant");
            break;
        case ERR_CONSTTOOLARGE:
            sprintf(buf, "Numeric constant is too large");
            break;
        case ERR_MULTIPLEINIT:
            sprintf(buf, "Multiple initialization for '%s'", (char*)err->data);
            break;
        case ERR_INVALIDSTRING:
            sprintf(buf, "Invalid string operation");
            break;
        case ERR_AMODEEXPECT:
            sprintf(buf, "Assembler: Address mode expected");
            break;
        case ERR_ASCALE:
            sprintf(buf, "Assembler: Valid scale factor expected");
            break;
        case ERR_AINVINDXMODE:
            sprintf(buf, "Assembler: Invalid indexing");
            break;
        case ERR_AILLADDRESS:
            sprintf(buf, "Assembler: Invalid address mode");
            break;
        case ERR_ATOOMANYSPECS:
            sprintf(buf, "Assembler: Too many specifiers");
            break;
        case ERR_ATOOMANYSEGS:
            sprintf(buf, "Assembler: Too many segments");
            break;
        case ERR_AINVOP:
            sprintf(buf, "Assembler: Invalid opcode");
            break;
        case ERR_AINVSIZE:
            sprintf(buf, "Assembler: Size mismatch");
            break;
        case ERR_AUSELEA:
            sprintf(buf, 
                "Assembler: Must use LEA to take the address of a local variable");
            break;
        case ERR_ALABEXPECT:
            sprintf(buf, "Assembler: Label expected");
            break;
        case ERR_ANEEDFP:
            sprintf(buf, "Assembler: Floating point register expected");
            break;
        case ERR_AINVSELPROC:
            sprintf(buf, "Assembler: Invalid for selected processor");
            break;
        case ERR_ATOOMANYREGS:
            sprintf(buf, "Assembler: Too many registers");
            break;
        case ERR_AAREGEXPECT:
            sprintf(buf, "Assembler: Address reg expected");
            break;

        case ERR_PREPIG:
            sprintf(buf, "Preprocessor directive ignored");
            errlvl = 1;
            break;
        case ERR_ANEEDAD:
            sprintf(buf, "Assembler: Need adress or data register");
            break;
        case ERR_AREGMISMATCH:
            sprintf(buf, "Assembler: Register type mismatch");
            break;
        case ERR_CHAR4CHAR:
            sprintf(buf, "Character constant must be 1 to 4 characters");
            break;
        case ERR_LOSTCONVCASE:
            sprintf(buf, "CASE value out of range");
            break;
        case ERR_TYPEQUALEXP:
            sprintf(buf, "Type qualifier expected");
            break;
        case ERR_TYPENAMEEXP:
            sprintf(buf, "Type name expected");
            break;
        case ERR_CANTHAVETYPE:
            sprintf(buf, 
                "Constructor/Destructor '%s' cannot have a return type qualifier", (char*)err->data);
            break;
        case ERR_VIRTFUNC:
            sprintf(buf, "Virtual keyword must be used on a class function");
            break;
        case ERR_CONSFUNC:
            sprintf(buf, "Constructor/Destructor must be a function");
            break;
        case ERR_NODESTRUCTARG:
            sprintf(buf, "Destructor cannot have parameters");
            break;
        case ERR_NODESTRUCTQUAL:
            sprintf(buf, "Constructor/Destructor must be pure");
            break;
        case ERR_BASESTRUCTCLASS:
            sprintf(buf, "Base class must be a struct or class type");
            break;
        case ERR_LOCALCLASSNOFUNC:
            sprintf(buf, "Local class may not have functions");
            break;
        case ERR_CONSDECLNOMATCH:
            sprintf(buf, "Constructor declaration does not match");
            break;
        case ERR_NOBASECONS:
            sprintf(buf, "No base constructor found for class '%s'", (char*)err
                ->data);
            break;
        case ERR_CONSNOREFINIT:
            sprintf(buf, "Reference member '%s' not initialized in constructor",
                (char*)err->data);
            break;
        case ERR_CONSNOCONSTINIT:
            sprintf(buf, "Constant member '%s' not initialized in constructor",
                (char*)err->data);
            break;
        case ERR_STATICNOTHIS:
            sprintf(buf, "'this' cannot be used without an object");
            break;
        case ERR_STATICNOACCESS:
            sprintf(buf, "Member '%s' cannot be used without an object", (char*)
                err->data);
            break;
        case ERR_NOCLASSNOTHIS:
            sprintf(buf, "'this' may only be used in member functions");
            break;
        case ERR_MAINNOPTR:
            sprintf(buf, "Cannot take the address of 'main'");
            break;
        case ERR_OLDFUNCSTYLE:
            sprintf(buf, "Old K&R function style is obsolete");
            break;
        case ERR_CLASSINSTDOTSTAR:
            sprintf(buf, "Class instance must be on left of .* or ->*");
            break;
        case ERR_MEMBERPTRMISMATCH:
            sprintf(buf, "Member pointer types do not match in assignment");
            break;
        case ERR_NOASSIGNCOMPLEXMEMBERPTR:
            sprintf(buf, 
                "Cannot use arithmetic assignments with member pointers");
            break;
        case ERR_NOLOCALNAMESPACE:
            sprintf(buf, "Cannot use namespaces within a function");
            break;
        case ERR_NAMESPACEEXP:
            sprintf(buf, "Namespace name expected");
            break;
        case ERR_NOADDRMEMBERPTR:
            sprintf(buf, "Cannot take the address when .* or ->* are used");
            break;
        case ERR_ILLSTRUCT:
            sprintf(buf, "Illegal structure operation");
            break;
        case ERR_NOTACCESSIBLE:
            sprintf(buf, "'%s' is not accessible", (char*)err->data);
            break;
        case ERR_UNIONNOVIRT:
            sprintf(buf, "Unions cannot have virtual functions");
            break;
        case ERR_UNIONNOBASE:
            sprintf(buf, "Unions cannot serve as a base class");
            break;
        case ERR_NOCLASSMEMBERFUNC:
            sprintf(buf, "'%s' is not a class member function", (char*)err
                ->data);
            break;
        case ERR_NOINTRINSFOUND:
            sprintf(buf, 
                "Unknown intrinsic function '%s', defaulting to external", 
                (char*)err->data);
            errlvl = 1;
            break;
        case ERR_NONSTATICMUSTCLASS:
            sprintf(buf, "Must use . or -> to call '%s'", (char*)err->data);
            break;
        case ERR_NOVOID:
            sprintf(buf, "Void value not allowed here");
            break;
        case ERR_POINTTOSTRUCT:
            sprintf(buf, 
                "Pointer to structure required on left side of -> or ->*");
            break;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -