type: Make an assert()ion independent of the last entry of an enum.
[cparser] / format_check.h
1 /*
2  * This file is part of cparser.
3  * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
4  */
5 #ifndef FORMAT_CHECK_H
6 #define FORMAT_CHECK_H
7
8 #include "ast.h"
9
10 typedef enum {
11         FORMAT_PRINTF,   /**< printf style format */
12         FORMAT_SCANF,    /**< scanf style format */
13         FORMAT_STRFTIME, /**< strftime time format */
14         FORMAT_STRFMON   /**< strfmon monetary format */
15 } format_kind_t;
16
17 void check_format(const call_expression_t *call);
18
19 #endif