Convert NEW_CLI to AST_CLI.

Closes issue #11039, as suggested by seanbright.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker
2007-10-19 18:29:40 +00:00
parent 65761cbd7a
commit b0f3e6097e
64 changed files with 308 additions and 308 deletions

View File

@@ -84,7 +84,7 @@ void ast_cli(int fd, const char *fmt, ...)
...
// this is how we create the entry to register
NEW_CLI(new_setdebug, "short description")
AST_CLI(new_setdebug, "short description")
...
To help the transition, we make the pointer to the struct ast_cli_entry
@@ -197,7 +197,7 @@ struct ast_cli_entry {
/* XXX the parser in gcc 2.95 gets confused if you don't put a space
* between the last arg before VA_ARGS and the comma */
#define NEW_CLI(fn, txt , ... ) { .new_handler = fn, .summary = txt, ## __VA_ARGS__ }
#define AST_CLI(fn, txt , ... ) { .new_handler = fn, .summary = txt, ## __VA_ARGS__ }
/*!
* Helper function to generate cli entries from a NULL-terminated array.