[hackers] [libgrapheme] Move comments on macro-definition-lines to separate lines || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Tue, 25 Oct 2022 17:21:04 +0200 (CEST)

commit cd3a639d18c25942d0d48c8001f18222ba5899ef
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Tue Oct 25 17:16:21 2022 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Tue Oct 25 17:16:21 2022 +0200

    Move comments on macro-definition-lines to separate lines
    
    The standard says
    
            Macro definitions are in the form:
    
                    string1 = [string2]
    
            The macro named string1 is defined as having the value of
            string2, where string2 is defined as all characters, if any,
            after the <equals-sign>, up to a comment character ( '#' ) or
            an unescaped <newline>. Any <blank> characters immediately
            before or after the <equals-sign> shall be ignored.
    
    and thus having a declaration like
    
            MACRO = helloworld # comment
    
    yields with MACRO containing the value "helloworld ", which is obviously
    undesired for path-declarations. This is fixed now.
    
    Thanks to Ionen Wolkens for reporting this issue!
    
    Signed-off-by: Laslo Hunhold <dev_AT_frign.de>

diff --git a/config.mk b/config.mk
index 0bb45d4..16916d2 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -1,12 +1,12 @@
 # Customize below to fit your system (run ./configure for automatic presets)
 
-# paths
+# paths (unset $PCPREFIX to not install a pkg-config-file)
 DESTDIR =
 PREFIX = /usr/local
 INCPREFIX = $(PREFIX)/include
 LIBPREFIX = $(PREFIX)/lib
 MANPREFIX = $(PREFIX)/share/man
-PCPREFIX = $(LIBPREFIX)/pkgconfig # unset to not install a pkg-config-file
+PCPREFIX = $(LIBPREFIX)/pkgconfig
 
 # flags
 CPPFLAGS = -D_DEFAULT_SOURCE
_AT_@ -23,10 +23,10 @@ SOFLAGS = -shared -nostdlib -Wl,--soname=libgrapheme.so.$(VERSION_MAJOR).$(VER
 SONAME = libgrapheme.so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)
 SOSYMLINK = true
 
-# tools
+# tools (unset $LDCONFIG to not call ldconfig(1) after install/uninstall)
 CC = cc
 BUILD_CC = $(CC)
 AR = ar
 RANLIB = ranlib
-LDCONFIG = ldconfig # unset to not call ldconfig(1) after install/uninstall
+LDCONFIG = ldconfig
 SH = sh
Received on Tue Oct 25 2022 - 17:21:04 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 25 2022 - 17:24:35 CEST