home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p024 / 12.img / ADS1.LIB / CALEXPR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-27  |  2.0 KB  |  47 lines

  1. /*****************************************************************************
  2.       CALEXPR.H
  3.       (C) Copyright 1988-1992 by Autodesk, Inc.
  4.  
  5.       This program is copyrighted by Autodesk, Inc. and is  licensed
  6.       to you under the following conditions.  You may not distribute
  7.       or  publish the source code of this program in any form.   You
  8.       may  incorporate this code in object form in derivative  works
  9.       provided  such  derivative  works  are  (i.) are  designed and 
  10.       intended  to  work  solely  with  Autodesk, Inc. products, and 
  11.       (ii.)  contain  Autodesk's  copyright  notice  "(C)  Copyright  
  12.       1988-1992 by Autodesk, Inc."
  13.  
  14.       AUTODESK  PROVIDES THIS PROGRAM "AS IS" AND WITH  ALL  FAULTS.
  15.       AUTODESK  SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF  MER-
  16.       CHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK,  INC.
  17.       DOES  NOT  WARRANT THAT THE OPERATION OF THE PROGRAM  WILL  BE
  18.       UNINTERRUPTED OR ERROR FREE.
  19.  
  20.   Description: Header file for calexpr.c
  21.  
  22. *****************************************************************************/
  23.  
  24.  
  25. /****************************************************************************/
  26. /*  TYPEDEFS                                                                */
  27. /****************************************************************************/
  28.  
  29. typedef enum { vector_type, real_type, int_type, no_type } value_type;
  30.  
  31. typedef struct                        /* The value of the expression */
  32. {
  33.    value_type type;                   /* Type of the value       */
  34.    double     v[3];                   /* Used for vectors        */
  35.    double     r;                      /* Used for reals/integers */
  36. } vector_real_int;
  37.  
  38.  
  39. /****************************************************************************/
  40. /*  EXPORTED FUNCTIONS                                                      */
  41. /****************************************************************************/
  42.  
  43. int cal_evaluate_expression _((char *line, vector_real_int *value));
  44.  
  45.  
  46.  
  47.