codetools: remove debugging code

git-svn-id: trunk@10223 -
This commit is contained in:
mattias 2006-11-20 18:18:40 +00:00
parent e5fdfd28ff
commit c045101121
2 changed files with 2 additions and 4 deletions

View File

@ -1438,9 +1438,7 @@ begin
fErrorLine:=FCurCodeTool.ErrorPosition.Y;
end;
end;
if fErrorLine=10 then
RaiseCatchableException('');
// adjust error topline
AdjustErrorTopLine;
// write error

View File

@ -2799,7 +2799,7 @@ function TPascalParserTool.KeyWordFuncExports: boolean;
end;
begin
if not (CurSection in [ctnLibrary]) then
if not (CurSection in [ctnLibrary,ctnProgram]) then
RaiseExportsOnlyAllowedInLibraries;
CreateChildNode;
CurNode.Desc:=ctnExportsSection;