From 23751c28159f1d3e20c2fc8dc8bf8651e570c5c1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 15 Oct 2019 10:48:25 +0200 Subject: [PATCH] libtextstyle-optional: Sync with current not-yet-released libtextstyle. * libtextstyle-optional (styled_ostream_get_hyperlink_ref, styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink, term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id, term_ostream_set_hyperlink): New functions. (term_styled_ostream_get_hyperlink_ref, term_styled_ostream_get_hyperlink_id, term_styled_ostream_set_hyperlink): New function aliases. --- ChangeLog | 11 +++++++++++ lib/textstyle.in.h | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/ChangeLog b/ChangeLog index db63a4be07..2c63d42b6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2019-10-15 Bruno Haible + + libtextstyle-optional: Sync with current not-yet-released libtextstyle. + * libtextstyle-optional (styled_ostream_get_hyperlink_ref, + styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink, + term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id, + term_ostream_set_hyperlink): New functions. + (term_styled_ostream_get_hyperlink_ref, + term_styled_ostream_get_hyperlink_id, + term_styled_ostream_set_hyperlink): New function aliases. + 2019-10-14 Paul Eggert update-copyright: use en dashes in .texi ranges diff --git a/lib/textstyle.in.h b/lib/textstyle.in.h index 3eb71938f0..fedc7d82a8 100644 --- a/lib/textstyle.in.h +++ b/lib/textstyle.in.h @@ -132,6 +132,25 @@ styled_ostream_end_use_class (styled_ostream_t stream _GL_UNUSED, { } +static inline const char * +styled_ostream_get_hyperlink_ref (styled_ostream_t stream _GL_UNUSED) +{ + return NULL; +} + +static inline const char * +styled_ostream_get_hyperlink_id (styled_ostream_t stream _GL_UNUSED) +{ + return NULL; +} + +static inline void +styled_ostream_set_hyperlink (styled_ostream_t stream _GL_UNUSED, + const char *ref _GL_UNUSED, + const char *id _GL_UNUSED) +{ +} + static inline void styled_ostream_flush_to_current_style (styled_ostream_t stream _GL_UNUSED) { @@ -266,6 +285,25 @@ term_ostream_set_underline (term_ostream_t stream _GL_UNUSED, { } +static inline const char * +term_ostream_get_hyperlink_ref (term_ostream_t stream _GL_UNUSED) +{ + return NULL; +} + +static inline const char * +term_ostream_get_hyperlink_id (term_ostream_t stream _GL_UNUSED) +{ + return NULL; +} + +static inline void +term_ostream_set_hyperlink (term_ostream_t stream _GL_UNUSED, + const char *ref _GL_UNUSED, + const char *id _GL_UNUSED) +{ +} + static inline void term_ostream_flush_to_current_style (term_ostream_t stream) { @@ -304,6 +342,9 @@ typedef styled_ostream_t term_styled_ostream_t; #define term_styled_ostream_free ostream_free #define term_styled_ostream_begin_use_class styled_ostream_begin_use_class #define term_styled_ostream_end_use_class styled_ostream_end_use_class +#define term_styled_ostream_get_hyperlink_ref styled_ostream_get_hyperlink_ref +#define term_styled_ostream_get_hyperlink_id styled_ostream_get_hyperlink_id +#define term_styled_ostream_set_hyperlink styled_ostream_set_hyperlink #define term_styled_ostream_flush_to_current_style styled_ostream_flush_to_current_style static inline term_styled_ostream_t -- 2.39.5