add *_list_rev function.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
#ifndef MUTT_LIB_LIB_LIB_LIB_H
#define MUTT_LIB_LIB_LIB_LIB_H
#ifndef MUTT_LIB_LIB_LIB_LIB_H
#define MUTT_LIB_LIB_LIB_LIB_H
# include "../config.h"
#endif
# include "../config.h"
#endif
list = prefix##_list_last(list); \
*list = item; \
return list; \
list = prefix##_list_last(list); \
*list = item; \
return list; \
+ } \
+ static inline type *prefix##_list_rev(type *list) { \
+ type *l = NULL; \
+ while (list) { \
+ prefix##_list_push(&l, prefix##_list_pop(&list)); \
+ } \
+ return l; \
} \
\
static inline type **prefix##_list_init(type **list) { \
} \
\
static inline type **prefix##_list_init(type **list) { \
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#ifndef __WIN32__
# if defined(_WIN32) || defined(WIN32)
#ifndef __WIN32__
# if defined(_WIN32) || defined(WIN32)
** The following code executes when a syntax error first occurs.
*/
static void yy_syntax_error(
** The following code executes when a syntax error first occurs.
*/
static void yy_syntax_error(
- yyParser *yypParser, /* The parser */
- int yymajor, /* The major type of the error token */
- YYMINORTYPE yyminor /* The minor type of the error token */
+ yyParser *yypParser, /* The parser */
+ int yymajor __attribute__((unused)), /* The major type of the error token */
+ YYMINORTYPE yyminor __attribute__((unused))
+ /* The minor type of the error token */
){
ParseARG_FETCH;
#define TOKEN (yyminor.yy0)
){
ParseARG_FETCH;
#define TOKEN (yyminor.yy0)