home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / demos / xcmstest / TekCMSglob.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-31  |  2.9 KB  |  104 lines

  1. /* $XConsortum: TekCMSglob.c,v 1.1 91/02/11 19:40:44 dave Exp $ */
  2.  
  3. /*
  4.  * (c) Copyright 1988, Tektronix Inc.
  5.  *     All Rights Reserved
  6.  *
  7.  * Permission to use, copy, modify, and distribute this software and its
  8.  * documentation for any purpose and without fee is hereby granted,
  9.  * provided that the above copyright notice appear in all copies and that
  10.  * both that copyright notice and this permission notice appear in
  11.  * supporting documentation, and that the name of Tektronix not be used
  12.  * in advertising or publicity pertaining to distribution of the software
  13.  * without specific, written prior permission.
  14.  *
  15.  * Tektronix disclaims all warranties with regard to this software, including
  16.  * all implied warranties of merchantability and fitness, in no event shall
  17.  * Tektronix be liable for any special, indirect or consequential damages or
  18.  * any damages whatsoever resulting from loss of use, data or profits,
  19.  * whether in an action of contract, negligence or other tortious action,
  20.  * arising out of or in connection with the use or performance of this
  21.  * software.
  22.  *
  23.  *    NAME
  24.  *        globals.c -- globals
  25.  *
  26.  *    DESCRIPTION
  27.  */
  28.  
  29. /*
  30.  *      EXTERNAL INCLUDES
  31.  *              Include files that must be exported to any package or
  32.  *              program using this package.
  33.  */
  34. /* this file contains the typedef for LtDefineEntry */
  35. #include "LibTest.h"
  36.  
  37.  
  38. /*
  39.  *      INTERNAL INCLUDES
  40.  *              Include files that need NOT be exported to any package or
  41.  *              program using this package.
  42.  */
  43. #include <X11/Xlib.h>
  44. #include <X11/Xcms.h>
  45.  
  46. /*
  47.  *    INTERNALS
  48.  *        Declarations that are local to this module.
  49.  *        (ignored by 'autohdr').
  50.  */
  51.  
  52. /*
  53.  *    EXTERNALS
  54.  *        Declarations that are needed by calling modules.
  55.  *        When using 'autohdr', these declaration will be placed
  56.  *        in the resulting header file.
  57.  */
  58.  
  59. #define THOUSAND    1000
  60.  
  61. LtDefineEntry ErrorTbl[] = {
  62.     "Success",        Success,
  63.     "BadRequest",    BadRequest,
  64.     "BadValue",        BadValue,
  65.     "BadWindow",    BadWindow,
  66.     "BadPixmap",    BadPixmap,
  67.     "BadAtom",        BadAtom,
  68.     "BadCursor",    BadCursor,
  69.     "BadFont",        BadFont,
  70.     "BadMatch",        BadMatch,
  71.     "BadDrawable",    BadDrawable,
  72.     "BadAccess",    BadAccess,
  73.     "BadAlloc",        BadAlloc,
  74.     "BadColor",        BadColor,
  75.     "BadGC",        BadGC,
  76.     "BadIDChoice",    BadIDChoice,
  77.     "BadName",        BadName,
  78.     "BadLength",    BadLength,
  79.     "BadImplementation",    BadImplementation,
  80.     "FirstExtensionError",  FirstExtensionError,
  81.     "LastExtensionError",   LastExtensionError,
  82.     "",                0
  83. };
  84.  
  85. LtDefineEntry AllocTbl[] = {
  86.     "AllocNone",    AllocNone,
  87.     "AllocAll",        AllocAll,
  88.     "illegala1",    THOUSAND,
  89.     "",            0
  90. };
  91.  
  92. LtDefineEntry FormatTbl[] = {
  93.     "RGBi",        XcmsRGBiFormat,
  94.     "RGB",        XcmsRGBFormat,
  95.     "UNDEFINED",    XcmsUndefinedFormat,
  96.     "CIEXYZ",        XcmsCIEXYZFormat,
  97.     "CIExyY",        XcmsCIExyYFormat,
  98.     "CIEuvY",        XcmsCIEuvYFormat,
  99.     "CIELab",        XcmsCIELabFormat,
  100.     "CIELuv",        XcmsCIELuvFormat,
  101.     "TekHVC",        XcmsTekHVCFormat,
  102.     "",            0
  103. };
  104.