X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fnew_pair.h;h=bc031a70ca5c0d9763ee97bbb0018d4ff91ad2c9;hp=49828d4a7725010d92935841baf5d064383f520e;hb=493e2f7b3fc309879f561a094fdfc15e5304b3d6;hpb=2017ab0e60ca857accae38a01252e0cbdf5f1efe diff --git a/ncurses/new_pair.h b/ncurses/new_pair.h index 49828d4a..bc031a70 100644 --- a/ncurses/new_pair.h +++ b/ncurses/new_pair.h @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 2017,2018 Free Software Foundation, Inc. * + * Copyright 2018-2020,2021 Thomas E. Dickey * + * Copyright 2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -33,13 +34,20 @@ /* * Common type definitions and macros for new_pair.c, lib_color.c * - * $Id: new_pair.h,v 1.9 2018/03/01 15:02:12 tom Exp $ + * $Id: new_pair.h,v 1.12 2021/08/18 19:18:12 tom Exp $ */ #ifndef NEW_PAIR_H #define NEW_PAIR_H 1 /* *INDENT-OFF* */ +#include +#include + +#include + +typedef struct screen SCREEN; + #define LIMIT_TYPED(n,t) \ (t)(((n) > MAX_OF_TYPE(t)) \ ? MAX_OF_TYPE(t) \ @@ -76,8 +84,7 @@ typedef enum { cpKEEP = -1, /* color pair 0 */ cpFREE = 0, /* free for use */ - cpINIT = 1, /* init_pair() */ - cpAUTO = 1 /* alloc_pair() */ + cpINIT = 1 /* initialized */ } CPMODE; typedef struct _color_pairs