Module: sip-router Branch: andrei/cdefs2doc Commit: 8ee1a086852a038fa80daf3d5e5534f4b67a646f URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8ee1a086...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Thu Feb 18 13:41:10 2010 +0100
doc: dump_selects.pl: fix for incomplete initializers
Some of the modules (e.g db_ops) omit the last members (flags) in the select_row_t initializer. The script did not take into account this possibility when it did parse the C code.
---
doc/scripts/cdefs2doc/dump_selects.pl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/scripts/cdefs2doc/dump_selects.pl b/doc/scripts/cdefs2doc/dump_selects.pl index 84a1cda..f88d252 100755 --- a/doc/scripts/cdefs2doc/dump_selects.pl +++ b/doc/scripts/cdefs2doc/dump_selects.pl @@ -461,7 +461,7 @@ sub process_file ($new_f_n->isa('GCC::Node::integer_cst'))? $new_f_n->low: expr_op0($new_f_n)->name->identifier; - $flags=$flags_n->low; + $flags= (defined $flags_n)?$flags_n->low:0; push @res, [$prev_f, $type, $name, $new_f, $flags]; @@ -594,7 +594,7 @@ format DOCBOOK_HEADER = "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd%22%3E <chapter id="select_list@*"> (valid_grp_name $sel_grp_name) ? "." . $sel_grp_name : "" - <title>Selects List@*</title> + <title>Selects@*</title> (valid_grp_name $sel_grp_name) ? " for " . $sel_grp_name : "" <orderedlist>