Changeset d45ad9 in git


Ignore:
Timestamp:
May 30, 2006, 4:51:42 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
2f7cc56437cde866e773bf7beb182c7a052a3784
Parents:
73a7ffe4432c8264bc4be1b0b2399c3c55100465
Message:
*hannes: freebsd port


git-svn-id: file:///usr/local/Singular/svn/trunk@9178 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/NTLconvert.cc

    r73a7ff rd45ad9  
    1 /* $Id: NTLconvert.cc,v 1.17 2006-05-02 12:21:07 Singular Exp $ */
     1/* $Id: NTLconvert.cc,v 1.18 2006-05-30 14:51:42 Singular Exp $ */
    22#include <config.h>
    33
     
    127127       cout<<"convertFacCF2NTLZZ_pX: coefficient not immediate! : "<<f<<"\n";
    128128       #else
     129       NTL_SNS
    129130       printf("convertFacCF2NTLZZ_pX: coefficient not immediate!, char=%d\n",
    130131              getCharacteristic());
    131132       #endif
    132        exit(1);
     133       NTL_SNS exit(1);
    133134    }
    134135    else
     
    185186       cout<<"convertFacCF2NTLzz_pX: coefficient not immediate! : "<<f<<"\n";
    186187       #else
     188       NTL_SNS
    187189       printf("convertFacCF2NTLzz_pX: coefficient not immediate!, char=%d\n",
    188190              getCharacteristic());
    189191       #endif
    190        exit(1);
     192       NTL_SNS exit(1);
    191193    }
    192194    else
     
    262264      cout<<"convertFacCF2NTLGF2X: coefficient not immidiate! : " << f << "\n";
    263265      #else
     266      NTL_SNS
    264267      printf("convertFacCF2NTLGF2X: coefficient not immidiate!");
    265268      #endif
    266       exit(1);
     269      NTL_SNS exit(1);
    267270    }
    268271    else
     
    625628        Free(cf_stringtemp2,cf_stringtemp_l);
    626629        char *p=(char *)Alloc(cf_stringtemp_l*2);
    627         memcpy(p,cf_stringtemp,cf_stringtemp_l);
     630        NTL_SNS memcpy(p,cf_stringtemp,cf_stringtemp_l);
    628631        Free(cf_stringtemp,cf_stringtemp_l);
    629632        cf_stringtemp_l*=2;
     
    639642    //built up the string in dummy[0]
    640643    dummy[0]=numbers[to_long(coefficient)];
    641     strcat(cf_stringtemp,dummy);
     644    NTL_SNS strcat(cf_stringtemp,dummy);
    642645    //tmp*=10; tmp+=to_long(coefficient);
    643646
     
    650653
    651654    //reverse the list to obtain the correct string
    652     int len=strlen(cf_stringtemp);
     655    int len=NTL_SNS strlen(cf_stringtemp);
    653656    for (int i=len-1;i>=0;i--)
    654657    {
Note: See TracChangeset for help on using the changeset viewer.