C:/Users/Dennis/src/lang/Life_start/Life/life-1.02/source/template.c

Go to the documentation of this file.
00001 /* Copyright 1991 Digital Equipment Corporation.
00002  * All Rights Reserved.
00003 *****************************************************************/
00004 /*      $Id: templates.c,v 1.2 1994/12/08 23:33:53 duchier Exp $         */
00005 
00006 #ifndef lint
00007 static char vcid[] = "$Id: templates.c,v 1.2 1994/12/08 23:33:53 duchier Exp $";
00008 #endif /* lint */
00009 
00010 #include "extern.h"
00011 #include "print.h"
00012 #ifndef OS2_PORT
00013 #include "built_ins.h"
00014 #else
00015 #include "built_in.h"
00016 #endif
00017 
00018 #include "types.h"
00019 #include "trees.h"
00020 #include "lefun.h"
00021 #include "error.h"
00022 #ifndef OS2_PORT
00023 #include "templates.h"
00024 #else
00025 #include "template.h"
00026 #endif
00027 
00028 
00029 /******** next things have to be defined in a header file
00030 */
00031 
00032 char *numbers[] = {"1","2","3","4","5","6","7","8","9","10",
00033                    "11","12","13","14","15","16","17","18","19","20",
00034                    NULL};
00035 
00036 
00037 long set_extra_args[] = {set_empty, set_1, set_2, set_1_2, set_1_2_3, set_1_2_3_4};
00038 
00039 
00040 
00041 /******** GET_ARG
00042 
00043   assign the argument "number" of the goal "g" in "arg".
00044   return FALSE if bad argument.
00045 */
00046 
00047 long get_arg (g, arg, number)
00048 
00049 ptr_psi_term g, *arg;
00050 char *number;
00051 {
00052     ptr_node n;
00053 
00054 
00055     if (n = find (featcmp, number, g->attr_list))
00056         return (*arg = (ptr_psi_term) n->data) ? TRUE: FALSE;
00057     else
00058         return FALSE;
00059 }
00060 
00061 
00062 

Generated on Sat Jan 26 08:48:07 2008 for WildLife by  doxygen 1.5.4