home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / nasm20b / nasm_src / version0.c < prev    next >
C/C++ Source or Header  |  1993-01-19  |  1KB  |  38 lines

  1. /* ---------------------------------------------------------------------- */
  2. /*                   Copyright (C) 1991 by Natürlich!                     */
  3. /*                      This file is copyrighted!                         */
  4. /*                Refer to the documentation for details.                 */
  5. /* ---------------------------------------------------------------------- */
  6. #include "defines.h"
  7. #if ! VERSION
  8. # include "nasm.h"
  9. # include "object.h"
  10.  
  11. /* if you can't get thru here w/o warnings set INCOMPATIBLE to 1 */
  12. void version0()
  13. {
  14.    if( EXPRSIZE != sizeof( expr))      /* Hmm this looks strange ... */
  15.       nwarning("Expression in structs.h structure wrong");
  16.    if( LSYMSIZE != sizeof( linksymbol))
  17.       nwarning("linksymbol in object.h has non-portable size");
  18.    if( OBJHSIZE != sizeof( obj_h))
  19.       nwarning("obj_h in object.h has non-portable size");
  20.    if( EDROPSIZE != sizeof( e_dropped))
  21.       nwarning("e_dropped in object.h has non-portable size");
  22.    if( IDROPSIZE != sizeof( i_dropped))
  23.       nwarning("i_dropped in object.h has non-portable size");
  24.    if( RDROPSIZE != sizeof( r_dropped))
  25.       nwarning("r_dropped in object.h has non-portable size");
  26.    if( SDROPSIZE != sizeof( s_dropped))
  27.       nwarning("s_dropped in object.h has non-portable size");
  28. }
  29.  
  30. char  x1[] = " _SEGMENT ",
  31.       x2[] = " _IMMETAB ",
  32.       x3[] = " _REFTABS ",
  33.       x4[] = " _EXPRESS ",
  34.       x5[] = " _SYMBOLS ",
  35.       x6[] = " _FIX_UPS ";
  36.  
  37. #endif
  38.