ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TRCompletion.h
Go to the documentation of this file.
1 // @(#)root/r:$Id$
2 // Author: Omar Zapata 29/08/2013
3 // The tab-completion interface was based in R's readline code.
4 #ifndef ROOT_R_TRCompletion
5 #define ROOT_R_TRCompletion
6 
7 #ifndef ROOT_R_RExports
8 #include<RExports.h>
9 #endif
10 
11 #if !defined(_READLINE_H_)
12 
13 #if !defined (PARAMS)
14 # if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus)
15 # define PARAMS(protos) protos
16 # else
17 # define PARAMS(protos) ()
18 # endif
19 #endif
20 extern "C"
21 {
22  typedef char **rl_completion_func_t PARAMS((const char *, int, int));
23  typedef char *rl_compentry_func_t PARAMS((const char *, int));
24  extern char **rl_completion_matches PARAMS((const char *, rl_compentry_func_t *));
25  extern char *readline PARAMS((const char *));
26  extern void add_history PARAMS((const char *));
27  extern rl_completion_func_t *rl_attempted_completion_function;
28  extern char *rl_line_buffer;
31 }
32 #endif //_READLINE_H_
33 
34 namespace ROOT {
35  namespace R {
36  char *R_completion_generator(const char *text, int state);
37  char **R_custom_completion(const char *text, int start, int end);
38  //Readline variables.
39  extern SEXP
47  extern SEXP rcompgen_rho;
48  }
49 }
50 
51 #endif
SEXP RComp_assignTokenSym
SEXP RComp_getFileCompSym
SEXP RComp_assignBufferSym
#define PARAMS(protos)
Definition: TRCompletion.h:17
char * R_completion_generator(const char *text, int state)
SEXP RComp_completeTokenSym
int rl_completion_append_character
SEXP RComp_assignStartSym
char * rl_line_buffer
rl_completion_func_t * rl_attempted_completion_function
SEXP RComp_retrieveCompsSym
char ** R_custom_completion(const char *text, int start, int end)
SEXP rcompgen_rho
TText * text
SEXP RComp_assignEndSym
int rl_attempted_completion_over
TRandom3 R
a TMatrixD.
Definition: testIO.cxx:28