home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / general.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-28  |  1.7 KB  |  66 lines

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; either version 2 of the License, or
  7.  * (at your option) any later version.
  8.  *
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  */
  18. #ifndef __GENERAL_H__
  19. #define __GENERAL_H__
  20.  
  21.  
  22. #include <stdio.h>
  23.  
  24.  
  25. typedef enum
  26. {
  27.   TOKEN_EOF,
  28.   TOKEN_LEFT_PAREN,
  29.   TOKEN_RIGHT_PAREN,
  30.   TOKEN_SYMBOL,
  31.   TOKEN_STRING,
  32.   TOKEN_NUMBER
  33. } TokenDataType;
  34.  
  35.  
  36. typedef struct _ParseInfo  ParseInfo;
  37.  
  38. struct _ParseInfo
  39. {
  40.   FILE *fp;
  41.   char *buffer;
  42.   char *tokenbuf;
  43.   int linenum;
  44.   int charnum;
  45.   int position;
  46.   int buffer_size;
  47.   int tokenbuf_size;
  48.   unsigned int inc_linenum : 1;
  49.   unsigned int inc_charnum : 1;
  50. };
  51.  
  52.  
  53. char * search_in_path (char *, char *);
  54. char * xstrsep (char **p, char *delim);
  55. int    get_token (ParseInfo *info);
  56. int    find_token (char *line, char *token_r, int maxlen);
  57. char * iso_8601_date_format (char *user_buf, int strict);
  58.  
  59. extern char *token_str;
  60. extern char *token_sym;
  61. extern double token_num;
  62. extern int token_int;
  63.  
  64.  
  65. #endif /* __GENERAL_H__ */
  66.