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

Diff for /OpenXM/src/kan96xx/plugin/sample.c between version 1.3 and 1.4

version 1.3, 2005/06/16 05:07:24 version 1.4, 2020/10/06 11:33:47
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/plugin/sample.c,v 1.2 2000/01/16 07:55:48 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/plugin/sample.c,v 1.3 2005/06/16 05:07:24 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include "../Kan/datatype.h"  #include "../Kan/datatype.h"
 #include "../Kan/stackm.h"  #include "../Kan/stackm.h"
Line 32  int Kplugin_sample(int opcode, struct object obj) {
Line 32  int Kplugin_sample(int opcode, struct object obj) {
   struct object ob1 = OINIT;    struct object ob1 = OINIT;
   struct object ob2 = OINIT;    struct object ob2 = OINIT;
   struct object ob3 = OINIT;    struct object ob3 = OINIT;
   static initialized = 0;    static int initialized = 0;
   if (opcode != KPLUGIN_SAMPLE_INIT && !initialized) {    if (opcode != KPLUGIN_SAMPLE_INIT && !initialized) {
     errorSample("This component is not initialized.");      errorSample("This component is not initialized.");
     return(-1);      return(-1);
Line 108  struct object Kplugin_peek(int k,struct operandStack *
Line 108  struct object Kplugin_peek(int k,struct operandStack *
   
   
 static void errorSample(char *s) {  static void errorSample(char *s) {
   fprintf(stderr,"Error in plugin/sample: %s\n");    fprintf(stderr,"Error in plugin/sample: %s\n",s);
   /* or push error message in the sharedStack. */    /* or push error message in the sharedStack. */
 }  }
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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