*: rename ATTRIBUTE_XXX to just XXX.

This commit is contained in:
Denis Vlasenko
2008-07-05 09:18:54 +00:00
parent f6efccc065
commit a60f84ebf0
228 changed files with 479 additions and 479 deletions

View File

@@ -74,9 +74,9 @@ typedef struct {
#endif
} action;
#define ACTS(name, arg...) typedef struct { action a; arg; } action_##name;
#define ACTF(name) static int func_##name(const char *fileName ATTRIBUTE_UNUSED, \
struct stat *statbuf ATTRIBUTE_UNUSED, \
action_##name* ap ATTRIBUTE_UNUSED)
#define ACTF(name) static int func_##name(const char *fileName UNUSED_PARAM, \
struct stat *statbuf UNUSED_PARAM, \
action_##name* ap UNUSED_PARAM)
ACTS(print)
ACTS(name, const char *pattern; bool iname;)
USE_FEATURE_FIND_PATH( ACTS(path, const char *pattern;))
@@ -376,8 +376,8 @@ ACTF(context)
static int FAST_FUNC fileAction(const char *fileName,
struct stat *statbuf,
void *userData SKIP_FEATURE_FIND_MAXDEPTH(ATTRIBUTE_UNUSED),
int depth SKIP_FEATURE_FIND_MAXDEPTH(ATTRIBUTE_UNUSED))
void *userData SKIP_FEATURE_FIND_MAXDEPTH(UNUSED_PARAM),
int depth SKIP_FEATURE_FIND_MAXDEPTH(UNUSED_PARAM))
{
int i;
#if ENABLE_FEATURE_FIND_MAXDEPTH

View File

@@ -371,9 +371,9 @@ static void load_regexes_from_file(llist_t *fopt)
}
static int FAST_FUNC file_action_grep(const char *filename,
struct stat *statbuf ATTRIBUTE_UNUSED,
struct stat *statbuf UNUSED_PARAM,
void* matched,
int depth ATTRIBUTE_UNUSED)
int depth UNUSED_PARAM)
{
FILE *file = fopen(filename, "r");
if (file == NULL) {

View File

@@ -292,7 +292,7 @@ static int xargs_ask_confirmation(void)
#if ENABLE_FEATURE_XARGS_SUPPORT_ZERO_TERM
static xlist_t *process0_stdin(xlist_t *list_arg,
const char *eof_str ATTRIBUTE_UNUSED, size_t mc, char *buf)
const char *eof_str UNUSED_PARAM, size_t mc, char *buf)
{
int c; /* current char */
char *s = NULL; /* start word */