VirtualBox

Changeset 2810 in kBuild


Ignore:
Timestamp:
Mar 12, 2016 1:23:30 PM (9 years ago)
Author:
bird
Message:

MSVC build fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmk_cc_exec.c

    r2802 r2810  
    127127 * Place between scope (if any) and return type.  */
    128128#ifdef _MSC_VER
    129 # define KMK_CC_FN_NO_RETURN                        declspec(noreturn)
     129# define KMK_CC_FN_NO_RETURN                        __declspec(noreturn)
    130130#elif defined(__GNUC__)
    131131# define KMK_CC_FN_NO_RETURN                        __attribute__((__noreturn__))
     
    54515451static int kmk_cc_eval_do_var_unexport(PKMKCCEVALCOMPILER pCompiler, const char *pchWord, size_t cchLeft, unsigned fQualifiers)
    54525452{
     5453    PKMKCCEVALCORE pInstr;
     5454
    54535455    /*
    54545456     * Join paths with undefine and export, unless it's an unexport all directive.
     
    54615463     * We're unexporting all variables.
    54625464     */
    5463     PKMKCCEVALCORE pInstr = kmk_cc_block_alloc_eval(pCompiler->ppBlockTail, sizeof(*pInstr));
     5465    pInstr = kmk_cc_block_alloc_eval(pCompiler->ppBlockTail, sizeof(*pInstr));
    54645466    pInstr->enmOpcode = kKmkCcEvalInstr_unexport_all;
    54655467    pInstr->iLine     = pCompiler->iLine;
     
    58885890    if (cchLeft)
    58895891    {
     5892        unsigned iSavedEscEol;
     5893        unsigned cWords;
     5894
    58905895        /*
    58915896         * We need to figure out whether this is an assignment or a export statement,
     
    59025907         * assignment keywords and operators.
    59035908         */
    5904         unsigned iSavedEscEol = pCompiler->iEscEol;
    5905         unsigned cWords       = kmk_cc_eval_parse_words(pCompiler, pchWord, cchLeft);
     5909        iSavedEscEol = pCompiler->iEscEol;
     5910        cWords       = kmk_cc_eval_parse_words(pCompiler, pchWord, cchLeft);
    59065911        if (cWords)
    59075912        {
     5913            PKMKCCEVALVARIABLES pInstr;
    59085914            PKMKCCEVALWORD pWord = pCompiler->paWords;
    59095915            unsigned       iWord = 0;
     
    59585964             * (This is the same as kmk_cc_eval_do_with_variable_list does.)
    59595965             */
    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));
    59625967            pInstr->Core.enmOpcode = kKmkCcEvalInstr_export;
    59635968            pInstr->Core.iLine     = pCompiler->iLine;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette