Commit eeb0f9bc authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't mark gdk_pixbuf_error_quark() as const, to be consistent with all

2004-11-23  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf-core.h: Don't mark gdk_pixbuf_error_quark() as const,
	to be consistent with all the other error_quark functions.
	(technically they are const, but since these are called only
	in error paths, giving the compiler better optimization
	opportunities doesn't matter much)

	* gdk-pixbuf.symbols: Add attribute annotations.
	* makegdkpixbufalias.pl: Keep attribute annotations, but strip PRIVATE.
	* Makefile.am (gdk_pixbuf.def): Strip attribute annotations, but keep
	PRIVATE.
parent 5c47de58
2004-11-23 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-core.h: Don't mark gdk_pixbuf_error_quark() as const,
to be consistent with all the other error_quark functions.
(technically they are const, but since these are called only
in error paths, giving the compiler better optimization
opportunities doesn't matter much)
* gdk-pixbuf.symbols: Add attribute annotations.
* makegdkpixbufalias.pl: Keep attribute annotations, but strip PRIVATE.
* Makefile.am (gdk_pixbuf.def): Strip attribute annotations, but keep
PRIVATE.
Mon Nov 15 18:58:22 2004 Manish Singh <yosh@gimp.org>
* gdk-pixbuf-private.h: _gdk_pixbuf_lock now returns a gboolean.
......
......@@ -40,7 +40,7 @@ uninstall-ms-lib:
endif
gdk_pixbuf.def: gdk-pixbuf.symbols
(echo -e EXPORTS; cpp -P -DINCLUDE_VARIABLES $(srcdir)/gdk-pixbuf.symbols | sed -e '/^$$/d' -e 's/^/ /') > gdk_pixbuf.def
(echo -e EXPORTS; cpp -P -DINCLUDE_VARIABLES $(srcdir)/gdk-pixbuf.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > gdk_pixbuf.def
gdk-pixbuf-alias.h: gdk-pixbuf.symbols
$(srcdir)/makegdkpixbufalias.pl < $(srcdir)/gdk-pixbuf.symbols > gdk-pixbuf-alias.h
......
......@@ -73,7 +73,7 @@ typedef enum {
GDK_PIXBUF_ERROR_FAILED
} GdkPixbufError;
GQuark gdk_pixbuf_error_quark (void) G_GNUC_CONST;
GQuark gdk_pixbuf_error_quark (void);
......
......@@ -5,7 +5,7 @@ gdk_pixbuf_alpha_mode_get_type
gdk_pixbuf_animation_get_height
gdk_pixbuf_animation_get_iter
gdk_pixbuf_animation_get_static_image
gdk_pixbuf_animation_get_type
gdk_pixbuf_animation_get_type G_GNUC_CONST
gdk_pixbuf_animation_get_width
gdk_pixbuf_animation_is_static_image
gdk_pixbuf_animation_iter_advance
......@@ -45,13 +45,13 @@ gdk_pixbuf_get_n_channels
gdk_pixbuf_get_option
gdk_pixbuf_get_pixels
gdk_pixbuf_get_rowstride
gdk_pixbuf_get_type
gdk_pixbuf_get_type G_GNUC_CONST
gdk_pixbuf_get_width
gdk_pixbuf_loader_close
gdk_pixbuf_loader_get_animation
gdk_pixbuf_loader_get_format
gdk_pixbuf_loader_get_pixbuf
gdk_pixbuf_loader_get_type
gdk_pixbuf_loader_get_type G_GNUC_CONST
gdk_pixbuf_loader_new
gdk_pixbuf_loader_new_with_mime_type
gdk_pixbuf_loader_new_with_type
......
......@@ -75,13 +75,23 @@ while (<>) {
next;
}
chop;
my $str = $_;
my @words;
my $attributes = "";
@words = split(/ /, $str);
$str = shift(@words);
chomp($str);
my $alias = "IA__".$str;
# Drop any Win32 specific .def file syntax, but keep attributes
foreach $word (@words) {
$attributes = "$attributes $word" unless $word eq "PRIVATE";
}
print <<EOF
extern __typeof ($str) $alias __attribute((visibility("hidden")));
extern __typeof ($str) $alias __attribute((visibility("hidden")))$attribute;
extern __typeof ($str) $str __attribute((alias("$alias"), visibility("default")));
\#define $str $alias
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment