[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * info/pcterm.c (MAX): Add definition (removed on
From: |
Gavin D. Smith |
Subject: |
branch master updated: * info/pcterm.c (MAX): Add definition (removed on 2023-01-15). Report from Arash Esbati. |
Date: |
Mon, 03 Apr 2023 05:00:25 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 09ebe66a21 * info/pcterm.c (MAX): Add definition (removed on
2023-01-15). Report from Arash Esbati.
09ebe66a21 is described below
commit 09ebe66a21f632536fcba026b48b843277a0c0dd
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Apr 3 10:00:01 2023 +0100
* info/pcterm.c (MAX): Add definition (removed on 2023-01-15).
Report from Arash Esbati.
---
ChangeLog | 5 +++++
info/pcterm.c | 14 +++++++++-----
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c5d6317b45..fc6ac9f49e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-04-03 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * info/pcterm.c (MAX): Add definition (removed on 2023-01-15).
+ Report from Arash Esbati.
+
2023-04-02 Gavin Smith <gavinsmith0123@gmail.com>
* info/indices.c (info_indices_of_file_buffer): Check for
diff --git a/info/pcterm.c b/info/pcterm.c
index 21edbdc1bd..e5bcc416bb 100644
--- a/info/pcterm.c
+++ b/info/pcterm.c
@@ -950,6 +950,15 @@ pc_set_bg_color (int color)
textbackground (convert_color (color) | (norm_attr & BACKGROUND_INTENSITY));
}
+#ifdef MAX
+#undef MAX
+#endif
+#define MAX(a,b) ((a) > (b) ? (a) : (b))
+#ifdef MIN
+#undef MIN
+#endif
+#define MIN(a,b) ((a) < (b) ? (a) : (b))
+
/* Move the cursor up one line. */
static void
pc_up_line (void)
@@ -959,11 +968,6 @@ pc_up_line (void)
ScreenSetCursor (MAX (y-1, 0), x);
}
-#ifdef MIN
-#undef MIN
-#endif
-#define MIN(a,b) ((a) < (b) ? (a) : (b))
-
/* Move the cursor down one line. */
static void
pc_down_line (void)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * info/pcterm.c (MAX): Add definition (removed on 2023-01-15). Report from Arash Esbati.,
Gavin D. Smith <=