mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
Last batch of 'static' qualifiers for module-level global variables.
Fix up modules in the 'apps' directory, and also correct the bad example of enum definitions in include/asterisk/app.h, which many developers followed (thanks for reading the documentation!). In addition, add some basic usage examples of the 'pahole' and 'pglobal' tools to the coding guidelines. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@200656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -95,11 +95,11 @@ static const char app[] = "ExternalIVR";
|
||||
/* XXX the parser in gcc 2.95 gets confused if you don't put a space between 'name' and the comma */
|
||||
#define ast_chan_log(level, channel, format, ...) ast_log(level, "%s: " format, channel->name , ## __VA_ARGS__)
|
||||
|
||||
enum {
|
||||
enum options_flags {
|
||||
noanswer = (1 << 0),
|
||||
ignore_hangup = (1 << 1),
|
||||
run_dead = (1 << 2),
|
||||
} options_flags;
|
||||
};
|
||||
|
||||
AST_APP_OPTIONS(app_opts, {
|
||||
AST_APP_OPTION('n', noanswer),
|
||||
|
||||
Reference in New Issue
Block a user