File: error_line_number.pas

package info (click to toggle)
pasdoc 0.16.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,572 kB
  • sloc: pascal: 28,894; javascript: 7,665; xml: 2,597; makefile: 523; sh: 417
file content (27 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ pasdoc should fail on parsing this unit, because the file "not_existing.inc"
  does not exist.
  The important thing is that failure message should indicate correct
  line number in this unit.

  There was a bug submitted to pasdoc-main list
  [http://sourceforge.net/mailarchive/forum.php?thread_id=6960993&forum_id=4647]
  that caused incorrect line number to be printed by pasdoc
  (lines between $ifdef NOT_DEFINED were not counted).
  Fixed with revision 1.18 of PasDoc_Tokenizer.pas
}

{$ifdef NOT_DEFINED}
A few lines here, please
1
2
3
4
5
6
7
8
9
10
{$endif}

{$I not_existing.inc}