simon-git: charset (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sat May 20 08:42:07 BST 2017


TL;DR:
  1b90094 Rename enum.c to enum.h.
  1023116 Replace Makefile with an autotools system.

Repository:     https://git.tartarus.org/simon/charset.git
On the web:     https://git.tartarus.org/?p=simon/charset.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2017-05-20 08:42:07

commit 1b9009457c0f8586c8d6d19eff263bd9338a3cdb
web diff https://git.tartarus.org/?p=simon/charset.git;a=commitdiff;h=1b9009457c0f8586c8d6d19eff263bd9338a3cdb;hp=a7353cf60d896b33f103a26bc73cce535990d5c7
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat May 20 08:31:46 2017 +0100

    Rename enum.c to enum.h.
    
    I'm about to convert the libcharset Makefile system over to using
    autotools. Automake will want me to list all the .c and .h files that
    make up libcharset.a, and it will assume that .c files in that list
    need to be explicitly compiled, which enum.c shouldn't be.
    
    Previously, my justification for naming it enum.c was that I felt that
    C header files should only _declare_ things, not define any functions
    or data that would be emitted into the output object file; any actual
    generation of code or data should go in .c files. But automake's
    distinction is that .c files are the ones you tell the compiler about
    and .h files are the ones the compiler automatically finds by
    following #include directives, and it looks as if the latter
    distinction is more useful.

 cstable.c |  6 +++---
 enum.c    | 28 ----------------------------
 enum.h    | 28 ++++++++++++++++++++++++++++
 slookup.c |  4 ++--
 4 files changed, 33 insertions(+), 33 deletions(-)

commit 102311655988317c71e42bbb3d454414d9179e62
web diff https://git.tartarus.org/?p=simon/charset.git;a=commitdiff;h=102311655988317c71e42bbb3d454414d9179e62;hp=1b9009457c0f8586c8d6d19eff263bd9338a3cdb
Author: Simon Tatham <anakin at pobox.com>
Date:   Wed May 17 06:25:48 2017 +0100

    Replace Makefile with an autotools system.
    
    Run standalone, this configure.ac / Makefile.am will generate a
    makefile that builds and installs the static library libcharset.a and
    my collection of supporting utilities. But I also intend for it to be
    possible to include libcharset as a subdirectory in a larger project
    (as Halibut does) and incorporate it into the higher-level Makefile.am
    via $(SUBDIRS).

 .gitignore   |  11 +++
 Makefile     | 252 -----------------------------------------------------------
 Makefile.am  |  30 +++++++
 autogen.sh   |   2 +
 configure.ac |  16 ++++
 5 files changed, 59 insertions(+), 252 deletions(-)



More information about the tartarus-commits mailing list