Ignore:
Timestamp:
Jan 22, 2003, 6:06:44 PM (23 years ago)
Author:
sandervl
Message:

Changed wrapper names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/odincrt/file.cpp

    r3164 r9709  
    1 /* $Id: file.cpp,v 1.3 2000-03-19 11:04:17 sandervl Exp $ */
     1/* $Id: file.cpp,v 1.4 2003-01-22 17:06:42 sandervl Exp $ */
    22/*
    33 * Project Odin Software License can be found in LICENSE.TXT
     
    88 *
    99 */
     10#define ORIGINAL_VAC_FUNCTIONS
    1011#include <stdio.h>
    1112#include <os2sel.h>
    1213#include <wchar.h>
    1314
    14 int  _LNK_CONV os2_fclose( FILE *fp )
     15int  _LNK_CONV CRTWRAP(fclose)( FILE *fp )
    1516{
    1617    unsigned short sel = RestoreOS2FS();
     
    2223}
    2324
    24 int _LNK_CONV os2_feof( FILE *fp )
     25int _LNK_CONV CRTWRAP(feof)( FILE *fp )
    2526{
    2627    unsigned short sel = RestoreOS2FS();
     
    3132        return rc;
    3233}
    33 int _LNK_CONV os2_ferror( FILE *fp )
     34int _LNK_CONV CRTWRAP(ferror)( FILE *fp )
    3435{
    3536    unsigned short sel = RestoreOS2FS();
     
    4142}
    4243
    43 int _LNK_CONV os2_fflush( FILE *fp )
     44int _LNK_CONV CRTWRAP(fflush)( FILE *fp )
    4445{
    4546    unsigned short sel = RestoreOS2FS();
     
    5152}
    5253
    53 int _LNK_CONV os2_fgetc( FILE *fp )
     54int _LNK_CONV CRTWRAP(fgetc)( FILE *fp )
    5455{
    5556    unsigned short sel = RestoreOS2FS();
     
    6162}
    6263
    63 int _LNK_CONV os2_fgetpos( FILE *fp, fpos_t *pos)
     64int _LNK_CONV CRTWRAP(fgetpos)( FILE *fp, fpos_t *pos)
    6465{
    6566    unsigned short sel = RestoreOS2FS();
     
    7172}
    7273
    73 char *_LNK_CONV os2_fgets( char *buf, int size, FILE *fp )
     74char *_LNK_CONV CRTWRAP(fgets)( char *buf, int size, FILE *fp )
    7475{
    7576    unsigned short sel = RestoreOS2FS();
     
    8182}
    8283
    83 FILE * _LNK_CONV os2_fopen( const char *name, const char *type)
     84FILE * _LNK_CONV CRTWRAP(fopen)( const char *name, const char *type)
    8485{
    8586    unsigned short sel = RestoreOS2FS();
     
    9192}
    9293
    93 int _LNK_CONV os2_fputc( int c, FILE *fp )
     94int _LNK_CONV CRTWRAP(fputc)( int c, FILE *fp )
    9495{
    9596    unsigned short sel = RestoreOS2FS();
     
    101102}
    102103
    103 int _LNK_CONV os2_fputs( const char *string, FILE *fp )
     104int _LNK_CONV CRTWRAP(fputs)( const char *string, FILE *fp )
    104105{
    105106    unsigned short sel = RestoreOS2FS();
     
    111112}
    112113
    113 size_t _LNK_CONV os2_fread( void *buf, size_t size, size_t elsize, FILE *fp )
     114size_t _LNK_CONV CRTWRAP(fread)( void *buf, size_t size, size_t elsize, FILE *fp )
    114115{
    115116    unsigned short sel = RestoreOS2FS();
     
    121122}
    122123
    123 FILE *  _LNK_CONV os2_freopen( const char *name, const char *type, FILE *fp )
     124FILE *  _LNK_CONV CRTWRAP(freopen)( const char *name, const char *type, FILE *fp )
    124125{
    125126    unsigned short sel = RestoreOS2FS();
     
    131132}
    132133
    133 int _LNK_CONV os2_fseek( FILE *fp, long int pos, int type)
     134int _LNK_CONV CRTWRAP(fseek)( FILE *fp, long int pos, int type)
    134135{
    135136    unsigned short sel = RestoreOS2FS();
     
    141142}
    142143
    143 int _LNK_CONV os2_fsetpos( FILE *fp, const fpos_t *pos)
     144int _LNK_CONV CRTWRAP(fsetpos)( FILE *fp, const fpos_t *pos)
    144145{
    145146    unsigned short sel = RestoreOS2FS();
     
    151152}
    152153
    153 long int _LNK_CONV os2_ftell( FILE *fp )
     154long int _LNK_CONV CRTWRAP(ftell)( FILE *fp )
    154155{
    155156    unsigned short sel = RestoreOS2FS();
     
    161162}
    162163
    163 size_t  _LNK_CONV os2_fwrite( const void *buf, size_t size, size_t elsize, FILE *fp )
     164size_t  _LNK_CONV CRTWRAP(fwrite)( const void *buf, size_t size, size_t elsize, FILE *fp )
    164165{
    165166    unsigned short sel = RestoreOS2FS();
     
    171172}
    172173
    173 int _LNK_CONV os2_vfprintf( FILE *fp, const char *string, __va_list list )
     174int _LNK_CONV CRTWRAP(vfprintf)( FILE *fp, const char *string, __va_list list )
    174175{
    175176    unsigned short sel = RestoreOS2FS();
     
    181182}
    182183
    183 wint_t  _LNK_CONV os2_fgetwc(FILE *fp)
     184wint_t  _LNK_CONV CRTWRAP(fgetwc)(FILE *fp)
    184185{
    185186    unsigned short sel = RestoreOS2FS();
     
    191192}
    192193
    193 wchar_t * _LNK_CONV os2_fgetws(wchar_t *buf, int size, FILE *fp)
     194wchar_t * _LNK_CONV CRTWRAP(fgetws)(wchar_t *buf, int size, FILE *fp)
    194195{
    195196    unsigned short sel = RestoreOS2FS();
     
    201202}
    202203
    203 wint_t _LNK_CONV os2_fputwc(wchar_t character, FILE *fp)
     204wint_t _LNK_CONV CRTWRAP(fputwc)(wchar_t character, FILE *fp)
    204205{
    205206    unsigned short sel = RestoreOS2FS();
     
    211212}
    212213
    213 int _LNK_CONV os2_fputws(const wchar_t *string, FILE *fp)
     214int _LNK_CONV CRTWRAP(fputws)(const wchar_t *string, FILE *fp)
    214215{
    215216    unsigned short sel = RestoreOS2FS();
     
    221222}
    222223
    223 FILE * _LNK_CONV os2_fdopen( int a, const char *bla)
     224FILE * _LNK_CONV CRTWRAP(fdopen)( int a, const char *bla)
    224225{
    225226    unsigned short sel = RestoreOS2FS();
Note: See TracChangeset for help on using the changeset viewer.