Declare more functions externally.
Don't forget to use 'make beforeinstall'...
This commit is contained in:
parent
35c9f61260
commit
8a585590ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3740
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
@ -19,8 +19,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "dialog.priv.h"
|
||||
#include <dialog.h>
|
||||
#include "dialog.priv.h"
|
||||
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -19,8 +19,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "dialog.priv.h"
|
||||
#include <dialog.h>
|
||||
#include "dialog.priv.h"
|
||||
|
||||
|
||||
/*
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
|
||||
|
@ -19,8 +19,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "dialog.priv.h"
|
||||
#include <dialog.h>
|
||||
#include "dialog.priv.h"
|
||||
|
||||
|
||||
static void back_lines(int n);
|
||||
|
@ -19,8 +19,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "dialog.priv.h"
|
||||
#include <dialog.h>
|
||||
#include "dialog.priv.h"
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user