[Lsb-messages] /var/www/bzr/lsb/4.0/lsbspec r3743: fix synopsis for pango_log2vis_get_embedding_levels (bug 2825)

Mats Wichmann mats at linuxfoundation.org
Sat May 19 12:45:26 UTC 2012


------------------------------------------------------------
revno: 3743
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: lsbspec
timestamp: Sat 2012-05-19 06:45:26 -0600
message:
  fix synopsis for pango_log2vis_get_embedding_levels (bug 2825)
added:
  errata/errata_40/2825-pango.txt
modified:
  Toolkit_Gtk/generic/GTK/GTK.sgml
  Toolkit_Gtk/generic/GTK/libGdk_pixbuf.sgml
  Toolkit_Gtk/generic/GTK/libGlib.sgml
  Toolkit_Gtk/generic/GTK/libGtk-x11.sgml
  Toolkit_Gtk/generic/GTK/libPango.sgml
-------------- next part --------------
=== modified file 'Toolkit_Gtk/generic/GTK/GTK.sgml'
--- a/Toolkit_Gtk/generic/GTK/GTK.sgml	2010-11-22 17:45:38 +0000
+++ b/Toolkit_Gtk/generic/GTK/GTK.sgml	2012-05-19 12:45:26 +0000
@@ -3478,6 +3478,7 @@
 	{ G_STATIC_MUTEX_INIT, NULL, NULL, 0, FALSE, 0, 0 }
 #define G_STRINGIFY_ARG(contents)	#contents
 #define G_DIR_SEPARATOR	'/'
+#define G_SEARCHPATH_SEPARATOR	':'
 #define g_chunk_new(type,chunk)	( (type *) g_mem_chunk_alloc (chunk) )
 #define g_chunk_new0(type,chunk)	( (type *) g_mem_chunk_alloc0 (chunk) )
 #define MIN(a,b)	(((a) &lt; (b)) ? (a) : (b))
@@ -3610,7 +3611,6 @@
 #define G_BIG_ENDIAN	4321
 #define GLIB_MICRO_VERSION	6
 #define GLIB_MINOR_VERSION	8
-#define G_SEARCHPATH_SEPARATOR	:
 #define G_SEARCHPATH_SEPARATOR_S	":"
 #define GLIB_SYSDEF_POLLIN	=1
 #define GLIB_SYSDEF_POLLHUP	=16
@@ -4634,7 +4634,8 @@
 extern gchar *g_convert_with_fallback(const gchar * str, gssize len,
 				      const gchar * to_codeset,
 				      const gchar * from_codeset,
-				      gchar * fallback, gsize * bytes_read,
+				      const gchar * fallback,
+				      gsize * bytes_read,
 				      gsize * bytes_written,
 				      GError * *error);
 extern gchar *g_convert_with_iconv(const gchar * str, gssize len,
@@ -11150,10 +11151,10 @@
 extern gboolean pango_is_zero_width(gunichar ch);
 extern const char *pango_language_get_sample_string(PangoLanguage *
 						    language);
-extern gboolean pango_log2vis_get_embedding_levels(gunichar * text,
-						   gint length,
-						   PangoDirection *
-						   pbase_dir, guint8 *);
+extern guint8 *pango_log2vis_get_embedding_levels(const gchar * text,
+						  int length,
+						  PangoDirection *
+						  pbase_dir);
 extern gboolean pango_parse_stretch(const char *str,
 				    PangoStretch * stretch, gboolean warn);
 extern gboolean pango_parse_style(const char *str, PangoStyle * style,
@@ -11251,8 +11252,6 @@
 #define PANGO_SCALE_XX_LARGE	((double)1.728)
 #if defined(PANGO_ENABLE_ENGINE) || defined(PANGO_ENABLE_BACKEND)
 #define PANGO_GET_UNKNOWN_GLYPH(wc)	((PangoGlyph)(wc)|PANGO_GLYPH_UNKNOWN_FLAG)
-#endif
-#if defined(PANGO_ENABLE_ENGINE) || defined(PANGO_ENABLE_BACKEND)
 #define PANGO_GLYPH_UNKNOWN_FLAG	((PangoGlyph)0x10000000)
 #endif
 #define PANGO_RBEARING(rect)	((rect).x + (rect).width)
@@ -13167,6 +13166,7 @@
 #define GDK_PIXBUF_LOADER_GET_CLASS(obj)	 \
 	(G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_LOADER, \
 	GdkPixbufLoaderClass))
+#define GDK_PIXBUF_VERSION	"2.8.11"
 #define GDK_PIXBUF_MICRO	(10)
 #define GDK_PIXBUF_MAJOR	(2)
 #define GDK_PIXBUF_MINOR	(6)
@@ -13185,7 +13185,6 @@
 #define GDK_PIXBUF_SIMPLE_ANIM(object)	(G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnim))
 #define GDK_IS_PIXBUF_SIMPLE_ANIM(object)	(G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_SIMPLE_ANIM))
 #define GDK_PIXBUF_SIMPLE_ANIM_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnimClass))
-#define GDK_PIXBUF_VERSION	"2.8.11"
 #define GDK_PIXBUF_VAR	extern
 #define GDK_PIXBUF_ERROR	gdk_pixbuf_error_quark ()
 
@@ -30666,9 +30665,9 @@
 extern void gtk_init_add(GtkFunction function, gpointer data);
 extern gboolean gtk_init_check(int *argc, char ***argv);
 extern gboolean gtk_init_with_args(int *argc, char ***argv,
-				   char *parameter_string,
+				   const char *parameter_string,
 				   GOptionEntry * entries,
-				   char *translation_domain,
+				   const char *translation_domain,
 				   GError * *error);
 extern GType gtk_input_dialog_get_type(void);
 extern GtkWidget *gtk_input_dialog_new(void);

=== modified file 'Toolkit_Gtk/generic/GTK/libGdk_pixbuf.sgml'
--- a/Toolkit_Gtk/generic/GTK/libGdk_pixbuf.sgml	2009-04-27 17:33:49 +0000
+++ b/Toolkit_Gtk/generic/GTK/libGdk_pixbuf.sgml	2012-05-19 12:45:26 +0000
@@ -304,6 +304,7 @@
 #define GDK_PIXBUF_LOADER_GET_CLASS(obj)	 \
 	(G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_LOADER, \
 	GdkPixbufLoaderClass))
+#define GDK_PIXBUF_VERSION	"2.8.11"
 #define GDK_PIXBUF_MICRO	(10)
 #define GDK_PIXBUF_MAJOR	(2)
 #define GDK_PIXBUF_MINOR	(6)
@@ -322,7 +323,6 @@
 #define GDK_PIXBUF_SIMPLE_ANIM(object)	(G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnim))
 #define GDK_IS_PIXBUF_SIMPLE_ANIM(object)	(G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_SIMPLE_ANIM))
 #define GDK_PIXBUF_SIMPLE_ANIM_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnimClass))
-#define GDK_PIXBUF_VERSION	"2.8.11"
 #define GDK_PIXBUF_VAR	extern
 #define GDK_PIXBUF_ERROR	gdk_pixbuf_error_quark ()
 

=== modified file 'Toolkit_Gtk/generic/GTK/libGlib.sgml'
--- a/Toolkit_Gtk/generic/GTK/libGlib.sgml	2010-11-22 17:45:38 +0000
+++ b/Toolkit_Gtk/generic/GTK/libGlib.sgml	2012-05-19 12:45:26 +0000
@@ -3386,6 +3386,7 @@
 	{ G_STATIC_MUTEX_INIT, NULL, NULL, 0, FALSE, 0, 0 }
 #define G_STRINGIFY_ARG(contents)	#contents
 #define G_DIR_SEPARATOR	'/'
+#define G_SEARCHPATH_SEPARATOR	':'
 #define g_chunk_new(type,chunk)	( (type *) g_mem_chunk_alloc (chunk) )
 #define g_chunk_new0(type,chunk)	( (type *) g_mem_chunk_alloc0 (chunk) )
 #define MIN(a,b)	(((a) &lt; (b)) ? (a) : (b))
@@ -3518,7 +3519,6 @@
 #define G_BIG_ENDIAN	4321
 #define GLIB_MICRO_VERSION	6
 #define GLIB_MINOR_VERSION	8
-#define G_SEARCHPATH_SEPARATOR	:
 #define G_SEARCHPATH_SEPARATOR_S	":"
 #define GLIB_SYSDEF_POLLIN	=1
 #define GLIB_SYSDEF_POLLHUP	=16
@@ -4542,7 +4542,8 @@
 extern gchar *g_convert_with_fallback(const gchar * str, gssize len,
 				      const gchar * to_codeset,
 				      const gchar * from_codeset,
-				      gchar * fallback, gsize * bytes_read,
+				      const gchar * fallback,
+				      gsize * bytes_read,
 				      gsize * bytes_written,
 				      GError * *error);
 extern gchar *g_convert_with_iconv(const gchar * str, gssize len,

=== modified file 'Toolkit_Gtk/generic/GTK/libGtk-x11.sgml'
--- a/Toolkit_Gtk/generic/GTK/libGtk-x11.sgml	2010-11-22 17:45:38 +0000
+++ b/Toolkit_Gtk/generic/GTK/libGtk-x11.sgml	2012-05-19 12:45:26 +0000
@@ -11952,9 +11952,9 @@
 extern void gtk_init_add(GtkFunction function, gpointer data);
 extern gboolean gtk_init_check(int *argc, char ***argv);
 extern gboolean gtk_init_with_args(int *argc, char ***argv,
-				   char *parameter_string,
+				   const char *parameter_string,
 				   GOptionEntry * entries,
-				   char *translation_domain,
+				   const char *translation_domain,
 				   GError * *error);
 extern GType gtk_input_dialog_get_type(void);
 extern GtkWidget *gtk_input_dialog_new(void);

=== modified file 'Toolkit_Gtk/generic/GTK/libPango.sgml'
--- a/Toolkit_Gtk/generic/GTK/libPango.sgml	2009-12-07 18:15:02 +0000
+++ b/Toolkit_Gtk/generic/GTK/libPango.sgml	2012-05-19 12:45:26 +0000
@@ -695,10 +695,10 @@
 extern gboolean pango_is_zero_width(gunichar ch);
 extern const char *pango_language_get_sample_string(PangoLanguage *
 						    language);
-extern gboolean pango_log2vis_get_embedding_levels(gunichar * text,
-						   gint length,
-						   PangoDirection *
-						   pbase_dir, guint8 *);
+extern guint8 *pango_log2vis_get_embedding_levels(const gchar * text,
+						  int length,
+						  PangoDirection *
+						  pbase_dir);
 extern gboolean pango_parse_stretch(const char *str,
 				    PangoStretch * stretch, gboolean warn);
 extern gboolean pango_parse_style(const char *str, PangoStyle * style,
@@ -796,8 +796,6 @@
 #define PANGO_SCALE_XX_LARGE	((double)1.728)
 #if defined(PANGO_ENABLE_ENGINE) || defined(PANGO_ENABLE_BACKEND)
 #define PANGO_GET_UNKNOWN_GLYPH(wc)	((PangoGlyph)(wc)|PANGO_GLYPH_UNKNOWN_FLAG)
-#endif
-#if defined(PANGO_ENABLE_ENGINE) || defined(PANGO_ENABLE_BACKEND)
 #define PANGO_GLYPH_UNKNOWN_FLAG	((PangoGlyph)0x10000000)
 #endif
 #define PANGO_RBEARING(rect)	((rect).x + (rect).width)

=== added file 'errata/errata_40/2825-pango.txt'
--- a/errata/errata_40/2825-pango.txt	1970-01-01 00:00:00 +0000
+++ b/errata/errata_40/2825-pango.txt	2012-05-19 12:45:26 +0000
@@ -0,0 +1,34 @@
+Specification: LSB Desktop generic
+Edition of Specification: 4.0
+Type: Error
+Status: Unapproved
+Bug reference: http://bugs.linuxbase.org/show_bug.cgi?id=2825
+
+Rationale: the pango_log2vis_get_embedding_levels function was specified
+with an incorrect prototype, with both an incorrect return type and
+an incorrect number of parameters.
+
+
+In LSB Desktop generic:
+
+In 16.14. Data Definitions for libpango-1.0:
+
+In 16.14.1. pango-1.0/pango/pango-utils.h
+
+Change:
+
+extern gboolean pango_log2vis_get_embedding_levels(gunichar * text,
+                                                   gint length,
+                                                   PangoDirection *
+                                                   pbase_dir, guint8 *);
+
+To:
+
+extern guint8 *pango_log2vis_get_embedding_levels(const gchar * text,
+                                                  int length,
+                                                  PangoDirection *
+                                                  pbase_dir);
+
+
+
+



More information about the lsb-messages mailing list