~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to cmd-line-utils/libedit/prompt.h

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $NetBSD: prompt.h,v 1.6 2003/08/07 16:44:32 agc Exp $   */
 
1
/*      $NetBSD: prompt.h,v 1.10 2009/12/30 22:37:40 christos Exp $     */
2
2
 
3
3
/*-
4
4
 * Copyright (c) 1992, 1993
42
42
 
43
43
#include "histedit.h"
44
44
 
45
 
typedef char * (*el_pfunc_t)(EditLine*);
 
45
typedef Char    *(*el_pfunc_t)(EditLine *);
46
46
 
47
47
typedef struct el_prompt_t {
48
 
        el_pfunc_t      p_func; /* Function to return the prompt        */
49
 
        coord_t         p_pos;  /* position in the line after prompt    */
 
48
        el_pfunc_t      p_func;         /* Function to return the prompt */
 
49
        coord_t         p_pos;          /* position in the line after prompt */
 
50
        Char            p_ignore;       /* character to start/end literal */
 
51
        int             p_wide; 
50
52
} el_prompt_t;
51
53
 
52
54
protected void  prompt_print(EditLine *, int);
53
 
protected int   prompt_set(EditLine *, el_pfunc_t, int);
54
 
protected int   prompt_get(EditLine *, el_pfunc_t *, int);
 
55
protected int   prompt_set(EditLine *, el_pfunc_t, Char, int, int);
 
56
protected int   prompt_get(EditLine *, el_pfunc_t *, Char *, int);
55
57
protected int   prompt_init(EditLine *);
56
58
protected void  prompt_end(EditLine *);
57
59