diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2011-03-31 01:00:31 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2011-03-31 01:00:31 +0000 |
commit | f592be44eb2190db09b8cee428090a232d528910 (patch) | |
tree | 25f24f997413fa2046d372ed908c8b9cb7184e9b /prompt.h | |
parent | 4d860275f5181ade333c8ae2cc800b925ef43d89 (diff) | |
download | src-f592be44eb2190db09b8cee428090a232d528910.tar.gz src-f592be44eb2190db09b8cee428090a232d528910.zip |
Vendor import NetBSD's libedit of "2001/09/29 17:52:10 UTC".vendor/NetBSD/libedit/2001-09-29
Obtained from: NetBSD
Notes
Notes:
svn path=/vendor/NetBSD/libedit/dist/; revision=220176
svn path=/vendor/NetBSD/libedit/2001-09-29/; revision=220177; tag=vendor/NetBSD/libedit/2001-09-29
Diffstat (limited to 'prompt.h')
-rw-r--r-- | prompt.h | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: prompt.h,v 1.2 1997/01/11 06:48:05 lukem Exp $ */ +/* $NetBSD: prompt.h,v 1.5 2000/09/04 22:06:31 lukem Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -42,20 +42,21 @@ * 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 */ |