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

  1. /*
  2.  * (c) Copyright 1990 Tektronix Inc.
  3.  *     All Rights Reserved
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software and its
  6.  * documentation for any purpose and without fee is hereby granted,
  7.  * provided that the above copyright notice appear in all copies and that
  8.  * both that copyright notice and this permission notice appear in
  9.  * supporting documentation, and that the name of Tektronix not be used
  10.  * in advertising or publicity pertaining to distribution of the software
  11.  * without specific, written prior permission.
  12.  *
  13.  * Tektronix disclaims all warranties with regard to this software, including
  14.  * all implied warranties of merchantability and fitness, in no event shall
  15.  * Tektronix be liable for any special, indirect or consequential damages or
  16.  * any damages whatsoever resulting from loss of use, data or profits,
  17.  * whether in an action of contract, negligence or other tortious action,
  18.  * arising out of or in connection with the use or performance of this
  19.  * software.
  20.  *
  21.  *
  22.  *    NAME
  23.  *        LibTest.h
  24.  *
  25.  *    DESCRIPTION
  26.  *        Public include file for the LibTest test interface tool
  27.  *
  28.  *    REVISION
  29.  *        $Header: LibTest.h,v 1.2 91/07/31 22:46:40 keith Exp $
  30.  */
  31. #ifndef LIBTEST_H
  32. #define LIBTEST_H
  33.  
  34. /*
  35.  *    DEFINES
  36.  */
  37. #ifndef    GLOBAL
  38. #  define    GLOBAL
  39. #endif
  40.  
  41. /*
  42.  *    EXTERNS
  43.  */
  44. extern    int CommandArgc;    /* GLOBAL */
  45. extern    char **CommandArgv;    /* GLOBAL */
  46.  
  47. /*
  48.  *    TYPEDEFS
  49.  */
  50. #ifndef Status
  51. typedef int Status;
  52. #endif
  53.  
  54. typedef Status (*PFStatus)();
  55.  
  56. typedef struct {
  57.     char *pstring;
  58.     PFStatus pfunc;
  59. } FuncTableEntry;
  60.  
  61. typedef struct _LtDefineEntry{
  62.     char        *pstring;
  63.     unsigned long    define;
  64. } LtDefineEntry;
  65.  
  66. extern PFStatus LtStrToFuncPtr();
  67. extern char *LtDefineToStr();
  68. extern int  LtStrToDefine();
  69.  
  70. #endif /* LIBTEST_H */
  71.