This directory has been almost completly got from the debian potato dialog
source package, modifying:

1.-dialog.c, so it doesn't define main(), allowing us to use it as a kind of
"library".

2.-dialog.h and checklist.c, so dialog_checklist() takes one more argument,
a char*; when flag is not set (that is, radioButtons instead of
checkButtons), choosen option is stored there instead of stderr. We have
needed to modify dialog.c, when calling dialog_checklist(), to reflect this
change too.

3.-In textbox.c, a static variable buffer_first is set to 1 the first time,
and set to 0 when is malloc'ed... when two or more calls to dialog_textbox()
are made, buffer_first is 0 the second time, so the buffer is not malloc'ed,
and a segfault is raised when tried to free(). In our hack, buffer_first is
set to 1 each time dialog_textbox is called.

4.-Makefile too, so it doesn't try to compile "dialog" binary, nor creating
libdialog.a,...

1, 2 and 3 can be noticed just searching for NPPASET in the code

The original README file distributed with the package has been stored to
README.original

Javier Sedano (jsedano@ieee.org, jsedano@it.uc3m.es)
