[BACK]Return to ox_asir.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / io

Diff for /OpenXM_contrib2/asir2000/io/ox_asir.c between version 1.52 and 1.53

version 1.52, 2004/02/26 06:37:09 version 1.53, 2004/03/01 02:03:27
Line 44 
Line 44 
  * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY   * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  * $OpenXM: OpenXM_contrib2/asir2000/io/ox_asir.c,v 1.51 2004/02/13 05:48:36 saito Exp $   * $OpenXM: OpenXM_contrib2/asir2000/io/ox_asir.c,v 1.52 2004/02/26 06:37:09 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 593  void asir_pushCMOtag(unsigned int serial)
Line 593  void asir_pushCMOtag(unsigned int serial)
 void asir_popString()  void asir_popString()
 {  {
         Obj val;          Obj val;
         char *buf,*obuf;          char *buf;
         int l;          int l;
         STRING str;          STRING str;
   
         val = asir_pop_one();          val = asir_pop_one();
         if ( !val )          if ( !val )
                 obuf = "0";                  buf = "0";
         else {          else {
                 l = estimate_length(CO,val);                  l = estimate_length(CO,val);
                 buf = (char *)ALLOCA(l+1);                  buf = (char *)ALLOCA(l+1);
                 soutput_init(buf);                  soutput_init(buf);
                 sprintexpr(CO,val);                  sprintexpr(CO,val);
 #if 0  
                 l = strlen(buf);  
                 obuf = (char *)MALLOC(l+1);  
                 strcpy(obuf,buf);  
 #endif  
         }          }
         MKSTR(str,buf);          MKSTR(str,buf);
         ox_send_data(0,str);          ox_send_data(0,str);

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

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