aboutsummaryrefslogtreecommitdiff
path: root/less.h
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2019-06-29 04:39:01 +0000
committerXin LI <delphij@FreeBSD.org>2019-06-29 04:39:01 +0000
commit6aa86b45318b321ba7e9cc3c221ab9062ddac4a0 (patch)
treeed38a1d35ad0e927ec1b5282deedc86014f9181d /less.h
parentb04073e3aef4b6c7e7d2755a7bbc098e5f2a03f8 (diff)
downloadsrc-6aa86b45318b321ba7e9cc3c221ab9062ddac4a0.tar.gz
src-6aa86b45318b321ba7e9cc3c221ab9062ddac4a0.zip
Vendor import of less v551.vendor/less/v551
Notes
Notes: svn path=/vendor/less/dist/; revision=349535 svn path=/vendor/less/v551/; revision=349536; tag=vendor/less/v551
Diffstat (limited to 'less.h')
-rw-r--r--less.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/less.h b/less.h
index 39ca65e2a4be..7ec58c3c1fdc 100644
--- a/less.h
+++ b/less.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2017 Mark Nudelman
+ * Copyright (C) 1984-2019 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.
@@ -302,15 +302,6 @@ struct scrpos
int ln;
};
-/*
- * A mark is an ifile (input file) plus a position within the file.
- */
-struct mark
-{
- IFILE m_ifile;
- struct scrpos m_scrpos;
-};
-
typedef union parg
{
char *p_string;
@@ -471,6 +462,7 @@ struct wchar_range_table
#endif /* IS_EBCDIC_HOST */
#define ESC CONTROL('[')
+#define ESCS "\33"
#define CSI ((unsigned char)'\233')
#define CHAR_END_COMMAND 0x40000000
@@ -531,6 +523,15 @@ struct wchar_range_table
#define time_type long
#endif
+/* X11 mouse reporting definitions */
+#define X11MOUSE_BUTTON1 0 /* Left button press */
+#define X11MOUSE_BUTTON2 1 /* Middle button press */
+#define X11MOUSE_BUTTON3 2 /* Right button press */
+#define X11MOUSE_BUTTON_REL 3 /* Button release */
+#define X11MOUSE_WHEEL_UP 0x40 /* Wheel scroll up */
+#define X11MOUSE_WHEEL_DOWN 0x41 /* Wheel scroll down */
+#define X11MOUSE_OFFSET 0x20 /* Added to button & pos bytes to create a char */
+
struct mlist;
struct loption;
struct hilite_tree;
@@ -541,3 +542,8 @@ struct hilite_tree;
void postoa LESSPARAMS ((POSITION, char*));
void linenumtoa LESSPARAMS ((LINENUM, char*));
void inttoa LESSPARAMS ((int, char*));
+int lstrtoi LESSPARAMS ((char*, char**));
+POSITION lstrtopos LESSPARAMS ((char*, char**));
+#if MSDOS_COMPILER==WIN32C
+int pclose LESSPARAMS ((FILE*));
+#endif