summaryrefslogtreecommitdiffstats
path: root/lib/libedit/prompt.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-10-01 08:41:27 +0000
committerobrien <obrien@FreeBSD.org>2001-10-01 08:41:27 +0000
commit90300f853673b3879ab4d6a60683ff69b564c58b (patch)
treef9436ba88ca8f8420af319b0a12dd175381b507b /lib/libedit/prompt.h
parentf805e363ed51ace3356b37eb173c3d6435c35022 (diff)
downloadFreeBSD-src-90300f853673b3879ab4d6a60683ff69b564c58b.zip
FreeBSD-src-90300f853673b3879ab4d6a60683ff69b564c58b.tar.gz
+ Sync with NetBSD, bringing in feature enhancements.
+ Convert to ANSI-C function definitions + style(9) Submitted by: kris
Diffstat (limited to 'lib/libedit/prompt.h')
-rw-r--r--lib/libedit/prompt.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/libedit/prompt.h b/lib/libedit/prompt.h
index a624fc0..509c920 100644
--- a/lib/libedit/prompt.h
+++ b/lib/libedit/prompt.h
@@ -34,26 +34,29 @@
* SUCH DAMAGE.
*
* @(#)prompt.h 8.1 (Berkeley) 6/4/93
+ * $NetBSD: prompt.h,v 1.4 1999/11/12 01:05:07 lukem Exp $
+ * $FreeBSD$
*/
/*
* el.prompt.h: Prompt printing stuff
*/
#ifndef _h_el_prompt
-#define _h_el_prompt
+#define _h_el_prompt
#include "histedit.h"
-typedef char * (*el_pfunc_t) __P((EditLine*));
+typedef char * (*el_pfunc_t)(EditLine*);
typedef struct el_prompt_t {
- el_pfunc_t p_func; /* Function to return the prompt */
- coord_t p_pos; /* position in the line after prompt */
+ el_pfunc_t p_func; /* Function to return the prompt */
+ coord_t p_pos; /* position in the line after prompt */
} el_prompt_t;
-protected void prompt_print __P((EditLine *));
-protected int prompt_set __P((EditLine *, el_pfunc_t));
-protected int prompt_init __P((EditLine *));
-protected void prompt_end __P((EditLine *));
+protected void prompt_print(EditLine *, int);
+protected int prompt_set(EditLine *, el_pfunc_t, int);
+protected int prompt_get(EditLine *, el_pfunc_t *, int);
+protected int prompt_init(EditLine *);
+protected void prompt_end(EditLine *);
#endif /* _h_el_prompt */
OpenPOWER on IntegriCloud