Changeset 5090 for trunk/src/kernel32


Ignore:
Timestamp:
Feb 11, 2001, 11:35:29 AM (25 years ago)
Author:
sandervl
Message:

Update for VAC 3.6.5

Location:
trunk/src/kernel32
Files:
4 edited

Legend:

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

    r5036 r5090  
    1 /* $Id: misc.cpp,v 1.29 2001-01-29 01:21:28 bird Exp $ */
     1/* $Id: misc.cpp,v 1.30 2001-02-11 10:34:44 sandervl Exp $ */
    22
    33/*
     
    410410        PUSHORT lock = (USHORT *)(teb->o.odin.logfile+0x1C);
    411411#else
     412#if __IBMC__ >= 360 || __IBMCPP__ >= 360
     413//TODO: test this!!!!!!!
     414        PUSHORT lock = (USHORT *)(teb->o.odin.logfile+0x1C);
     415#else
    412416#error Check the offset of the lock count word in the file stream structure for this compiler revision!!!!!
     417#endif
    413418#endif
    414419        if (state == ENTER_EXCEPTION)
     
    445450    lock = (PUSHORT)(teb->o.odin.logfile+0x1C);
    446451#else
     452#if __IBMC__ >= 360 || __IBMCPP__ >= 360
     453//TODO: test this!!!!!!!
     454        PUSHORT lock = (USHORT *)(teb->o.odin.logfile+0x1C);
     455#else
    447456#error Check the offset of the lock count word in the file stream structure for this compiler revision!!!!!
     457#endif
    448458#endif
    449459    (*lock)--;
  • trunk/src/kernel32/thread.H

    r3128 r5090  
    1 /* $Id: thread.H,v 1.6 2000-03-16 19:20:40 sandervl Exp $ */
     1/* $Id: thread.H,v 1.7 2001-02-11 10:34:44 sandervl Exp $ */
    22
    33/*
     
    1212#ifndef __THREAD_H__
    1313#define __THREAD_H__
    14 
    15 //Why the @#%@#$ didn't IBM use _stdcall??
    1614
    1715typedef DWORD (* WIN32API WIN32THREADPROC)(LPVOID);
  • trunk/src/kernel32/thread.cpp

    r4658 r5090  
    1 /* $Id: thread.cpp,v 1.26 2000-11-21 11:35:09 sandervl Exp $ */
     1/* $Id: thread.cpp,v 1.27 2001-02-11 10:34:45 sandervl Exp $ */
    22
    33/*
     
    2525#include "thread.h"
    2626#include <misc.h>
     27#include <cpuhlp.h>
    2728#include <wprocess.h>
    2829#include <windllbase.h>
     
    132133
    133134  //Set default FPU control word (no exceptions); same as in NT
    134   _control87(0x27F, 0xFFF);
     135  CONTROL87(0x27F, 0xFFF);
    135136  rc = winthread(userdata);
    136137
  • trunk/src/kernel32/winexebase.cpp

    r4440 r5090  
    1 /* $Id: winexebase.cpp,v 1.12 2000-10-06 11:04:01 sandervl Exp $ */
     1/* $Id: winexebase.cpp,v 1.13 2001-02-11 10:34:45 sandervl Exp $ */
    22
    33/*
     
    2727#include <wprocess.h>
    2828#include <pefile.h>
     29#include <cpuhlp.h>
    2930#include "exceptions.h"
    3031#include "exceptutil.h"
     
    114115
    115116  //Set default FPU control word (no exceptions); same as in NT
    116   _control87(0x27F, 0xFFF);
    117 #if 0
    118   ULONG Size = 16, Attr;
    119   rc = DosQueryMem((PVOID) (entryPoint), &Size, &Attr);
    120   dprintf(("Start exe; Attr = %x, rc = %d", Attr, rc));
    121 #else
     117  CONTROL87(0x27F, 0xFFF);
    122118  dprintf(("Start exe"));
    123 #endif
    124119  rc = ((WIN32EXEENTRY)entryPoint)(NULL);
    125120  RestoreOS2TIB();
Note: See TracChangeset for help on using the changeset viewer.