00001
00002
00003
00004
00005
00006 #ifndef lint
00007 static char vcid[] = "$Id: info.c,v 1.4 1995/01/30 21:03:55 duchier Exp $";
00008 #endif
00009
00010 #include "extern.h"
00011 #include "info.h"
00012
00013
00014
00015
00016
00017
00018 static void pnf(s,n)
00019 char *s;
00020 long n;
00021 {
00022 long i;
00023
00024 printf(" %s ",s);
00025 i=strlen(s);
00026 while(++i<40) printf(".");
00027 printf(" %3d bytes.\n",n);
00028 }
00029
00030
00031
00032
00033
00034
00035
00036
00037 void title()
00038 {
00039 if(quietflag)
00040 return;
00041
00042 printf("Wild_Life Interpreter Version 1.02 06/17/96\n");
00043 printf("Copyright (C) 1991-93 DEC Paris Research Laboratory\n");
00044 printf("Extensions, Copyright (C) 1994-1995 Intelligent Software Group, SFU\n");
00045 #ifdef OS2_PORT
00046 printf("OS/2 Port by Dennis J. Darland 06/17/96\n");
00047 printf("Linux Port by Dennis J. Darland 11/12/2006\n");
00048 #endif
00049
00050 #ifndef X11
00051 printf("X interface not installed.\n");
00052 #endif
00053
00054 #if 0
00055 printf("\n- Main data-structure sizes:\n");
00056 pnf("rule",sizeof(struct pair_list));
00057 pnf("psi_term",sizeof(struct psi_term));
00058 pnf("binary tree node",sizeof(struct node));
00059 pnf("stacked goal",sizeof(struct goal));
00060 pnf("stacked choice-point",sizeof(struct choice_point));
00061 pnf("backtracking action",sizeof(struct ptr_stack));
00062 pnf("symbol definition",sizeof(struct definition));
00063 pnf("code node",sizeof(struct int_list));
00064 pnf("list node",sizeof(struct list));
00065 pnf("real number",sizeof(REAL));
00066
00067 printf("\n- Size of C built-in types:\n");
00068 pnf("REAL",sizeof(REAL));
00069 pnf("long",sizeof(long));
00070 pnf("int",sizeof(unsigned long));
00071 pnf("pointer",sizeof(char *));
00072
00073 printf("\n- System constants:\n");
00074 pnf("Maximum string or line length:",STRLEN);
00075 pnf("Parser stack depth:",PARSER_STACK_SIZE);
00076 pnf("Size of real numbers:",sizeof(REAL));
00077 printf("\n\n");
00078 #endif
00079 }