HardenedBSD/contrib/dialog
Baptiste Daroussin 95da5e131a dialog: fix macro redefinition
dialog.h defines MIN and MAX (making sure to undefine the previous
macros if it already exists), but sys/param.h also defines those
macros (without guards) and is included after dialog.h resulting
in both gcc and clang complaining about macro redefiniton

While clang do accept -Wno-macro-redefined to ignore the redefinition
warning, gcc does not [1]

Undefine both macros prior inclusion of sys/param.h to avoid the warning

Reported by:	arichardson
2021-03-01 16:01:44 +01:00
..
package
po
samples
aclocal.m4 dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
argv.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
arrows.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
buildlist.c
buttons.c
calendar.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
CHANGES dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
checklist.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
columns.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
config.guess dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
config.hin
config.sub dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
configure dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
configure.in
COPYING
demo.pl Update libdialog to 1.3-20180621 2018-10-20 20:49:46 +00:00
dialog-config.in
dialog.1 dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
dialog.3 dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
dialog.c dialog: finish update to 1.3-20210117 2021-02-26 10:17:19 +01:00
dialog.h dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
dialog.lsm Update dialog to version 20100428. This changes the license under which 2011-01-12 14:55:02 +00:00
dialog.pl Update libdialog to 1.3-20180621 2018-10-20 20:49:46 +00:00
dlg_colors.h dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
dlg_internals.h dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
dlg_keys.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
dlg_keys.h dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
editbox.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
formbox.c
fselect.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
guage.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
headers-sh.in Update dialog to 1.2-20130523 2013-06-17 10:28:55 +00:00
help.c
inputbox.c
inputstr.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
install-sh
makefile.in dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
menubox.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
mixedform.c
mixedgauge.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
mouse.c Update libdialog to 1.3-20180621 2018-10-20 20:49:46 +00:00
mousewget.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
msgbox.c
pause.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
prgbox.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
progressbox.c
rangebox.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
rc.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
README
rename.sh Update dialog to 1.2-20130523 2013-06-17 10:28:55 +00:00
run_test.sh
tailbox.c
textbox.c
timebox.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
trace.c
treeview.c dialog: import dialog 1.3-20210117 2021-02-26 10:16:49 +01:00
ttysize.c
ui_getc.c
util.c dialog: fix macro redefinition 2021-03-01 16:01:44 +01:00
VERSION
version.c
yesno.c

-(1999-12-25)-------------------------------------------------------------------
This version of dialog, formerly known as cdialog is based on the Debian
package for dialog 0.9a (see CHANGES for recent modifications)
- T.Dickey <dickey@invisible-island.net>

-(1996-01-15)-------------------------------------------------------------------
I have uploaded cdialog-0.9a.tar.gz to sunsite. It should be moved
to pub/Linux/utils/shell, I think.

Starting point for cdialog v.0.9a was dialog-0.6c. Many new features
like as Resolution-independence, Auto-sizing, Maximizing, more widget
on the same screen (multi-widget), etc. were added. New widget are 
tailbox and tailbox-in-background. Here are the options:

   Usage: dialog <Common options> <Box options>
          { --and-widget <Common options> <Box options> }

   Common options: <Global options>
       [--backtitle <backtitle>] [--sleep <secs>] [--beep] [--beep-after]
       [--clear] [--begin <y> <x>] [--aspect <ratio>] [--print-size]
       [--print-maxsize] [--size-err] [--separate-output] [--cr-wrap]
       [--tab-len <n>] [--tab-correct] [--print-version] [--no-kill]
       [--title <title>]

   Global options: [--shadow] [--no-shadow] [--separate-widget "<str>"]

At the moment, mouse support with libgpm can't be added because it
does't implement the wtimeout() function of ncurses. Wtimeout() is
needed to have more widgets (es.tailbox) cooperating on the same
screen... I don't know if with newer versions of libgpm it's possible.

I have no more time to write docs for this new version...Is there
anyone, that looking at the code, can do it??? Ouch! :-)
Don't flame me!

For the future, if any volunteer want, the way to evolve cdialog is to
1) make a daemon for a better support of multi-tasking or implementing
   multithreading.
2) add an option that could permit to read commands (--options) from a
   file, like as in a normal programming language, but maintaining 
   compatibility with older version of dialog.

I no longer could maintain cdialog...
Executable and library name of cdialog are the same of dialog, for
compatibility.

I think that only one directive should be follow: don't use a resource
like stdin, stdout when you'll write new options for cdialog; these 
resources have to be shared from all widgets on the command line.
Guage uses stdin :-/ so that can't be mixed for example with an inputbox,
but it was made before of multi-widget. However this is not a big problem!

THERE ARE NO *KNOWN* BUGS. If anyone has much time and can find the way
to add wtimeout() support to libgpm, also mouse could be supported.

Please use ncurses-1.9.4 or newer.

|  __   |  demarco_p@abramo.it:~$ make Linux | more > UserFriendly;
| /__)  |  /~~  _   _ _   _   /~\  _     /  .  _          |
|/  ako | (___ (_) | ) ) (-' (__/ | )   /__ | | ) (_| ><  .  coordinator.