Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f33cdc0e4 | |||
| afcc33329f | |||
| 128235283c | |||
| af3c0eddc4 | |||
| f8f01f7dd6 | |||
| 8206ab0a40 | |||
| af8dcb847e | |||
| 9434a34116 | |||
| 3b2b60466c | |||
| 52e1f2dd8b | |||
| 8bb9228339 | |||
| e937e3398c | |||
| f147c866ab | |||
| 1227d0abf4 | |||
| d3591331a5 | |||
| 5eafc1a34b | |||
| a0103dd5aa | |||
| 3782880062 | |||
| e345b55595 | |||
| d1978a3b98 | |||
| 5ee8234ab7 | |||
| f82d1f8831 | |||
| 2019ec10ce |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,4 @@
|
||||
*.log
|
||||
build
|
||||
ke
|
||||
*.txt
|
||||
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
|
||||
project(ke C) # Specify C language explicitly
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(KE_VERSION "1.1.0")
|
||||
set(KE_VERSION "1.3.1")
|
||||
|
||||
set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Wshadow -Werror -std=c99 -g")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_DEFAULT_SOURCE -D_XOPEN_SOURCE")
|
||||
|
||||
18
Makefile
18
Makefile
@@ -1,6 +1,6 @@
|
||||
TARGET := ke
|
||||
KE_VERSION := devel
|
||||
|
||||
KE_VERSION := devel
|
||||
DEST := $(HOME)/.local/bin/$(TARGET)
|
||||
|
||||
CFLAGS := -Wall -Wextra -pedantic -Wshadow -Werror -std=c99 -g
|
||||
CFLAGS += -D_DEFAULT_SOURCE -D_XOPEN_SOURCE
|
||||
@@ -8,10 +8,20 @@ CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
|
||||
LDFLAGS := -fsanitize=address
|
||||
|
||||
all: $(TARGET)
|
||||
all: $(TARGET) test.txt
|
||||
|
||||
$(TARGET): main.c
|
||||
$(CC) $(CFLAGS) -o $(TARGET) $(LDFLAGS) main.c
|
||||
|
||||
.PHONY: install
|
||||
#install: $(TARGET)
|
||||
install:
|
||||
cp $(TARGET) $(DEST)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
rm -f $(TARGET)
|
||||
rm -f asan.log*
|
||||
|
||||
.PHONY: test.txt
|
||||
test.txt:
|
||||
cp test.txt.bak $@
|
||||
|
||||
4
ke.1
4
ke.1
@@ -42,7 +42,9 @@ exit the editor. Also C-k C-q.
|
||||
save the file, prompting for a filename if needed. Also C-k C-s.
|
||||
.It C-k x
|
||||
save the file and exit. Also C-k C-x.
|
||||
.It C-k \
|
||||
.It C-k y
|
||||
Yank the killring.
|
||||
.It C-k \[char92]
|
||||
Dump core.
|
||||
.El
|
||||
.Sh FIND
|
||||
|
||||
15
test.txt.bak
Normal file
15
test.txt.bak
Normal file
@@ -0,0 +1,15 @@
|
||||
hello
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
world it is me
|
||||
but I am not me
|
||||
Reference in New Issue
Block a user