diff options
| author | Xin LI <delphij@FreeBSD.org> | 2026-02-21 05:19:41 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2026-02-21 05:19:41 +0000 |
| commit | 4be8b0bdecb3af7c801de33f29a6821980840811 (patch) | |
| tree | ae589f1de6dfde020205bbbca700fc99d5cb3614 /lesstest | |
| parent | c408e7413bcfb3bc52ed8b36e87e5be847dcb950 (diff) | |
Diffstat (limited to 'lesstest')
| -rw-r--r-- | lesstest/display.c | 10 | ||||
| -rw-r--r-- | lesstest/env.c | 9 | ||||
| -rw-r--r-- | lesstest/lesstest.c | 9 | ||||
| -rw-r--r-- | lesstest/log.c | 9 | ||||
| -rw-r--r-- | lesstest/lt_screen.c | 9 | ||||
| -rw-r--r-- | lesstest/parse.c | 9 | ||||
| -rw-r--r-- | lesstest/pipeline.c | 12 | ||||
| -rw-r--r-- | lesstest/run.c | 9 | ||||
| -rw-r--r-- | lesstest/term.c | 9 | ||||
| -rw-r--r-- | lesstest/unicode.c | 9 | ||||
| -rw-r--r-- | lesstest/wchar.c | 9 |
11 files changed, 102 insertions, 1 deletions
diff --git a/lesstest/display.c b/lesstest/display.c index 5e904f8bc815..16356c66e46f 100644 --- a/lesstest/display.c +++ b/lesstest/display.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include <termcap.h> #include "lesstest.h" @@ -136,7 +145,6 @@ void display_screen_debug(const byte* img, int imglen, int screen_width, int scr // Print a list of strings. void print_strings(const char* title, char* const* strings) { - if (1) return; /// fprintf(stderr, "%s:\n", title); char* const* s; for (s = strings; *s != NULL; ++s) { diff --git a/lesstest/env.c b/lesstest/env.c index 407b0d51ce59..00fb70cf3bb1 100644 --- a/lesstest/env.c +++ b/lesstest/env.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include "lesstest.h" extern TermInfo terminfo; diff --git a/lesstest/lesstest.c b/lesstest/lesstest.c index 3219b3479dbc..4630b8de092f 100644 --- a/lesstest/lesstest.c +++ b/lesstest/lesstest.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include <setjmp.h> #include "lesstest.h" diff --git a/lesstest/log.c b/lesstest/log.c index 7418f6161a3a..b2a166be9d2c 100644 --- a/lesstest/log.c +++ b/lesstest/log.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include <stdio.h> #include <string.h> #include <unistd.h> diff --git a/lesstest/lt_screen.c b/lesstest/lt_screen.c index 162c7c180dda..76c4e144e12a 100644 --- a/lesstest/lt_screen.c +++ b/lesstest/lt_screen.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include <stdio.h> #include <string.h> #include <unistd.h> diff --git a/lesstest/parse.c b/lesstest/parse.c index 92d1ea0e9866..96afe47e7118 100644 --- a/lesstest/parse.c +++ b/lesstest/parse.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include <stdio.h> #include "lesstest.h" diff --git a/lesstest/pipeline.c b/lesstest/pipeline.c index cf0cfead318d..71e758f74a02 100644 --- a/lesstest/pipeline.c +++ b/lesstest/pipeline.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include <stdio.h> #include <unistd.h> #include <stdlib.h> @@ -144,7 +153,10 @@ LessPipeline* create_less_pipeline(char* const* argv, int argc, char* const* env if (verbose) fprintf(stderr, "screen out pipe %d,%d\n", pipeline->screen_out_pipe[RD], pipeline->screen_out_pipe[WR]); pipeline->screen_pid = fork(); if (!pipeline->screen_pid) // child: lt_screen + { + if (verbose) sleep(1); // avoid interleaved startup output become_child_screen(lt_screen, pipeline->screen_width, pipeline->screen_height, pipeline->screen_in_pipe, pipeline->screen_out_pipe); + } if (verbose) fprintf(stderr, "screen child %ld\n", (long) pipeline->screen_pid); close(pipeline->screen_out_pipe[WR]); pipeline->screen_out_pipe[WR] = -1; close(pipeline->screen_in_pipe[RD]); pipeline->screen_in_pipe[RD] = -1; diff --git a/lesstest/run.c b/lesstest/run.c index 9797c2d8ff4c..bd125ab99267 100644 --- a/lesstest/run.c +++ b/lesstest/run.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include <time.h> #include <errno.h> #include <setjmp.h> diff --git a/lesstest/term.c b/lesstest/term.c index ed9627611fda..32cce943f57c 100644 --- a/lesstest/term.c +++ b/lesstest/term.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include <string.h> #include <fcntl.h> #include <termios.h> diff --git a/lesstest/unicode.c b/lesstest/unicode.c index fa232ee5b8d6..ea84ee5d345e 100644 --- a/lesstest/unicode.c +++ b/lesstest/unicode.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include "lt_types.h" typedef struct wchar_range { wchar first, last; } wchar_range; diff --git a/lesstest/wchar.c b/lesstest/wchar.c index 7e0e3fb8b976..bd177504fa23 100644 --- a/lesstest/wchar.c +++ b/lesstest/wchar.c @@ -1,3 +1,12 @@ +/* + * Copyright (C) 1984-2026 Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information, see the README file. + */ + #include <unistd.h> #include "lt_types.h" |
