VirtualBox

Changeset 1622 in kBuild


Ignore:
Timestamp:
May 12, 2008 9:28:54 PM (17 years ago)
Author:
bird
Message:

Bumped up the priority of a local variable. Fixed inconsistent use of local variables in kbuild.c.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

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

    r1618 r1622  
    723723            *pszEnd = '\0';
    724724            pVar = define_variable_vl(pszVarName, strlen(pszVarName), psz, pszEnd - psz,
    725                                       1 /* duplicate */, o_file, 0 /* !recursive */);
     725                                      1 /* duplicate */, o_local, 0 /* !recursive */);
    726726            *pszEnd = chSaved;
    727727            if (pVar)
     
    981981     */
    982982    return define_variable_vl(pszVarName, strlen(pszVarName), pszResult, cch - 1,
    983                               0 /* use pszResult */, o_file, 0 /* !recursive */);
     983                              0 /* use pszResult */, o_local, 0 /* !recursive */);
    984984}
    985985
     
    15071507
    15081508    pVar = define_variable_vl(pszVarName, strlen(pszVarName), pszResult, cchTotal,
    1509                               0 /* take pszResult */ , o_file, 0 /* !recursive */);
     1509                              0 /* take pszResult */ , o_local, 0 /* !recursive */);
    15101510    return pVar;
    15111511}
     
    15821582    memcpy(psz, pObjSuff->value, pObjSuff->value_length);   psz += pObjSuff->value_length;
    15831583    memcpy(psz, pDepSuff->value, pDepSuff->value_length + 1);
    1584     *ppDep = define_variable_vl("dep", 3, pszResult, cch - 1, 1 /*dup*/, o_file, 0 /* !recursive */);
     1584    *ppDep = define_variable_vl("dep", 3, pszResult, cch - 1, 1 /*dup*/, o_local, 0 /* !recursive */);
    15851585
    15861586    /*
     
    15891589    *psz = '\0';
    15901590    pObj = define_variable_vl(pszVarName, strlen(pszVarName), pszResult, psz - pszResult,
    1591                               1/* dup */, o_file, 0 /* !recursive */);
     1591                              1/* dup */, o_local, 0 /* !recursive */);
    15921592
    15931593    /*
     
    16541654        *psz = '\0';
    16551655    }
    1656     *ppDirDep = define_variable_vl("dirdep", 6, pszResult, psz - pszResult, 1/*dup*/, o_file, 0 /* !recursive */);
     1656    *ppDirDep = define_variable_vl("dirdep", 6, pszResult, psz - pszResult, 1/*dup*/, o_local, 0 /* !recursive */);
    16571657
    16581658    return pObj;
  • trunk/src/kmk/variable.h

    r1610 r1622  
    2525    o_default,          /* Variable from the default set.  */
    2626    o_env,              /* Variable from environment.  */
    27 #ifdef CONFIG_WITH_LOCAL_VARIABLES /** @todo Correct priority? */
    28     o_local,            /* Variable from an 'local' directive.  */
    29 #endif
    3027    o_file,             /* Variable given in a makefile.  */
    3128    o_env_override,     /* Variable from environment, if -e.  */
    3229    o_command,          /* Variable given by user.  */
    3330    o_override,         /* Variable from an `override' directive.  */
     31#ifdef CONFIG_WITH_LOCAL_VARIABLES
     32    o_local,            /* Variable from an 'local' directive.  */
     33#endif
    3434    o_automatic,        /* Automatic variable -- cannot be set.  */
    3535    o_invalid           /* Core dump time.  */
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