commit 0f48dce43c765d06acbef6d256eff21681de040c
Author: Hiroo HAYASHI <24754036+hirooih@users.noreply.github.com>
Date:   Sun Jun 9 10:50:58 2024 +0900

    add main()
    
    - merge rlbasic.c
    - call rl_bind_key_in_map()
    
    Signed-off-by: Hiroo HAYASHI <24754036+hirooih@users.noreply.github.com>

diff --git a/examples/manexamp.c b/examples/manexamp.c
index c8e11d5..baf4d41 100644
--- a/examples/manexamp.c
+++ b/examples/manexamp.c
@@ -137,3 +137,23 @@ invert_case_line (int count, int key)
   rl_point = end - direction;
   return 0;
 }
+
+int main(int c, char **v) {
+  char *input;
+
+#ifdef HAVE_SETLOCALE
+  setlocale (LC_ALL, "");
+#endif
+
+  rl_initialize();
+  rl_bind_key_in_map('u', invert_case_line, emacs_meta_keymap);
+
+  for (;;) {
+    input = readline("> ");
+    if (input == 0) break;
+    printf("%s\n", input);
+    if (strcmp(input, "exit") == 0) break;
+    free(input);
+  }
+  exit(0);
+}
commit 78a7d913069b361767c2a2b0c08f6e5b5efb58f8
Author: Hiroo HAYASHI <24754036+hirooih@users.noreply.github.com>
Date:   Sun Jun 9 10:55:23 2024 +0900

    add manexamp on Makefile.in
    
    Signed-off-by: Hiroo HAYASHI <24754036+hirooih@users.noreply.github.com>

diff --git a/examples/Makefile.in b/examples/Makefile.in
index 20a9896..aa238b6 100644
--- a/examples/Makefile.in
+++ b/examples/Makefile.in
@@ -79,11 +79,11 @@ EXECUTABLES = fileman$(EXEEXT) rltest$(EXEEXT) rl$(EXEEXT) rlcat$(EXEEXT) \
 		rlevent$(EXEEXT) rlversion$(EXEEXT) histexamp$(EXEEXT) \
 		rl-callbacktest$(EXEEXT) rlbasic$(EXEEXT) \
 		hist_erasedups$(EXEEXT) hist_purgecmd$(EXEEXT) \
-		rlkeymaps$(EXEEXT) rl-timeout$(EXEEXT)
+		rlkeymaps$(EXEEXT) rl-timeout$(EXEEXT) manexamp$(EXEEXT)
 
 OBJECTS = fileman.o rltest.o rl.o rlevent.o rlcat.o rlversion.o histexamp.o \
 	  rl-callbacktest.o rlbasic.o hist_erasedups.o hist_purgecmd.o \
-	  rlkeymaps.o rl-timeout.o
+	  rlkeymaps.o rl-timeout.o manexamp.o
 
 OTHEREXE = rlptytest$(EXEEXT)
 OTHEROBJ = rlptytest.o
@@ -154,6 +154,9 @@ rl-timeout$(EXEEXT): rl-timeout.o $(READLINE_LIB)
 rlversion$(EXEEXT): rlversion.o $(READLINE_LIB)
 	$(CC) $(LDFLAGS) -o $@ rlversion.o $(READLINE_LIB) $(TERMCAP_LIB)
 
+manexamp$(EXEEXT): manexamp.o $(READLINE_LIB)
+	$(CC) $(LDFLAGS) -o $@ manexamp.o $(READLINE_LIB) $(TERMCAP_LIB)
+
 histexamp$(EXEEXT): histexamp.o $(HISTORY_LIB)
 	$(CC) $(LDFLAGS) -o $@ histexamp.o -lhistory $(TERMCAP_LIB)
 
