java-gobject-introspection r130 - trunk/src/org/gnome/gir/compiler
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: java-gobject-introspection r130 - trunk/src/org/gnome/gir/compiler
- Date: Thu, 27 Nov 2008 21:44:41 +0000 (UTC)
Author: walters
Date: Thu Nov 27 21:44:41 2008
New Revision: 130
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=130&view=rev
Log:
Skip deprecated functions by default
Modified:
trunk/src/org/gnome/gir/compiler/CodeFactory.java
Modified: trunk/src/org/gnome/gir/compiler/CodeFactory.java
==============================================================================
--- trunk/src/org/gnome/gir/compiler/CodeFactory.java (original)
+++ trunk/src/org/gnome/gir/compiler/CodeFactory.java Thu Nov 27 21:44:41 2008
@@ -1036,6 +1036,10 @@
CallableCompilationContext ctx = new CallableCompilationContext();
if (si instanceof FunctionInfo) {
FunctionInfo fi = (FunctionInfo) si;
+
+ if (fi.isDeprecated())
+ return null;
+
int flags = fi.getFlags();
ctx.isConstructor = !isStaticCtor && (flags & FunctionInfoFlags.IS_CONSTRUCTOR) != 0;
ctx.isMethod = !ctx.isConstructor && (flags & FunctionInfoFlags.IS_METHOD) != 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]