home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
vc98
/
crt
/
src
/
cmiscdat.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-06-17
|
2KB
|
47 lines
/***
*cmiscdat.c - miscellaneous C run-time data
*
* Copyright (c) 1989-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Includes floating point conversion table (for C float output).
*
* When floating point I/O conversions are done, but no floating-point
* variables or expressions are used in the C program, we use the
* _cfltcvt_tab[] to map these cases to the _fptrap entry point,
* which prints "floating point not loaded" and dies.
*
* This table is initialized to six copies of _fptrap by default.
* If floating-point is linked in (_fltused), these table entries
* are reset (see input.c, output.c, fltused.asm, and fltuseda.asm).
*
*******************************************************************************/
#include <cruntime.h>
#include <internal.h>
#include <fltintrn.h>
/*-
* ... table of (model-dependent) code pointers ...
*
* Six entries, all point to _fptrap by default,
* but are changed to point to the appropriate
* routine if the _fltused initializer (_cfltcvt_init)
* is linked in.
*
* if the _fltused modules are linked in, then the
* _cfltcvt_init initializer sets the 6 entries of
* _cfltcvt_tab to:
*
* _cfltcvt
* _cropzeros
* _fassign
* _forcdecpt
* _positive
* _cldcvt
-*/
void (*_cfltcvt_tab[6])(void) = {
_fptrap, _fptrap, _fptrap, _fptrap, _fptrap, _fptrap
};