VirtualBox

Changeset 2539 in kBuild


Ignore:
Timestamp:
Aug 2, 2011 8:01:33 PM (13 years ago)
Author:
bird
Message:

kbuild.c: Make more of the target+source variables local to save memory.

File:
1 edited

Legend:

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

    r2435 r2539  
    21102110    pVar = kbuild_get_recursive_variable(pszSrcVar);
    21112111    do_variable_definition_2(NILF, pszDstVar, pVar->value, pVar->value_length,
    2112                              !pVar->recursive, 0, o_file, f_simple, 0 /* !target_var */);
     2112                             !pVar->recursive, 0, o_local, f_simple, 0 /* !target_var */);
    21132113
    21142114    memcpy(pszSrc, "_OUTPUT", sizeof("_OUTPUT"));
     
    21162116    pVar = kbuild_get_recursive_variable(pszSrcVar);
    21172117    pOutput = do_variable_definition_2(NILF, pszDstVar, pVar->value, pVar->value_length,
    2118                                        !pVar->recursive, 0, o_file, f_simple, 0 /* !target_var */);
     2118                                       !pVar->recursive, 0, o_local, f_simple, 0 /* !target_var */);
    21192119
    21202120    memcpy(pszSrc, "_OUTPUT_MAYBE", sizeof("_OUTPUT_MAYBE"));
     
    21232123    if (pVar)
    21242124        pOutputMaybe = do_variable_definition_2(NILF, pszDstVar, pVar->value, pVar->value_length,
    2125                                                 !pVar->recursive, 0, o_file, f_simple, 0 /* !target_var */);
     2125                                                !pVar->recursive, 0, o_local, f_simple, 0 /* !target_var */);
    21262126    else
    2127         pOutputMaybe = do_variable_definition_2(NILF, pszDstVar, "", 0, 1, 0, o_file, f_simple, 0 /* !target_var */);
     2127        pOutputMaybe = do_variable_definition_2(NILF, pszDstVar, "", 0, 1, 0, o_local, f_simple, 0 /* !target_var */);
    21282128
    21292129    memcpy(pszSrc, "_DEPEND", sizeof("_DEPEND"));
     
    21382138    do_variable_definition_2(NILF, pszDstVar, pszVal, pVar->value_length + 1 + pDeps->value_length + 1 + pSource->value_length,
    21392139                             !pVar->recursive && !pDeps->recursive && !pSource->recursive,
    2140                              pszVal, o_file, f_simple, 0 /* !target_var */);
     2140                             pszVal, o_local, f_simple, 0 /* !target_var */);
    21412141
    21422142    memcpy(pszSrc, "_DEPORD", sizeof("_DEPORD"));
     
    21522152                             pVar->value_length + 1 + pDirDep->value_length + 1 + pOrderDeps->value_length,
    21532153                             !pVar->recursive && !pDirDep->recursive && !pOrderDeps->recursive,
    2154                              pszVal, o_file, f_simple, 0 /* !target_var */);
     2154                             pszVal, o_local, f_simple, 0 /* !target_var */);
    21552155
    21562156    /*
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