OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [readline/] [compat.c] - Blame information for rev 846

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
/* compat.c -- backwards compatibility functions. */
2
 
3
/* Copyright (C) 2000 Free Software Foundation, Inc.
4
 
5
   This file is part of the GNU Readline Library, a library for
6
   reading lines of text with interactive input and history editing.
7
 
8
   The GNU Readline Library is free software; you can redistribute it
9
   and/or modify it under the terms of the GNU General Public License
10
   as published by the Free Software Foundation; either version 2, or
11
   (at your option) any later version.
12
 
13
   The GNU Readline Library is distributed in the hope that it will be
14
   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
15
   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
   GNU General Public License for more details.
17
 
18
   The GNU General Public License is often shipped with GNU software, and
19
   is generally kept in a file called COPYING or LICENSE.  If you do not
20
   have a copy of the license, write to the Free Software Foundation,
21
   59 Temple Place, Suite 330, Boston, MA 02111 USA. */
22
#define READLINE_LIBRARY
23
 
24
#if defined (HAVE_CONFIG_H)
25
#  include <config.h>
26
#endif
27
 
28
#include <stdio.h>
29
 
30
#include "rlstdc.h"
31
#include "rltypedefs.h"
32
 
33
extern void rl_free_undo_list PARAMS((void));
34
extern int rl_maybe_save_line PARAMS((void));
35
extern int rl_maybe_unsave_line PARAMS((void));
36
extern int rl_maybe_replace_line PARAMS((void));
37
 
38
extern int rl_crlf PARAMS((void));
39
extern int rl_ding PARAMS((void));
40
extern int rl_alphabetic PARAMS((int));
41
 
42
extern char **rl_completion_matches PARAMS((const char *, rl_compentry_func_t *));
43
extern char *rl_username_completion_function PARAMS((const char *, int));
44
extern char *rl_filename_completion_function PARAMS((const char *, int));
45
 
46
/* Provide backwards-compatible entry points for old function names. */
47
 
48
void
49
free_undo_list ()
50
{
51
  rl_free_undo_list ();
52
}
53
 
54
int
55
maybe_replace_line ()
56
{
57
  return rl_maybe_replace_line ();
58
}
59
 
60
int
61
maybe_save_line ()
62
{
63
  return rl_maybe_save_line ();
64
}
65
 
66
int
67
maybe_unsave_line ()
68
{
69
  return rl_maybe_unsave_line ();
70
}
71
 
72
int
73
ding ()
74
{
75
  return rl_ding ();
76
}
77
 
78
int
79
crlf ()
80
{
81
  return rl_crlf ();
82
}
83
 
84
int
85
alphabetic (c)
86
     int c;
87
{
88
  return rl_alphabetic (c);
89
}
90
 
91
char **
92
completion_matches (s, f)
93
     const char *s;
94
     rl_compentry_func_t *f;
95
{
96
  return rl_completion_matches (s, f);
97
}
98
 
99
char *
100
username_completion_function (s, i)
101
     const char *s;
102
     int i;
103
{
104
  return rl_username_completion_function (s, i);
105
}
106
 
107
char *
108
filename_completion_function (s, i)
109
     const char *s;
110
     int i;
111
{
112
  return rl_filename_completion_function (s, i);
113
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.