[BACK]Return to test2.c CVS log [TXT][DIR] Up to [local] / OpenXM / doc / oxlib

Diff for /OpenXM/doc/oxlib/test2.c between version 1.1 and 1.6

version 1.1, 2000/02/08 13:25:41 version 1.6, 2018/03/28 05:09:38
Line 1 
Line 1 
 /* $OpenXM$ */  /* $OpenXM: OpenXM/doc/oxlib/test2.c,v 1.5 2003/03/08 10:29:03 ohara Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include <sys/param.h>  #include "hhh.h"
 #include "oxasir.h"  #include <ox/cmotag.h>
   #include <ox/smCommand.h>
   
 char *asir_ox_pop_string();  
   
   char *test2_ox_pop_string();
   
 main() {  main() {
   char *s;    char *s;
   asir_ox_init(0);  /* Use the network byte order */    asir_ox_init(1);  /* Use the network byte order */
   
   /* Loading the file xm */    /* Loading the file xm */
   /* This part generates a core dump. I'm trying to find a reason. */    /* This part generates a core dump. I'm trying to find a reason. */
Line 28  main() {
Line 30  main() {
   asir_ox_push_cmd(SM_executeFunction);    asir_ox_push_cmd(SM_executeFunction);
   */    */
   
   s = asir_ox_pop_string();    s = test2_ox_pop_string();
   printf("%s\n",s);    printf("%s\n",s);
   
   printf("------------------------------------------\n");    printf("------------------------------------------\n");
   asir_ox_push_object_given_by_a_string("12345;");    asir_ox_push_object_given_by_a_string("12345;");
   s = asir_ox_pop_string();    s = test2_ox_pop_string();
   printf("%s\n",s);    printf("%s\n",s);
   
 }  }
Line 64  asir_ox_push_object_given_by_a_string(char *s) {
Line 66  asir_ox_push_object_given_by_a_string(char *s) {
   asir_ox_push_cmd(SM_executeStringByLocalParser);    asir_ox_push_cmd(SM_executeStringByLocalParser);
 }  }
   
 char *asir_ox_pop_string() {  char *test2_ox_pop_string() {
   int size;    int size;
   char *s;    char *s;
   int tag;    int tag;
Line 84  char *asir_ox_pop_string() {
Line 86  char *asir_ox_pop_string() {
         return(s+8);          return(s+8);
   }    }
 }  }
   
 debug_packet(char *p,int size) {  debug_packet(char *p,int size) {
   int i;    int i;
   for (i=0; i<size; i++) {    for (i=0; i<size; i++) {

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

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