#include "type_t.h"
#include "parser.h"
#include "lang_features.h"
-#include "entity_t.h"
#include "printer.h"
#include "separator_t.h"
#include "types.h"
-#include <assert.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <ctype.h>
#include "adt/error.h"
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
-#include <limits.h>
#include <libfirm/firm.h>
#include <libfirm/adt/obst.h>
#include "adt/util.h"
#include "jump_target.h"
#include "symbol_t.h"
+#include "symbol_table.h"
#include "token_t.h"
#include "type_t.h"
#include "ast_t.h"
#include "diagnostic.h"
#include "lang_features.h"
#include "types.h"
-#include "type_hash.h"
#include "mangle.h"
+#include "unicode.h"
#include "walk.h"
#include "warning.h"
#include "printer.h"
#include "ast.h"
#include "symbol.h"
-#include "token_t.h"
#include "type.h"
#include "entity_t.h"
#include "adt/obst.h"
#include <assert.h>
#include "adt/strutil.h"
+#include "ast_t.h"
#include "diagnostic.h"
#include "warning.h"
#include "attribute_t.h"
#include "symbol_t.h"
#include "adt/error.h"
+#include "entity_t.h"
+#include "symbol_table.h"
#include "type_t.h"
static const char *const attribute_names[ATTRIBUTE_LAST+1] = {
#include "attribute.h"
#include "ast.h"
#include "symbol.h"
-#include "type.h"
/**
* GNU attributes.
#include "type_t.h"
#include "types.h"
#include "entity_t.h"
-#include "ast_t.h"
#include "symbol_t.h"
#include "parser.h"
#include "builtins.h"
#include "lang_features.h"
+#include "symbol_table.h"
static entity_t *create_builtin_function(builtin_kind_t kind, symbol_t *symbol,
type_t *function_type)
#ifndef BUILTINS_H
#define BUILTINS_H
-#include <stdbool.h>
-
typedef enum {
BUILTIN_NONE,
BUILTIN_ALLOCA,
#include "entity_t.h"
#include "separator_t.h"
#include "symbol_t.h"
-#include "token_t.h"
#include "ast.h"
#include "type.h"
-#include "warning.h"
+#include "unicode.h"
/** Number of occurred errors. */
unsigned error_count = 0;
#ifndef ENTITY_T_H
#define ENTITY_T_H
+#include "ast.h"
#include "symbol.h"
#include "entity.h"
#include "attribute.h"
static void warn_invalid_length_modifier(const position_t *pos,
const format_length_modifier_t mod,
- const utf32 conversion)
+ const char conversion)
{
char const *const lmod = get_length_modifier_name(mod);
warningf(WARN_FORMAT, pos, "invalid length modifier '%s' for conversion specifier '%%%c'", lmod, conversion);
* Copyright (C) 2012 Matthias Braun <matze@braunis.de>
*/
#include <stdio.h>
-#include <string.h>
+
#include "help.h"
void put_help(const char *option, const char *explanation)
#ifndef LANG_FEATURES_H
#define LANG_FEATURES_H
-#include "type.h"
+#include <stdbool.h>
#define BITS_PER_BYTE 8
#include <libfirm/be.h>
#include <libfirm/statev.h>
+#include "ast_t.h"
#include "preprocessor.h"
#include "token_t.h"
#include "types.h"
#include "adt/error.h"
#include "adt/strutil.h"
#include "adt/array.h"
+#include "symbol_table.h"
#include "wrappergen/write_fluffy.h"
#include "wrappergen/write_jna.h"
#include "wrappergen/write_compoundsizes.h"
#include <libfirm/firm.h>
#include <string.h>
+#include "adt/obst.h"
#include "entity_t.h"
#include "type_t.h"
#include "symbol_t.h"
#include "mangle.h"
-#include "diagnostic.h"
#include "lang_features.h"
#include "adt/error.h"
#include <stdbool.h>
#include "adt/strutil.h"
+#include "adt/util.h"
#include "parser.h"
#include "diagnostic.h"
#include "format_check.h"
#include "preprocessor.h"
#include "symbol_t.h"
+#include "symbol_table.h"
#include "token_t.h"
#include "types.h"
#include "type_t.h"
#include "type_hash.h"
#include "ast_t.h"
-#include "entity_t.h"
#include "attribute_t.h"
#include "lang_features.h"
#include "walk.h"
#include "warning.h"
#include "printer.h"
#include "ast2firm.h"
-#include "adt/bitfiddle.h"
#include "adt/error.h"
#include "adt/array.h"
#include <ctype.h>
#include "preprocessor.h"
-#include "token_t.h"
#include "symbol_t.h"
#include "adt/util.h"
#include "adt/error.h"
#include "diagnostic.h"
#include "string_rep.h"
#include "input.h"
+#include "symbol_table.h"
#define MAX_PUTBACK 3
#define INCLUDE_LIMIT 199 /* 199 is for gcc "compatibility" */
#define PRINTER_H
#include <stdio.h>
-#include <stdlib.h>
#include <stdarg.h>
+
#include "adt/obst.h"
-#include "string_rep.h"
/** print a string into current output */
extern void (*print_string)(const char *str);
*/
#include "adt/error.h"
#include "string_rep.h"
+#include "unicode.h"
static inline size_t wstrlen(const string_t *string)
{
#ifndef STRING_REP_H
#define STRING_REP_H
-#include <stdlib.h>
-#include "unicode.h"
+#include <stddef.h>
enum string_encoding_t {
STRING_ENCODING_CHAR,
#ifndef SYMBOL_T_H
#define SYMBOL_T_H
-#include <stdbool.h>
#include "symbol.h"
#include "entity.h"
#include "token_t.h"
#include "symbol_t.h"
#include <assert.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include "symbol.h"
#include "lang_features.h"
#include "adt/array.h"
#include "adt/error.h"
#include "adt/util.h"
+#include "symbol_table.h"
symbol_t *token_symbols[T_LAST_TOKEN];
#ifndef TOKEN_T_H
#define TOKEN_T_H
+#include <stdbool.h>
#include <stdio.h>
+
#include "string_rep.h"
#include "symbol.h"
-#include "symbol_table.h"
-#include "type.h"
typedef enum token_kind_tag_t {
T_NULL = 0,
#include <config.h>
#include <stdio.h>
-#include <assert.h>
#include "type_t.h"
#include "types.h"
#include <stdio.h>
#include <stdbool.h>
-#include "ast.h"
+
+#include "entity.h"
#include "symbol.h"
/** Type used to express sizes. */
#include <stdbool.h>
#include "type_hash.h"
-
-#include "adt/error.h"
#include "type_t.h"
#include <assert.h>
#include <libfirm/firm_types.h>
+#include "ast.h"
#include "type.h"
-#include "symbol.h"
-#include "token_t.h"
-#include "ast_t.h"
-#include "adt/obst.h"
typedef enum type_kind_t {
TYPE_ERROR = 1,
#include "type_t.h"
#include "types.h"
#include "lang_features.h"
-#include "entity_t.h"
/** The error type. */
type_t *type_error_type;
*/
#include <config.h>
-#include <errno.h>
-#include <string.h>
-
#include "write_fluffy.h"
#include "separator_t.h"
#include "symbol_t.h"
*/
#include <config.h>
-#include <errno.h>
#include <string.h>
#include "adt/strutil.h"
#include "adt/xmalloc.h"
#include "adt/pset_new.h"
#include "separator_t.h"
+#include "symbol_table.h"
typedef struct output_limit {
const char *filename;