/*
  Copyright (C) 2001-2009, Parrot Foundation.
  $Id: readline_c.in 42918 2009-12-06 15:03:28Z fperrad $
*/

#include <stdio.h>
#include <stdlib.h>
/* #include <readline/readline.h>
  #include <readline/history.h>
*/

/* Since we are not #include:ing <readline/readline.h> we cannot know
 * the typedefs or prototypes of readline.  Let's boldly make stuff up
 * and even lie for the sake of this test. */

#ifdef __cplusplus
extern "C" {
#endif
    char * readline(const char *);
    void * rl_get_keymap(void);
#ifdef __cplusplus
}
#endif

int
main(int argc, char *argv[])
{
    /* Cannot use readline() since we will actually run this
     * and readline() would hang waiting for input.
     * Instead, we use rl_get_keymap(). */
#if 0
    char * r = readline("hello polly>");
#endif
    void* keymap = rl_get_keymap();
    puts("1");
    return EXIT_SUCCESS;
}

/*
 * Local variables:
 *   c-file-style: "parrot"
 * End:
 * vim: expandtab shiftwidth=4:
 */
