home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / extensions / server / PEX / include / scgen.ci < prev    next >
Encoding:
Text File  |  1991-02-15  |  2.6 KB  |  82 lines

  1. /* $XConsortium: scgen.ci,v 5.2 91/02/16 09:57:45 rws Exp $ */
  2.  
  3. /*
  4.  * Copyright (c) 1988-1991 by Sun Microsystems, Inc.
  5.  */
  6.  
  7. /*
  8.     for the PEX-SI, don't do non-conversions
  9.  */
  10.  
  11. /* 
  12.  * scgen.ci - Generate swap and conv procedures
  13.  * 
  14.  * Copyright 1988-1991
  15.  * Center for Information Technology Integration (CITI)
  16.  * Information Technology Division
  17.  * University of Michigan
  18.  * Ann Arbor, Michigan
  19.  *
  20.  *                         All Rights Reserved
  21.  * 
  22.  * Permission to use, copy, modify, and distribute this software and
  23.  * its documentation for any purpose and without fee is hereby
  24.  * granted, provided that the above copyright notice appear in all
  25.  * copies and that both that copyright notice and this permission
  26.  * notice appear in supporting documentation, and that the names of
  27.  * CITI or THE UNIVERSITY OF MICHIGAN not be used in advertising or
  28.  * publicity pertaining to distribution of the software without
  29.  * specific, written prior permission.
  30.  * 
  31.  * THE SOFTWARE IS PROVIDED "AS IS." CITI AND THE UNIVERSITY OF
  32.  * MICHIGAN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  33.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
  34.  * NO EVENT SHALL CITI OR THE UNIVERSITY OF MICHIGAN BE LIABLE FOR ANY
  35.  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  36.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
  37.  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
  38.  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  39.  * SOFTWARE.
  40.  */
  41. /*****************************************************************
  42.  * TAG( scgen.ci )
  43.  * 
  44.  * This spits out the eight include statements necessary to make
  45.  * a full compliment of functions which operate in a byte-swapped,
  46.  * float-converted environment. The first function is neither
  47.  * byte-swapped nor float-converted. The second is only byte-swapped.
  48.  * the third is only float-converted, and the fourth is both
  49.  * byte-swapped and float-converted.
  50.  * 
  51.  * Inputs:
  52.  *      SWAP_FILE is defined beforehand as the quoted name of the file
  53.  *      which contains the function template.
  54.  * Outputs:
  55.  *     Output from here is simply eight #include statements, two for
  56.  *     each function; however these are expanded by the preprocessor
  57.  *     into four different functions.
  58.  * Assumptions:
  59.  *     SWAP_FILE has been #defined to the function template file
  60.  *     name, in quotes, just before inclusion of this file.
  61.  * Algorithm:
  62.  *     ...
  63.  */
  64.  
  65. #ifndef pswapConvFloatc
  66. #include "swapmacros.h"
  67. #endif
  68.  
  69. /*
  70.     #include "NoConv.ci"
  71.     #include SWAP_FILE
  72. */
  73.  
  74. #include "OnlySwap.ci"
  75. #include SWAP_FILE
  76.  
  77. #include "OnlyConv.ci"
  78. #include SWAP_FILE
  79.  
  80. #include "SwapConv.ci"
  81. #include SWAP_FILE
  82.