[BACK]Return to usage.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / Kan

Diff for /OpenXM/src/kan96xx/Kan/usage.c between version 1.6 and 1.7

version 1.6, 2000/06/08 08:35:03 version 1.7, 2001/05/04 01:06:26
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/Kan/usage.c,v 1.5 2000/03/09 12:04:52 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/Kan/usage.c,v 1.6 2000/06/08 08:35:03 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include "datatype.h"  #include "datatype.h"
 #include "stackm.h"  #include "stackm.h"
Line 10 
Line 10 
 */  */
   
 void Kusage(ob)  void Kusage(ob)
 struct object ob;       struct object ob;
 {  {
   char *s;    char *s;
   printf("\n");    printf("\n");
Line 27  struct object ob;
Line 27  struct object ob;
 #define fppp fprintf  #define fppp fprintf
   
 void Kusage2(fp,s)  void Kusage2(fp,s)
 FILE *fp;       FILE *fp;
 char *s;       char *s;
 {  {
   /*int n,i; fprintf(stderr,"\n%d: ",strlen(s));    /*int n,i; fprintf(stderr,"\n%d: ",strlen(s));
   for (i=0; i<strlen(s); i++) fprintf(stderr," %x",s[i]);*/      for (i=0; i<strlen(s); i++) fprintf(stderr," %x",s[i]);*/
   if (strcmp(s,"add")==0) {    if (strcmp(s,"add")==0) {
     fppp(fp,"<< obj1 obj2 add obj3 >>\n");      fppp(fp,"<< obj1 obj2 add obj3 >>\n");
     fppp(fp,"obj3 is the sum of obj1 and obj2.\n");      fppp(fp,"obj3 is the sum of obj1 and obj2.\n");
Line 235  char *s;
Line 235  char *s;
     fppp(fp,"Example:  5 2 idiv ::  ===> 2\n");      fppp(fp,"Example:  5 2 idiv ::  ===> 2\n");
   }else if (strcmp(s,"ifelse") == 0) {    }else if (strcmp(s,"ifelse") == 0) {
     fppp(fp,"<< condition { true case } { false case } ifelse >>\n"); /*:*/      fppp(fp,"<< condition { true case } { false case } ifelse >>\n"); /*:*/
                                           /* Tenuki mark --------------^ */      /* Tenuki mark --------------^ */
     fppp(fp,"integer condition;\n");      fppp(fp,"integer condition;\n");
     fppp(fp,"If condition is non-zero, then true-case will be executed,\n");      fppp(fp,"If condition is non-zero, then true-case will be executed,\n");
     fppp(fp,"else false-case will be executed.\n");      fppp(fp,"else false-case will be executed.\n");
Line 474  char *s;
Line 474  char *s;
     fppp(fp,"file fd; string s;\n");      fppp(fp,"file fd; string s;\n");
     fppp(fp,"Write the string s to the file fd.\n");      fppp(fp,"Write the string s to the file fd.\n");
     fppp(fp,"cf. [(PrintDollar)] system_variable, file, closefile\n");      fppp(fp,"cf. [(PrintDollar)] system_variable, file, closefile\n");
 /******* macros ************/      /******* macros ************/
   }else if (strcmp(s,"timer")==0) {    }else if (strcmp(s,"timer")==0) {
     fppp(fp,"<< { executable array } timer >>\n"); /*:*/      fppp(fp,"<< { executable array } timer >>\n"); /*:*/
   }else{    }else{

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>