summaryrefslogtreecommitdiff
path: root/ncurses/new_pair.h
diff options
context:
space:
mode:
Diffstat (limited to 'ncurses/new_pair.h')
-rw-r--r--ncurses/new_pair.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ncurses/new_pair.h b/ncurses/new_pair.h
index 49d7e8b8dbdd..82f768cb76b9 100644
--- a/ncurses/new_pair.h
+++ b/ncurses/new_pair.h
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2018-2020,2021 Thomas E. Dickey *
+ * Copyright 2018-2021,2024 Thomas E. Dickey *
* Copyright 2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -34,7 +34,7 @@
/*
* Common type definitions and macros for new_pair.c, lib_color.c
*
- * $Id: new_pair.h,v 1.13 2021/09/24 17:52:01 tom Exp $
+ * $Id: new_pair.h,v 1.16 2024/12/07 17:27:35 tom Exp $
*/
#ifndef NEW_PAIR_H
@@ -111,12 +111,12 @@ colorpair_t;
* that the index is within the limits of the table which we allocated.
*/
#define ValidPair(sp,pair) \
- ((sp != 0) && (pair >= 0) && (pair < sp->_pair_limit) && sp->_coloron)
+ ((sp != NULL) && (pair >= 0) && (pair < sp->_pair_limit) && sp->_coloron)
-#if NCURSES_EXT_COLORS
+#if NCURSES_EXT_FUNCS && NCURSES_EXT_COLORS
extern NCURSES_EXPORT(void) _nc_copy_pairs(SCREEN*, colorpair_t*, colorpair_t*, int);
extern NCURSES_EXPORT(void) _nc_free_ordered_pairs(SCREEN*);
-extern NCURSES_EXPORT(void) _nc_reset_color_pair(SCREEN*, int, colorpair_t*);
+extern NCURSES_EXPORT(void) _nc_reset_color_pair(SCREEN*, int, const colorpair_t*);
extern NCURSES_EXPORT(void) _nc_set_color_pair(SCREEN*, int, int);
#else
#define _nc_free_ordered_pairs(sp) /* nothing */