Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sergi
Tor
Commits
54c5366a
Commit
54c5366a
authored
5 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
feature/control: wrap some problem macros in COCCI
parent
d6ce8527
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/feature/control/control_cmd.c
+2
-0
2 additions, 0 deletions
src/feature/control/control_cmd.c
src/feature/control/control_events.c
+2
-0
2 additions, 0 deletions
src/feature/control/control_events.c
with
4 additions
and
0 deletions
src/feature/control/control_cmd.c
+
2
−
0
View file @
54c5366a
...
...
@@ -2245,6 +2245,7 @@ typedef struct control_cmd_def_t {
*/
#define CMD_FL_WIPE (1u<<0)
#ifndef COCCI
/** Macro: declare a command with a one-line argument, a given set of flags,
* and a syntax definition.
**/
...
...
@@ -2277,6 +2278,7 @@ typedef struct control_cmd_def_t {
0, \
&obsolete_syntax, \
}
#endif
/**
* An array defining all the recognized controller commands.
...
...
This diff is collapsed.
Click to expand it.
src/feature/control/control_events.c
+
2
−
0
View file @
54c5366a
...
...
@@ -1660,6 +1660,7 @@ control_event_status(int type, int severity, const char *format, va_list args)
return
0
;
}
#ifndef COCCI
#define CONTROL_EVENT_STATUS_BODY(event, sev) \
int r; \
do { \
...
...
@@ -1671,6 +1672,7 @@ control_event_status(int type, int severity, const char *format, va_list args)
r = control_event_status((event), (sev), format, ap); \
va_end(ap); \
} while (0)
#endif
/** Format and send an EVENT_STATUS_GENERAL event whose main text is obtained
* by formatting the arguments using the printf-style <b>format</b>. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment