URI: 
       tMove source files to src - ltk - Socket-based GUI for X11 (WIP)
  HTML git clone git://lumidify.org/ltk.git (fast, but not encrypted)
  HTML git clone https://lumidify.org/git/ltk.git (encrypted, but very slow)
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 7d8235cc4e3c173b19461ff5eaf5991a43f15994
   DIR parent b942851b8d877294a2efc68efa8447b4d580cd7f
  HTML Author: lumidify <nobody@lumidify.org>
       Date:   Mon, 22 Feb 2021 21:05:26 +0100
       
       Move source files to src
       
       Diffstat:
         M Makefile                            |      63 +++++++++++++++++++++++++------
         R box.c -> src/box.c                  |       0 
         R box.h -> src/box.h                  |       0 
         R button.c -> src/button.c            |       0 
         R button.h -> src/button.h            |       0 
         R color.c -> src/color.c              |       0 
         R color.h -> src/color.h              |       0 
         R draw.c -> src/draw.c                |       0 
         R draw.h -> src/draw.h                |       0 
         R grid.c -> src/grid.c                |       0 
         R grid.h -> src/grid.h                |       0 
         R ini.c -> src/ini.c                  |       0 
         R ini.h -> src/ini.h                  |       0 
         R khash.h -> src/khash.h              |       0 
         R label.c -> src/label.c              |       0 
         R label.h -> src/label.h              |       0 
         R ltk.h -> src/ltk.h                  |       0 
         R ltkc.c -> src/ltkc.c                |       0 
         R ltkd.c -> src/ltkd.c                |       0 
         R memory.c -> src/memory.c            |       0 
         R memory.h -> src/memory.h            |       0 
         R scrollbar.c -> src/scrollbar.c      |       0 
         R scrollbar.h -> src/scrollbar.h      |       0 
         R stb_truetype.c -> src/stb_truetype… |       0 
         R stb_truetype.h -> src/stb_truetype… |       0 
         R strtonum.c -> src/strtonum.c        |       0 
         R text.h -> src/text.h                |       0 
         R text_pango.c -> src/text_pango.c    |       0 
         R text_stb.c -> src/text_stb.c        |       0 
         R util.c -> src/util.c                |       0 
         R util.h -> src/util.h                |       0 
         M test.sh                             |       6 +++---
         M testbox.sh                          |       6 +++---
       
       33 files changed, 57 insertions(+), 18 deletions(-)
       ---
   DIR diff --git a/Makefile b/Makefile
       t@@ -1,7 +1,11 @@
       -VERSION = -999
       +.POSIX:
       +.SUFFIXES: .c .o
        
       -# FIXME: Using DEBUG here doesn't work because it somehow interferes with a predefined macro,
       -# at least on OpenBSD
       +NAME = ltk
       +VERSION = -999-prealpha0
       +
       +# FIXME: Using DEBUG here doesn't work because it somehow
       +# interferes with a predefined macro, at least on OpenBSD.
        DEV = 0
        USE_PANGO = 0
        
       t@@ -17,10 +21,10 @@ LDFLAGS += -lm `pkg-config --libs x11 fontconfig`
        DEV_1 = -g -Wall -Werror -Wextra -pedantic
        
        # stb rendering
       -EXTRA_OBJ_0 = stb_truetype.o text_stb.o
       +EXTRA_OBJ_0 = src/stb_truetype.o src/text_stb.o
        
        # pango rendering
       -EXTRA_OBJ_1 = text_pango.o
       +EXTRA_OBJ_1 = src/text_pango.o
        EXTRA_CFLAGS_1 += -DUSE_PANGO `pkg-config --cflags pangoxft`
        EXTRA_LDFLAGS_1 += `pkg-config --libs pangoxft`
        
       t@@ -28,22 +32,57 @@ EXTRA_OBJ = $(EXTRA_OBJ_$(USE_PANGO))
        EXTRA_CFLAGS = $(EXTRA_CFLAGS_$(USE_PANGO)) $(DEV_$(DEV))
        EXTRA_LDFLAGS = $(EXTRA_LDFLAGS_$(USE_PANGO))
        
       -OBJ = strtonum.o util.o memory.o color.o ltkd.o ini.o grid.o box.o scrollbar.o button.o label.o draw.o $(EXTRA_OBJ)
       +OBJ = \
       +        src/strtonum.o \
       +        src/util.o \
       +        src/memory.o \
       +        src/color.o \
       +        src/ltkd.o \
       +        src/ini.o \
       +        src/grid.o \
       +        src/box.o \
       +        src/scrollbar.o \
       +        src/button.o \
       +        src/label.o \
       +        src/draw.o \
       +        $(EXTRA_OBJ)
       +
       +# Note: This could be improved so a change in a header only causes the .c files
       +# which include that header to be recompiled, but the compile times are
       +# currently so short that I don't really care.
       +HDR = \
       +        src/box.h \
       +        src/button.h \
       +        src/color.h \
       +        src/draw.h \
       +        src/grid.h \
       +        src/ini.h \
       +        src/khash.h \
       +        src/label.h \
       +        src/ltk.h \
       +        src/memory.h \
       +        src/scrollbar.h \
       +        src/stb_truetype.h \
       +        src/text.h \
       +        src/util.h
       +
        CFLAGS += $(EXTRA_CFLAGS)
        LDFLAGS += $(EXTRA_LDFLAGS)
        
       -all: ltkd ltkc
       +all: src/ltkd src/ltkc
        
       -ltkd: $(OBJ)
       +src/ltkd: $(OBJ)
                $(CC) -o $@ $(OBJ) $(LDFLAGS)
        
       -ltkc: ltkc.o util.o memory.o
       -        $(CC) -o $@ ltkc.o util.o memory.o
       +src/ltkc: src/ltkc.o src/util.o src/memory.o
       +        $(CC) -o $@ src/ltkc.o src/util.o src/memory.o
       +
       +$(OBJ) : $(HDR)
        
       -%.o: %.c
       +.c.o:
                $(CC) -c -o $@ $< $(CFLAGS)
        
        .PHONY: clean
        
        clean:
       -        rm -f *.o ltkd ltkc ltk.sock *.core
       +        rm -f src/*.o src/ltkd src/ltkc
   DIR diff --git a/box.c b/src/box.c
   DIR diff --git a/box.h b/src/box.h
   DIR diff --git a/button.c b/src/button.c
   DIR diff --git a/button.h b/src/button.h
   DIR diff --git a/color.c b/src/color.c
   DIR diff --git a/color.h b/src/color.h
   DIR diff --git a/draw.c b/src/draw.c
   DIR diff --git a/draw.h b/src/draw.h
   DIR diff --git a/grid.c b/src/grid.c
   DIR diff --git a/grid.h b/src/grid.h
   DIR diff --git a/ini.c b/src/ini.c
   DIR diff --git a/ini.h b/src/ini.h
   DIR diff --git a/khash.h b/src/khash.h
   DIR diff --git a/label.c b/src/label.c
   DIR diff --git a/label.h b/src/label.h
   DIR diff --git a/ltk.h b/src/ltk.h
   DIR diff --git a/ltkc.c b/src/ltkc.c
   DIR diff --git a/ltkd.c b/src/ltkd.c
   DIR diff --git a/memory.c b/src/memory.c
   DIR diff --git a/memory.h b/src/memory.h
   DIR diff --git a/scrollbar.c b/src/scrollbar.c
   DIR diff --git a/scrollbar.h b/src/scrollbar.h
   DIR diff --git a/stb_truetype.c b/src/stb_truetype.c
   DIR diff --git a/stb_truetype.h b/src/stb_truetype.h
   DIR diff --git a/strtonum.c b/src/strtonum.c
   DIR diff --git a/text.h b/src/text.h
   DIR diff --git a/text_pango.c b/src/text_pango.c
   DIR diff --git a/text_stb.c b/src/text_stb.c
   DIR diff --git a/util.c b/src/util.c
   DIR diff --git a/util.h b/src/util.h
   DIR diff --git a/test.sh b/test.sh
       t@@ -7,13 +7,13 @@
        # supported yet.
        
        export LTKDIR="`pwd`/.ltk"
       -ltk_id=`./ltkd -t "Cool Window"`
       +ltk_id=`./src/ltkd -t "Cool Window"`
        if [ $? -ne 0 ]; then
                echo "Unable to start ltkd." >&2
                exit 1
        fi
        
       -cat test.gui | ./ltkc $ltk_id | while read cmd
       +cat test.gui | ./src/ltkc $ltk_id | while read cmd
        do
                case "$cmd" in
                "btn1 button_click")
       t@@ -23,4 +23,4 @@ do
                        printf "%s\n" "$cmd" >&2
                        ;;
                esac
       -done | ./ltkc $ltk_id
       +done | ./src/ltkc $ltk_id
   DIR diff --git a/testbox.sh b/testbox.sh
       t@@ -1,7 +1,7 @@
        #!/bin/sh
        
        export LTKDIR="`pwd`/.ltk"
       -ltk_id=`./ltkd -t "Cool Window"`
       +ltk_id=`./src/ltkd -t "Cool Window"`
        if [ $? -ne 0 ]; then
                echo "Unable to start ltkd." >&2
                exit 1
       t@@ -12,7 +12,7 @@ $(curl -s gopher://lumidify.org | awk -F'\t' '
        BEGIN {btn = 0; lbl = 0;}
        /^i/ { printf "label lbl%s create \"%s\"\nbox box1 add lbl%s w\n", lbl, substr($1, 2), lbl; lbl++ }
        /^[1gI]/ { printf "button btn%s create \"%s\"\nbox box1 add btn%s w\n", btn, substr($1, 2), btn; btn++ }')"
       -echo "$cmds" | ./ltkc $ltk_id | while read cmd
       +echo "$cmds" | ./src/ltkc $ltk_id | while read cmd
        do
                case "$cmd" in
                "exit_btn button_click")
       t@@ -25,4 +25,4 @@ do
                        printf "%s\n" "$cmd" >&2
                        ;;
                esac
       -done | ./ltkc $ltk_id > /dev/null
       +done | ./src/ltkc $ltk_id > /dev/null