// // Compiler specific support macro // // For: Borland Turbo Pascal version 5 // // // Display name of compiler // :NAME: Message("Borland Turbo Pascal 5") Return // // Run compiler // :COMPILE: Reg_Set(98,"> vcs.tmp") // Reroute output to vcs.tmp Call(103,"MAKE-BAT") // Create VCS-TMP.BAT file System(`"|@(96)\vcs-tmp.bat"`,DOS+NOMSG+SIMPLE) Return // // Find next/previous error // :FINDERROR: if (#96==REVERSE) { // If performing previous error #97 = (2-At_EOF) // Need to backup by 2 occurrences } // or 1 if at end-of-file else { #97 = 1 } // Else search for next occurrence Search("|{|, so that // it is overwritten on the screen by the next line and finally by the error message. // These infos prevent VEDIT from going to the error line in the source code. // The following commands jump behind the first control character in front of the // error message ( or ) and delete up to the BoL. // // BOL() S("|C", REVERSE+ADVANCE+NOERR) Del_Line(0) // // end of modification // Block_Begin(Cur_Pos) if (Search("(",ADVANCE+NOERR) && Cur_Line==#97) { // If error found on current line... Block_End(Cur_Pos) #95 = Num_Eval(SUPPRESS) // #95 = line number Reg_Copy_Block(81,Block_Begin,Block_End-1) // @81 = source filename Line(2) // Error is 3 lines long EOL() Reg_Copy(82,-2) // @82 = entire error message #75 = Cur_Pos BOL() #75 -= (Cur_Pos+1) // #75 = column offset of error } else { #95 = 0 Reg_Empty(81) // Line number=0, No file name Goto_Pos(Block_Begin) EOL() Reg_Copy(82,-0) } } Line(1) Block_Begin(-1) // Move past error and clear markers Return // // Return @81 = default "*.PAS" edit/project file extension // :DEFAULT: Reg_Set(81,"*.PAS") Return // // Locate line in file // :GOTOLINE: Goto_Line(#95) // Goto line # #95 Return