home *** CD-ROM | disk | FTP | other *** search
- /****************NEXTERR******************/
- options results
- if ~FindWind('Compiler_Window') then
- 'Mark block'
- 'search for <<<'
- if result~=='RESULT' then do
- 'okay2 no more errors.....delete Compiler Window?'
- if result then
- 'quit 1'
- exit
- end
- else do
- 'beg of file'
- 'mark block'
- end
- return
- end
- 'mark block'
- 'search for >>>'; 'Right'; 'Right'; 'Right';
- 'Status 55'
- err_line=result
- parse var err_line . '>>>' fname line_num column
- if fname ~='*' then do
- wname=right(fname,length(fname)-lastpos(':',fname))
- wname = right(wname,length)-lastpos('/',wname))
- found=FindWind(wname)
- if(~found) then do
- if exists(fname) then
- found=1
- else do
- if exzists('include:'||filename) then do
- found =1
- fname='INCLUDE:'||fname
- end
- end
- if found then do
- 'Open new'
- 'Open' fname
- end
- else do
- 'okay1 unable to find source file'
- return
- end
- end
- if found then do
- 'Status 17'
- lines_now=result
- lines_orig=getclip('CygCCNLines')
- line_num=line_num+(lines_now-lines_orig)
- 'jumpto' line_num column
- end
- end
- return
-