/*1* $Id: dlg_internals.h,v 1.3 2019/08/08 21:29:41 tom Exp $2*3* dlg_internals.h -- runtime binding support for dialog4*5* Copyright 2019 Thomas E. Dickey6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU Lesser General Public License, version 2.19* as published by the Free Software Foundation.10*11* This program is distributed in the hope that it will be useful, but12* WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU14* Lesser General Public License for more details.15*16* You should have received a copy of the GNU Lesser General Public17* License along with this program; if not, write to18* Free Software Foundation, Inc.19* 51 Franklin St., Fifth Floor20* Boston, MA 02110, USA.21*/2223#ifndef DLG_INTERNALS_H_included24#define DLG_INTERNALS_H_included 12526#include <dialog.h>2728#define TableSize(name) (sizeof(name)/sizeof((name)[0]))2930/* *INDENT-OFF* */31#define resizeit(name, NAME) \32name = ((NAME >= old_##NAME) \33? (NAME - (old_##NAME - old_##name)) \34: old_##name)3536#define AddLastKey() \37if (dialog_vars.last_key) { \38if (dlg_need_separator()) \39dlg_add_separator(); \40dlg_add_last_key(-1); \41}424344/* *INDENT-ON* */4546#endif /* DLG_INTERNALS_H_included */474849