Changeset 2803 for trunk/src/kernel32


Ignore:
Timestamp:
Feb 16, 2000, 3:28:28 PM (26 years ago)
Author:
sandervl
Message:

Added new logging feature

Location:
trunk/src/kernel32
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/lang.cpp

    r2802 r2803  
     1/* $Id: lang.cpp,v 1.17 2000-02-16 14:27:07 sandervl Exp $ */
    12/*
    23 * Win32 language API functions for OS/2
  • trunk/src/kernel32/network.cpp

    r2802 r2803  
     1/* $Id: network.cpp,v 1.9 2000-02-16 14:27:08 sandervl Exp $ */
    12/*
    23 * Win32 Network apis
  • trunk/src/kernel32/npipe.cpp

    r2745 r2803  
    1 /* $Id: npipe.cpp,v 1.6 2000-02-10 22:39:46 bird Exp $ */
     1/* $Id: npipe.cpp,v 1.7 2000-02-16 14:25:43 sandervl Exp $ */
    22/*
    33 * Win32 Named pipes API
     
    1717#include "debugtools.h"
    1818#include "oslibdos.h"
     19
     20#define DBG_LOCALLOG    DBG_npipe
     21#include "dbglocal.h"
    1922
    2023ODINDEBUGCHANNEL(KERNEL32-NPIPE)
  • trunk/src/kernel32/obsolete.cpp

    r99 r2803  
    1 /* $Id: obsolete.cpp,v 1.2 1999-06-10 19:09:35 phaller Exp $ */
     1/* $Id: obsolete.cpp,v 1.3 2000-02-16 14:25:43 sandervl Exp $ */
    22
    33/*
     
    1212#include <os2win.h>
    1313
     14#define DBG_LOCALLOG    DBG_obsolete
     15#include "dbglocal.h"
     16
    1417//Api's that are obsolete, but some apps might still reference them
    1518//(the Red Alert AUTORUN.EXE does)
  • trunk/src/kernel32/os2heap.cpp

    r1770 r2803  
    1 /* $Id: os2heap.cpp,v 1.13 1999-11-18 09:21:34 bird Exp $ */
     1/* $Id: os2heap.cpp,v 1.14 2000-02-16 14:25:43 sandervl Exp $ */
    22
    33/*
     
    2828#include "initterm.h"
    2929
     30#define DBG_LOCALLOG    DBG_os2heap
     31#include "dbglocal.h"
     32
    3033#ifndef HEAP_NO_SERIALIZE
    3134  #define HEAP_NO_SERIALIZE 1
  • trunk/src/kernel32/oslibdebug.cpp

    r2280 r2803  
    1 /* $Id: oslibdebug.cpp,v 1.1 1999-12-31 10:47:11 sandervl Exp $ */
     1/* $Id: oslibdebug.cpp,v 1.2 2000-02-16 14:25:44 sandervl Exp $ */
    22
    33/*
     
    2727#include "oslibdebug.h"
    2828
     29#define DBG_LOCALLOG    DBG_oslibdebug
     30#include "dbglocal.h"
     31
    2932#define DEBUG_QUEUENAME "\\QUEUES\\ODINTRACE\\"
    3033#define DEBUG_QSEMNAME  "\\SEM32\\ODINTRACEQ\\"
  • trunk/src/kernel32/oslibdos.cpp

    r2687 r2803  
    1 /* $Id: oslibdos.cpp,v 1.18 2000-02-08 22:29:15 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.19 2000-02-16 14:25:45 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    2727#include "dosqss.h"
    2828
     29#define DBG_LOCALLOG    DBG_oslibdos
     30#include "dbglocal.h"
     31
    2932/***********************************
    3033 * PH: fixups for missing os2win.h *
     
    344347}
    345348//******************************************************************************
     349DWORD WIN32API GetEnvironmentVariableA(LPCSTR, LPSTR, DWORD );
    346350//******************************************************************************
    347351DWORD OSLibDosSearchPath(DWORD cmd, char *path, char *name, char *full_name,
     
    377381  case OSLIB_SEARCHENV:
    378382  {
    379    PCSZ envstring;
    380    CHAR szResult[CCHMAXPATH];
    381 
    382         if(DosScanEnv(path, &envstring) != 0) {
     383   LPSTR envstring;
     384   int   envsize;
     385   CHAR  szResult[CCHMAXPATH];
     386
     387        envsize = GetEnvironmentVariableA(path, NULL, 0);
     388        envstring = (LPSTR)malloc(envsize+1);
     389        GetEnvironmentVariableA(path, envstring, envsize);
     390        if(DosSearchPath(SEARCH_IGNORENETERRS, envstring,
     391                         name, szResult, sizeof(szResult)) != 0) {
     392                free(envstring);
    383393                return 0;
    384394        }
    385         if(DosSearchPath(SEARCH_IGNORENETERRS, envstring,
    386                          name, szResult, sizeof(szResult)) != 0) {
    387                 return 0;
    388         }
     395        free(envstring);
    389396        strcpy(full_name, szResult);
    390397        return strlen(full_name);
  • trunk/src/kernel32/oslibexcept.cpp

    r1224 r2803  
    1 /* $Id: oslibexcept.cpp,v 1.1 1999-10-09 15:03:23 sandervl Exp $ */
     1/* $Id: oslibexcept.cpp,v 1.2 2000-02-16 14:25:45 sandervl Exp $ */
    22/*
    33 * Exception handler util. procedures
     
    1919#include <exceptions.h>
    2020
     21#define DBG_LOCALLOG    DBG_oslibexcept
     22#include "dbglocal.h"
     23
    2124//******************************************************************************
    2225//Dispatches OS/2 exception to win32 handler
  • trunk/src/kernel32/oslibmisc.cpp

    r2311 r2803  
    1 /* $Id: oslibmisc.cpp,v 1.5 2000-01-03 21:36:11 sandervl Exp $ */
     1/* $Id: oslibmisc.cpp,v 1.6 2000-02-16 14:25:45 sandervl Exp $ */
    22
    33/*
     
    2424#include <misc.h>
    2525
     26#define DBG_LOCALLOG    DBG_oslibmisc
     27#include "dbglocal.h"
     28
    2629/***********************************
    2730 * PH: fixups for missing os2win.h *
  • trunk/src/kernel32/resource.cpp

    r2329 r2803  
    1 /* $Id: resource.cpp,v 1.14 2000-01-05 19:39:56 sandervl Exp $ */
     1/* $Id: resource.cpp,v 1.15 2000-02-16 14:25:45 sandervl Exp $ */
    22
    33/*
     
    1717#include <winexebase.h>
    1818#include <windllbase.h>
     19
     20#define DBG_LOCALLOG    DBG_resource
     21#include "dbglocal.h"
    1922
    2023//******************************************************************************
  • trunk/src/kernel32/stubs.cpp

    r2301 r2803  
    1 /* $Id: stubs.cpp,v 1.18 2000-01-02 22:51:12 sandervl Exp $ */
     1/* $Id: stubs.cpp,v 1.19 2000-02-16 14:25:45 sandervl Exp $ */
    22
    33/*
     
    2323
    2424#include "stubs.h"
     25
     26#define DBG_LOCALLOG    DBG_stubs
     27#include "dbglocal.h"
    2528
    2629
  • trunk/src/kernel32/unicode.cpp

    r2345 r2803  
    1 /* $Id: unicode.cpp,v 1.21 2000-01-06 20:07:10 sandervl Exp $ */
     1/* $Id: unicode.cpp,v 1.22 2000-02-16 14:25:45 sandervl Exp $ */
    22
    33/*
     
    1919#include "codepage.h"
    2020#include <unicode.h>
     21
     22#define DBG_LOCALLOG    DBG_unicode
     23#include "dbglocal.h"
    2124
    2225/*static UconvObject uconv_object = NULL;*/
  • trunk/src/kernel32/wprocess.cpp

    r2696 r2803  
    1 /* $Id: wprocess.cpp,v 1.67 2000-02-09 13:42:13 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.68 2000-02-16 14:25:46 sandervl Exp $ */
    22
    33/*
     
    4040#include "mmap.h"
    4141
     42#define DBG_LOCALLOG    DBG_wprocess
     43#include "dbglocal.h"
    4244
    4345ODINDEBUGCHANNEL(KERNEL32-WPROCESS)
Note: See TracChangeset for help on using the changeset viewer.