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 >
C/C++ Source or Header  |  1998-06-17  |  2KB  |  47 lines

  1. /***
  2. *cmiscdat.c - miscellaneous C run-time data
  3. *
  4. *       Copyright (c) 1989-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       Includes floating point conversion table (for C float output).
  8. *
  9. *       When floating point I/O conversions are done, but no floating-point
  10. *       variables or expressions are used in the C program, we use the
  11. *       _cfltcvt_tab[] to map these cases to the _fptrap entry point,
  12. *       which prints "floating point not loaded" and dies.
  13. *
  14. *       This table is initialized to six copies of _fptrap by default.
  15. *       If floating-point is linked in (_fltused), these table entries
  16. *       are reset (see input.c, output.c, fltused.asm, and fltuseda.asm).
  17. *
  18. *******************************************************************************/
  19.  
  20. #include <cruntime.h>
  21. #include <internal.h>
  22. #include <fltintrn.h>
  23.  
  24. /*-
  25.  *      ... table of (model-dependent) code pointers ...
  26.  *
  27.  *      Six entries, all point to _fptrap by default,
  28.  *      but are changed to point to the appropriate
  29.  *      routine if the _fltused initializer (_cfltcvt_init)
  30.  *      is linked in.
  31.  *
  32.  *      if the _fltused modules are linked in, then the
  33.  *      _cfltcvt_init initializer sets the 6 entries of
  34.  *      _cfltcvt_tab to:
  35.  *
  36.  *              _cfltcvt
  37.  *              _cropzeros
  38.  *              _fassign
  39.  *              _forcdecpt
  40.  *              _positive
  41.  *              _cldcvt
  42. -*/
  43.  
  44. void (*_cfltcvt_tab[6])(void) = {
  45.         _fptrap, _fptrap, _fptrap, _fptrap, _fptrap, _fptrap
  46. };
  47.