Removed unneded compatibility flags. - sam - An updated version of the sam text editor.
(HTM) git clone git://vernunftzentrum.de/sam.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 31f37e5e6d02bf93018f1784d894723412b0f5de
(DIR) parent b74192453a1bd53ded5dca89283ff6f27be028d2
(HTM) Author: Rob King <jking@deadpixi.com>
Date: Mon, 3 Oct 2016 23:05:58 -0500
Removed unneded compatibility flags.
Diffstat:
README.rst | 22 ++++++++++++++++++++++
config.mk.def | 6 ------
libXg/Makefile | 2 +-
libframe/Makefile | 2 +-
sam/Makefile | 2 +-
samterm/Makefile | 2 +-
6 files changed, 26 insertions(+), 10 deletions(-)
---
(DIR) diff --git a/README.rst b/README.rst
@@ -27,6 +27,28 @@ The Obiligatory Screenshot
.. image:: sam.png
+Experimental Branch Information
+===============================
+
+This is the experimental branch of sam.
+Differences between this and the main branch include:
+
+- Use of wide characters instead of runes,
+ and the operating system's multibyte encoding functions.
+ This should allow sam to work with any character encoding supported by the OS.
+- A much smaller and simpler buffer implementation.
+ Classic sam had a very complex buffer implementation because it had to;
+ things were less standardized then and you couldn't rely on the OS having a good virtual memory implementation or buffer cache.
+ All modern systems have decent-enough implementations,
+ so we use them.
+ This cuts down on code complexity and makes things much faster.
+- Modern types:
+ we use all of the C99 stdint types everywhere,
+ increasing portability.
+- Removal of all word-size and endian sensitivity.
+ This version of sam doesn't require the USE64BITS flag,
+ and compiles and runs identically on any supported architecture.
+
Community
=========
(DIR) diff --git a/config.mk.def b/config.mk.def
@@ -4,12 +4,6 @@
# CC is the C compiler to use
CC=gcc -std=c99
-# Set USE64BITS to the appropriate value for your platform:
-# 0 - a 32-bit platform
-# 1 - a little-endian 64-bit platform (e.g. x86_64)
-# 2 - a big-endian 64-bit platform (e.g. DEC Alpha)
-USE64BITS=1
-
# STANDARDS names the C preprocessor defines that need to
# be present to get a more-or-less standard compilation
# environment.
(DIR) diff --git a/libXg/Makefile b/libXg/Makefile
@@ -20,7 +20,7 @@ AR=ar
# the name of the library
LIB=libXg.a
-CFLAGS=$(STANDARDS) $(INCS) $(INCLUDES) -DUSE64BITS=$(USE64BITS)
+CFLAGS=$(STANDARDS) $(INCS) $(INCLUDES)
CC?=c99
OBJS= arith.o balloc.o bitblt.o border.o bscreenrect.o\
(DIR) diff --git a/libframe/Makefile b/libframe/Makefile
@@ -15,7 +15,7 @@ RANLIB=:
# add name of library
AR=ar
-CFLAGS=-c $(INCS) $(STANDARDS) $(INCLUDES) -DUSE64BITS=$(USE64BITS)
+CFLAGS=-c $(INCS) $(STANDARDS) $(INCLUDES)
LIB=libframe.a
CC?=c99
(DIR) diff --git a/sam/Makefile b/sam/Makefile
@@ -28,7 +28,7 @@ RXPATHNAME=/usr/bin/ssh
# Set RXSAMNAME to the name of the command to run on the remote host.
RXSAMNAME=rsam
-CFLAGS=$(STANDARDS) $(INCS) $(INCLUDES) -DUSE64BITS=$(USE64BITS) -DRXPATH='"$(RXPATH)"'
+CFLAGS=$(STANDARDS) $(INCS) $(INCLUDES) -DRXPATH='"$(RXPATH)"'
LIB=../libframe/libframe.a ../libXg/libXg.a
CC?=c99
(DIR) diff --git a/samterm/Makefile b/samterm/Makefile
@@ -17,7 +17,7 @@ SAMTERM=$(BINDIR)/samterm
# or if you need extra libraries to load with X11 applications
XLIBS=-lXt -lX11 -lXft
-CFLAGS=$(INCS) $(STANDARDS) $(INCLUDES) -DUSE64BITS=$(USE64BITS)
+CFLAGS=$(INCS) $(STANDARDS) $(INCLUDES)
LIBS=../libframe/libframe.a ../libXg/libXg.a
CC?=c99