]> git.ipfire.org Git - thirdparty/asterisk.git/commit
asterisk.h: Add ASTERISK_REGISTER_FILE macro 18/1918/4
authorGeorge Joseph <george.joseph@fairview5.com>
Tue, 5 Jan 2016 20:52:16 +0000 (13:52 -0700)
committerGeorge Joseph <george.joseph@fairview5.com>
Tue, 5 Jan 2016 22:10:09 +0000 (15:10 -0700)
commit881dc862e0648f2a63b39028f7007aa37a0926f3
treeef619ae4d2096bc1230c568df6b83afc57e9c056
parent9016e51c0321999123a905d70512649e03bc3593
asterisk.h: Add ASTERISK_REGISTER_FILE macro

The 11/13 branches and master use 2 different file version macros. 11/13
uses ASTERISK_FILE_VERSION but master uses ASTERISK_REGISTER_FILE. This
means a new file added to 11/13 can't just be cherry-picked to master
because the macro has to be changed.

To make cherry-picking possible, ASTERISK_REGISTER_FILE was added
to asterisk.h as a simple alias for ASTERISK_FILE_VERSION(__FILE__, NULL)
The "$Revision$" tag doesn't do anything since Asterisk moved to git so
just passing NULL as the verison works fine.  asterisk.h was also
annotated to deprecate ASTERISK_FILE_VERSION and suggest using
ASTERISK_REGISTER_FILE for all new files.

Finally, 2 recent file additions, pbx_builtins.c and pbx_functions.c,
were modified to use the new macro to make sure it actually worked.
'core show file version' showed the correct output.

Change-Id: I5867ed898818d26ee49bb6e5c7d4c1a45d4789a5
include/asterisk.h
main/pbx_builtins.c
main/pbx_functions.c