From dcb85e24569e6b462e6aa0975a78792dee18aa1e Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Wed, 5 Sep 2007 14:47:45 +0000 Subject: 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 --- include/asterisk/config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/asterisk/config.h') 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]; }; -- cgit v1.2.3