GtkSharp/generator
Bertrand Lorentz 4f29defd5c generator: Add validation check for return values that are arrays
When a C function returns an array, we need to be able to determine its
length. This is done either through a parameter to that function, or
because the array is null-terminated. If we don't know about either of
those, we print out a warning and fail the validation for the return
value. This means the corresponding method will not be generated.

This fixes a crash when trying to generate a method for which this
information is missing.

This wasn't a problem until now because the parser doesn't handle array
return values, so they were always handled through fix-ups. But now we
can get a GAPI XML converted from GIR which contains the "array"
attribute for a return value but no other information.
2012-11-03 14:17:02 +01:00
..
.gitignore Hush versioned scripts generally 2011-04-06 10:53:53 -05:00
AliasGen.cs 2007-09-21 Mike Kestner <mkestner@novell.com> 2007-09-21 16:37:04 +00:00
BoxedGen.cs generator: Remove support for .custom files 2012-08-05 18:29:18 +02:00
ByRefGen.cs 2008-02-26 Mike Kestner <mkestner@novell.com> 2008-02-26 16:29:14 +00:00
CallbackGen.cs Fix TextBufferSerializeFunc signature 2011-04-28 18:38:07 -05:00
ChildProperty.cs Redo child property handling; now we generate classes to hold 2004-11-18 20:31:22 +00:00
ClassBase.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
ClassField.cs Restructure log warnings in validation. 2011-02-20 12:11:08 -06:00
ClassGen.cs generator: Remove support for .custom files 2012-08-05 18:29:18 +02:00
CodeGenerator.cs generator: Remove support for .custom files 2012-08-05 18:29:18 +02:00
ConstFilenameGen.cs 2007-09-21 Mike Kestner <mkestner@novell.com> 2007-09-21 16:37:04 +00:00
ConstStringGen.cs 2009-08-13 Christian Hoff <christian_hoff@gmx.net> 2009-08-13 14:46:33 +00:00
Ctor.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
DefaultSignalHandler.cs 2009-04-13 Christian Hoff <christian_hoff@gmx.net> 2009-04-13 17:44:48 +00:00
DESIGN 2005-07-02 Mike Kestner <mkestner@novell.com> 2005-07-02 15:23:27 +00:00
EnumGen.cs 2009-09-03 Christian Hoff <christian_hoff@gmx.net> 2009-09-03 19:50:53 +00:00
FieldBase.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
gapi3-codegen.in 2009-07-24 Christian Hoff <christian_hoff@gmx.net> 2009-07-24 05:19:17 +00:00
GenBase.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
GenerationInfo.cs generator: Remove support for .custom files 2012-08-05 18:29:18 +02:00
generator.csproj generator: Add a XmlElement.GetAttributeAsBoolean extension method 2012-10-21 18:21:54 +02:00
GObjectVM.cs generator: Remove support for .custom files 2012-08-05 18:29:18 +02:00
HandleBase.cs Implement Ownable Generatable type. 2011-04-21 18:04:47 -05:00
IAccessor.cs 2005-07-02 Mike Kestner <mkestner@novell.com> 2005-07-02 15:23:27 +00:00
IGeneratable.cs 2009-08-13 Christian Hoff <christian_hoff@gmx.net> 2009-08-13 14:46:33 +00:00
IManualMarshaler.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
InterfaceGen.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
InterfaceVM.cs Restructure log warnings in validation. 2011-02-20 12:11:08 -06:00
IOwnable.cs Implement Ownable Generatable type. 2011-04-21 18:04:47 -05:00
LogWriter.cs Add missing file. 2011-02-21 11:19:10 -06:00
LPGen.cs 2008-09-18 Mike Kestner <mkestner@novell.com> 2008-09-18 14:23:29 +00:00
LPUGen.cs 2008-09-18 Mike Kestner <mkestner@novell.com> 2008-09-18 14:23:29 +00:00
Makefile.am generator: Add a XmlElement.GetAttributeAsBoolean extension method 2012-10-21 18:21:54 +02:00
ManagedCallString.cs Fix TextBufferSerializeFunc signature 2011-04-28 18:38:07 -05:00
ManualGen.cs 2007-09-21 Mike Kestner <mkestner@novell.com> 2007-09-21 16:37:04 +00:00
MarshalGen.cs 2009-04-13 Christian Hoff <christian_hoff@gmx.net> 2009-04-13 17:44:48 +00:00
Method.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
MethodBase.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
MethodBody.cs Fix TextBufferSerializeFunc signature 2011-04-28 18:38:07 -05:00
ObjectBase.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
ObjectField.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
ObjectGen.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
OpaqueGen.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
OwnableGen.cs Implement Ownable Generatable type. 2011-04-21 18:04:47 -05:00
Parameters.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
Parser.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
Property.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
PropertyBase.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
ReturnValue.cs generator: Add validation check for return values that are arrays 2012-11-03 14:17:02 +01:00
Signal.cs generator: Properly handle boolean attributes when parsing the XML 2012-10-21 18:22:13 +02:00
Signature.cs * generator/Parameters.cs (IsHidden): method to check if a 2005-05-02 20:10:03 +00:00
SimpleBase.cs 2009-08-13 Christian Hoff <christian_hoff@gmx.net> 2009-08-13 14:46:33 +00:00
SimpleGen.cs 2007-09-21 Mike Kestner <mkestner@novell.com> 2007-09-21 16:37:04 +00:00
Statistics.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 16:35:15 +00:00
StructBase.cs generator: Fix compilation warnings 2012-10-21 18:22:13 +02:00
StructField.cs generator: Fix compilation warnings 2012-10-21 18:22:13 +02:00
StructGen.cs generator: Remove support for .custom files 2012-08-05 18:29:18 +02:00
SymbolTable.cs Add support for GValueArray type 2011-09-26 13:54:48 +02:00
VirtualMethod.cs Restructure log warnings in validation. 2011-02-20 12:11:08 -06:00
VMSignature.cs 2009-04-13 Christian Hoff <christian_hoff@gmx.net> 2009-04-13 17:44:48 +00:00
XmlElementExtensions.cs generator: Add a XmlElement.GetAttributeAsBoolean extension method 2012-10-21 18:21:54 +02:00