Show
Ignore:
Timestamp:
07/09/10 14:32:07 (21 months ago)
Author:
westram
Message:
  • compile ISLAND_HOPPING as C++
Files:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/refactor/ISLAND_HOPPING/align.cxx

    r6516 r6794  
    322322    Island *p; Fragment *f,**ff,*L; int k,ii,jj,iii,jjj,l; double s; 
    323323 
    324     p=newBlock(sizeof(Island)); 
     324    p=(Island*)newBlock(sizeof(Island)); 
    325325 
    326326    ii=i; jj=j; l=0; s=0.; 
     
    333333            k=U[ii][jj].up; 
    334334            if(k) { 
    335                 f=newBlock(sizeof(Fragment)); 
     335                f=(Fragment*)newBlock(sizeof(Fragment)); 
    336336                f->beginX=iii; f->beginY=jjj; f->length=l; 
    337337                l=0; *ff=f; ff=&f->next; 
     
    351351            k=U[ii][jj].down; 
    352352            if(k) { 
    353                 f=newBlock(sizeof(Fragment)); 
     353                f=(Fragment*)newBlock(sizeof(Fragment)); 
    354354                f->beginX=iii-l+1; f->beginY=jjj-l+1; f->length=l; 
    355355                l=0; f->next=L; L=f; 
     
    805805    int i,j,maxlen; 
    806806 
    807     *XX = newBlock((nX+nY+1)*sizeof(char)); 
    808     *YY = newBlock((nX+nY+1)*sizeof(char)); 
     807    *XX = (char*)newBlock((nX+nY+1)*sizeof(char)); 
     808    *YY = (char*)newBlock((nX+nY+1)*sizeof(char)); 
    809809 
    810810    Supp=supp;