From 1bb64668d0fbb2abfa3583918a256420028eea30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Mon, 21 Jul 2008 09:33:38 +0000 Subject: line-map.h (linenum_type): New typedef. 2008-07-21 Manuel Lopez-Ibanez * include/line-map.h (linenum_type): New typedef. (struct line_map): Use it. (SOURCE_LINE): Second arguments is a LOCATION not a LINE. (SOURCE_COLUMN): Likewise. * macro.c (_cpp_builtin_macro_text): Use linenum_type. Don't store source_location values in a variable of type linenum_type. * directives.c (struct if_stack): Use linenum_type. (strtoul_for_line): Rename as strtolinenum. (do_line): Use linenum_type. (do_linemarker): Use linenum_type and strtolinenum. (_cpp_do_file_change): Use linenum_t. * line-map.c (linemap_add): Likewise. (linemap_line_start): Likewise. * traditional.c (struct fun_macro): 'line' is a source_location. * errors.c (print_location): Use linenum_type. * directives-only.c (_cpp_preprocess_dir_only): Likewise. * internal.h (CPP_INCREMENT_LINE): Likewise. * lex.c (_cpp_skip_block_comment): Use source_location. From-SVN: r138026 --- libcpp/errors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcpp/errors.c') diff --git a/libcpp/errors.c b/libcpp/errors.c index 5e8e637..e3d5629 100644 --- a/libcpp/errors.c +++ b/libcpp/errors.c @@ -42,7 +42,7 @@ print_location (cpp_reader *pfile, source_location line, unsigned int col) else { const struct line_map *map; - unsigned int lin; + linenum_type lin; map = linemap_lookup (pfile->line_table, line); linemap_print_containing_files (pfile->line_table, map); -- cgit v1.1