@@ -1675,8 +1675,8 @@ rearrange its terms so that each line is not longer than this.
1675
1675
1676
1676
=item indent_define
1677
1677
1678
- Should #define clauses be indented when contained a clause expression that is
1679
- indented.
1678
+ Should #define clauses be indented when contained in a clause expression that
1679
+ is indented, default is yes: 1 .
1680
1680
1681
1681
=item hug_define
1682
1682
@@ -1705,7 +1705,7 @@ based object which contains the following fields:
1705
1705
bless {
1706
1706
cond => [['defined(a)'],['defined(b)']],
1707
1707
type => "content",
1708
- sub_type => undef,
1708
+ sub_type => "# undef" ,
1709
1709
raw => $raw_content_of_line,
1710
1710
line => $normalized_content_of_line,
1711
1711
level => $level,
@@ -1761,21 +1761,21 @@ it terminates.
1761
1761
1762
1762
=item type
1763
1763
1764
- This value indicates the type of the line. This may be one of the following:
1765
- 'content', 'cond', 'define', 'include' and 'error'. Several of the types
1766
- have a sub_type.
1764
+ This value indicates the type of the line. This may either 'content' or
1765
+ 'cond'. The sub_type gives finer detail.
1767
1766
1768
1767
=item sub_type
1769
1768
1770
- This value gives more detail on the type of the line where necessary.
1771
- Not all types have a subtype.
1769
+ This value gives more detail on the type of the line.
1772
1770
1773
1771
Type | Sub Type
1774
1772
--------+----------
1775
1773
content | text
1776
- | include
1777
- | define
1778
- | error
1774
+ | #include
1775
+ | #define
1776
+ | #error
1777
+ | #pragma
1778
+ | #undef
1779
1779
cond | #if
1780
1780
| #elif
1781
1781
| #else
@@ -1785,6 +1785,9 @@ Note that there are no '#ifdef' or '#elifndef' or similar expressions. All
1785
1785
expressions of that form are normalized into the '#if defined' form to
1786
1786
simplify processing.
1787
1787
1788
+ For all sub_types except C<#endif > , the C<cond > array gives the conditions
1789
+ after the line is executed.
1790
+
1788
1791
=item raw
1789
1792
1790
1793
This was the raw original text before HeaderParser performed any modifications
@@ -1821,7 +1824,8 @@ or input it cannot handle.
1821
1824
1822
1825
=head2 lines_as_str
1823
1826
1824
- This function will return a string representation of the lines it is provided.
1827
+ This function will return a string representation of the lines it is provided
1828
+ via an array of HeaderLines objects produced by parse_fh() or by group_content()
1825
1829
1826
1830
=head2 group_content
1827
1831
0 commit comments