mirror of git://gcc.gnu.org/git/gcc.git
cpp-id-data.h: Add extern "C".
* include/cpp-id-data.h: Add extern "C". * include/line-map.h: Likewise. * include/mkdeps.h: Likewise. * include/symtab.h: Likewise. * internal.h: Likewise. From-SVN: r148051
This commit is contained in:
parent
db868e1edf
commit
4851089fc6
|
|
@ -1,3 +1,11 @@
|
||||||
|
2009-06-01 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
* include/cpp-id-data.h: Add extern "C".
|
||||||
|
* include/line-map.h: Likewise.
|
||||||
|
* include/mkdeps.h: Likewise.
|
||||||
|
* include/symtab.h: Likewise.
|
||||||
|
* internal.h: Likewise.
|
||||||
|
|
||||||
2009-05-15 Ian Lance Taylor <iant@google.com>
|
2009-05-15 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
* include/cpplib.h (enum cpp_builtin_type): Rename from enum
|
* include/cpplib.h (enum cpp_builtin_type): Rename from enum
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,10 @@ along with this program; see the file COPYING3. If not see
|
||||||
|
|
||||||
#include "cpplib.h"
|
#include "cpplib.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined (HAVE_UCHAR) && !defined (IN_GCC)
|
#if !defined (HAVE_UCHAR) && !defined (IN_GCC)
|
||||||
typedef unsigned char uchar;
|
typedef unsigned char uchar;
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -79,3 +83,7 @@ struct GTY(()) cpp_macro {
|
||||||
tokens. */
|
tokens. */
|
||||||
unsigned int extra_tokens : 1;
|
unsigned int extra_tokens : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ along with this program; see the file COPYING3. If not see
|
||||||
#ifndef LIBCPP_LINE_MAP_H
|
#ifndef LIBCPP_LINE_MAP_H
|
||||||
#define LIBCPP_LINE_MAP_H
|
#define LIBCPP_LINE_MAP_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef GTY
|
#ifndef GTY
|
||||||
#define GTY(x) /* nothing */
|
#define GTY(x) /* nothing */
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -184,4 +188,9 @@ extern const struct line_map *linemap_lookup
|
||||||
|
|
||||||
extern source_location
|
extern source_location
|
||||||
linemap_position_for_column (struct line_maps *set, unsigned int to_column);
|
linemap_position_for_column (struct line_maps *set, unsigned int to_column);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* !LIBCPP_LINE_MAP_H */
|
#endif /* !LIBCPP_LINE_MAP_H */
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ along with this program; see the file COPYING3. If not see
|
||||||
#ifndef LIBCPP_MKDEPS_H
|
#ifndef LIBCPP_MKDEPS_H
|
||||||
#define LIBCPP_MKDEPS_H
|
#define LIBCPP_MKDEPS_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This is the data structure used by all the functions in mkdeps.c.
|
/* This is the data structure used by all the functions in mkdeps.c.
|
||||||
It's quite straightforward, but should be treated as opaque. */
|
It's quite straightforward, but should be treated as opaque. */
|
||||||
|
|
||||||
|
|
@ -76,4 +80,8 @@ extern int deps_restore (struct deps *, FILE *, const char *);
|
||||||
automatic dependency schemes. */
|
automatic dependency schemes. */
|
||||||
extern void deps_phony_targets (const struct deps *, FILE *);
|
extern void deps_phony_targets (const struct deps *, FILE *);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* ! LIBCPP_MKDEPS_H */
|
#endif /* ! LIBCPP_MKDEPS_H */
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,11 @@ along with this program; see the file COPYING3. If not see
|
||||||
#define LIBCPP_SYMTAB_H
|
#define LIBCPP_SYMTAB_H
|
||||||
|
|
||||||
#include "obstack.h"
|
#include "obstack.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef GTY
|
#ifndef GTY
|
||||||
#define GTY(x) /* nothing */
|
#define GTY(x) /* nothing */
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -99,4 +104,8 @@ extern void ht_load (hash_table *ht, hashnode *entries,
|
||||||
/* Dump allocation statistics to stderr. */
|
/* Dump allocation statistics to stderr. */
|
||||||
extern void ht_dump_statistics (hash_table *);
|
extern void ht_dump_statistics (hash_table *);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* LIBCPP_SYMTAB_H */
|
#endif /* LIBCPP_SYMTAB_H */
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,10 @@ along with this program; see the file COPYING3. If not see
|
||||||
typedef int iconv_t; /* dummy */
|
typedef int iconv_t; /* dummy */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct directive; /* Deliberately incomplete. */
|
struct directive; /* Deliberately incomplete. */
|
||||||
struct pending_option;
|
struct pending_option;
|
||||||
struct op;
|
struct op;
|
||||||
|
|
@ -702,4 +706,8 @@ ufputs (const unsigned char *s, FILE *f)
|
||||||
return fputs ((const char *)s, f);
|
return fputs ((const char *)s, f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* ! LIBCPP_INTERNAL_H */
|
#endif /* ! LIBCPP_INTERNAL_H */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue