Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Changeset 88 for trunk/lingosource


Ignore:
Timestamp:
12/09/07 12:46:58 (4 years ago)
Author:
alex
Message:

fixed a bug in compare to svn handler

Location:
trunk/lingosource/castlib1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib1/alexUtilities.ls

    r85 r88  
    208208   
    209209  return retval 
     210end 
     211 
     212 
     213 
     214 
     215-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     216-- xxxxxxxxxxxxxxxxxx Write text out to a file 
     217--------------------- helper for the bbdiff and svn handler 
     218 
     219on mSaveTextToTempFile me, theText, pfad 
     220   
     221  if ilk(pfad) <> #string then return 0 
     222  if length(pfad) < 1 then return 0 
     223   
     224  return mSaveToTextFile(me, theText, pfad) 
     225   
    210226end 
    211227 
  • trunk/lingosource/castlib1/bbedit_Utilities.ls

    r82 r88  
    545545end 
    546546 
    547  
    548 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    549 -- xxxxxxxxxxxxxxxxxx Write text out to a file 
    550 --------------------- helper for the above bbdiff handler 
    551  
    552 on mSaveTextToTempFile me, theText, pfad 
    553    
    554   retval = 0 
    555    
    556   if ilk(theText) <> #string then return retval 
    557    
    558   fio = new(xtra "fileio") 
    559   if not objectP(fio) then return retval 
    560    
    561   if ilk(pfad) = #string then 
    562     if pfad.length > 0 then 
    563        
    564       fio.openFile(pfad, 0) 
    565       if fio.status() = 0 then fio.delete() 
    566        
    567       fio.createFile(pfad) 
    568       if fio.status() = 0 then 
    569          
    570         fio.openFile(pfad, 2) 
    571         if fio.status() = 0 then 
    572            
    573           fio.writeString(theText) 
    574            
    575           if fio.status() = 0 then retval = pfad 
    576            
    577           fio.closeFile() 
    578         end if 
    579       end if 
    580     end if 
    581   end if 
    582    
    583   fio = 0 
    584    
    585   return retval 
    586 end 
    587547 
    588548-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
Note: See TracChangeset for help on using the changeset viewer.