Ignore:
Timestamp:
Jan 24, 2007, 11:21:56 PM (18 years ago)
Author:
bird
Message:

copyright and email updates.

File:
1 edited

Legend:

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

    r729 r785  
    44 * kBuild specific make functionality.
    55 *
    6  * Copyright (c) 2006 knut st. osmundsen <bird@innotek.de>
     6 * Copyright (c) 2006-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net>
    77 *
    88 *
     
    4848/**
    4949 * Applies the specified default path to any relative paths in *ppsz.
    50  * 
     50 *
    5151 * @param   pDefPath        The default path.
    52  * @param   ppsz            Pointer to the string pointer. If we expand anything, *ppsz 
     52 * @param   ppsz            Pointer to the string pointer. If we expand anything, *ppsz
    5353 *                          will be replaced and the caller is responsible for calling free() on it.
    5454 * @param   pcch            IN: *pcch contains the current string length.
     
    5757 * @param   fCanFree        Whether *ppsz should be freed when we replace it.
    5858 */
    59 static void 
     59static void
    6060kbuild_apply_defpath(struct variable *pDefPath, char **ppsz, int *pcch, int *pcchAlloc, int fCanFree)
    6161{
     
    6363    const char *pszInCur;
    6464    unsigned int cchInCur;
    65     unsigned int cRelativePaths; 
    66 
    67     /* 
    68      * The first pass, count the relative paths. 
     65    unsigned int cRelativePaths;
     66
     67    /*
     68     * The first pass, count the relative paths.
    6969     */
    7070    cRelativePaths = 0;
     
    7777#else
    7878        if (pszInCur[0] != '/')
    79 #endif 
     79#endif
    8080            cRelativePaths++;
    81     } 
    82 
    83     /* 
    84      * The second pass construct the new string. 
     81    }
     82
     83    /*
     84     * The second pass construct the new string.
    8585     */
    8686    if (cRelativePaths)
     
    100100#else
    101101            if (pszInCur[0] != '/')
    102 #endif 
     102#endif
    103103            {
    104104                PATH_VAR(szAbsPathIn);
     
    133133                }
    134134            }
    135         } 
     135        }
    136136        /* the final copy (includes the nil). */
    137137        cchInCur = *ppsz + *pcch - pszInNextCopy;
     
    698698    pSdks->cGlobal = 0;
    699699    sprintf(pszTmp, "$(SDKS) $(SDKS.%s) $(SDKS.%s) $(SDKS.%s) $(SDKS.%s.%s)",
    700             pBldType->value, 
    701             pBldTrg->value, 
     700            pBldType->value,
     701            pBldTrg->value,
    702702            pBldTrgArch->value,
    703703            pBldTrg->value, pBldTrgArch->value);
     
    744744                  pTarget->value, pSource->value, pBldTrgArch->value,
    745745                  pTarget->value, pSource->value, pBldTrg->value, pBldTrgArch->value);
    746     assert(cch < cchTmp); (void)cch; 
     746    assert(cch < cchTmp); (void)cch;
    747747    pszIterator = pSdks->apsz[3] = allocated_variable_expand(pszTmp);
    748748    while ((pszCur = find_next_token(&pszIterator, &cchCur)) != 0)
     
    962962    iSdkEnd = iDirection == 1 ? pSdks->iGlobal + pSdks->cGlobal : pSdks->iGlobal - 1;
    963963    for (iSdk = iDirection == 1 ? pSdks->iGlobal : pSdks->iGlobal + pSdks->cGlobal - 1;
    964          iSdk != iSdkEnd; 
     964         iSdk != iSdkEnd;
    965965         iSdk += iDirection)
    966966    {
     
    999999    iSdkEnd = iDirection == 1 ? pSdks->iTarget + pSdks->cTarget : pSdks->iTarget - 1;
    10001000    for (iSdk = iDirection == 1 ? pSdks->iTarget : pSdks->iTarget + pSdks->cTarget - 1;
    1001          iSdk != iSdkEnd; 
     1001         iSdk != iSdkEnd;
    10021002         iSdk += iDirection)
    10031003    {
     
    10351035    /* the source sdks */
    10361036    iSdkEnd = iDirection == 1 ? pSdks->iSource + pSdks->cSource : pSdks->iSource - 1;
    1037     for (iSdk = iDirection == 1 ? pSdks->iSource : pSdks->iSource + pSdks->cSource - 1; 
    1038          iSdk != iSdkEnd; 
     1037    for (iSdk = iDirection == 1 ? pSdks->iSource : pSdks->iSource + pSdks->cSource - 1;
     1038         iSdk != iSdkEnd;
    10391039         iSdk += iDirection)
    10401040    {
     
    13611361    /*
    13621362     * If we've got a default path, we must expand the source now.
    1363      * If we do this too early, "<source>_property = stuff" won't work becuase 
     1363     * If we do this too early, "<source>_property = stuff" won't work becuase
    13641364     * our 'source' value isn't what the user expects.
    13651365     */
Note: See TracChangeset for help on using the changeset viewer.