/[gcl]/gcl/o/gcl_readline.d
ViewVC logotype

Diff of /gcl/o/gcl_readline.d

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by camm, Fri Jun 10 15:13:59 2005 UTC revision 1.12 by camm, Sat Jul 23 08:54:02 2005 UTC
# Line 1  Line 1 
1    /* -*-C-*- */
2  /*  /*
3   Copyright (C) 2000 Tuukka Toivonen <tuukkat AT ee.oulu.fi>   Copyright (C) 2000 Tuukka Toivonen <tuukkat AT ee.oulu.fi>
4    
# Line 53  Foundation, 675 Mass Ave, Cambridge, MA Line 54  Foundation, 675 Mass Ave, Cambridge, MA
54    
55  int readline_on = 0;            /* On (1) or off (0) */  int readline_on = 0;            /* On (1) or off (0) */
56  static int rl_ungetc_em_char = -1;  static int rl_ungetc_em_char = -1;
57  static unsigned char *rl_putc_em_line = NULL;  static char *rl_putc_em_line = NULL;
58    
59  #ifdef RL_COMPLETION  #ifdef RL_COMPLETION
60    
# Line 229  static char **rl_completion(char *text, Line 230  static char **rl_completion(char *text,
230  int rl_putc_em(int c, FILE *f) {  int rl_putc_em(int c, FILE *f) {
231          static int allocated_length = 0;          static int allocated_length = 0;
232          static int current_length = 0;          static int current_length = 0;
233          unsigned char *old_line;          char *old_line;
234    
235          if (f!=stdout || !isatty(fileno(f)) || !readline_on) goto tail;          if (f!=stdout || !isatty(fileno(f)) || !readline_on) goto tail;
236    
# Line 259  int rl_putc_em(int c, FILE *f) { Line 260  int rl_putc_em(int c, FILE *f) {
260  }  }
261    
262  int rl_getc_em(FILE *f) {  int rl_getc_em(FILE *f) {
263          static unsigned char *line = NULL;          static char *line = NULL;
264          static int linepos = 0;          static int linepos = 0;
265          int r;          int r;
266                    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26