From bf3ea3ea14b11dd8a424214c93d0ea4db036acb5 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Wed, 18 Apr 2007 02:26:19 +0000 Subject: [PATCH] enums make more sense here. --- pdcurses/slk.c | 6 ++---- win32/pdcscrn.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pdcurses/slk.c b/pdcurses/slk.c index b4b66d59..378ee3b2 100644 --- a/pdcurses/slk.c +++ b/pdcurses/slk.c @@ -14,7 +14,7 @@ #include #include -RCSID("$Id: slk.c,v 1.48 2007/03/16 06:33:44 wmcbrine Exp $"); +RCSID("$Id: slk.c,v 1.49 2007/04/18 02:26:18 wmcbrine Exp $"); /*man-start************************************************************** @@ -90,9 +90,7 @@ RCSID("$Id: slk.c,v 1.48 2007/03/16 06:33:44 wmcbrine Exp $"); **man-end****************************************************************/ -#define LABEL_NORMAL 8 -#define LABEL_EXTENDED 10 -#define LABEL_NCURSES_EXTENDED 12 +enum { LABEL_NORMAL = 8, LABEL_EXTENDED = 10, LABEL_NCURSES_EXTENDED = 12 }; static int label_length = 0; static int labels = 0; diff --git a/win32/pdcscrn.c b/win32/pdcscrn.c index f4713d7b..c01f34fa 100644 --- a/win32/pdcscrn.c +++ b/win32/pdcscrn.c @@ -13,11 +13,9 @@ #include "pdcwin.h" -RCSID("$Id: pdcscrn.c,v 1.80 2007/04/05 08:06:15 wmcbrine Exp $"); +RCSID("$Id: pdcscrn.c,v 1.81 2007/04/18 02:26:19 wmcbrine Exp $"); -#define PDC_RESTORE_NONE 0 -#define PDC_RESTORE_BUFFER 1 -#define PDC_RESTORE_WINDOW 2 +enum { PDC_RESTORE_NONE, PDC_RESTORE_BUFFER, PDC_RESTORE_WINDOW }; /* Struct for storing console registry keys, and for use with the undocumented WM_SETCONSOLEINFO message. Originally by James Brown,