Changeset 2810 in kBuild
- Timestamp:
- Mar 12, 2016 1:23:30 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmk_cc_exec.c
r2802 r2810 127 127 * Place between scope (if any) and return type. */ 128 128 #ifdef _MSC_VER 129 # define KMK_CC_FN_NO_RETURN declspec(noreturn)129 # define KMK_CC_FN_NO_RETURN __declspec(noreturn) 130 130 #elif defined(__GNUC__) 131 131 # define KMK_CC_FN_NO_RETURN __attribute__((__noreturn__)) … … 5451 5451 static int kmk_cc_eval_do_var_unexport(PKMKCCEVALCOMPILER pCompiler, const char *pchWord, size_t cchLeft, unsigned fQualifiers) 5452 5452 { 5453 PKMKCCEVALCORE pInstr; 5454 5453 5455 /* 5454 5456 * Join paths with undefine and export, unless it's an unexport all directive. … … 5461 5463 * We're unexporting all variables. 5462 5464 */ 5463 PKMKCCEVALCOREpInstr = kmk_cc_block_alloc_eval(pCompiler->ppBlockTail, sizeof(*pInstr));5465 pInstr = kmk_cc_block_alloc_eval(pCompiler->ppBlockTail, sizeof(*pInstr)); 5464 5466 pInstr->enmOpcode = kKmkCcEvalInstr_unexport_all; 5465 5467 pInstr->iLine = pCompiler->iLine; … … 5888 5890 if (cchLeft) 5889 5891 { 5892 unsigned iSavedEscEol; 5893 unsigned cWords; 5894 5890 5895 /* 5891 5896 * We need to figure out whether this is an assignment or a export statement, … … 5902 5907 * assignment keywords and operators. 5903 5908 */ 5904 unsignediSavedEscEol = pCompiler->iEscEol;5905 unsignedcWords = kmk_cc_eval_parse_words(pCompiler, pchWord, cchLeft);5909 iSavedEscEol = pCompiler->iEscEol; 5910 cWords = kmk_cc_eval_parse_words(pCompiler, pchWord, cchLeft); 5906 5911 if (cWords) 5907 5912 { 5913 PKMKCCEVALVARIABLES pInstr; 5908 5914 PKMKCCEVALWORD pWord = pCompiler->paWords; 5909 5915 unsigned iWord = 0; … … 5958 5964 * (This is the same as kmk_cc_eval_do_with_variable_list does.) 5959 5965 */ 5960 PKMKCCEVALVARIABLES pInstr = (PKMKCCEVALVARIABLES)kmk_cc_block_alloc_eval(pCompiler->ppBlockTail, 5961 KMKCCEVALVARIABLES_SIZE(cWords)); 5966 pInstr = (PKMKCCEVALVARIABLES)kmk_cc_block_alloc_eval(pCompiler->ppBlockTail, KMKCCEVALVARIABLES_SIZE(cWords)); 5962 5967 pInstr->Core.enmOpcode = kKmkCcEvalInstr_export; 5963 5968 pInstr->Core.iLine = pCompiler->iLine;
Note:
See TracChangeset
for help on using the changeset viewer.