[svn-commits] russell: branch russell/chan_refcount r82588 - in /team/russell/chan_refcount...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Sep 17 11:18:34 CDT 2007


Author: russell
Date: Mon Sep 17 11:18:34 2007
New Revision: 82588

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82588
Log:
tweak to make my syntax highlighting happy, and update docs

Modified:
    team/russell/chan_refcount/apps/app_softhangup.c
    team/russell/chan_refcount/include/asterisk/app.h

Modified: team/russell/chan_refcount/apps/app_softhangup.c
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/apps/app_softhangup.c?view=diff&rev=82588&r1=82587&r2=82588
==============================================================================
--- team/russell/chan_refcount/apps/app_softhangup.c (original)
+++ team/russell/chan_refcount/apps/app_softhangup.c Mon Sep 17 11:18:34 2007
@@ -57,9 +57,9 @@
 	OPTION_ALL = (1 << 0),
 };
 
-AST_APP_OPTIONS(app_opts,{
+AST_APP_OPTIONS(app_opts, BEGIN_OPTIONS
 	AST_APP_OPTION('a', OPTION_ALL),
-});
+END_OPTIONS);
 
 static int softhangup_exec(struct ast_channel *chan, void *data)
 {

Modified: team/russell/chan_refcount/include/asterisk/app.h
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/include/asterisk/app.h?view=diff&rev=82588&r1=82587&r2=82588
==============================================================================
--- team/russell/chan_refcount/include/asterisk/app.h (original)
+++ team/russell/chan_refcount/include/asterisk/app.h Mon Sep 17 11:18:34 2007
@@ -353,6 +353,12 @@
 	unsigned int arg_index;
 };
 
+/*!
+ * \brief a hack
+ *
+ * These are a hack so that declaring the option macros doesn't break
+ * my syntax highlighting
+ */
 #define BEGIN_OPTIONS {
 #define END_OPTIONS }
 
@@ -383,11 +389,11 @@
         OPT_ARG_ARRAY_SIZE,
   } my_app_option_args;
 
-  AST_APP_OPTIONS(my_app_options, {
+  AST_APP_OPTIONS(my_app_options, BEGIN_OPTIONS
         AST_APP_OPTION('j', OPT_JUMP),
         AST_APP_OPTION_ARG('b', OPT_BLAH, OPT_ARG_BLAH),
         AST_APP_OPTION_BLORT('B', OPT_BLORT, OPT_ARG_BLORT),
-  });
+  END_OPTIONS );
 
   static int my_app_exec(struct ast_channel *chan, void *data)
   {




More information about the svn-commits mailing list