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 / internals.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-21  |  1.2 KB  |  45 lines

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