diff --git a/ChangeLog b/ChangeLog index 6b5459663..043f410e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-06-25 Mike Kestner + + * generator/*.cs : add gpl license blurb and clean up (c)'s. + * parser/* : ditto + * doc/*.cs : ditto + * doc/gen-handlerargs-docs.cs : add little scripty. + 2004-06-25 Mike Kestner * configure.in : tag and bump version to 0.99. diff --git a/doc/gen-handlerargs-docs.cs b/doc/gen-handlerargs-docs.cs new file mode 100644 index 000000000..bd172fd65 --- /dev/null +++ b/doc/gen-handlerargs-docs.cs @@ -0,0 +1,184 @@ +// gen-handlerargs-docs.cs - Generate documentation for event handlers/args +// +// Author: Mike Kestner +// +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + +namespace GtkSharp.Docs { + + using System; + using System.Collections; + using System.IO; + using System.Reflection; + using System.Xml; + using System.Xml.XPath; + + public class GenHandlerArgsDocs { + + public static int Main (string[] args) + { + string api_filename = ""; + Hashtable hndlrs = new Hashtable (); + XmlDocument api_doc = new XmlDocument (); + + BindingFlags flags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly; + + foreach (string arg in args) { + + Assembly assembly; + try { + assembly = Assembly.LoadFile (arg); + } catch (XmlException e) { + Console.WriteLine (e); + return 1; + } + + foreach (Type t in assembly.GetTypes ()) { + + if (!t.IsSubclassOf (typeof (GLib.Object))) + continue; + + foreach (EventInfo ei in t.GetEvents (flags)) { + foreach (Attribute attr in ei.GetCustomAttributes (false)) { + if (attr.ToString () == "GLib.SignalAttribute") { + if (ei.EventHandlerType.ToString() == "System.EventHandler") + break; + ArrayList sigs; + if (hndlrs.Contains (ei.EventHandlerType)) + sigs = hndlrs [ei.EventHandlerType] as ArrayList; + else { + sigs = new ArrayList (); + hndlrs [ei.EventHandlerType] = sigs; + } + + sigs.Add (t + "." + ei.Name); + break; + } + } + } + } + } + + if (hndlrs.Count == 0) + return 0; + + foreach (Type hndlr in hndlrs.Keys) { + + string filename = "en/" + hndlr.Namespace + "/" + hndlr.Name + ".xml"; + + try { + Stream stream = File.OpenRead (filename); + api_doc.Load (stream); + stream.Close (); + Console.WriteLine ("opened:" + filename); + } catch (XmlException e) { + Console.WriteLine (e); + return 1; + } + + Type arg_type = hndlr.GetMethod ("Invoke").GetParameters ()[1].ParameterType; + + XPathNavigator api_nav = api_doc.CreateNavigator (); + XPathNodeIterator iter = api_nav.Select ("/Type/Docs"); + if (iter.MoveNext ()) { + XmlElement elem = ((IHasXmlNode)iter.Current).GetNode () as XmlElement; + XmlElement summ = elem ["summary"]; + XmlElement rem = elem ["remarks"]; + string summary = summ.InnerXml; + string remarks = rem.InnerXml; + if (summary == "To be added" && remarks == "To be added") { + summ.InnerXml = "Event handler."; + ArrayList sigs = hndlrs[hndlr] as ArrayList; + string rems; + if (sigs.Count > 1) { + rems = "The following events utilize this delegate:"; + foreach (string ev in sigs) + rems += ""; + rems += ""; + } else + rems = "The event utilizes this delegate:"; + rems += "Event data is passed via the parameter.To attach a to an event, add the " + hndlr.Name + " instance to the event. The methods referenced by the " + hndlr.Name + " instance are invoked whenever the event is raised, until the " + hndlr.Name + " is removed from the event."; + rem.InnerXml = rems; + } else { + Console.WriteLine ("Delegate already has docs."); + } + } + api_doc.Save (filename); + + + + filename = "en/" + arg_type.Namespace + "/" + arg_type.Name + ".xml"; + + try { + Stream stream = File.OpenRead (filename); + api_doc.Load (stream); + stream.Close (); + Console.WriteLine ("opened:" + filename); + } catch (XmlException e) { + Console.WriteLine (e); + return 1; + } + + api_nav = api_doc.CreateNavigator (); + iter = api_nav.Select ("/Type/Docs"); + if (iter.MoveNext ()) { + XmlElement elem = ((IHasXmlNode)iter.Current).GetNode () as XmlElement; + XmlElement summ = elem ["summary"]; + XmlElement rem = elem ["remarks"]; + string summary = summ.InnerXml; + string remarks = rem.InnerXml; + if (summary == "To be added" && remarks == "To be added") { + summ.InnerXml = "Event data."; + ArrayList sigs = hndlrs[hndlr] as ArrayList; + string rems; + if (sigs.Count > 1) { + rems = "The following events invoke delegates which pass event data via this class:"; + foreach (string ev in sigs) + rems += ""; + rems += ""; + } else + rems = "The event invokes delegates which pass event data via this class."; + rem.InnerXml = rems; + } else { + Console.WriteLine ("Class already has docs."); + } + } + + api_nav = api_doc.CreateNavigator (); + iter = api_nav.Select ("/Type/Members/Member[@MemberName='.ctor']"); + if (iter.MoveNext ()) { + XmlElement elem = ((IHasXmlNode)iter.Current).GetNode () as XmlElement; + XmlElement summ = elem ["Docs"] ["summary"]; + XmlElement rem = elem ["Docs"] ["remarks"]; + XmlElement ret = elem ["Docs"] ["returns"]; + string summary = summ.InnerXml; + string remarks = rem.InnerXml; + if (summary == "To be added" && remarks == "To be added") { + summ.InnerXml = "Public Constructor."; + ret.InnerXml = "A new ."; + rem.InnerXml = "Create a new instance with this constructor if you need to invoke a delegate."; + } else { + Console.WriteLine ("Ctor already has docs."); + } + } + api_doc.Save (filename); + + } + return 0; + } + } +} diff --git a/doc/gen-vm-docs.cs b/doc/gen-vm-docs.cs index 1cdb59acb..acaffe4c2 100644 --- a/doc/gen-vm-docs.cs +++ b/doc/gen-vm-docs.cs @@ -1,3 +1,23 @@ +// gen-vm-docs.cs - Generate documentation for virtual methods. +// +// Author: Mike Kestner +// +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Docs { using System; diff --git a/doc/scan-deprecations.cs b/doc/scan-deprecations.cs index 56e4e9b88..9e1547494 100644 --- a/doc/scan-deprecations.cs +++ b/doc/scan-deprecations.cs @@ -1,3 +1,23 @@ +// scan-deprecations.cs - scans docs for deprecated nodes, cleans up and nags. +// +// Author: Mike Kestner +// +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Docs { using System; diff --git a/generator/AliasGen.cs b/generator/AliasGen.cs index a09179389..f4da7a856 100644 --- a/generator/AliasGen.cs +++ b/generator/AliasGen.cs @@ -2,7 +2,21 @@ // // Author: Mike Kestner // -// (c) 2003 Mike Kestner +// Copyright (c) 2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. namespace GtkSharp.Generation { diff --git a/generator/BoxedGen.cs b/generator/BoxedGen.cs index 0ab4b2982..dd11ecf8c 100644 --- a/generator/BoxedGen.cs +++ b/generator/BoxedGen.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2001 Mike Kestner +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2003-2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. namespace GtkSharp.Generation { diff --git a/generator/ByRefGen.cs b/generator/ByRefGen.cs index 2fe26e1bb..bb5b12a5e 100644 --- a/generator/ByRefGen.cs +++ b/generator/ByRefGen.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2003 Mike Kestner +// Copyright (c) 2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/CallbackGen.cs b/generator/CallbackGen.cs index 73eabf0a5..73c4e1b82 100644 --- a/generator/CallbackGen.cs +++ b/generator/CallbackGen.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2002-2003 Mike Kestner +// Copyright (c) 2002-2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/ClassBase.cs b/generator/ClassBase.cs index 965fe3a33..44720a072 100644 --- a/generator/ClassBase.cs +++ b/generator/ClassBase.cs @@ -7,6 +7,21 @@ // Copyright (c) 2002 Rachel Hestilow // Copyright (c) 2001-2003 Mike Kestner // Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { using System; diff --git a/generator/ClassGen.cs b/generator/ClassGen.cs index ed343fae7..51a7d24c9 100644 --- a/generator/ClassGen.cs +++ b/generator/ClassGen.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2001-2003 Mike Kestner +// Copyright (c) 2001-2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/CodeGenerator.cs b/generator/CodeGenerator.cs index 0744db594..810caf05f 100644 --- a/generator/CodeGenerator.cs +++ b/generator/CodeGenerator.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2003 Mike Kestner and Ximian Inc. +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2003-2004 Novell Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/ConstStringGen.cs b/generator/ConstStringGen.cs index 303e4a957..63a8784fa 100644 --- a/generator/ConstStringGen.cs +++ b/generator/ConstStringGen.cs @@ -2,7 +2,22 @@ // // Author: Rachel Hestilow // -// (c) 2003 Rachel Hestilow +// Copyright (c) 2003 Rachel Hestilow +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/Ctor.cs b/generator/Ctor.cs index 198833513..af0306e37 100644 --- a/generator/Ctor.cs +++ b/generator/Ctor.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2002 Mike Kestner +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/CustomMarshalerGen.cs b/generator/CustomMarshalerGen.cs index cc9c92415..3df0c6216 100644 --- a/generator/CustomMarshalerGen.cs +++ b/generator/CustomMarshalerGen.cs @@ -3,6 +3,21 @@ // Author: Mike Kestner // // Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/EnumGen.cs b/generator/EnumGen.cs index c49951666..18f3afcef 100644 --- a/generator/EnumGen.cs +++ b/generator/EnumGen.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2001 Mike Kestner +// Copyright (c) 2001 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/Field.cs b/generator/Field.cs index c71ee6531..12da4c586 100644 --- a/generator/Field.cs +++ b/generator/Field.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2004 Novell, Inc. +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/GObjectGen.cs b/generator/GObjectGen.cs index 0ebf75833..71d07298b 100644 --- a/generator/GObjectGen.cs +++ b/generator/GObjectGen.cs @@ -5,7 +5,22 @@ // // Author: Rachel Hestilow // -// (c) 2004 Rachel Hestilow +// Copyright (c) 2004 Rachel Hestilow +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/GenBase.cs b/generator/GenBase.cs index 5f63f8b5d..3e7702d99 100644 --- a/generator/GenBase.cs +++ b/generator/GenBase.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2002 Mike Kestner +// Copyright (c) 2001-2002 Mike Kestner +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/GenerationInfo.cs b/generator/GenerationInfo.cs index b16a75e0f..37c0573c6 100644 --- a/generator/GenerationInfo.cs +++ b/generator/GenerationInfo.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2003 Ximian Inc. +// Copyright (c) 2003 Ximian Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/IGeneratable.cs b/generator/IGeneratable.cs index 15501cb05..a692fd335 100644 --- a/generator/IGeneratable.cs +++ b/generator/IGeneratable.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2001 Mike Kestner +// Copyright (c) 2001 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/ImportSignature.cs b/generator/ImportSignature.cs index ff7a51f95..2019c35b0 100644 --- a/generator/ImportSignature.cs +++ b/generator/ImportSignature.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2003 Mike Kestner, (c) 2003 Novell, Inc. +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2003-2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/InterfaceGen.cs b/generator/InterfaceGen.cs index 1162b6abe..26031a38c 100644 --- a/generator/InterfaceGen.cs +++ b/generator/InterfaceGen.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2001-2002 Mike Kestner +// Copyright (c) 2001-2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/ManagedCallString.cs b/generator/ManagedCallString.cs index d5da388f1..d8de8bc3a 100644 --- a/generator/ManagedCallString.cs +++ b/generator/ManagedCallString.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2003 Mike Kestner +// Copyright (c) 2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/ManualGen.cs b/generator/ManualGen.cs index 79399ab6e..45ded4399 100644 --- a/generator/ManualGen.cs +++ b/generator/ManualGen.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2003 Mike Kestner +// Copyright (c) 2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/Method.cs b/generator/Method.cs index a81ca88be..e1c09b511 100644 --- a/generator/Method.cs +++ b/generator/Method.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2003 Mike Kestner, (c) 2003 Novell, Inc. +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2003-2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/MethodBody.cs b/generator/MethodBody.cs index 22779535b..596eb35d1 100644 --- a/generator/MethodBody.cs +++ b/generator/MethodBody.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2003 Mike Kestner, (c) 2003 Novell, Inc. +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2003-2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/ObjectGen.cs b/generator/ObjectGen.cs index d69429226..bab907b44 100644 --- a/generator/ObjectGen.cs +++ b/generator/ObjectGen.cs @@ -2,8 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2003 Mike Kestner and Ximian Inc. -// (c) 2004 Novell, Inc. +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2003-2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/OpaqueGen.cs b/generator/OpaqueGen.cs index 5d98d29a0..1835e4822 100644 --- a/generator/OpaqueGen.cs +++ b/generator/OpaqueGen.cs @@ -1,8 +1,23 @@ -// GtkSharp.Generation.ObjectGen.cs - The Object Generatable. +// GtkSharp.Generation.OpaqueGen.cs - The Opaque Generatable. // // Author: Mike Kestner // -// (c) 2001-2002 Mike Kestner +// Copyright (c) 2001-2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/Parameters.cs b/generator/Parameters.cs index b3fa955c2..639a4e020 100644 --- a/generator/Parameters.cs +++ b/generator/Parameters.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2002 Mike Kestner +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/Parser.cs b/generator/Parser.cs index 5f7fb4495..fe1141a2c 100644 --- a/generator/Parser.cs +++ b/generator/Parser.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2003 Mike Kestner and Ximian Inc. +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2003 Ximian Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/Property.cs b/generator/Property.cs index f80128620..aca11f8fb 100644 --- a/generator/Property.cs +++ b/generator/Property.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2002 Mike Kestner +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/Signal.cs b/generator/Signal.cs index 78f55d65b..c445fb4bc 100644 --- a/generator/Signal.cs +++ b/generator/Signal.cs @@ -2,8 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2003 Mike Kestner -// (c) 2003-2004 Novell, Inc. +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2003-2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/SignalHandler.cs b/generator/SignalHandler.cs index cbb4d2c1c..c47c686b6 100644 --- a/generator/SignalHandler.cs +++ b/generator/SignalHandler.cs @@ -2,8 +2,23 @@ // // Author: Mike Kestner // -// (c) 2002-2003 Mike Kestner -// (c) 2004 Novell, Inc. +// Copyright (c) 2002-2003 Mike Kestner +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/Signature.cs b/generator/Signature.cs index dfdc2b8bc..e3f55bad6 100644 --- a/generator/Signature.cs +++ b/generator/Signature.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2003 Novell, Inc. +// Copyright (c) 2003-2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/SimpleGen.cs b/generator/SimpleGen.cs index 37874037d..1ede7e95f 100644 --- a/generator/SimpleGen.cs +++ b/generator/SimpleGen.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2003 Mike Kestner +// Copyright (c) 2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/Statistics.cs b/generator/Statistics.cs index 69e84a437..45457657a 100644 --- a/generator/Statistics.cs +++ b/generator/Statistics.cs @@ -2,8 +2,23 @@ // // Author: Mike Kestner // -// 2002 Mike Kestner -// 2004 Novell, Inc. +// Copyright (c) 2002 Mike Kestner +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/StringGen.cs b/generator/StringGen.cs index 48f3eb783..e6e987665 100644 --- a/generator/StringGen.cs +++ b/generator/StringGen.cs @@ -2,7 +2,22 @@ // // Author: Rachel Hestilow // -// (c) 2003 Rachel Hestilow +// Copyright (c) 2003 Rachel Hestilow +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/StructBase.cs b/generator/StructBase.cs index e7d74f373..f50f62262 100644 --- a/generator/StructBase.cs +++ b/generator/StructBase.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2001 Mike Kestner +// Copyright (c) 2001-2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/StructGen.cs b/generator/StructGen.cs index e6d64d311..a6ef8c3bd 100644 --- a/generator/StructGen.cs +++ b/generator/StructGen.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2001 Mike Kestner +// Copyright (c) 2001 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/SymbolTable.cs b/generator/SymbolTable.cs index 090fb1f04..63d1168b6 100644 --- a/generator/SymbolTable.cs +++ b/generator/SymbolTable.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2001-2003 Mike Kestner +// Copyright (c) 2001-2003 Mike Kestner +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/TimeTGen.cs b/generator/TimeTGen.cs index 0997efca7..ba2a30fa2 100644 --- a/generator/TimeTGen.cs +++ b/generator/TimeTGen.cs @@ -2,7 +2,23 @@ // // Author: Mike Kestner // -// (c) 2003 Mike Kestner +// Copyright (c) 2003 Mike Kestner +// Copyright (c) 2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/generator/VMSignature.cs b/generator/VMSignature.cs index f4261f54a..f8da45ae5 100644 --- a/generator/VMSignature.cs +++ b/generator/VMSignature.cs @@ -2,7 +2,22 @@ // // Author: Mike Kestner // -// (c) 2003 Novell, Inc. +// Copyright (c) 2003-2004 Novell, Inc. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + namespace GtkSharp.Generation { diff --git a/parser/gapi-fixup.cs b/parser/gapi-fixup.cs index 5c2a67e4a..b24532a22 100644 --- a/parser/gapi-fixup.cs +++ b/parser/gapi-fixup.cs @@ -1,8 +1,22 @@ -// GtkSharp.Parsing.gapi-fixup.cs - xml alteration engine. +// gapi-fixup.cs - xml alteration engine. // // Author: Mike Kestner // -// (c) 2003 Mike Kestner +// Copyright (c) 2003 Mike Kestner +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the GNU General Public +// License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. namespace GtkSharp.Parsing { diff --git a/parser/gapi-parser b/parser/gapi-parser index 13963f7c8..c1dbea0ff 100755 --- a/parser/gapi-parser +++ b/parser/gapi-parser @@ -1,4 +1,24 @@ #!/usr/bin/perl -w +# gapi-parser - parser frontend for XML-based sources file format. +# +# Author: Mike Kestner +# +# Copyright (c) 2003 Mike Kestner +# Copyright (c) 2003 Novell, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of version 2 of the GNU General Public +# License as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the +# Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. use XML::LibXML; diff --git a/parser/gapi.pl b/parser/gapi.pl index 6a0622b58..6453d1328 100755 --- a/parser/gapi.pl +++ b/parser/gapi.pl @@ -1,4 +1,24 @@ #!/usr/bin/perl -w +# +# gapi.pl - frontend script for old style non-xml sources files. +# +# Author: Mike Kestner +# +# Copyright (c) 2001-2003 Mike Kestner +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of version 2 of the GNU General Public +# License as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the +# Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. if ($ARGV[0] && $ARGV[1]) { open INFILE, $ARGV[0]; diff --git a/parser/gapi2xml.pl b/parser/gapi2xml.pl index 9838ca1f0..a28b7135c 100755 --- a/parser/gapi2xml.pl +++ b/parser/gapi2xml.pl @@ -4,7 +4,22 @@ # # Author: Mike Kestner # -# 2001-2003 Mike Kestner, 2003-2004 Novell, Inc. +# Copyright (c) 2001-2003 Mike Kestner +# Copyright (c) 2003-2004 Novell, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of version 2 of the GNU General Public +# License as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the +# Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. ############################################################## $debug=0; diff --git a/parser/gapi_pp.pl b/parser/gapi_pp.pl index 56bc8ca28..776e67de3 100755 --- a/parser/gapi_pp.pl +++ b/parser/gapi_pp.pl @@ -6,9 +6,23 @@ # Authors: Mike Kestner # Martin Willemoes Hansen # -# 2001 Mike Kestner -# 2003 Martin Willemoes Hansen -# 2003 Novell, Inc. +# Copyright (c) 2001 Mike Kestner +# Copyright (c) 2003 Martin Willemoes Hansen +# Copyright (c) 2003 Novell, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of version 2 of the GNU General Public +# License as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the +# Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. $private_regex = "^#if.*(ENABLE_BACKEND|ENABLE_ENGINE)"; $eatit_regex = "^#if.*(__cplusplus|DEBUG|DISABLE_(DEPRECATED|COMPAT)|ENABLE_BROKEN|COMPILATION)";