Move preprocessor symbols used for multiple inclusion protection and private
interface exposure into implementation namespace.
This commit is contained in:
parent
d8470360b1
commit
beac10a2a8
|
@ -1,7 +1,7 @@
|
|||
# $Id: Makefile,v 1.1.1.1 1999/11/23 11:12:34 blymn Exp $
|
||||
# $Id: Makefile,v 1.2 1999/11/24 12:17:11 kleink Exp $
|
||||
#
|
||||
|
||||
CPPFLAGS+=-I${.CURDIR} -DEXPOSE_PRIVATES
|
||||
CPPFLAGS+=-I${.CURDIR} -D__LIBMENU_EXPOSE_PRIVATES__
|
||||
LIB= menu
|
||||
SRCS= menu.c item.c userptr.c internals.c driver.c post.c attributes.c
|
||||
MAN= menu_attributes.3 menu_item_name.3 menu_items.3 menu_userptr.3 \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: eti.h,v 1.1.1.1 1999/11/23 11:12:34 blymn Exp $ */
|
||||
/* $Id: eti.h,v 1.2 1999/11/24 12:17:11 kleink Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998-1999 Brett Lymn (blymn@baea.com.au, brett_lymn@yahoo.com)
|
||||
|
@ -26,8 +26,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef ETI_H
|
||||
#define ETI_H
|
||||
#ifndef _ETI_H_
|
||||
#define _ETI_H_
|
||||
|
||||
/* common return codes for libmenu and libpanel functions */
|
||||
|
||||
|
@ -45,4 +45,4 @@
|
|||
#define E_NOT_CONNECTED (-11)
|
||||
#define E_REQUEST_DENIED (-12)
|
||||
|
||||
#endif
|
||||
#endif /* !_ETI_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: menu.h,v 1.1.1.1 1999/11/23 11:12:34 blymn Exp $ */
|
||||
/* $Id: menu.h,v 1.2 1999/11/24 12:17:11 kleink Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998-1999 Brett Lymn (blymn@baea.com.au, brett_lymn@yahoo.com)
|
||||
|
@ -26,12 +26,12 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef _MENU_H_
|
||||
#define _MENU_H_
|
||||
|
||||
#include <curses.h>
|
||||
#include <eti.h>
|
||||
|
||||
#ifndef MENU_H
|
||||
#define MENU_H 1
|
||||
|
||||
/* the following is a hack to define attr_t until the curses lib
|
||||
does it officially */
|
||||
#ifndef CURSES_V3
|
||||
|
@ -208,7 +208,7 @@ int set_item_term __P((MENU *, _menui_menu_hook));
|
|||
int set_item_userptr __P((ITEM *, char *));
|
||||
int set_item_value __P((ITEM *, int));
|
||||
|
||||
#ifdef EXPOSE_PRIVATES
|
||||
#ifdef __LIBMENU_EXPOSE_PRIVATES__
|
||||
void __menui_draw_item __P((MENU *, int));
|
||||
|
||||
/* stole this from curses.h */
|
||||
|
@ -216,4 +216,4 @@ void __menui_draw_item __P((MENU *, int));
|
|||
#endif
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
#endif /* !_MENU_H_ */
|
||||
|
|
Loading…
Reference in New Issue