00001 /* 00002 * Copyright (c) 2003 EU DataGrid http://www.eu-datagrid.org/ 00003 * 00004 * $Id: pdl_variable.h,v 1.6 2003/07/30 14:37:09 venekamp Exp $ 00005 * 00006 * Copyright (c) 2003 by 00007 * G.M. Venekamp <venekamp@nikhef.nl> 00008 * NIKHEF Amsterdam, the Netherlands 00009 * 00010 * This software is distributed under a BSD-style open source 00011 * licence. For a complete description of the licence take a look 00012 * at: http://eu-datagrid.web.cern.ch/eu-datagrid/license.html 00013 * 00014 */ 00015 00016 00033 #ifndef _PDL_VARIABLE_H 00034 #define _PDL_VARIABLE_H 00035 00036 #include "pdl.h" 00037 #include "pdl_rule.h" 00038 00044 typedef struct var_s { 00045 const char* name; 00046 const char* value; 00047 BOOL okay; 00048 unsigned int lineno; 00049 struct var_s* next; 00050 } var_t; 00051 00052 00053 extern void add_variable(record_t* name, record_t* value); 00054 extern var_t* find_variable(const char* name); 00055 extern void reduce_to_var(const char** name, rule_type_t rule_type); 00056 extern void show_variables(void); 00057 extern void free_variables(void); 00058 extern var_t* get_variables(void); 00059 00060 #endif