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

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