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

Diff for /OpenXM_contrib2/asir2000/io/spexpr.c between version 1.7 and 1.8

version 1.7, 2000/12/15 05:30:08 version 1.8, 2000/12/16 06:16:10
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/spexpr.c,v 1.6 2000/12/13 10:54:09 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/io/spexpr.c,v 1.7 2000/12/15 05:30:08 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "al.h"  #include "al.h"
Line 196  char *s;
Line 196  char *s;
 }  }
   
 #if PARI  #if PARI
   #include "genpari.h"
   
   void myoutbrute(g)
   GEN g;
   {
           bruteall(g,'f',-1,1);
   }
   
 void sprintbf(a)  void sprintbf(a)
 BF a;  BF a;
 {  {
         char *str;          char *str;
         char *GENtostr();          char *GENtostr();
           char *GENtostr0();
   
         str = GENtostr(a->body);          if ( double_output ) {
                   str = GENtostr0(a->body,myoutbrute);
           } else {
                   str = GENtostr(a->body);
           }
         TAIL PRINTF(OUT,"%s",str);          TAIL PRINTF(OUT,"%s",str);
         free(str);          free(str);
 }  }
Line 629  BYTEARRAY array;
Line 642  BYTEARRAY array;
         unsigned char *b;          unsigned char *b;
   
         len = array->len;          len = array->len;
         b =array->body;          b = array->body;
         PUTS("|");          PUTS("|");
         for ( i = 0; i < len-1; i++ ) {          for ( i = 0; i < len-1; i++ ) {
                 TAIL PRINTF(OUT,"%02x ",b[i]);                  TAIL PRINTF(OUT,"%02x ",(unsigned int)b[i]);
         }          }
         TAIL PRINTF(OUT,"%02x",b[i]);          TAIL PRINTF(OUT,"%02x",(unsigned int)b[i]);
         PUTS("|");          PUTS("|");
 }  }
   

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

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