diff options
author | Pedro Alves <palves@redhat.com> | 2016-10-06 19:23:37 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-10-06 19:23:37 +0100 |
commit | ddb6d633875b76f9d772af901118233fc498253a (patch) | |
tree | ccd8e35d3579538c607829b41c050586104848ca /gdb/guile/guile.c | |
parent | 33fa2c6e1b1e63599156f7d79de8c0a6ea69c8af (diff) | |
download | gdb-ddb6d633875b76f9d772af901118233fc498253a.zip gdb-ddb6d633875b76f9d772af901118233fc498253a.tar.gz gdb-ddb6d633875b76f9d772af901118233fc498253a.tar.bz2 |
gdb: Remove some C compiler support leftovers
Remove some __cplusplus checks, inline EXPORTED_CONST, and update some comments.
gdb/ChangeLog:
2016-10-06 Pedro Alves <palves@redhat.com>
* cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
EXPORTED_CONST.
* stub-termcap.c: Remove __cplusplus checks.
* common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
EXTERN_C_POP): Delete.
* common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
(GDB_XCPT) [!__cplusplus]: Delete.
(throw_exception, throw_exception_sjlj): Update comments.
* guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
* guile/guile.c (extension_language_guile): Write "extern const"
instead of EXPORTED_CONST.
* features/feature_to_c.sh: Don't emit !__cplusplus code. Write
"extern const" instead of EXPORTED_CONST.
Diffstat (limited to 'gdb/guile/guile.c')
-rw-r--r-- | gdb/guile/guile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/guile/guile.c b/gdb/guile/guile.c index 117561d..3a19eec 100644 --- a/gdb/guile/guile.c +++ b/gdb/guile/guile.c @@ -77,7 +77,7 @@ extern const struct extension_language_ops guile_extension_ops; /* The main struct describing GDB's interface to the Guile extension language. */ -EXPORTED_CONST struct extension_language_defn extension_language_guile = +extern const struct extension_language_defn extension_language_guile = { EXT_LANG_GUILE, "guile", |