Ignore:
Timestamp:
Oct 28, 1999, 5:25:36 PM (26 years ago)
Author:
sandervl
Message:

Update by Jens Weissner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msvcrt/msvcrt.cpp

    r1118 r1494  
    1 /* $Id: msvcrt.cpp,v 1.3 1999-10-04 09:55:58 sandervl Exp $ */
     1/* $Id: msvcrt.cpp,v 1.4 1999-10-28 15:25:35 sandervl Exp $ */
    22
    33/*
     
    1212#include <os2win.h>
    1313#include <wchar.h>
     14#include <except.h>
    1415#include "debugtools.h"
    1516#include <debugdefs.h>
     
    1819DEFAULT_DEBUG_CHANNEL(msvcrt)
    1920
    20 
    21 /*********************************************************************
    22  *                  _XcptFilter    (MSVCRT.21)
     21int __app_type;
     22int __usermatherr;
     23
     24typedef struct
     25{
     26    HANDLE handle;
     27    int      pad[7];
     28} CRTDLL_FILE, *PCRTDLL_FILE;
     29
     30extern LPSTR    _acmdln_dll;     
     31extern UINT     _commode_dll;   
     32extern UINT     _fmode_dll;     
     33extern INT      __mb_cur_max_dll;
     34extern USHORT   _pctype_dll;
     35extern CRTDLL_FILE _iob;
     36
     37
     38
     39
     40/*********************************************************************
     41 *                  ??1type_info@@UAE@XZ    (MSVCRT.14)
    2342 *      FIXME - Could not find anything about it
    2443 */
    25 INT CDECL MSVCRT__XcptFilter(DWORD ret)
    26 {
    27   dprintf(("MSVCRT: _XcptFilter not implemented.\n"));
     44INT CDECL MSVCRT_EXP14(DWORD ret)
     45{
     46  dprintf(("MSVCRT: ??1type_info@@UAE@XZ not implemented.\n"));
     47  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     48  return FALSE;
     49}
     50
     51
     52/*********************************************************************
     53 *                  ??2@YAPAXI@Z    (MSVCRT.15)
     54 *      FIXME - Could not find anything about it
     55 */
     56INT CDECL MSVCRT_EXP15(DWORD ret)
     57{
     58  dprintf(("MSVCRT: ??2@YAPAXI@Z not implemented.\n"));
     59  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     60  return FALSE;
     61}
     62
     63
     64/*********************************************************************
     65 *                  ??3@YAXPAX@Z    (MSVCRT.16)
     66 *      FIXME - Could not find anything about it
     67 */
     68INT CDECL MSVCRT_EXP16(DWORD ret)
     69{
     70  dprintf(("MSVCRT: ??3@YAXPAX@Z not implemented.\n"));
    2871  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    2972  return FALSE;
     
    68111
    69112/*********************************************************************
     113 *                  __p__initenv  (MSVCRT.101)
     114 */
     115char ** CDECL MSVCRT___p__initenv()
     116{
     117  dprintf(("MSVCRT: __p__initenv not implemented\n"));
     118        return &_acmdln_dll;
     119}
     120
     121
     122/*********************************************************************
     123 *                  __p___mb_cur_max  (MSVCRT.102)
     124 */
     125int * CDECL MSVCRT___p___mb_cur_max()
     126{
     127  dprintf(("MSVCRT: __p___mb_cur_max\n"));
     128        return &__mb_cur_max_dll;
     129}
     130
     131
     132/*********************************************************************
     133 *                  __p__acmdln  (MSVCRT.105)
     134 */
     135char ** CDECL MSVCRT___p__acmdln()
     136{
     137  dprintf(("MSVCRT: __p__acmdln\n"));
     138        return &_acmdln_dll;
     139}
     140
     141/*********************************************************************
     142 *                  __p__fmode  (MSVCRT.107)
     143 */
     144int * CDECL MSVCRT___p__fmode()
     145{
     146  dprintf(("MSVCRT: __p__fmode\n"));
     147        return (int*)&_fmode_dll;
     148}
     149
     150
     151/*********************************************************************
     152 *                  __p__commode  (MSVCRT.112)
     153 */
     154int * CDECL MSVCRT___p__commode()
     155{
     156  dprintf(("MSVCRT: __p__commode\n"));
     157        return (int*)&_commode_dll;
     158}
     159
     160
     161/*********************************************************************
     162 *                  __p__iob  (MSVCRT.113)
     163 */
     164CRTDLL_FILE * CDECL MSVCRT___p__iob()
     165{
     166  dprintf(("MSVCRT: __p__iob\n"));
     167        return &_iob;
     168}
     169
     170
     171/*********************************************************************
     172 *                  __p__pctype  (MSVCRT.117)
     173 */
     174USHORT * CDECL MSVCRT___p__pctype()
     175{
     176  dprintf(("MSVCRT: __p__pctype\n"));
     177        return &_pctype_dll;
     178}
     179
     180
     181/*********************************************************************
     182 *                  __set_app_type    (MSVCRT.130)
     183 */
     184int CDECL MSVCRT___set_app_type(int app_type)
     185{
     186  dprintf(("MSVCRT: __set_app_type\n"));
     187        return __app_type = app_type;
     188}       
     189
     190
     191/*********************************************************************
     192 *                  __setusermatherr    (MSVCRT.132)
     193 */
     194int CDECL MSVCRT___setusermatherr(int matherr)
     195{
     196  dprintf(("MSVCRT: __setusermatherr\n"));
     197        return __usermatherr = matherr;
     198}       
     199
     200
     201/*********************************************************************
     202 *                  _adjust_fdiv    (MSVCRT.158)
     203 *      FIXME - Could not find anything about it
     204 */
     205INT CDECL MSVCRT__adjust_fdiv(DWORD ret)
     206{
     207  dprintf(("MSVCRT: _adjust_fdiv not implemented.\n"));
     208  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     209  return FALSE;
     210}
     211
     212
     213/*********************************************************************
     214 *                  _except_handler3  (MSVCRT.203)
     215 */
     216INT CDECL MSVCRT__except_handler3 ( PEXCEPTION_RECORD rec,
     217        PEXCEPTION_FRAME frame, PCONTEXT context,
     218        PEXCEPTION_FRAME  *dispatcher)
     219{
     220        dprintf(("MSVCRT: _except_handler3\n"));
     221        return 1;
     222}
     223
     224
     225/*********************************************************************
    70226 *                  _get_sbh_threshold    (MSVCRT.247)
    71227 */
Note: See TracChangeset for help on using the changeset viewer.