Changeset 223 for trunk/src


Ignore:
Timestamp:
Sep 4, 2002, 9:54:50 AM (23 years ago)
Author:
umoeller
Message:

Misc fixes.

Location:
trunk/src/helpers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/apps.c

    r222 r223  
    258258
    259259PSZ* appFindEnvironmentVar(PDOSENVIRONMENT pEnv,
    260                            PSZ pszVarName)
     260                           PCSZ pszVarName)
    261261{
    262262    PSZ     *ppszRet = 0;
     
    289289                if (    (ulLenThis == ulVarNameLen)
    290290                     && (!memicmp(pszThis,
    291                                   pszVarName,
     291                                  (PVOID)pszVarName,
    292292                                  ulVarNameLen))
    293293                   )
     
    330330
    331331APIRET appSetEnvironmentVar(PDOSENVIRONMENT pEnv,
    332                             PSZ pszNewEnv,
     332                            PCSZ pszNewEnv,
    333333                            BOOL fAddFirst)
    334334{
     
    399399    return arc;
    400400}
     401
     402
     403/*
     404 *@@ appSetEnvironmentVars:
     405 *      Apply a number of changes or additions to an environment
     406 *      initialized by appGetEnvironment. The changes or additions
     407 *      is to the environment is passed in as a pointer (pcszEnv) to
     408 *      a set of zero terminated VARNAME=VALUE string which ends with
     409 *      an empty string. (Hence just like the environment block
     410 *      representation in OS/2.)
     411 *
     412 *@@added V0.9.21 (2002-09-04) [bird]
     413 */
     414
     415APIRET appSetEnvironmentVars(PDOSENVIRONMENT pEnv,
     416                             PCSZ pcszEnv)
     417{
     418    APIRET  arc = NO_ERROR;
     419    if (    (!pEnv)
     420         || (!pcszEnv)
     421       )
     422        arc = ERROR_INVALID_PARAMETER;
     423    else
     424    {
     425        while (arc == NO_ERROR && *pcszEnv != '\0')
     426        {
     427            arc = appSetEnvironmentVar(pEnv, pcszEnv, FALSE);
     428            pcszEnv += strlen(pcszEnv) + 1;
     429        }
     430    }
     431    return arc;
     432}
     433
    401434
    402435/*
  • trunk/src/helpers/makefile

    r220 r223  
    153153    !emxomfar cr $* $?
    154154!else
    155     rm -f $@
     155    - del $@
    156156    ilib /nol /nob $@ @<<$(TEMP)\ilib.lnk
    157157+$(OBJS: =&^
     
    165165    !emxomfar cr $* $?
    166166!else
    167     rm -f $@
     167    - del $@
    168168    ilib /nol /nob $@ @<<
    169169+$(CPOBJS: =&^
     
    177177    !emxomfar cr $* $?
    178178!else
    179     rm -f $@
     179    - del $@
    180180    ilib /nol /nob $@ @<<
    181181+$(PLAINCOBJS: =&^
Note: See TracChangeset for help on using the changeset viewer.