From: Nick Bowler Date: Tue, 4 Feb 2020 05:12:51 +0000 (-0500) Subject: Generate ChangeLog from git at packaging time. X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/commitdiff_plain/e103ddd3414aff249707e19e726082a2afb05037 Generate ChangeLog from git at packaging time. Import the gitlog-to-changelog script from gnulib and add rules to generate an up-to-date changelog from the git history, if available, when running 'make dist'. The ChangeLog is otherwise taken from srcdir as usual, so that modified versions can be prepared from a release tarball without requiring the full git history. In this scenario, the ChangeLog would have to be manually edited. In case the ChangeLog generation fails, a distcheck-hook is added to hopefully catch issues before releasing tarballs with a broken ChangeLog. --- diff --git a/COPYING.GPL3 b/COPYING.GPL3 new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/COPYING.GPL3 @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + 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, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/ChangeLog b/ChangeLog index 15fa322..4e0b7e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,1845 +1 @@ -Sat Dec 14 14:56:00 2013 Jiri (George) Lebl - - * Release 2.0.20 - -Sat Dec 14 14:55:05 2013 Jiri (George) Lebl - - * src/*.[ch]: apply patches from Pedro L. Lucas to implement support - for gtk3 and add names to properties and signals - - * NEWS: update - -Tue Dec 18 21:13:09 2012 Jiri (George) Lebl - - * Release 2.0.19 - -Tue Dec 18 21:08:09 2012 Jiri (George) Lebl - - * src/main.c: print unreftors and destructors before calling dispose - or finalize as is the proper ordering. Thanks to Dmitri Toubelis - for pointing it out. - -Tue Dec 18 20:55:58 2012 Jiri (George) Lebl - - * src/main.c: apply patch from Nick Bowler to not output - line 0 statements for private functions that don't appear - in gob file - -Sun Jul 15 06:21:55 2012 Jiri (George) Lebl - - * src/main.c, src/out.c: Fix for empty file separator. Thanks to - H.-J. Schnitzer for pointing it out. - - * src/lexer.l: add yywrap returning 1 as the default should - not sure why I don't have -lfl working here. - -Thu Jan 06 11:30:03 2011 Jiri (George) Lebl - - * Release 2.0.18 - -Mon Jan 03 13:53:58 2011 Jiri (George) Lebl - - * src/main.c, src/lexer.l, src/parse.y, src/treefuncs.def: Add - %ct{ %ctop{ which is like alltop but only for the C file. - - * src/test.gob: add test - - * doc/gob2.1.in: document - - * configure.in: bump version - -Sat Oct 09 12:20:06 2010 Jiri (George) Lebl - - * configure.in, src/Makefile.am: fixup some brokeneness, Thanks to - Roland Clobus for sending a patch to make Cygwin build work - -Tue Jun 01 02:33:02 2010 Jiri (George) Lebl - - * doc/gob2.1.in, src/main.c, gob2.m4: Apply patches sent by - Stephen Kitt. Fixes some typos, gob2.m4 exits if gob is not found - (fixes ubuntu #317801), and escape minus signs in the man page. - - * README: generated code is public domain as COPYING.generated-code - correctly states - -Fri Apr 02 14:57:20 2010 Jiri (George) Lebl - - * src/main.c: Mention WFP in the help message - - * Release 2.0.17 - -Mon Mar 29 22:24:29 2010 Jiri (George) Lebl - - * src/lexer.l: deal with \r in the input files - - * src/parse.y: Fix segfaults when defining - constructor/finalize/dispose using the new interface from - last version. Should fix debian bug #574542 - - * src/main.c: Use -G_MAXDOUBLE instead of G_MINDOUBLE and -G_MAXFLOAT - instead of G_MINFLOAT. That's the correct smallest value. Thanks - to Marcel Wagner wagmarcel at web dot de - -Wed Dec 23 14:02:11 2009 Jiri (George) Lebl - - * src/util.c: fix remove_sep to avoid strcpy problems. Patch from - Ding-Yi Chen - -Tue Jul 21 10:20:58 2009 Jiri (George) Lebl - - * Release 2.0.16 - -Fri Jul 10 14:34:38 2009 Jiri (George) Lebl - - * configure.in: raise version - - * src/Makefile.am: fixup for new files - - * src/main.c, src/parse.y, src/lexer.l, src/test.gob: Apply patch by - Jean-Yves Lefort to add %afterdecls{ %} code handling - - * doc/gob2.1.in: document - -Fri Jul 10 14:18:44 2009 Jiri (George) Lebl - - * src/main.c, src/parse.y, doc/gob2.1.in, src/treefuncs.def, - src/test.gob: Apply and somewhat rework - the patch by Jean-Yves Lefort jylefort at brutele dot be to - handle finalize, dispose, constructor just as init and - class_init are handled. - -Fri Jul 10 12:23:39 2009 Jiri (George) Lebl - - * src/main.c: add G_GNUC_CONST to _get_type, thanks to - Jean-Yves Lefort jylefort at brutele dot be for pointing that - out - - * src/main.c: move #line sections past the opening brace of - functions, enclose function declarations in #line sections - to refer to the .gob file. by Jean-Yves Lefort - - * src/main.c, src/lexer.l, src/parse.y, src/str*, src/test.gob, - doc/gob2.1.in: - Partially back out the function attribute patch and rework it - in a simpler, more flexible, though syntactically not as nice - way. - -Fri Jul 10 10:22:10 2009 Jiri (George) Lebl - - * doc/gob2.1.in: fix the _GET_CLASS documentation. Thanks to - Andrew Feren acferen at yahoo dot com. I guess this has been an - error in the docs since the GTK 1.x days - -Fri Jul 10 09:57:29 2009 Jiri (George) Lebl - - * doc/gob2.1.in, src/checks.c, src/checks.h, src/lexer.l, src/main.c, - src/parse.y, src/str.gob, src/str_test.c, src/test.gob, - src/treefuncs.def: Apply patch by Britton Kerin - bkerin at fastmail dot fm, to allow function attributes - like G_GNUC_PRINTF, etc... - - * src/main.c: fix a warning - -Tue Nov 20 23:22:57 2007 Jiri (George) Lebl - - * Release 2.0.15 - -Wed Oct 17 09:56:18 2007 Jiri (George) Lebl - - * configure.in, NEWS: raise version, make NEWS - -Wed Oct 17 09:52:07 2007 Jiri (George) Lebl - - * src/main.c, src/out.c: fix file_sep usage for private headers. - Thanks to Jan Hudec for reporting this. - -Fri Sep 28 00:32:08 2007 Jiri (George) Lebl - - * src/main.c, src/out.c: don't use /dev/null for portability to - non-unix - -Fri Sep 28 00:00:24 2007 Jiri (George) Lebl - - * examples/my-person.gob: fixup example to be correct - -Thu Sep 27 23:27:33 2007 Jiri (George) Lebl - - * src/lexer.l: fix debian bug #443907, seg on bad include statement - -Thu Jan 05 10:09:32 2006 George (Jiri) Lebl - - * Release 2.0.14 - -Thu Jan 05 10:06:38 2006 George (Jiri) Lebl - - * src/main.c: fix major segfault (oops!) - -Fri Dec 16 12:23:35 2005 George Lebl - - * src/main.c, src/parse.y: Fix for the libglade support from - Nicolas Bruguier - - * src/checks.c, src/main.c, src/util.c: Allow BOXED in signal - arguments. patch by Big Thor - - * src/main.c, src/main.c, src/parse.y, src/treefuncs.def: - Add abstract flag support, patch by Jean-Yves Lefort - - - * src/main.c: add --no-touch support to avoid unneccessary rebuilds - even for source files. Also avoid printing timestamp and - make the compare logic work without the 'cmp' command. - patch by Jean-Yves Lefort - - * doc/gob2.1.in: document changes above - -Fri Jul 22 13:10:20 2005 George Lebl - - * Release 2.0.12 - - * doc/gob2.1.in: slight update - -Fri Jul 22 12:56:26 2005 George Lebl - - * src/main.c: Apply patch from "Big Thor" to - not use TYPE_SELF for the privates code - -Fri Jul 22 12:48:27 2005 George Lebl - - * Apply patch from Nicolas Bruguier - but changed the syntax slightly, fixed some minor glitches and - added documentation. - - * src/check.[ch], src/lexer.l, src/main.[ch], src/parse.y, - src/treefuncs.[ch],src/treefuncs.def: Add liglade support - -Fri Jul 22 11:41:20 2005 George Lebl - - * src/lexer.l: allow parsing properties with no param spec, patch - from Jean-Yves Lefort - -Wed Jul 06 16:35:14 2005 George Lebl - - * src/main.c: Apply patch from Jean-Yves Lefort - to fixup parameters: (remove MASK, CHILD_ARG and add LAX_VALIDATION - and PRIVATE, and allow user created parameters). - -Thu Dec 23 14:35:12 2004 George Lebl - - * src/main.[ch], src/lexer.l: Add support for prealloc and add - support for bitfields. Patch from "K. Haley" - - -Tue Oct 26 16:30:44 2004 George Lebl - - * Release 2.0.11 - -Tue Oct 26 16:27:44 2004 George Lebl - - * src/main.c: fix compile when overrides and privates are used - -Wed Sep 22 17:12:25 2004 George Lebl - - * Release 2.0.10 - -Wed Sep 22 17:07:35 2004 George Lebl - - * src/main.c: Apply patch from "K. Haley" - to play nice with glibs private - stuff and have the private structure be allocated by glib - - * src/main.c, src/util.c: Apply patch from - Pierre Gay to add the --file-sep=c option - which allows one to change the file separator character. - - * doc/gob2.1.in: update docs - - * src/parse.y: apply patch from debian bug#270546 by Frank - Lichtenheld to fix c++ compilation of linked - POINTER types by adding a proper cast at the right place - - * src/main.c: always add string.h since it doesn't hurt and we missed - it on some occasions - - * src/main.c: destroywith and unrefwith function get cast with - reinterpret_cast when using --for-cpp and don't get cast at all - for C, but for C we cast the pointer going into the function - to (gpointer). - -Tue Aug 10 16:32:00 2004 George Lebl - - * src/main.c, src/parse.y, src/treefuncs.def: Apply patch from - Jean-Yves Lefort to support overriding - properties (g_object_class_override_property) - - * doc/gob2.1.in: update - -Thu Jul 29 10:47:31 2004 George Lebl - - * configure.in, src/Makefile.am: Apply patch from "K. Haley" - to fix handling of NOINSTGOB - on certain platforms (apparently windows). - -Mon Jul 19 09:37:21 2004 George Lebl - - * Release 2.0.9 - -Mon Jul 19 09:30:18 2004 George Lebl - - * src/main.c, src/test.gob, src/Makefile.am, src/parse.y: Fix for - -Wbad-function-cast which is kind of a moronic warning when it - comes to enums so in non-C++ mode just use the generic gint and - guint casts for enums and flags, on the other hand C++ really - requires the proper enum casts, go figure. - - * configure.in, NEWS: prepare for another release - -Thu Jul 08 16:22:56 2004 George Lebl - - * src/main.c: Rework the unused var warning avoidance since it was - causing different warnings. I sort of now assume we're using - gcc if we want no warnings, other compilers will likely get - warnings in places. But they probably got some warnings anyway. - Also fixup all kinds of other places that cause warnings to popup. - - * src/test.gob, src/Makefile.am: Test for all kinds of warnings. - -Fri Jun 11 15:16:05 2004 George Lebl - - * Release 2.0.8 - - * doc/gob2.1.in: quote the version in GOB2_CHECK - -Fri May 07 18:07:33 2004 George Lebl - - * src/main.c: add -o,--output-dir command line option - - * doc/gob2.1.in: document the above - -Tue May 04 22:34:00 2004 George Lebl - - * src/parse.y, src/main.c, src/util.[ch]: move the make_me_type - to util and use it when making the boxed property set/get function - to fix boxed_type - -Tue Apr 13 11:32:51 2004 George Lebl - - * doc/gob2.1.in: --always-private-header is NOT the default, but - --ondemand-private-header is the default. - -Tue Mar 30 17:32:47 2004 George Lebl - - * Release 2.0.7 - -Tue Mar 30 17:27:32 2004 George Lebl - - * src/checks.[ch], src/main.c: check for classwide members with - destructors and warn there, since our classes are all static, - we never destroy them anyway so this never happens. It all - depends on your setup, so we cannot do some atexit or whatnot. - Also disallow BOXED or FLAGS in signal arguments since that doesn't - work anyway and you can use POINTER and UINT instead. - - * src/main.c, src/util.[ch]: fix the depracation fixing which broke - everything since g_strup/g_strdown had different semantics - then the new g_ascii_ versions. So make our own - gob_strup/gob_strdown functions with the old semantics. - - * src/main.c: use our error function exclusively instead of g_error. - - * src/util.c: fix the error function to correctly follow exit_on_warn - and fix it when filename == NULL still - - * src/test.gob: fix the test wrt BOXED and FLAGS - -Thu Feb 19 11:36:09 2004 George Lebl - - * doc/gob2.1.in: further stupidity fix - -Thu Feb 19 11:31:40 2004 George Lebl - - * doc/gob2.1.in, doc/makehtml.pl: fix a small error with the - documentation and suppor the \& escape in the makehtml.pl script - -Thu Feb 19 11:17:45 2004 George Lebl - - * src/lexer.l, src/Makefile.am: Apply patch from Albert Chin-A-Young - to fix compilation on IBMs C compiler, - by tweaking the includes and removing the -W options from AM_CFLAGS - as those are supported only by gcc - -2003-02-08 Tomasz K³oczko - - * gob2.m4: Trivial fix: added missing [] quotation macro name - defined in AC_DEFUN() (neccessary for aclocal from automake 1.8.x - and backward compatible with older auto tools). - -Tue Feb 03 12:57:45 2004 George Lebl - - * src/main.c, src/util.c: Apply patch from Kjartan Maraas - to remove use of deprecated functions - -Wed Jan 21 09:24:12 2004 Nicolas Bruguier - - * src/main.c: add INT64 and UINT64 type support for signal - and propeties - -Wed Aug 06 11:37:06 2003 George Lebl - - * doc/gob2.1.in: very minor fix from my inbox from apr 03 - by Trevor Spiteri - -Tue May 20 10:22:40 2003 George Lebl - - * Release 2.0.6 - -Tue May 20 10:18:10 2003 George Lebl - - * src/Makefile.am: fix some warnings related to newer automake - -Thu May 15 09:53:25 2003 George Lebl - - * src/lexer.l: new flex is on drugs and it broke syntax (or - well the generated code defines) so this will actually make things - work with newer flex and still work with old flex (tested both - 2.5.4a and 2.5.31). - -Fri Feb 28 11:45:21 2003 George Lebl - - * doc/gob2.1.in: minor update - -Thu Jan 16 12:45:33 2003 George Lebl - - * Release 2.0.5 - -Thu Jan 16 11:52:36 2003 George Lebl - - * src/main.c: fix leak on signal emission - -Fri Dec 13 10:23:16 2002 George Lebl - - * Release 2.0.4 - -Thu Dec 12 09:35:46 2002 George Lebl - - * src/main.c: use G_UNLIKELY/G_LIKELY if available in the get_type - methods and in the signal argument size checking - -Thu Dec 05 10:32:09 2002 George Lebl - - * src/lexer.l, src/main.c: fix a couple of gtkdoc issues, - first add \n after _get_type and second support tabs - after the leading * in gtkdoc comments - -2002-11-27 Jody Goldberg - - * Release 2.1.3.1 - -2002-11-01 Jody Goldberg - - * src/parse.y (ensure_property) : patch obvious borkage in using item3 - in a production with 2 items. - -Fri Nov 01 14:41:52 2002 George Lebl - - * src/lexer.l, src/util.c: when in cpp mode don't eat :: - -Mon Oct 14 16:16:38 2002 George Lebl - - * src/parse.y: Fix segfault reported by Gerhard Dieringer - - - * src/main.c, src/util.c: Fix g_value_set/get for the unichar - case (glib doesn't have this, so use uint, this is so braindead). - Also add support for UNICHAR in places and add support for - UINT64 and INT64 - -Wed Sep 11 11:20:38 2002 George Lebl - - * src/main.c: remove G_GNUC_CONST from the get_type, that seems to be - wrong and causes gcc3.2 to whack out and all that. - -Tue Aug 20 11:01:52 2002 George Lebl - - * Release 2.0.2 - -Tue Aug 06 12:30:15 2002 George Lebl - - * doc/gob2.1.in: escape all ' characters, to fix debian - bug 155577. Also add the homepage to the last section - - * doc/makehtml.pl: improve handling of some troff and add - automatic urlization of email and web addresses - -Tue Aug 06 12:08:20 2002 George Lebl - - * src/test.gob: further tests - -Tue Aug 06 12:06:07 2002 George Lebl - - * src/main.c: damnit s/shutdown/dispose/, why does glib change - these on me. I think there is an evil anti-gob plot in place. - - * src/test.gob: add a test for unrefwith (should have been there in - the first place to catch this) - - * doc/gob2.1.in: update the unref/unrefwith section - -Mon Aug 05 11:11:01 2002 George Lebl - - * src/parse.y: properly link the BOXED type (use g_value_set_boxed) - -Wed Jul 17 11:01:40 2002 George Lebl - - * Release 2.0.1 - -Wed Jul 17 10:52:29 2002 George Lebl - - * src/test.gob: add more tests - - * doc/gob2.1.in: minor updates - - * src/lexer.l: allow comments in property definition code - -Tue Jul 16 13:33:51 2002 George Lebl - - * NEWS, configure.in: prepare for 2.0.1 - -Tue Jul 16 13:31:42 2002 George Lebl - - * src/main.c, src/parse.y: Fix extra property types but still - recognize if someone used the broken undocumented way which - worked. Also fix object linking to not rely on GtkObject, and - fix BOXED linking as well. - - * src/test.gob: add some tests for the above - - * src/parse.y: fix C++ compilation for flags and enum linking - -Mon Jul 15 13:05:18 2002 George Lebl - - * Release 2.0.0 - - * */Makefile.am: add '.' to SUBDIRS to silence a stupid version - of bash - -Mon Jul 15 12:54:30 2002 George Lebl - - * configure.in: raise version to 2.0.0 - - * examples/*: update examples and readme. Remove old, bad examples - - * doc/gob2.1.in: update for gob2 - -Wed Jul 10 11:10:37 2002 George Lebl - - * doc/gob2.1.in: update the docs a bit. Still not finished. - -Tue May 28 12:09:56 2002 George Lebl - - * Release 1.99.3 - -Tue May 28 11:59:18 2002 George Lebl - - * src/Makefile.am: some compilation voodoo - - * src/main.c: Special case GtkEditable and GTypePlugin since - those end in Class, and all other interfaces should end in - Iface. Long live code consistency! - - * src/main.c: use g_signal_emitv instead of g_signal_emit. This - will allow us to once again have default returns and all that - fun stuff. It should also slightly reduce emission overhead. - -Mon Apr 15 09:55:29 2002 George Lebl - - * README, COPYING.generated-code, Makefile.am: Add LGPL license - for generated code and clarify this in the README. Meant to do - this a long time ago, and told everyone that who asked. Now - it's in writing. - -Sun Apr 14 19:12:02 2002 George Lebl - - * src/parse.y: apply patch from Dennis Bjorklund - to fix export accessors function - -Fri Feb 01 15:19:07 2002 George Lebl - - * Release 1.99.2 - -Fri Feb 01 01:42:09 2002 George Lebl - - * src/main.c: get rid of the old way of doing typesafe signal - connection and make a new way where there are full connect - macros for connect, connect_after and connect_data for each - signal. A bit more heavy weight (only at compile time), but - it actually works, and is cleaner really. - -2002-01-22 Bastien Nocera - - * src/main.c: (make_arguments): move the get_ and set_property before - parameters settings to work with latest glib - -Fri Jan 18 14:21:22 2002 George Lebl - - * src/treefuncs.(def|c|h), src/parse.y, src/lexer.l, src/main.c: - Implement GError definitions. - -Thu Jan 17 02:39:02 2002 George Lebl - - * gob2.m4: fix version check - - * configure.in, src/Makefile.am: some build fixes and raise version - -Thu Jan 10 22:05:42 2002 George Lebl - - * src/parser.y, src/lexer.l, src/main.c, src/Makefile.am, - src/test.gob, src/treefuncs.(def|c|h): Implement using of - interfaces. That is, you can now implement interfaces on your - objects. You still can't define interfaces, that's step two. - -Sun Dec 30 18:25:25 2001 George Lebl - - * src/main.c: Apply patch from Josh Parsons , - to fix some code generation - - * src/parse.y: Be anal in linking string properties. - -Thu Dec 20 17:39:32 2001 George Lebl - - * src/main.c: Apply patch from Josh Parsons - to enhance the m4 support, fix init function generation and - correctly include glib-object.h. Massage it a bit further as - well. - -Mon Nov 05 11:45:46 2001 George Lebl - - * src/lexer.l, src/parser.y, src/main.c, src/treefuncs.def: - Add flags and enum creation code, so you can do things in - a more gob like manner rather then the glib-mkenums setup. - -2001-10-27 Seth Nickell - - Make BonoboObject stuff work, almost as much fun as - blowing goats and twice as messy. Built code still - requires a patch to libbonobo to run (changing the - name of the TYPE macro to fit w/ GNOME standards), - so retaining a warning that BonoboObject doesn't - really work (oh, but it does :-) - - * configure.in: - - Make sure to substitute YFLAGS so you don't get undefined - crap when you use @YFLAGS@ in Makefile.am. - - * src/main.c: (add_bonobo_object_get_type) - - Add a GObject type function for BonoboObject stuff. - - * src/main.c: (make_bonobo_object_epv) - - Append self_ to function call as per gob2. - - * src/main.c: (add_inits), (print_class_block) - * src/parse.y: - * src/treefuncs.c: (ensure_quarks), (copy_class), (copy_method), - (free_class), (setv_class), (setv_method): - * src/treefuncs.def: - * src/treefuncs.h: - - Change to using BonoboObject rather than BonoboXObject. - - * examples/foo-some-interface.c - - Update to work with GOB2 with BonoboObjectTechnology(TM). - -2001-10-26 Seth Nickell - - * src/Makefile.am: - - Add top_srcdir to the include flags to pick up config.h - on my system. - -Sat Oct 20 17:40:58 2001 George Lebl - - * src/Makefile.am: a few fixes - -Sat Oct 20 16:59:19 2001 George Lebl - - * src/lexer.l, src/main.c, src/Makefile.am: Apply m4 preprocessing - patch by Josh Parsons - -Sat Sep 29 17:00:39 2001 George Lebl - - * doc/Makefile.am: update - -Sat Sep 29 16:44:13 2001 George Lebl - - * doc/gob2.1.in: update a tad and add a note that the manual - is now out of date - -Sat Sep 29 16:33:57 2001 George Lebl - - * gob2.spec.in: update for gob2 - -Fri Sep 28 17:39:57 2001 George Lebl - - * **/*: Merge from gob-2 to HEAD - -Fri Sep 28 17:08:19 2001 George Lebl - - * configure.in, gob2.spec.in, gob2.m4, doc/gob2.1.in, Makefile.am, - doc/Makefile.am: rename rest of files for gob2 - - * src/main.c: minor cleanup - -Thu Sep 27 21:56:17 2001 George Lebl - - * src/generate_treefuncs.pl, src/treefuncs.def, src/parse.y, - src/main.c: Revamp the tree funcs stuff to be saner and cooler, - and fix some crashes and other things related to this. - - * src/parse.y, src/lexer.l, src/main.c, src/util.[ch], - src/checks.[ch], treefuncs.def: Add properties (GParam), fix - C++ generation, add GET_NEW_VARG, whack the propname alias for - arguments setters/getters (they're deprecated anyway) - - * src/test.gob: update tests - -Sun Sep 16 13:07:37 2001 George Lebl - - * src/main.c: replace GOB_ prefix for local functions with - self_. This makes much more sense. - -Sun Sep 16 12:43:24 2001 George Lebl - - * src/lexer.l, src/parse.y, src/main.c, src/treefuncs.(def|c|h), - src/util.[ch], src/test.gob: Add syntax for properties (GParam - or whatever you call these:). The code behind them is not yet - there though. - -Sun Aug 12 16:15:46 2001 George Lebl - - * src/main.c, src/parse.y, src/test.gob, src/util.c: Things now - make compilable objects, including with signals, how well it - works I don't know. cpp support seems broken in glib mostly. - -Sat Jun 30 15:01:26 2001 George Lebl - - * Applied the following from HEAD - - Sat Jun 30 14:57:37 2001 George Lebl - - * doc/gob.1.in: add documentation for (export) - - Tue Jun 26 15:54:08 2001 George Lebl - - * src/Makefile.am: add built sources to EXTRA_DIST - - 2001-06-24 Mark Brown - - * src/main.c: Default to PRIVATE_HEADER_ONDEMAND rather than - PRIVATE_HEADER_ALWAYS as per documentation. - - * doc/gob.1.in: Fix cut & paste error in object_{get,set} - examples. - - Sat Jun 09 13:38:53 2001 George Lebl - - * src/parse.y: was freeing the wrong token - - 2001-06-03 Eskil Heyn Olsen - - * examples/my-person.gob: - Fixed some comments - - * examples/test-export.gob: - File that tests the (export) keyword. - - * src/parse.y: - Added a (export) keyword to argument, so gob will - autodefine the my_object_[get|set]_var functions. - -Sun May 13 02:45:43 2001 George Lebl - - * src/main.c: revert the GET_NEW_VARG since it just won't work - with non-gcc systems - -Sun May 13 02:31:52 2001 George Lebl - - * src/main.c: add GET_NEW_VARG macro/static func (for non-gcc) - and add TYPE_SELF macro - -Sun May 13 02:02:47 2001 George Lebl - - * src/util.c: patch from Frederic Crozat - to fix warning - -Sat Apr 21 20:06:10 2001 George Lebl - - * examples/Makefile.am, examples/README, - examples/GNOME_Foo_SomeInterface.idl, - examples/foo-some-interface.gob: Add an example for BonoboXObject - -Sat Apr 21 19:33:08 2001 George Lebl - - * configure.in: Raise version to 1.0.9 - - * src/lexer.l: Properly check major version requirements (majors - must match in the requires line) - - * src/parse.y, src/main.c, src/treefuncs.(def|c|h), src/checks.c: - Add direct BonoboXObject support - - * src/parse.y: fix the chunks usage - - * doc/gob.1.in: document BonoboXObject stuff, fix the bugs section - wrt gtk-doc which has been supported for quite some time - -Sat Apr 14 00:11:50 2001 George Lebl - - * configure.in: compile with glib 2.0 - - * src/test.gob, src/Makefile.am: make the test glib pure, or mostly - so - - * src/lexer.l: added fixme - - * src/main.c: work on signals a little bit - -Fri Apr 13 21:23:19 2001 George Lebl - - * src/checks.[ch], src/lexer.l, src/main.c, src/parse.y, - src/treefuncs.[ch], src/treefuncs.def: Work on gobject support, - based on the patch Sven sent me. Also do add unref as well as - destroy handlers to vars, and moved the destructors to finalize and - unreffers to shutdown. This all compiles, but that doesn't mean it - makes usable objects. - -Fri Apr 13 17:45:14 2001 George Lebl - - * src/parse.y, doc/gob.1.in: Fix a problem found by Eric Kidd - , where objectlink was not completely - refcounting safe. Could underref if you set the same object. - -Sat Mar 31 00:24:58 2001 George Lebl - - * src/main.c: fix crash with marshallers of signals with a return - type and no arguments. - -Sun Mar 04 19:14:03 2001 George Lebl - - * src/main.c, src/checks.c, src/util.[ch]: Remove the underscore - hack, remove the 1.2 code from the 1.3 compat hacks, make all - short names start with GOB_. Start of the direct GObject - support, gob compiles, but it will not create useful object - files yet. - -Tue Feb 27 06:14:59 2001 George Lebl - - * configure.in, src/Makefile.am, README: this is the gob-2 branch - for GObject support - -Tue Feb 27 00:53:41 2001 Jonathan Blandford - - * README: Use my new-found maintainer status!!! The power! - -Sun Feb 25 17:17:46 2001 George Lebl - - * Release 1.0.7 - -Sun Feb 25 16:57:45 2001 George Lebl - - * src/main.c, src/checks.c: to make doing BonoboXObjects possible - allow overriding the _get_type function. - - * doc/gob.1.in: document the above - -Sun Feb 11 16:33:07 2001 George Lebl - - * Release 1.0.6 - -Sat Feb 10 18:42:59 2001 George Lebl - - * src/Makefile.am: fix the build - -2001-02-08 Maciej Stachowiak - - * src/Makefile.am: Remove BUILT_SOURCES stuff; Automake knows how - to handle .l and .y files directly, and including the .c files as - well was making it fail to link as it would try to link in lexer.o - and parse.o twice. - -Thu Feb 08 02:43:22 2001 George Lebl - - * src/main.c: add signal connection typesafety macros - - * src/test.gob, doc/gob.1.in: new stuff foo - - * configure.in: raise version - -Thu Feb 08 01:42:52 2001 George Lebl - - * src/Makefile.am: rule for parse.h includes parse.c, and - SOURCES include BUILT_SOURCES - -Tue Dec 26 11:03:44 2000 George Lebl - - * src/main.c: Remove ## from the varargs macro stuff, as it's not - needed and causes trouble for newer gcc's (like in rh7) - -Sun Sep 10 18:04:07 2000 George Lebl - - * Release 1.0.5 - -Fri Sep 01 03:45:30 2000 George Lebl - - * src/main.c: add G_GNUC_CONST to the _get_type function - -Wed Aug 23 15:05:40 2000 George Lebl - - * src/main.c: when a method has no arguments make an argumentless - macro for the shortform to avoid a parse error - - * src/test.gob: add a test for the above - -Sun Aug 6 22:21:38 2000 Eskil Heyn Olsen - - * gob.m4 now defaults to WARN instead of ERROR on missing - gob. - -Tue Jul 25 16:54:34 2000 George Lebl - - * Release 1.0.4 - - * configure.in: raise version to 1.0.4 - - * src/main.c: fixup the -anal macro patch. - - * src/util.[ch], src/main.c: constize (not in 1.0.4) - - * src/main.c: the short form pointers unified for both gnu and non-gnu - (not in 1.0.4) - -Sun Jul 23 18:51:45 2000 George Lebl - - * src/util.[ch], src/main.c, src/checks.c, src/lexer.l, src/parse.y: - make new cleaner error print routines including a printfstyle one. - Use the get_real_id on all method ids even for overrides. When a - signal is added there is also a sizeof check for the signature vs. - argument list with a g_error if it fails. Fix %at{ %} to not - appear twice in all files. - - * src/main.c: Apply patch from Arturo Tena to make things compile - nicely with gcc's -ansi -pedantic - - * src/out.[ch]: constize correctly and use G_GNUC_PRINTF macro for - warnings. - -Fri Jul 21 15:38:10 2000 George Lebl - - * src/main.c: store the private structure pointer so that we - don't look inside the freed object structureafter finalize - -Thu Jul 06 02:32:29 2000 George Lebl - - * Release 1.0.3 - -Wed Jul 05 19:37:20 2000 George Lebl - - * src/{main.c,parse.y}: couple of cleanups, and fixup the gtk 1.3 - support - -Wed Jul 05 18:57:13 2000 George Lebl - - * src/{checks.c, main.c, parse.y, test.gob}: Apply and fix up patch - from Bas van der Linden that adds the ability - to use const on the "self" argument as well. Also adds a CONST - casting macro to use. - - * src/main.c: Fix a memory leak when destroy wasn't overriden and - destructors were added, it now properly calls the parent handler. - Same with finalize. - - * src/main.c: Spit out some macro magic foo to hopefully make it - possible to compile objects with GTK+ 1.3/2.0 - - * doc/gob.1.in, examples/*.gob: We should never do - GTK_OBJECT(GET_NEW) as that's a memory leak due to some weird - GTK_OBJECT() semantics - -Fri Jun 30 14:08:53 2000 George Lebl - - * Release 1.0.2 - -Fri Jun 30 13:11:05 2000 George Lebl - - * doc/gob.1.in: add doc for --always-private-struct - - * src/main.c: fix output of --help. Also print __GOB_FUNCTION__ - for inits and for get/set_arg. And print the get_real_id to - avoid the underscore. - -Mon Jun 26 00:06:45 2000 George Lebl - - * src/parse.y: for stringlink, dup the string on argument - getting - - * doc/gob.1.in: update documentation to the above change - -Sun Jun 25 03:34:02 2000 George Lebl - - * src/treefuncs.def, src/main.c, src/utils.[ch], src/parse.y: sane - parsing of const. Get rid of "stars" integer and just use a - "pointer" string. Also the types in general are more sanely parsed, - thus recognizing hopefully all legal (and some illegal) C types. - - * src/checks.[ch], src/main.c: checks the argument type to be one we can - truly check. - - * src/treefuncs.def, src/main.c, src/parse.y, src/lexer.l: Apply - patch from Bas van der Linden that adds the - possibility to use chunks to allocate objects. - - * src/main.c: Apply patch from Bas van der Linden - to add a __GOB_FUNCTION__ define to each function - - * src/Makefile.am, src/main.c, src/lexer.l, src/generate_treefuncs.pl: - avoid and fix warnings, and compile with all warnings - - * src/main.[ch]: add an --always-private-struct option to always put - in the private pointer, even if there are no private members. - - * src/test.gob: add some more tests for new stuff - -Wed Jun 07 15:03:18 2000 George Lebl - - * Release 1.0.1 - -Wed Jun 07 14:41:24 2000 George Lebl - - * configure.in, doc/gob.1.in: updates - -Mon Jun 05 12:10:46 2000 George Lebl - - * doc/gob.1.in: run through ispell, and fix option stuff to produce - nicer html output with groff - -Thu Jun 01 18:12:13 2000 George Lebl - - * src/main.c: Make the private header switches work again. - -Wed May 31 01:50:25 2000 George Lebl - - * Release 1.0.0 - -Wed May 31 01:47:23 2000 George Lebl - - * src/gob.1.in: documentation of makefile rules for gob. - -Tue May 30 11:02:36 2000 George Lebl - - * src/lexer.l: Accept identifiers in array dimensions, this is so - that you can make these some constants. - -Sat May 20 18:22:33 2000 George Lebl - - * Release 0.93.5 - -Sat May 20 18:22:23 2000 George Lebl - - * src/{main.c,checks.[ch]}: check for duplicate overrides, it is - different from checking symbol names as they don't conflict with - other symbols AND they only conflict if both the name and their - type match - -Sat May 20 16:38:06 2000 George Lebl - - * src/{main.[ch],util.[ch],checks.c}: Add underscore removal for - non-override methods. This means that local aliases will include - prepended underscores, but when the full name is generated, or - when the method name is added to class structure, the underscore - is removed. - - * src/checks.c: overrides no longer checked for uniqueness, a more - complex logic is needed. - - * src/{main.c,treefuncs.def,parse.y}: override naming is done - with a unique id, so that we handle cases where two classes have - the same method name. - - * doc/gob.1.in: update for the above. - -Sat May 20 14:42:00 2000 George Lebl - - * src/main.c: the private structure is now freed in finalize again and - thus do the same dance around finalize as we do around destroy. - Clean up some code. NULL all things being destroyed. The arbitary - destructor uses memset as those things might not be just pointers. - -Thu May 11 23:48:44 2000 George Lebl - - * src/main.[ch]: provide the Self and SelfClass typedefs in addition - to SELF, IS_SELF, SELF_CLASS macros. All of these can now be - disabled with the --no-self-alias option - - * doc/gob.1.in: update - - * configure.in: raise version - -Tue May 09 23:18:16 2000 George Lebl - - * src/parse.y: fix segfault on parse error and give better error - message - -Tue May 09 21:54:10 2000 George Lebl - - * doc/gob.1.in, src/main.c: Add destruction code into the destroy - handler rather then finalize. Setup an extra function if - neccessary to handle returns correctly as this must be called - after any user code. - -Sat Apr 29 14:41:42 2000 George Lebl - - * Release 0.93.4 - -Sat Apr 29 14:40:40 2000 George Lebl - - * src/checks.c: code prettification - - * src/lexer.l, src/parse.y, src/test.gob: change "class" scope to - "classwide" scope, not to overload the class keyword - - * src/main.[ch]: make private header files be generated by default, - and cleanup that part a bit - - * doc/gob.1.in: add documentation of classwide - - * NEWS: - -Fri Apr 21 17:15:09 2000 George Lebl - - * src/main.c: add spaces after commas - - * src/lexer.l, src/main.c, src/parse.y: add class scope variables - which are put into the class structure - - * src/test.gob: added a test for class variables - - * src/treefuncs.def: added CLASS_SCOPE - - * src/treefuncs.h: regenerated - -Mon Apr 17 20:13:47 2000 George Lebl - - * src/parse.y: on objectlink instead of just ref, do ref/sink. - -Sat Apr 15 23:07:30 2000 George Lebl - - * Release 0.93.3 - -Sat Apr 15 22:42:20 2000 George Lebl - - * src/main.c: fixes for ANSI C and C++. Just use GTK_VALUE_POINTER - instead of GTK_VALUE_OBJECT so that we don't have to cast and don't - cast lvalues. - -Sat Apr 15 22:09:49 2000 George Lebl - - * src/main.c: use the generic return type in signal marshallers - rather then the specific one as the marshallers are truly generic - -Sat Apr 15 21:52:52 2000 George Lebl - - * src/main.c: fix some typesafety braindamages with OBJECT types - in arguments by casting GTK_VALUE_OBJECT to gpointer. Also - for seting arguments cast the ARG to atype if it exists - -Wed Apr 05 13:42:28 2000 George Lebl - - * src/parse.y: never allow NONE to be used as one of many arguments, - always only by itself in the argument list - - * src/main.c: When printing out the signal marshaller prototype, - don't print out the NONE (void) into the argument list, thanks - to Soeren Sandmann for reporting that - -Mon Apr 03 13:07:33 2000 George Lebl - - * examples/Makefile.am: add my-person2.gob to EXTRA_DIST - -Sun Apr 02 18:09:40 2000 George Lebl - - * Release 0.93.2 - -Sun Apr 02 17:38:12 2000 George Lebl - - * src/Makefile.am: ass the .pl and .def file to EXTRA_DIST - -Sun Apr 2 14:37:49 PDT 2000 Manish Singh - - * configure.in: check for treefuncs.h instead of tree.h, since - the latter has gone bye-bye - -Sat Apr 01 23:27:47 2000 George Lebl - - * doc/gob.1.in: add documentation for defreturn - -Sat Apr 01 18:03:31 2000 George Lebl - - * src/{treefuncs.(def|c|h),generate_treefuncs.pl}: What would gob - be without some automatically generated code. The tree.[ch] was - hard to keep up and didn't have free/copy so these do, otherwise - it is the same. Also added a defreturn field to methods - - * src/*.[cyl]: include treefuncs.h rather then tree.h - - * src/{parse.y,lexer.l,main.c}: use the defreturn as the default for - return values of signals and virtual methods. If this is not - defined use the onerror or failing that '0'. onerror is also not - a reserved keyword anymore - - * configure.in: raise version - -Mon Mar 27 13:08:01 2000 George Lebl - - * Release 0.93.1 - -Mon Mar 27 12:04:22 2000 George Lebl - - * src/util.[ch], src/main.c: figure out if we really need the special - types, also make a hash for the gtk types instead of linear - searching it all the time. - - * src/{lexer.c,checks.c,main.c}: minor fixes and cleanups - -2000-03-21 Eskil Heyn Olsen - - * gob.m4: do not default GOB to no when not found (did that make - sense ?) - And better error message. - -Mon Mar 20 14:35:35 2000 George Lebl - - * src/lexer.l: handle single word typenames with an empty namespace - -Sun Mar 05 02:23:04 2000 George Lebl - - * src/main.c: add #lines around setting default handlers - - * src/parse.y: fix line number for 'destroywith' destructors - -Sat Mar 04 15:33:18 2000 George Lebl - - * src/checks.c: duplicate name test for arguments and signals is - case insensitive now as those could cause trouble - -Mon Feb 28 02:45:27 2000 George Lebl - - * Release 0.93.0 - -Sun Feb 27 20:59:45 2000 George Lebl - - * src/parse.y,doc/gob.1.in: For stringlink, just return a pointer on - get rather then strduping as that is 1) consistent with objectlink - and 2) more flexible. - -Sun Feb 27 20:38:19 2000 George Lebl - - * src/{main.c,tree.[ch],parse.y}: add the arbitrary destruction handler - for data members - - * doc/gob.1.in: updated and fixed up - - * configure.in,NEWS,examples/{README,my-person2.gob}: change version - to 0.93.0 - -Sun Feb 27 18:37:57 2000 George Lebl - - * NEWS,doc/gob.1.in,examples/{README,my-person.gob,my-person2.gob}: - update of docs and examples to include the new features and minor - fixups - -Sun Feb 27 04:41:41 2000 George Lebl - - * src/main.c: make the output nicer for classes with no methods - better typechecking in get/set_arg, fix a couple of C++ issues, - - * src/{main.c,parse.y,tree.[ch]}: automatic linking of arguments to - data members. Also alow empty statements inside a class. Also - add automatic data member destruction for pointer data, and - automatic initialization for any data member. - - * src/main.[ch],src/out.c: add --no-lines which inhibits printing - of #line things to output files - - * doc/gob.1.in: update for the above - -Fri Feb 25 15:21:47 2000 George Lebl - - * Release 0.92.4 - -Fri Feb 25 14:46:51 2000 George Lebl - - * src/main.c: add SELF casting macros - - * doc/gob.1.in: document the above - -Fri Feb 25 02:29:26 2000 George Lebl - - * src/main.c,src/tree.[ch],src/parse.y: public signals get - GTK_RUN_ACTION added. Plus an interface for adding additional - flags is added. - - * doc/gob.1.in: add docs for the above - -Fri Feb 25 01:37:20 2000 George Lebl - - * src/main.c: fix trailing comma on the end of the argument enum - -Sun Feb 13 23:54:53 2000 George Lebl - - * doc/gob.1.in: add doc patch from Dave Dunkin - - * doc/gob.1.in,examples/*.gob: use init(self) to be more consistent - in naming - -Sat Feb 12 14:42:15 2000 George Lebl - - * src/main.c,src/lexer.l: apply patches from Dave Dunkin - to add all and alltop ccode sections - and to add a --no-write,-n option to not actually write - any files. Also did some very cosmetic changes to code - -Mon Feb 07 23:45:04 2000 George Lebl - - * src/main.c: use the magic /*< private >*/ and /*< public >*/ - comments to distinguish public and protected data members - -Mon Feb 07 03:02:48 2000 George Lebl - - * Release 0.92.3 - -Mon Feb 07 02:50:11 2000 George Lebl - - * src/lexer.l: error on multiple classes - - * src/main.c: nicer header output - - * src/{lexer.l,main.c}: Eat out gtk-doc like inline doc entries - and stuff them into the output files where appropriate - - * doc/gob.1.in: added docs for gtk-doc like inline doc stuff - - * examples/{README, gtk-button-count.gob}: added inline docs - -Fri Feb 04 01:07:54 2000 George Lebl - - * src/main.c: use G_GNUC_UNUSED rather then our own macro for a - very slightly cleaner looking output file - -2000-01-31 Eskil Heyn Olsen - - * gob.m4: checks for gob binary, GOB_CHECK([version [, - action_if_found[, action_if_not_found]]]). - - * Makefile.am: Install gob in $prefix/share/aclocal - -Thu Jan 27 17:50:11 2000 George Lebl - - * src/main.c: add #include - -Mon Jan 24 22:52:47 2000 George Lebl - - * Release 0.92.2 - -Mon Jan 24 22:23:47 2000 George Lebl - - * src/main.c: add a protecting define before the object typedef - - * doc/gob.1.in: add docs for the new stuff - -Sun Jan 23 16:19:54 2000 George Lebl - - * src/{lexer.l,parse.y,tree.[ch],main.c}: make more types of header - %{ %} blocks, "headertop" and "privateheader" and made short as - well as long names possible. - - * src/main.c: add an --no-extern-c option to not put entern "C" into - the output, which is now put in by default even if --for-cpp is - on so that it is possible to call those from C by default - -Thu Jan 20 01:50:45 2000 George Lebl - - * src/main.c: put the _real_ functions in our normal private - namespace of ___* to be more consistent. - -Mon Jan 10 00:16:43 2000 George Lebl - - * src/{main.[ch],util.[ch],checks.[ch]}: offload some functionality to - extra files - - * src/main.c: cleanup the generation routine by spliting it up into - more functions - - * src/{main.h,lexer.l,parse.y,out.c}: put some needed externs into the - main.h file and include that rather then doing it in the .c files - -Thu Jan 06 18:33:44 2000 George Lebl - - * src/main.c: use ___ for the signal marshalling typedefs as well - -Thu Jan 06 17:32:46 2000 George Lebl - - * Release 0.92.1 - -Thu Jan 06 17:13:22 2000 George Lebl - - * src/main.c: be consistent with the use of "namespacing", we - prefix ALL internal gob stuff with "___". This should make it - easier to avoid name conflicts with user code and glibc/gcc (Which - seems to use __ prefix) - - * src/main.c: check for init and class_init names for non-constructor - methods and give an error if found. - - * src/main.c: check argument types and flags for correctness, error - on unknown type, but just a warning on unknown flag - - * doc/gob.1.in: add a section for name conflicts - -Wed Jan 05 02:23:21 2000 George Lebl - - * src/main.c: doh! the symbols for the aliases need to be declared as - static. - -Wed Jan 05 02:13:59 2000 George Lebl - - * src/main.c: just realized that args... for macros is a GNU - extention and so the PARENT_HANDLER no longer uses it, but prints - the argument names with __ prefixed into the argument list. - -Wed Jan 05 01:58:32 2000 George Lebl - - * src/main.c: if using gnu c, also define macros using varargs for - function aliases. This should allow the compiler to optimize - further and if we have arguments for the defines there are - no adverse side effects as there are for straight defines. - -Wed Jan 05 01:48:12 2000 George Lebl - - * src/main.c: fixup the aliases. They didn't actually work right. - now we set it up as a const pointer to a function using typeof. - -Tue Jan 04 17:57:55 2000 George Lebl - - * src/lexer.l: add support for 'requires x.y.z' line. This is - so that a .gob file can require at least version x.y.z of gob - - * src/test.gob: update - - * doc/gob.1.in: update for requires and run trhough ispell - -Tue Jan 04 17:10:54 2000 George Lebl - - * src/main.c: fix the non-gnu aliases - -Tue Jan 04 16:46:16 2000 George Lebl - - * src/{main.c,parser.y,tree.[ch]}: add optional C type specification - to arguments for full type safety - - * doc/gob.1.in: updated - -Tue Jan 04 15:34:16 2000 George Lebl - - * src/main.c: --no-gnu option to completely disable any use - of GNU C extentions. This is for those weird people that don't - wish to use those extentions even with GNU C. - -Tue Jan 04 14:43:49 2000 George Lebl - - * src/main.c: use some GNU extentions (guarded with #ifdef __GNUC__) - to make arguments fully typesafe, and to make it easier for - GNU to optimize the aliases, as well as to avoid the ugly - hack on GNU C. - - * src/main.c: don't put #line 0 for the .gob file for method prototypes - - * src/main.c: move the _priv structure freeing into finalize to enable - people to work with the private stuff inside the destroy handler - - * src/main.c: use #line before every precondition check so that failed - checks should point to the function prototype rather then into - generated file. - - * src/main.c: remove the _END_ARG macro - - * src/main.c: add GOB_VERSION_MAJOR, GOB_VERSION_MINOR and - GOB_VERSION_PATCHLEVEL defines into the generated C file - - * src/out.c: don't redundantly put #line for outfile if we're already - in the outfile - - * configure.in: raise version number - -Tue Jan 04 02:22:33 2000 George Lebl - - * src/main.c: add argument wrapper macros to make the argument system - a little more type safe. - -Fri Dec 31 17:39:22 1999 George Lebl - - * Release 0.92.0 - -Thu Dec 30 20:20:36 1999 George Lebl - - * src/main.c: correctly handle the complex fundemental types, - so that we can handle ALL the fundemental types for signals - -Thu Dec 30 19:29:56 1999 George Lebl - - * src/main.c: don't use function types for casts in marshallers, - but default types we get from our GTK_TYPE_* -> C type translation, - and use this fact to check for same function types and combine - signal prototypes. This doesn't yet handle well complex types, - but I have an idea how to make complex types work. Though - I dunno if it's actually worth it. - -Thu Dec 30 17:18:27 1999 George Lebl - - * src/main.c: figure out some types from GTK types and cast properly - when emitting a signal. This catches some inconsistencies in - signal func argument lists and the GTK types of the arguments. - -Wed Dec 29 18:04:13 1999 George Lebl - - * src/parse.y: allow scope, public/private/protected, to come before - the signal or virtual keyword for consistency's sake. - -Wed Dec 29 01:39:30 1999 George Lebl - - * src/{tree.[ch],parser.y}: cleanup scope stuff - - * src/{lexer.l,parser.y,tree.h,main.c}: add protected keyword and - methods. protected methods are put into the -private files and - are real exported functions just like public. protected data - members act like pre-0.91.x private datamembers, that is they - get stuck into the public header, but marked /* protected */. - - * src/main.c: change the method body printing function so that we - can catch the no return warning properly and send us to the .gob - file instead of the .c file. - - * src/{parse.y,main.c}: handle empty publics/privates/overrides - and handle the body being set to ';' rather then '{}' - - * src/main.c: check for empty nonvoid regular methods, and error out - on finding them as that would produce warnings which we can't catch - and it is generally bad to do anyway - - * src/{parse.y,tree.[ch],main.c}: use char pointers for C buffers, - and kill leading/trailing whitespace from them to make the C files - nicer and easier to recognize empty functions. - - * src/main.c: add a --version switch - - * doc/gob.1.in: Update with the above changes - - * configure.in: raise version - -Tue Dec 28 20:49:56 1999 George Lebl - - * src/main.c: apply patch from ChiDeok Hwang - to make the hack function static so that we don't pollute namespace - -Mon Dec 27 19:56:24 1999 George Lebl - - * Release 0.91.2 - -Mon Dec 27 03:00:25 1999 George Lebl - - * src/main.c: fixup PARENT_HANDLER to work well with non-void - functions, the macro becomes an expression if the function is - not void and returns the return of the parent or the onerror - expression if the function pointer was NULL. - -Mon Dec 27 02:25:32 1999 George Lebl - - * src/parse.y: allow completely empty classes - - * src/main.c: don't add the ugly hack function if there are no - methods - -Mon Dec 27 01:26:26 1999 George Lebl - - * src/parse.y: fixup the virtual rule as I forgot to shift the - argument numbers when adding to the expression - -Mon Dec 27 01:07:14 1999 George Lebl - - * src/parse.y: add optional public keyword to virtuals and signals, - (which doesn't do anything, only consistency). I should perhaps - rewrite and simplify this part of the parser - - * src/lexer.l: fix a bug with empty braces producing a segfault - on public and private methods - - * doc/gob.1.in: add a section about Constructor methods (init - class_init) and fix init_class -> class_init - - * configure.in: raise version to 0.91.2 - -Tue Dec 14 00:06:00 1999 George Lebl - - * Release 0.91.1 - -Mon Dec 13 23:25:06 1999 George Lebl - - * src/{main.c,out.c}: create a private header file and stick - the private structure definition inside it. Add option - --no-private-header for 0.91.0 behaviour and - --always-private-header to force private header creation - - * doc/gob.1.in: update WRT above changes - - * examples/my-person.gob: include the private header - - * NEWS: update - -Mon Dec 13 18:30:09 1999 George Lebl - - * src/main.c: don't print spurious #line's into the private - structure - - * src/{main.c,tree.[ch],lexer.l,parse.y}: implement support for - array types for data members and function arguments - -Mon Dec 13 00:48:47 1999 George Lebl - - * Release 0.91.0 - -Sun Dec 12 22:55:12 1999 George Lebl - - * doc/gob.1.in: added paragraph noting that private data members - cannot be accessed above the class definition in the .gob file - -Sun Dec 12 22:08:31 1999 George Lebl - - * src/main.c: implement real private data members as promised in - the documentation, this however breaks some compatiblity with - things that already used the 'private' keyword for data members - - * doc/gob.1.in: document private data member stuff - - * NEWS: update - - * src/main.c: a couple of sanity checks of the code to prevent weird - errors on some broken .gob code - - * configure.in: update version to 0.91.0 - -Sun Dec 05 14:20:26 1999 George Lebl - - * src/{lexer.l,main.c}: if we find the class header #include - statement in a %{ %} section above class definition, don't - include it ourselves. - - * doc/gob.1.in: remove the note about the include always first from - BUGS, and make a new section for the include file. - -Thu Nov 25 13:09:08 1999 George Lebl - - * Release 0.90.5 - -Thu Nov 25 13:00:52 1999 George Lebl - - * src/main.c: don't error out on a symbol conflict if the types of - the symbol node don't match (variable,method) - -Sat Nov 20 16:15:42 1999 George Lebl - - * src/main.c: add PARENT_HANDLER macro to make calling parent - handlers in override functions easier - -Fri Nov 19 16:41:09 1999 George Lebl - - * src/main.c: add a type macro - -Thu Nov 18 22:56:09 1999 George Lebl - - * src/parse.y: add a warning check if the number of GTK types of - a signal doesn't seem to be correct for the given number of - function arguments - -Tue Nov 16 01:23:45 1999 George Lebl - - * src/main.c: support a "no-touch-headers" mode in which the - headers are not touched unless they actually really changed, - not on by default as it confuses automake - -Tue Nov 16 00:36:42 1999 George Lebl - - * src/{main.c,lexer.l,parser.y,out.c}: Implement a C++ mode, get - rid of C++ errors/warnings when in C++ mode, and get rid of - the 'this' pointer finally (it's been deprecated long enough) - -Mon Nov 15 23:45:37 1999 George Lebl - - * src/main.c: add prototype for the really bad hack function to - avoid warning - -Mon Nov 15 23:42:06 1999 George Lebl - - * src/main.c: generate correct function pointers in the structure - for signals and virtuals. Also use a much nicer system instead - of the method name defines, we now just set a bunch of static - pointers, this removes a whole lot of headaches actually - - * doc/gob.1.in: repair to reflect the above (I removed the define - BUGS paragraph) - -Sun Nov 14 17:57:34 1999 George Lebl - - * doc/gob.1.in: repair some things that confused troff and add - a C preprocessor warning to BUGS - -Sat Nov 13 17:22:49 1999 George Lebl - - * **/Makefile.am, configure.in: fix the conditional installation - stuff, don't even go into the doc directory if we aren't installing - -Sat Nov 13 16:53:20 1999 George Lebl - - * doc/gob.1.in: describe BUGS better - -Sat Nov 13 16:20:41 1999 George Lebl - - * src/lexer.l: don't kill C++ style comments from C blocks - -Sat Nov 13 16:16:59 1999 George Lebl - - * src/{lexer.l,main.c,out.c}: fixed spurious newline printing, don't - kill comments from C blocks so that line counts are right, accept - newlines in strings, and don't take \'\"\' as a string delimiter - -Sat Nov 13 14:53:26 1999 George Lebl - - * src/main.c: don't add gtk_object_class to class_init if we only - have non-GtkObject overrides to avoid warning - -Sat Nov 13 14:31:25 1999 George Lebl - - * configure.in,src/Makefile.am,doc/Makefile.am: check for - ../NOINST_GOB and in case it's found don't install self - -Fri Nov 12 16:25:35 1999 George Lebl - - * configure.in,Makefile.am,src/main.c: don't use popt, our arguments - are simple enough and popt doesn't seem to be widely used yet - -Sun Sep 05 22:08:40 1999 George Lebl - - * Release 0.90.2 - -Sun Sep 05 22:08:33 1999 George Lebl - - * doc/gob.1.in: updated for private virtual and signal wrappers - -Sun Sep 05 21:50:19 1999 George Lebl - - * configure.in: raise version and actually set POPT_LIB correctly - - * src/Makefile.am: use POPT_LIB - -Sun Sep 05 21:45:54 1999 George Lebl - - * src/tree.h,src/main.c,src/parse.y: add support for private signals - and virtuals - - * src/parse.y: fix bug with bogus vararg methods - -Sun Sep 04 17:44:37 1999 George Lebl - - * Release 0.90.1 - -Sat Sep 04 17:18:22 1999 George Lebl - - * src/lexer.l,src/parse.y,src/main.c,src/tree.[ch]: support - variable arguments for public and private methods - -Sat Sep 04 16:51:11 1999 George Lebl - - * lexer.l,parse.y: accept const in parameter lists - -Sun Aug 29 13:46:33 1999 George Lebl - - * Release 0.90.0 - -Sat Aug 28 23:36:48 1999 George Lebl - - * src/main.[ch],parse.y: make error/warning reporting public - and use it to report depreciated use of 'this' - -Sat Aug 28 22:41:52 1999 George Lebl - - * src/tree.[ch],parse.y,main.c: check for duplicate variables and - signals and arguments as well. - -Sat Aug 28 22:00:19 1999 George Lebl - - * src/parse.y,src/main.c: change "this" to "self", but accept "this" - as well - - * src/main.c: check for duplicate methods, and warn on non-public - "new" method - - * configure.in: change to version 0.90.0 - - * doc/gob.1.in: change this to self - -Tue Aug 24 20:37:26 1999 George Lebl - - * Release 0.0.4 - -Thu Aug 19 03:18:03 1999 George Lebl - - * src/main.c: also count overrides to avoid an unused variable on - class_init - -Thu Aug 19 03:08:49 1999 George Lebl - - * src/parse.y: in a check, we can check not only about numbers - but for tokens as well - -Wed Aug 18 12:54:17 1999 George Lebl - - * Release 0.0.3 - -Tue Aug 17 22:24:47 1999 George Lebl - - * src/lexer.l,src/parse.y: don't use reserved words for check type - last first and null - - * src/{lexer.l,parse.y,tree.[ch],main.c}: add #line's to output - files - - * src/out.[ch]: new functions for output so that we can easily add - #line's to files - - * src/main.c: fix get/set arguments - - * doc/gob.1.in: updated for newer version and spellchecked, also - gob.1 is generated by configure now to get versions correct - - * gob.spec.in: added a spec file - -Fri Jul 30 02:19:05 1999 George Lebl - - * src/parse.y: accept simple char types - - * src/main.c: make prototypes look better, and don't output arg stuff - when it won't be used - - * Makefile,src/Makefile: add test make target - +Stub changelog, see the git history for changes. diff --git a/Makefile.am b/Makefile.am index 0f6ad3d..60d7940 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,13 +15,12 @@ AM_YFLAGS = -d -t bin_PROGRAMS = gob2 -EXTRA_DIST = COPYING.generated-code examples/GNOME_Foo_SomeInterface.idl \ - examples/README examples/foo-some-interface.gob \ - examples/gtk-button-count.gob examples/my-glade-main.c \ - examples/my-glade.glade examples/my-glade.gob gob2.spec \ - src/treefuncs.c src/treefuncs.h src/treefuncs.stamp \ - src/treefuncs.def src/generate_treefuncs.pl \ - t/test.gob t/str.gob +EXTRA_DIST = COPYING.GPL3 COPYING.generated-code \ + examples/GNOME_Foo_SomeInterface.idl examples/README \ + examples/foo-some-interface.gob examples/gtk-button-count.gob \ + examples/my-glade-main.c examples/my-glade.glade \ + examples/my-glade.gob gob2.spec src/generate_treefuncs.pl \ + src/treefuncs.def src/treefuncs.stamp t/str.gob t/test.gob CLEANFILES = DISTCLEANFILES = @@ -93,4 +92,39 @@ gob2.m4: $(top_srcdir)/common/m4/gob2.m4 DISTCLEANFILES += gob2.m4 EXTRA_DIST += common/m4/gob2.m4 +git_changelog_start = 2cd951c678998b2b0230c8eb25717ecf0f1dd2db +dist-hook: generate-changelog +generate-changelog: + -: "$${GIT_DIR=$(top_srcdir)/.git}"; \ + test -d "$$GIT_DIR" || exit 0; { \ + $(PERL) -x $(top_srcdir)/build-aux/gitlog-to-changelog -- \ + $(git_changelog_start).. && \ + echo && \ + git show $(git_changelog_start):ChangeLog; \ + } >$(distdir)/ChangeLog.gen && \ + mv -f $(distdir)/ChangeLog.gen $(distdir)/ChangeLog + rm -f $(distdir)/ChangeLog.gen +.PHONY: generate-changelog + +GENERIC_V = $(GENERIC_V_@AM_V@) +GENERIC_V_ = $(GENERIC_V_@AM_DEFAULT_V@) +GENERIC_V_0 = @printf '%2.0s%$(DX_ALIGN_V)s %s\n' + +TEST_DISTRIBUTION = false +TEST_DISTRIBUTION_OR_ERROR = if $(TEST_DISTRIBUTION); \ + then echo 'Proceeding anyway...'; \ + else echo 'Run $(MAKE) TEST_DISTRIBUTION=true to ignore this failure.'; \ + false; \ + fi + +distcheck-hook: + $(GENERIC_V) : 'CHECK ' ChangeLog; \ + $(AWK) '/^Stub/ { print FILENAME ":" NR ":", $$0; exit 1 }' \ + $(distdir)/ChangeLog || { \ + echo 'ERROR: *** Packaged ChangeLog was not properly generated from git log.'; \ + echo ' *** The source version was used instead, but this appears to'; \ + echo ' *** be the stub from a git checkout. The "git" and "perl"'; \ + echo ' *** programs are required for ChangeLog generation to work.'; \ + $(TEST_DISTRIBUTION_OR_ERROR); } >&2 + include $(top_srcdir)/common/snippet/autotest.mk diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog new file mode 100755 index 0000000..5112767 --- /dev/null +++ b/build-aux/gitlog-to-changelog @@ -0,0 +1,515 @@ +#!/bin/sh +#! -*-perl-*- + +# Convert git log output to ChangeLog format. + +# Copyright (C) 2008-2020 Free Software Foundation, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# 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, see . +# +# Written by Jim Meyering + +# This is a prologue that allows to run a perl script as an executable +# on systems that are compliant to a POSIX version before POSIX:2017. +# On such systems, the usual invocation of an executable through execlp() +# or execvp() fails with ENOEXEC if it is a script that does not start +# with a #! line. The script interpreter mentioned in the #! line has +# to be /bin/sh, because on GuixSD systems that is the only program that +# has a fixed file name. The second line is essential for perl and is +# also useful for editing this file in Emacs. The next two lines below +# are valid code in both sh and perl. When executed by sh, they re-execute +# the script through the perl program found in $PATH. The '-x' option +# is essential as well; without it, perl would re-execute the script +# through /bin/sh. When executed by perl, the next two lines are a no-op. +eval 'exec perl -wSx "$0" "$@"' + if 0; + +my $VERSION = '2018-03-07 03:47'; # UTC +# The definition above must lie within the first 8 lines in order +# for the Emacs time-stamp write hook (at end) to update it. +# If you change this file with Emacs, please let the write hook +# do its job. Otherwise, update this string manually. + +use strict; +use warnings; +use Getopt::Long; +use POSIX qw(strftime); + +(my $ME = $0) =~ s|.*/||; + +# use File::Coda; # https://meyering.net/code/Coda/ +END { + defined fileno STDOUT or return; + close STDOUT and return; + warn "$ME: failed to close standard output: $!\n"; + $? ||= 1; +} + +sub usage ($) +{ + my ($exit_code) = @_; + my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR); + if ($exit_code != 0) + { + print $STREAM "Try '$ME --help' for more information.\n"; + } + else + { + print $STREAM < ChangeLog + $ME -- -n 5 foo > last-5-commits-to-branch-foo + +SPECIAL SYNTAX: + +The following types of strings are interpreted specially when they appear +at the beginning of a log message line. They are not copied to the output. + + Copyright-paperwork-exempt: Yes + Append the "(tiny change)" notation to the usual "date name email" + ChangeLog header to mark a change that does not require a copyright + assignment. + Co-authored-by: Joe User + List the specified name and email address on a second + ChangeLog header, denoting a co-author. + Signed-off-by: Joe User + These lines are simply elided. + +In a FILE specified via --amend, comment lines (starting with "#") are ignored. +FILE must consist of pairs where SHA is a 40-byte SHA1 (alone on +a line) referring to a commit in the current project, and CODE refers to one +or more consecutive lines of Perl code. Pairs must be separated by one or +more blank line. + +Here is sample input for use with --amend=FILE, from coreutils: + +3a169f4c5d9159283548178668d2fae6fced3030 +# fix typo in title: +s/all tile types/all file types/ + +1379ed974f1fa39b12e2ffab18b3f7a607082202 +# Due to a bug in vc-dwim, I mis-attributed a patch by Paul to myself. +# Change the author to be Paul. Note the escaped "@": +s,Jim .*>,Paul Eggert , + +EOF + } + exit $exit_code; +} + +# If the string $S is a well-behaved file name, simply return it. +# If it contains white space, quotes, etc., quote it, and return the new string. +sub shell_quote($) +{ + my ($s) = @_; + if ($s =~ m![^\w+/.,-]!) + { + # Convert each single quote to '\'' + $s =~ s/\'/\'\\\'\'/g; + # Then single quote the string. + $s = "'$s'"; + } + return $s; +} + +sub quoted_cmd(@) +{ + return join (' ', map {shell_quote $_} @_); +} + +# Parse file F. +# Comment lines (starting with "#") are ignored. +# F must consist of pairs where SHA is a 40-byte SHA1 +# (alone on a line) referring to a commit in the current project, and +# CODE refers to one or more consecutive lines of Perl code. +# Pairs must be separated by one or more blank line. +sub parse_amend_file($) +{ + my ($f) = @_; + + open F, '<', $f + or die "$ME: $f: failed to open for reading: $!\n"; + + my $fail; + my $h = {}; + my $in_code = 0; + my $sha; + while (defined (my $line = )) + { + $line =~ /^\#/ + and next; + chomp $line; + $line eq '' + and $in_code = 0, next; + + if (!$in_code) + { + $line =~ /^([[:xdigit:]]{40})$/ + or (warn "$ME: $f:$.: invalid line; expected an SHA1\n"), + $fail = 1, next; + $sha = lc $1; + $in_code = 1; + exists $h->{$sha} + and (warn "$ME: $f:$.: duplicate SHA1\n"), + $fail = 1, next; + } + else + { + $h->{$sha} ||= ''; + $h->{$sha} .= "$line\n"; + } + } + close F; + + $fail + and exit 1; + + return $h; +} + +# git_dir_option $SRCDIR +# +# From $SRCDIR, the --git-dir option to pass to git (none if $SRCDIR +# is undef). Return as a list (0 or 1 element). +sub git_dir_option($) +{ + my ($srcdir) = @_; + my @res = (); + if (defined $srcdir) + { + my $qdir = shell_quote $srcdir; + my $cmd = "cd $qdir && git rev-parse --show-toplevel"; + my $qcmd = shell_quote $cmd; + my $git_dir = qx($cmd); + defined $git_dir + or die "$ME: cannot run $qcmd: $!\n"; + $? == 0 + or die "$ME: $qcmd had unexpected exit code or signal ($?)\n"; + chomp $git_dir; + push @res, "--git-dir=$git_dir/.git"; + } + @res; +} + +{ + my $since_date; + my $until_date; + my $format_string = '%s%n%b%n'; + my $amend_file; + my $append_dot = 0; + my $cluster = 1; + my $ignore_matching; + my $ignore_line; + my $strip_tab = 0; + my $strip_cherry_pick = 0; + my $srcdir; + GetOptions + ( + help => sub { usage 0 }, + version => sub { print "$ME version $VERSION\n"; exit }, + 'since=s' => \$since_date, + 'until=s' => \$until_date, + 'format=s' => \$format_string, + 'amend=s' => \$amend_file, + 'append-dot' => \$append_dot, + 'cluster!' => \$cluster, + 'ignore-matching=s' => \$ignore_matching, + 'ignore-line=s' => \$ignore_line, + 'strip-tab' => \$strip_tab, + 'strip-cherry-pick' => \$strip_cherry_pick, + 'srcdir=s' => \$srcdir, + ) or usage 1; + + defined $since_date + and unshift @ARGV, "--since=$since_date"; + defined $until_date + and unshift @ARGV, "--until=$until_date"; + + # This is a hash that maps an SHA1 to perl code (i.e., s/old/new/) + # that makes a correction in the log or attribution of that commit. + my $amend_code = defined $amend_file ? parse_amend_file $amend_file : {}; + + my @cmd = ('git', + git_dir_option $srcdir, + qw(log --log-size), + '--pretty=format:%H:%ct %an <%ae>%n%n'.$format_string, @ARGV); + open PIPE, '-|', @cmd + or die ("$ME: failed to run '". quoted_cmd (@cmd) ."': $!\n" + . "(Is your Git too old? Version 1.5.1 or later is required.)\n"); + + my $prev_multi_paragraph; + my $prev_date_line = ''; + my @prev_coauthors = (); + my @skipshas = (); + while (1) + { + defined (my $in = ) + or last; + $in =~ /^log size (\d+)$/ + or die "$ME:$.: Invalid line (expected log size):\n$in"; + my $log_nbytes = $1; + + my $log; + my $n_read = read PIPE, $log, $log_nbytes; + $n_read == $log_nbytes + or die "$ME:$.: unexpected EOF\n"; + + # Extract leading hash. + my ($sha, $rest) = split ':', $log, 2; + defined $sha + or die "$ME:$.: malformed log entry\n"; + $sha =~ /^[[:xdigit:]]{40}$/ + or die "$ME:$.: invalid SHA1: $sha\n"; + + my $skipflag = 0; + if (@skipshas) + { + foreach(@skipshas) + { + if ($sha =~ /^$_/) + { + $skipflag = $_; + last; + } + } + } + + # If this commit's log requires any transformation, do it now. + my $code = $amend_code->{$sha}; + if (defined $code) + { + eval 'use Safe'; + my $s = new Safe; + # Put the unpreprocessed entry into "$_". + $_ = $rest; + + # Let $code operate on it, safely. + my $r = $s->reval("$code") + or die "$ME:$.:$sha: failed to eval \"$code\":\n$@\n"; + + # Note that we've used this entry. + delete $amend_code->{$sha}; + + # Update $rest upon success. + $rest = $_; + } + + # Remove lines inserted by "git cherry-pick". + if ($strip_cherry_pick) + { + $rest =~ s/^\s*Conflicts:\n.*//sm; + $rest =~ s/^\s*\(cherry picked from commit [\da-f]+\)\n//m; + } + + my @line = split /[ \t]*\n/, $rest; + my $author_line = shift @line; + defined $author_line + or die "$ME:$.: unexpected EOF\n"; + $author_line =~ /^(\d+) (.*>)$/ + or die "$ME:$.: Invalid line " + . "(expected date/author/email):\n$author_line\n"; + + # Format 'Copyright-paperwork-exempt: Yes' as a standard ChangeLog + # `(tiny change)' annotation. + my $tiny = (grep (/^(?:Copyright-paperwork-exempt|Tiny-change):\s+[Yy]es$/, @line) + ? ' (tiny change)' : ''); + + my $date_line = sprintf "%s %s$tiny\n", + strftime ("%Y-%m-%d", localtime ($1)), $2; + + my @coauthors = grep /^Co-authored-by:.*$/, @line; + # Omit meta-data lines we've already interpreted. + @line = grep !/^(?:Signed-off-by:[ ].*>$ + |Co-authored-by:[ ] + |Copyright-paperwork-exempt:[ ] + |Tiny-change:[ ] + )/x, @line; + + # Remove leading and trailing blank lines. + if (@line) + { + while ($line[0] =~ /^\s*$/) { shift @line; } + while ($line[$#line] =~ /^\s*$/) { pop @line; } + } + + # Handle Emacs gitmerge.el "skipped" commits. + # Yes, this should be controlled by an option. So sue me. + if ( grep /^(; )?Merge from /, @line ) + { + my $found = 0; + foreach (@line) + { + if (grep /^The following commit.*skipped:$/, $_) + { + $found = 1; + ## Reset at each merge to reduce chance of false matches. + @skipshas = (); + next; + } + if ($found && $_ =~ /^([[:xdigit:]]{7,}) [^ ]/) + { + push ( @skipshas, $1 ); + } + } + } + + # Ignore commits that match the --ignore-matching pattern, if specified. + if (defined $ignore_matching && @line && $line[0] =~ /$ignore_matching/) + { + $skipflag = 1; + } + elsif ($skipflag) + { + ## Perhaps only warn if a pattern matches more than once? + warn "$ME: warning: skipping $sha due to $skipflag\n"; + } + + if (! $skipflag) + { + if (defined $ignore_line && @line) + { + @line = grep ! /$ignore_line/, @line; + while ($line[$#line] =~ /^\s*$/) { pop @line; } + } + + # Record whether there are two or more paragraphs. + my $multi_paragraph = grep /^\s*$/, @line; + + # Format 'Co-authored-by: A U Thor ' lines in + # standard multi-author ChangeLog format. + for (@coauthors) + { + s/^Co-authored-by:\s*/\t /; + s/\s*/ + or warn "$ME: warning: missing email address for " + . substr ($_, 5) . "\n"; + } + + # If clustering of commit messages has been disabled, if this header + # would be different from the previous date/name/etc. header, + # or if this or the previous entry consists of two or more paragraphs, + # then print the header. + if ( ! $cluster + || $date_line ne $prev_date_line + || "@coauthors" ne "@prev_coauthors" + || $multi_paragraph + || $prev_multi_paragraph) + { + $prev_date_line eq '' + or print "\n"; + print $date_line; + @coauthors + and print join ("\n", @coauthors), "\n"; + } + $prev_date_line = $date_line; + @prev_coauthors = @coauthors; + $prev_multi_paragraph = $multi_paragraph; + + # If there were any lines + if (@line == 0) + { + warn "$ME: warning: empty commit message:\n $date_line\n"; + } + else + { + if ($append_dot) + { + # If the first line of the message has enough room, then + if (length $line[0] < 72) + { + # append a dot if there is no other punctuation or blank + # at the end. + $line[0] =~ /[[:punct:]\s]$/ + or $line[0] .= '.'; + } + } + + # Remove one additional leading TAB from each line. + $strip_tab + and map { s/^\t// } @line; + + # Prefix each non-empty line with a TAB. + @line = map { length $_ ? "\t$_" : '' } @line; + + print "\n", join ("\n", @line), "\n"; + } + } + + defined ($in = ) + or last; + $in ne "\n" + and die "$ME:$.: unexpected line:\n$in"; + } + + close PIPE + or die "$ME: error closing pipe from " . quoted_cmd (@cmd) . "\n"; + # FIXME-someday: include $PROCESS_STATUS in the diagnostic + + # Complain about any unused entry in the --amend=F specified file. + my $fail = 0; + foreach my $sha (keys %$amend_code) + { + warn "$ME:$amend_file: unused entry: $sha\n"; + $fail = 1; + } + + exit $fail; +} + +# Local Variables: +# mode: perl +# indent-tabs-mode: nil +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-line-limit: 50 +# time-stamp-start: "my $VERSION = '" +# time-stamp-format: "%:y-%02m-%02d %02H:%02M" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "'; # UTC" +# End: diff --git a/configure.ac b/configure.ac index 1d66b9f..f3e4b91 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -dnl Copyright © 2019 Nick Bowler +dnl Copyright © 2019-2020 Nick Bowler dnl dnl Based on original work Copyright © 1999-2013 Jiri (George) Lebl. dnl @@ -12,6 +12,7 @@ AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([-Wall subdir-objects dist-xz]) AM_SILENT_RULES([yes]) +DX_AUTOMAKE_COMPAT AC_PROG_CC AC_PROG_CXX