Declare more functions externally.

Don't forget to use 'make beforeinstall'...
This commit is contained in:
ache 1994-10-20 21:56:45 +00:00
parent cf4cb75ef0
commit f530ec529e
12 changed files with 32 additions and 30 deletions

View File

@ -1,11 +1,11 @@
# Makefile for libdialog
# $Id: Makefile,v 1.1.1.1 1994/10/11 23:30:50 ache Exp $
# $Id: Makefile,v 1.2 1994/10/12 01:54:38 ache Exp $
LIB= dialog
SRCS= kernel.c rc.c checklist.c inputbox.c menubox.c msgbox.c \
radiolist.c textbox.c yesno.c
CFLAGS+= -Wall -Wstrict-prototypes -DHAVE_NCURSES -DLOCALE
CFLAGS+= -Wall -Wstrict-prototypes -DLOCALE
LDADD+= -lncurses -lmytinfo

View File

@ -19,8 +19,8 @@
*/
#include "dialog.priv.h"
#include <dialog.h>
#include "dialog.priv.h"
static void print_item(WINDOW *win, unsigned char *tag, unsigned char *item, int status, int choice, int selected);

View File

@ -18,9 +18,30 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#define HAVE_NCURSES
#ifdef HAVE_NCURSES
#include <ncurses.h>
#else
#ifdef ultrix
#include <cursesX.h>
#else
#include <curses.h>
#endif
#endif
#define VERSION "0.4"
#define MAX_LEN 2048
#ifdef HAVE_NCURSES
extern bool use_shadow;
void draw_shadow(WINDOW *win, int y, int x, int height, int width);
#endif
void draw_box(WINDOW *win, int y, int x, int height, int width, chtype box, chtype border);
void dialog_create_rc(unsigned char *filename);
int dialog_yesno(unsigned char *title, unsigned char *prompt, int height, int width);
int dialog_msgbox(unsigned char *title, unsigned char *prompt, int height, int width, int pause);

View File

@ -26,19 +26,6 @@
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_NCURSES
#include <ncurses.h>
#else
#ifdef ultrix
#include <cursesX.h>
#else
#include <curses.h>
#endif
#endif
#if defined(LOCALE)
#include <locale.h>
#endif
@ -182,7 +169,6 @@ chtype attributes[] = {
#ifdef HAVE_NCURSES
extern bool use_colors;
extern bool use_shadow;
#endif
extern chtype attributes[];
@ -211,8 +197,3 @@ void color_setup(void);
void attr_clear(WINDOW *win, int height, int width, chtype attr);
void print_autowrap(WINDOW *win, unsigned char *prompt, int width, int y, int x);
void print_button(WINDOW *win, unsigned char *label, int y, int x, int selected);
void draw_box(WINDOW *win, int y, int x, int height, int width, chtype box, chtype border);
#ifdef HAVE_NCURSES
void draw_shadow(WINDOW *win, int y, int x, int height, int width);
#endif

View File

@ -19,8 +19,8 @@
*/
#include "dialog.priv.h"
#include <dialog.h>
#include "dialog.priv.h"
/*

View File

@ -79,8 +79,8 @@
#define __DIALOG_MAIN__
#include "dialog.priv.h"
#include <dialog.h>
#include "dialog.priv.h"
#ifdef HAVE_NCURSES
#include "colors.h"
#endif

View File

@ -19,8 +19,8 @@
*/
#include "dialog.priv.h"
#include <dialog.h>
#include "dialog.priv.h"
static void print_item(WINDOW *win, unsigned char *tag, unsigned char *item, int choice, int selected);

View File

@ -19,8 +19,8 @@
*/
#include "dialog.priv.h"
#include <dialog.h>
#include "dialog.priv.h"
/*

View File

@ -20,8 +20,8 @@
*/
#include "dialog.priv.h"
#include <dialog.h>
#include "dialog.priv.h"
static void print_item(WINDOW *win, char *tag, char *item, int status, int choice, int selected);

View File

@ -18,8 +18,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "dialog.priv.h"
#include <dialog.h>
#include "dialog.priv.h"
#include "colors.h"
#include "rc.h"

View File

@ -19,8 +19,8 @@
*/
#include "dialog.priv.h"
#include <dialog.h>
#include "dialog.priv.h"
static void back_lines(int n);

View File

@ -19,8 +19,8 @@
*/
#include "dialog.priv.h"
#include <dialog.h>
#include "dialog.priv.h"
/*