1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00
freebsd/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
argv.c
arrows.c
buildlist.c
buttons.c
calendar.c
CHANGES
checklist.c
columns.c
config.guess
config.hin
config.sub
configure
configure.in
COPYING
demo.pl
dialog-config.in
dialog.1
dialog.3
dialog.c dialog: finish update to 1.3-20210117 2021-02-26 10:17:19 +01:00
dialog.h
dialog.lsm
dialog.pl
dlg_colors.h
dlg_internals.h
dlg_keys.c
dlg_keys.h
editbox.c
formbox.c
fselect.c
guage.c
headers-sh.in
help.c
inputbox.c
inputstr.c
install-sh
makefile.in
menubox.c
mixedform.c
mixedgauge.c
mouse.c
mousewget.c
msgbox.c
pause.c
prgbox.c
progressbox.c
rangebox.c
rc.c
README
rename.sh
run_test.sh
tailbox.c
textbox.c
timebox.c
trace.c
treeview.c
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.