home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / SQDEV200.ZIP / SRC / _CTYPE.C next >
C/C++ Source or Header  |  1994-05-23  |  4KB  |  74 lines

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *  Squish Developers Kit Source, Version 2.00                             *
  4.  *  Copyright 1989-1994 by SCI Communications.  All rights reserved.       *
  5.  *                                                                         *
  6.  *  USE OF THIS FILE IS SUBJECT TO THE RESTRICTIONS CONTAINED IN THE       *
  7.  *  SQUISH DEVELOPERS KIT LICENSING AGREEMENT IN SQDEV.PRN.  IF YOU DO NOT *
  8.  *  FIND THE TEXT OF THIS AGREEMENT IN THE AFOREMENTIONED FILE, OR IF YOU  *
  9.  *  DO NOT HAVE THIS FILE, YOU SHOULD IMMEDIATELY CONTACT THE AUTHOR AT    *
  10.  *  ONE OF THE ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO  *
  11.  *  USE THIS FILE WITHOUT HAVING ACCEPTED THE TERMS OF THE SQUISH          *
  12.  *  DEVELOPERS KIT LICENSING AGREEMENT, OR SUCH OTHER AGREEMENT AS YOU ARE *
  13.  *  ABLE TO REACH WITH THE AUTHOR.                                         *
  14.  *                                                                         *
  15.  *  You can contact the author at one of the address listed below:         *
  16.  *                                                                         *
  17.  *  Scott Dudley       FidoNet     1:249/106                               *
  18.  *  777 Downing St.    Internet    sjd@f106.n249.z1.fidonet.org            *
  19.  *  Kingston, Ont.     CompuServe  >INTERNET:sjd@f106.n249.z1.fidonet.org  *
  20.  *  Canada  K7M 5N3    BBS         1-613-634-3058, V.32bis                 *
  21.  *                                                                         *
  22.  ***************************************************************************/
  23.  
  24.  
  25. /* The MSC toupper macro breaks the ansi rules for side effects.
  26.  *
  27.  * Rather than figure out where in Max we must use the toupper() function
  28.  * rather than the macro,  I've decided to waste a little memory on
  29.  * a table and macro that works properly.
  30.  * 
  31.  * P.Fitzsimmons.
  32.  */
  33.  
  34. #include "compiler.h"
  35.  
  36. #ifdef __MSC__
  37.  
  38. unsigned char _MyUprTab[256] = {
  39.       0,   1,   2,   3,   4,   5,   6,   7,
  40.       8,   9,  10,  11,  12,  13,  14,  15,
  41.      16,  17,  18,  19,  20,  21,  22,  23,
  42.      24,  25,  26,  27,  28,  29,  30,  31,
  43.      32,  33,  34,  35,  36,  37,  38,  39,
  44.      40,  41,  42,  43,  44,  45,  46,  47,
  45.      48,  49,  50,  51,  52,  53,  54,  55,
  46.      56,  57,  58,  59,  60,  61,  62,  63,
  47.      64,  65,  66,  67,  68,  69,  70,  71,
  48.      72,  73,  74,  75,  76,  77,  78,  79,
  49.      80,  81,  82,  83,  84,  85,  86,  87,
  50.      88,  89,  90,  91,  92,  93,  94,  95,
  51.      96,  65,  66,  67,  68,  69,  70,  71,
  52.      72,  73,  74,  75,  76,  77,  78,  79,
  53.      80,  81,  82,  83,  84,  85,  86,  87,
  54.      88,  89,  90, 123, 124, 125, 126, 127,
  55.     128, 129, 130, 131, 132, 133, 134, 135,
  56.     136, 137, 138, 139, 140, 141, 142, 143,
  57.     144, 145, 146, 147, 148, 149, 150, 151,
  58.     152, 153, 154, 155, 156, 157, 158, 159,
  59.     160, 161, 162, 163, 164, 165, 166, 167,
  60.     168, 169, 170, 171, 172, 173, 174, 175,
  61.     176, 177, 178, 179, 180, 181, 182, 183,
  62.     184, 185, 186, 187, 188, 189, 190, 191,
  63.     192, 193, 194, 195, 196, 197, 198, 199,
  64.     200, 201, 202, 203, 204, 205, 206, 207,
  65.     208, 209, 210, 211, 212, 213, 214, 215,
  66.     216, 217, 218, 219, 220, 221, 222, 223,
  67.     224, 225, 226, 227, 228, 229, 230, 231,
  68.     232, 233, 234, 235, 236, 237, 238, 239,
  69.     240, 241, 242, 243, 244, 245, 246, 247,
  70.     248, 249, 250, 251, 252, 253, 254, 255
  71. };
  72.  
  73. #endif
  74.