home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / unofficial-plug-ins / mathmap / vars.h < prev   
Encoding:
C/C++ Source or Header  |  2000-04-21  |  1.3 KB  |  49 lines

  1. /*
  2.  * vars.h
  3.  *
  4.  * MathMap
  5.  *
  6.  * Copyright (C) 1997-2000 Mark Probst
  7.  *
  8.  * This program is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU General Public License
  10.  * as published by the Free Software Foundation; either version 2
  11.  * of the License, or (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program; if not, write to the Free Software
  20.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef __VARS_H__
  24. #define __VARS_H__
  25.  
  26. #define VAR_MAX_LENGTH     32
  27.  
  28. #include "tuples.h"
  29.  
  30. typedef struct _variable_t
  31. {
  32.     char name[VAR_MAX_LENGTH];
  33.     tuple_info_t type;
  34.  
  35.     tuple_t value;
  36.  
  37.     struct _variable_t *next;
  38. } variable_t;
  39.  
  40. variable_t* register_variable (const char *name, tuple_info_t type);
  41. variable_t* lookup_variable (const char *name, tuple_info_t *type);
  42. variable_t* new_temporary_variable (tuple_info_t type);
  43.  
  44. void clear_all_variables (void);
  45.  
  46. extern variable_t *firstVariable;
  47.  
  48. #endif
  49.