summaryrefslogtreecommitdiff
path: root/include/asterisk/config.h
diff options
context:
space:
mode:
authorSteve Murphy <murf@digium.com>2007-09-05 14:47:45 +0000
committerSteve Murphy <murf@digium.com>2007-09-05 14:47:45 +0000
commitdcb85e24569e6b462e6aa0975a78792dee18aa1e (patch)
tree4f091d82135266e8559c07a1a8351b1139eb970c /include/asterisk/config.h
parent3e56df5076e5bd0bd81f86c149eed4ef6c74c251 (diff)
this set of changes fixes issue # 10643 by keeping track of the last object defined in a file, and attaching any accumulated comments to that object (category header or variable declaration). The file_save routine also had to be upgraded to output these trailing comments. Config.h was modified to include the trailing comment list on categories and variables.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/config.h')
-rw-r--r--include/asterisk/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
index 7ab52f195..613867937 100644
--- a/include/asterisk/config.h
+++ b/include/asterisk/config.h
@@ -58,6 +58,7 @@ struct ast_variable {
int blanklines; /*!< Number of blanklines following entry */
struct ast_comment *precomments;
struct ast_comment *sameline;
+ struct ast_comment *trailing; /*!< the last object in the list will get assigned any trailing comments when EOF is hit */
struct ast_variable *next;
char stuff[0];
};