Fixes warnings when build with -Wall -Wno-unused-results

>From 37d6da748ddd9adfb156b4c3fec43b7a8bf0d45b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 17:32:50 +0100
Subject: [PATCH 01/12] =?UTF-8?q?Fix=20ansi.c:1368:27:=20warning:=20operatio?=
 =?UTF-8?q?n=20on=20=E2=80=98curr->w=5Fcharsets[2]=E2=80=99=20may=20be=20und?=
 =?UTF-8?q?efined?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/ansi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/ansi.c b/src/ansi.c
index 6a64095..d88e153 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -1365,7 +1365,7 @@ int c, intermediate;
                    break;
 # endif
                  curr->w_charsets[0] = curr->w_charsets[1] =
-                   curr->w_charsets[2] = curr->w_charsets[2] =
+                   curr->w_charsets[2] = curr->w_charsets[3] =
                    curr->w_FontL = curr->w_FontR = ASCII;
                  curr->w_Charset = 0;
                  curr->w_CharsetR = 2;
-- 
1.7.8.4


>From ccf53d25c3e24edadf804302332a50b822dbfe4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 17:40:37 +0100
Subject: [PATCH 02/12] Remove unused variables (reported with -Wall)

---
 src/display.c |    1 -
 src/process.c |    1 -
 src/resize.c  |    2 +-
 3 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/display.c b/src/display.c
index 5fa11cb..659f264 100644
--- a/src/display.c
+++ b/src/display.c
@@ -2123,7 +2123,6 @@ static int
 strlen_onscreen(unsigned char *c, unsigned char *end)
 {
   int len = 0;
-  char *s = c;
   while (*c && (!end || c < end))
     {
       int v, dec = 0;
diff --git a/src/process.c b/src/process.c
index dfa7c82..70d4b1f 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1154,7 +1154,6 @@ int key;
   char ch;
   struct display *odisplay = display;
   struct acluser *user;
-  struct layout *layout;
 
   user = display ? D_user : users;
   if (nr == RC_ILLEGAL)
diff --git a/src/resize.c b/src/resize.c
index 7516751..ec4742e 100644
--- a/src/resize.c
+++ b/src/resize.c
@@ -326,7 +326,7 @@ kaablamm()
 /* Kills non-resizable layers. */
 #define RESIZE_OR_KILL_LAYERS(l, wi, he) do \
   {    \
-    struct layer *_last = NULL, *_iter;        \
+    struct layer *_last = NULL;        \
     flayer = (l);      \
     while (flayer->l_next)     \
       {        \
-- 
1.7.8.4


>From db40b607f737603335433cf3ef782f8fcb5ebc80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 17:45:48 +0100
Subject: [PATCH 03/12] Should return 0 on failure

---
 src/list_window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/list_window.c b/src/list_window.c
index 4fd65d0..2242de9 100644
--- a/src/list_window.c
+++ b/src/list_window.c
@@ -306,7 +306,7 @@ gl_Window_input(struct ListData *ldata, char **inp, int 
*len)
        break;
 #ifdef MULTIUSER
       if (display && AclCheckPermWin(D_user, ACL_READ, win))
-       return;         /* Not allowed to switch to this window. */
+       return 0;               /* Not allowed to switch to this window. */
 #endif
       if (WLIST_FOR_GROUP(wdata))
        SwitchWindow(win->w_number);
-- 
1.7.8.4


>From a5ea05351ed28def746cb9f77e0c68ffd6a7ceaa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 18:05:01 +0100
Subject: [PATCH 04/12] Return number of lines in footer just like in header

---
 src/list_display.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/list_display.c b/src/list_display.c
index 4e740c1..79ab361 100644
--- a/src/list_display.c
+++ b/src/list_display.c
@@ -77,6 +77,7 @@ static int
 gl_Display_footer(struct ListData *ldata)
 {
   centerline("[Press Space to refresh; Return to end.]", flayer->l_height - 1);
+  return 1;
 }
 
 static int
-- 
1.7.8.4


>From c2917a35806832c2d7d24f4d1fdb1dc066d25a5f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 18:28:15 +0100
Subject: [PATCH 05/12] Fix implicit function declarations

---
 src/extern.h       |    3 +++
 src/layout.h       |    3 +++
 src/list_display.c |    1 +
 3 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/extern.h b/src/extern.h
index 2b9722e..281ee05 100644
--- a/src/extern.h
+++ b/src/extern.h
@@ -344,6 +344,7 @@ extern void  ReceiveMsg __P((void));
 extern void  SendCreateMsg __P((char *, struct NewWindow *));
 extern int   SendErrorMsg __P((char *, char *));
 extern int   SendAttachMsg __P((int, struct msg *, int));
+extern void  ReceiveRaw __P((int));
 
 /* misc.c */
 extern char *SaveStr __P((const char *));
@@ -452,6 +453,8 @@ extern void  LMsg __P(());
 extern void  KillLayerChain __P((struct layer *));
 extern int   InitOverlayPage __P((int, struct LayFuncs *, int));
 extern void  ExitOverlayPage __P((void));
+extern int   LayProcessMouse __P((struct layer *, unsigned char));
+extern int   LayProcessMouseSwitch __P((struct layer *, int));
 
 /* teln.c */
 #ifdef BUILTIN_TELNET
diff --git a/src/layout.h b/src/layout.h
index 1814226..5f190bd 100644
--- a/src/layout.h
+++ b/src/layout.h
@@ -52,6 +52,9 @@ extern void  SaveLayout __P((char *, struct canvas *));
 extern void  ShowLayouts __P((int));
 extern struct layout *FindLayout __P((char *));
 extern void  UpdateLayoutCanvas __P((struct canvas *, struct win *));
+extern struct layout *CreateLayout __P((char *, int));
+extern void  RemoveLayout __P((struct layout *));
+extern int   LayoutDumpCanvas __P((struct canvas *, char *));
 
 extern void RenameLayout __P((struct layout *, const char *));
 extern int RenumberLayout __P((struct layout *, int));
diff --git a/src/list_display.c b/src/list_display.c
index 79ab361..113bc1c 100644
--- a/src/list_display.c
+++ b/src/list_display.c
@@ -34,6 +34,7 @@
 #include "config.h"
 
 #include "screen.h"
+#include "extern.h"
 #include "list_generic.h"
 
 #ifdef MULTI
-- 
1.7.8.4


>From f4eda41ed16bd7548541923ceb9c3531ec372a47 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 18:33:28 +0100
Subject: [PATCH 06/12] make LayProcessMouseSwitch return void

no piece of code expects it to return anything and -Wall expects return
value with int, so change it to void
---
 src/extern.h |    2 +-
 src/layer.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/extern.h b/src/extern.h
index 281ee05..b8cead4 100644
--- a/src/extern.h
+++ b/src/extern.h
@@ -454,7 +454,7 @@ extern void  KillLayerChain __P((struct layer *));
 extern int   InitOverlayPage __P((int, struct LayFuncs *, int));
 extern void  ExitOverlayPage __P((void));
 extern int   LayProcessMouse __P((struct layer *, unsigned char));
-extern int   LayProcessMouseSwitch __P((struct layer *, int));
+extern void  LayProcessMouseSwitch __P((struct layer *, int));
 
 /* teln.c */
 #ifdef BUILTIN_TELNET
diff --git a/src/layer.c b/src/layer.c
index aeea318..1ae7972 100644
--- a/src/layer.c
+++ b/src/layer.c
@@ -1197,7 +1197,7 @@ LayProcessMouse(struct layer *l, unsigned char ch)
   return (l->l_mouseevent.len == sizeof(l->l_mouseevent.buffer));
 }
 
-int
+void
 LayProcessMouseSwitch(struct layer *l, int s)
 {
   if ((l->l_mouseevent.start = s))
-- 
1.7.8.4


>From f11d3d9480bcdaef9626c0577f178925ec99c868 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 18:54:38 +0100
Subject: [PATCH 07/12] Fix uninitialized variables

---
 src/mark.c    |    1 +
 src/process.c |    2 +-
 src/screen.c  |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mark.c b/src/mark.c
index 35c2178..80c605f 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -158,6 +158,7 @@ nextchar(int *xp, int *yp, int direction, char target, int 
num)
   debug("nextchar\n");
  
   x = *xp;
+  step = 1;
   adjust = 0;
   width = fore->w_width;
   displayed_line = (char *)WIN(*yp) -> image;
diff --git a/src/process.c b/src/process.c
index 70d4b1f..66d3d1f 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3301,7 +3301,7 @@ int key;
           int newnr, fl = 0, kf = 0, af = 0, df = 0, mf = 0;
          struct display *odisp = display;
          int used = 0;
-          struct kmap_ext *kme;
+          struct kmap_ext *kme = NULL;
 
          for (; *args && **args == '-'; args++, argl++)
            {
diff --git a/src/screen.c b/src/screen.c
index 3dde3b4..732efa6 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -2517,7 +2517,7 @@ int rec;
   int truncpos = -1;
   int truncper = 0;
   int trunclong = 0;
-  struct backtick *bt;
+  struct backtick *bt = NULL;
  
   if (winmsg_numrend >= 0)
     winmsg_numrend = 0;
-- 
1.7.8.4


>From b29dae8912f64307a49386448ae62b808334ba32 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 19:06:03 +0100
Subject: [PATCH 08/12] unused function forward declaration

---
 src/display.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/display.c b/src/display.c
index 659f264..f805c79 100644
--- a/src/display.c
+++ b/src/display.c
@@ -51,7 +51,6 @@ static void disp_writeev_eagain __P((struct event *, char *));
 static void disp_status_fn __P((struct event *, char *));
 static void disp_hstatus_fn __P((struct event *, char *));
 static void disp_blocked_fn __P((struct event *, char *));
-static void cv_winid_fn __P((struct event *, char *));
 #ifdef MAPKEYS
 static void disp_map_fn __P((struct event *, char *));
 #endif
-- 
1.7.8.4


>From 95993345a38e31b2a0eb67b6363bbfea71f1b103 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 19:11:52 +0100
Subject: [PATCH 09/12] add the same ifdefs as when used

---
 src/window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/window.c b/src/window.c
index 8509b7d..1c6f5b6 100644
--- a/src/window.c
+++ b/src/window.c
@@ -112,7 +112,9 @@ struct win **wtab;  /* window table */
 int VerboseCreate = 0;         /* XXX move this to user.h */
 
 char DefaultShell[] = "/bin/sh";
+#ifndef HAVE_EXECVPE
 static char DefaultPath[] = ":/usr/ucb:/bin:/usr/bin";
+#endif
 
 /* keep this in sync with the structure definition in window.h */
 struct NewWindow nwin_undef   = 
-- 
1.7.8.4


>From fe958ea34f30cae82fcad3ec051faaf29d5356d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 19:33:52 +0100
Subject: [PATCH 10/12] cast stuff which need casting

---
 src/display.c |    2 +-
 src/process.c |    2 +-
 src/screen.c  |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/display.c b/src/display.c
index f805c79..94c05f1 100644
--- a/src/display.c
+++ b/src/display.c
@@ -2153,7 +2153,7 @@ int start, max;
      probably take way more time. So this will have to do for now. */
   if (D_encoding == UTF8)
     {
-      int chars = strlen_onscreen(s + start, s + max);
+      int chars = strlen_onscreen((unsigned char *)(s + start), (unsigned char 
*)(s + max));
       D_encoding = 0;
       PutWinMsg(s, start, max);
       D_encoding = UTF8;
diff --git a/src/process.c b/src/process.c
index 66d3d1f..d821100 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3769,7 +3769,7 @@ int key;
                  else
                    {
                      int t;
-                     unsigned char *s = args[1];
+                     unsigned char *s = (unsigned char *)args[1];
                      digraphs[i].value = 0;
                      while (*s)
                        {
diff --git a/src/screen.c b/src/screen.c
index 732efa6..b3c85d4 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -819,8 +819,8 @@ char **av;
           char *newbuf = malloc(3 * len);
           if (!newbuf)
             Panic(0, "%s", strnomem);
-          newsz = RecodeBuf(nwin_options.aka, len,
-                            nwin_options.encoding, 0, newbuf);
+          newsz = RecodeBuf((unsigned char *)nwin_options.aka, len,
+                            nwin_options.encoding, 0, (unsigned char *)newbuf);
           newbuf[newsz] = '\0';
           nwin_options.aka = newbuf;
         }
-- 
1.7.8.4


>From 92ec06cb70c68f33a125fd8347640fb7b4bf37f2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 19:41:09 +0100
Subject: [PATCH 11/12] declare data in struct according to it's definition

---
 src/process.c |  342 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 171 insertions(+), 171 deletions(-)

diff --git a/src/process.c b/src/process.c
index d821100..70e59f3 100644
--- a/src/process.c
+++ b/src/process.c
@@ -250,177 +250,177 @@ struct digraph
 
 /* digraph table taken from old vim and rfc1345 */
 static struct digraph digraphs[MAX_DIGRAPH + 1] = {
-    {' ', ' ', 160},   /* � */
-    {'N', 'S', 160},   /* � */
-    {'~', '!', 161},   /* � */
-    {'!', '!', 161},   /* � */
-    {'!', 'I', 161},   /* � */
-    {'c', '|', 162},   /* � */
-    {'c', 't', 162},   /* � */
-    {'$', '$', 163},   /* � */
-    {'P', 'd', 163},   /* � */
-    {'o', 'x', 164},   /* � */
-    {'C', 'u', 164},   /* � */
-    {'C', 'u', 164},   /* � */
-    {'E', 'u', 164},   /* � */
-    {'Y', '-', 165},   /* � */
-    {'Y', 'e', 165},   /* � */
-    {'|', '|', 166},   /* � */
-    {'B', 'B', 166},   /* � */
-    {'p', 'a', 167},   /* � */
-    {'S', 'E', 167},   /* � */
-    {'"', '"', 168},   /* � */
-    {'\'', ':', 168},  /* � */
-    {'c', 'O', 169},   /* � */
-    {'C', 'o', 169},   /* � */
-    {'a', '-', 170},   /* � */
-    {'<', '<', 171},   /* � */
-    {'-', ',', 172},   /* � */
-    {'N', 'O', 172},   /* � */
-    {'-', '-', 173},   /* � */
-    {'r', 'O', 174},   /* � */
-    {'R', 'g', 174},   /* � */
-    {'-', '=', 175},   /* � */
-    {'\'', 'm', 175},  /* � */
-    {'~', 'o', 176},   /* � */
-    {'D', 'G', 176},   /* � */
-    {'+', '-', 177},   /* � */
-    {'2', '2', 178},   /* � */
-    {'2', 'S', 178},   /* � */
-    {'3', '3', 179},   /* � */
-    {'3', 'S', 179},   /* � */
-    {'\'', '\'', 180}, /* � */
-    {'j', 'u', 181},   /* � */
-    {'M', 'y', 181},   /* � */
-    {'p', 'p', 182},   /* � */
-    {'P', 'I', 182},   /* � */
-    {'~', '.', 183},   /* � */
-    {'.', 'M', 183},   /* � */
-    {',', ',', 184},   /* � */
-    {'\'', ',', 184},  /* � */
-    {'1', '1', 185},   /* � */
-    {'1', 'S', 185},   /* � */
-    {'o', '-', 186},   /* � */
-    {'>', '>', 187},   /* � */
-    {'1', '4', 188},   /* � */
-    {'1', '2', 189},   /* � */
-    {'3', '4', 190},   /* � */
-    {'~', '?', 191},   /* � */
-    {'?', '?', 191},   /* � */
-    {'?', 'I', 191},   /* � */
-    {'A', '`', 192},   /* � */
-    {'A', '!', 192},   /* � */
-    {'A', '\'', 193},  /* � */
-    {'A', '^', 194},   /* � */
-    {'A', '>', 194},   /* � */
-    {'A', '~', 195},   /* � */
-    {'A', '?', 195},   /* � */
-    {'A', '"', 196},   /* � */
-    {'A', ':', 196},   /* � */
-    {'A', '@', 197},   /* � */
-    {'A', 'A', 197},   /* � */
-    {'A', 'E', 198},   /* � */
-    {'C', ',', 199},   /* � */
-    {'E', '`', 200},   /* � */
-    {'E', '!', 200},   /* � */
-    {'E', '\'', 201},  /* � */
-    {'E', '^', 202},   /* � */
-    {'E', '>', 202},   /* � */
-    {'E', '"', 203},   /* � */
-    {'E', ':', 203},   /* � */
-    {'I', '`', 204},   /* � */
-    {'I', '!', 204},   /* � */
-    {'I', '\'', 205},  /* � */
-    {'I', '^', 206},   /* � */
-    {'I', '>', 206},   /* � */
-    {'I', '"', 207},   /* � */
-    {'I', ':', 207},   /* � */
-    {'D', '-', 208},   /* � */
-    {'N', '~', 209},   /* � */
-    {'N', '?', 209},   /* � */
-    {'O', '`', 210},   /* � */
-    {'O', '!', 210},   /* � */
-    {'O', '\'', 211},  /* � */
-    {'O', '^', 212},   /* � */
-    {'O', '>', 212},   /* � */
-    {'O', '~', 213},   /* � */
-    {'O', '?', 213},   /* � */
-    {'O', '"', 214},   /* � */
-    {'O', ':', 214},   /* � */
-    {'/', '\\', 215},  /* � */
-    {'*', 'x', 215},   /* � */
-    {'O', '/', 216},   /* � */
-    {'U', '`', 217},   /* � */
-    {'U', '!', 217},   /* � */
-    {'U', '\'', 218},  /* � */
-    {'U', '^', 219},   /* � */
-    {'U', '>', 219},   /* � */
-    {'U', '"', 220},   /* � */
-    {'U', ':', 220},   /* � */
-    {'Y', '\'', 221},  /* � */
-    {'I', 'p', 222},   /* � */
-    {'T', 'H', 222},   /* � */
-    {'s', 's', 223},   /* � */
-    {'s', '"', 223},   /* � */
-    {'a', '`', 224},   /* � */
-    {'a', '!', 224},   /* � */
-    {'a', '\'', 225},  /* � */
-    {'a', '^', 226},   /* � */
-    {'a', '>', 226},   /* � */
-    {'a', '~', 227},   /* � */
-    {'a', '?', 227},   /* � */
-    {'a', '"', 228},   /* � */
-    {'a', ':', 228},   /* � */
-    {'a', 'a', 229},   /* � */
-    {'a', 'e', 230},   /* � */
-    {'c', ',', 231},   /* � */
-    {'e', '`', 232},   /* � */
-    {'e', '!', 232},   /* � */
-    {'e', '\'', 233},  /* � */
-    {'e', '^', 234},   /* � */
-    {'e', '>', 234},   /* � */
-    {'e', '"', 235},   /* � */
-    {'e', ':', 235},   /* � */
-    {'i', '`', 236},   /* � */
-    {'i', '!', 236},   /* � */
-    {'i', '\'', 237},  /* � */
-    {'i', '^', 238},   /* � */
-    {'i', '>', 238},   /* � */
-    {'i', '"', 239},   /* � */
-    {'i', ':', 239},   /* � */
-    {'d', '-', 240},   /* � */
-    {'n', '~', 241},   /* � */
-    {'n', '?', 241},   /* � */
-    {'o', '`', 242},   /* � */
-    {'o', '!', 242},   /* � */
-    {'o', '\'', 243},  /* � */
-    {'o', '^', 244},   /* � */
-    {'o', '>', 244},   /* � */
-    {'o', '~', 245},   /* � */
-    {'o', '?', 245},   /* � */
-    {'o', '"', 246},   /* � */
-    {'o', ':', 246},   /* � */
-    {':', '-', 247},   /* � */
-    {'o', '/', 248},   /* � */
-    {'u', '`', 249},   /* � */
-    {'u', '!', 249},   /* � */
-    {'u', '\'', 250},  /* � */
-    {'u', '^', 251},   /* � */
-    {'u', '>', 251},   /* � */
-    {'u', '"', 252},   /* � */
-    {'u', ':', 252},   /* � */
-    {'y', '\'', 253},  /* � */
-    {'i', 'p', 254},   /* � */
-    {'t', 'h', 254},   /* � */
-    {'y', '"', 255},   /* � */
-    {'y', ':', 255},   /* � */
-    {'"', '[', 196},   /* � */
-    {'"', '\\', 214},  /* � */
-    {'"', ']', 220},   /* � */
-    {'"', '{', 228},   /* � */
-    {'"', '|', 246},   /* � */
-    {'"', '}', 252},   /* � */
-    {'"', '~', 223}    /* � */
+    {{' ', ' '}, 160}, /* � */
+    {{'N', 'S'}, 160}, /* � */
+    {{'~', '!'}, 161}, /* � */
+    {{'!', '!'}, 161}, /* � */
+    {{'!', 'I'}, 161}, /* � */
+    {{'c', '|'}, 162}, /* � */
+    {{'c', 't'}, 162}, /* � */
+    {{'$', '$'}, 163}, /* � */
+    {{'P', 'd'}, 163}, /* � */
+    {{'o', 'x'}, 164}, /* � */
+    {{'C', 'u'}, 164}, /* � */
+    {{'C', 'u'}, 164}, /* � */
+    {{'E', 'u'}, 164}, /* � */
+    {{'Y', '-'}, 165}, /* � */
+    {{'Y', 'e'}, 165}, /* � */
+    {{'|', '|'}, 166}, /* � */
+    {{'B', 'B'}, 166}, /* � */
+    {{'p', 'a'}, 167}, /* � */
+    {{'S', 'E'}, 167}, /* � */
+    {{'"', '"'}, 168}, /* � */
+    {{'\'', ':'}, 168},        /* � */
+    {{'c', 'O'}, 169}, /* � */
+    {{'C', 'o'}, 169}, /* � */
+    {{'a', '-'}, 170}, /* � */
+    {{'<', '<'}, 171}, /* � */
+    {{'-', ','}, 172}, /* � */
+    {{'N', 'O'}, 172}, /* � */
+    {{'-', '-'}, 173}, /* � */
+    {{'r', 'O'}, 174}, /* � */
+    {{'R', 'g'}, 174}, /* � */
+    {{'-', '='}, 175}, /* � */
+    {{'\'', 'm'}, 175},        /* � */
+    {{'~', 'o'}, 176}, /* � */
+    {{'D', 'G'}, 176}, /* � */
+    {{'+', '-'}, 177}, /* � */
+    {{'2', '2'}, 178}, /* � */
+    {{'2', 'S'}, 178}, /* � */
+    {{'3', '3'}, 179}, /* � */
+    {{'3', 'S'}, 179}, /* � */
+    {{'\'', '\''}, 180},       /* � */
+    {{'j', 'u'}, 181}, /* � */
+    {{'M', 'y'}, 181}, /* � */
+    {{'p', 'p'}, 182}, /* � */
+    {{'P', 'I'}, 182}, /* � */
+    {{'~', '.'}, 183}, /* � */
+    {{'.', 'M'}, 183}, /* � */
+    {{',', ','}, 184}, /* � */
+    {{'\'', ','}, 184},        /* � */
+    {{'1', '1'}, 185}, /* � */
+    {{'1', 'S'}, 185}, /* � */
+    {{'o', '-'}, 186}, /* � */
+    {{'>', '>'}, 187}, /* � */
+    {{'1', '4'}, 188}, /* � */
+    {{'1', '2'}, 189}, /* � */
+    {{'3', '4'}, 190}, /* � */
+    {{'~', '?'}, 191}, /* � */
+    {{'?', '?'}, 191}, /* � */
+    {{'?', 'I'}, 191}, /* � */
+    {{'A', '`'}, 192}, /* � */
+    {{'A', '!'}, 192}, /* � */
+    {{'A', '\''}, 193},        /* � */
+    {{'A', '^'}, 194}, /* � */
+    {{'A', '>'}, 194}, /* � */
+    {{'A', '~'}, 195}, /* � */
+    {{'A', '?'}, 195}, /* � */
+    {{'A', '"'}, 196}, /* � */
+    {{'A', ':'}, 196}, /* � */
+    {{'A', '@'}, 197}, /* � */
+    {{'A', 'A'}, 197}, /* � */
+    {{'A', 'E'}, 198}, /* � */
+    {{'C', ','}, 199}, /* � */
+    {{'E', '`'}, 200}, /* � */
+    {{'E', '!'}, 200}, /* � */
+    {{'E', '\''}, 201},        /* � */
+    {{'E', '^'}, 202}, /* � */
+    {{'E', '>'}, 202}, /* � */
+    {{'E', '"'}, 203}, /* � */
+    {{'E', ':'}, 203}, /* � */
+    {{'I', '`'}, 204}, /* � */
+    {{'I', '!'}, 204}, /* � */
+    {{'I', '\''}, 205},        /* � */
+    {{'I', '^'}, 206}, /* � */
+    {{'I', '>'}, 206}, /* � */
+    {{'I', '"'}, 207}, /* � */
+    {{'I', ':'}, 207}, /* � */
+    {{'D', '-'}, 208}, /* � */
+    {{'N', '~'}, 209}, /* � */
+    {{'N', '?'}, 209}, /* � */
+    {{'O', '`'}, 210}, /* � */
+    {{'O', '!'}, 210}, /* � */
+    {{'O', '\''}, 211},        /* � */
+    {{'O', '^'}, 212}, /* � */
+    {{'O', '>'}, 212}, /* � */
+    {{'O', '~'}, 213}, /* � */
+    {{'O', '?'}, 213}, /* � */
+    {{'O', '"'}, 214}, /* � */
+    {{'O', ':'}, 214}, /* � */
+    {{'/', '\\'}, 215},        /* � */
+    {{'*', 'x'}, 215}, /* � */
+    {{'O', '/'}, 216}, /* � */
+    {{'U', '`'}, 217}, /* � */
+    {{'U', '!'}, 217}, /* � */
+    {{'U', '\''}, 218},        /* � */
+    {{'U', '^'}, 219}, /* � */
+    {{'U', '>'}, 219}, /* � */
+    {{'U', '"'}, 220}, /* � */
+    {{'U', ':'}, 220}, /* � */
+    {{'Y', '\''}, 221},        /* � */
+    {{'I', 'p'}, 222}, /* � */
+    {{'T', 'H'}, 222}, /* � */
+    {{'s', 's'}, 223}, /* � */
+    {{'s', '"'}, 223}, /* � */
+    {{'a', '`'}, 224}, /* � */
+    {{'a', '!'}, 224}, /* � */
+    {{'a', '\''}, 225},        /* � */
+    {{'a', '^'}, 226}, /* � */
+    {{'a', '>'}, 226}, /* � */
+    {{'a', '~'}, 227}, /* � */
+    {{'a', '?'}, 227}, /* � */
+    {{'a', '"'}, 228}, /* � */
+    {{'a', ':'}, 228}, /* � */
+    {{'a', 'a'}, 229}, /* � */
+    {{'a', 'e'}, 230}, /* � */
+    {{'c', ','}, 231}, /* � */
+    {{'e', '`'}, 232}, /* � */
+    {{'e', '!'}, 232}, /* � */
+    {{'e', '\''}, 233},        /* � */
+    {{'e', '^'}, 234}, /* � */
+    {{'e', '>'}, 234}, /* � */
+    {{'e', '"'}, 235}, /* � */
+    {{'e', ':'}, 235}, /* � */
+    {{'i', '`'}, 236}, /* � */
+    {{'i', '!'}, 236}, /* � */
+    {{'i', '\''}, 237},        /* � */
+    {{'i', '^'}, 238}, /* � */
+    {{'i', '>'}, 238}, /* � */
+    {{'i', '"'}, 239}, /* � */
+    {{'i', ':'}, 239}, /* � */
+    {{'d', '-'}, 240}, /* � */
+    {{'n', '~'}, 241}, /* � */
+    {{'n', '?'}, 241}, /* � */
+    {{'o', '`'}, 242}, /* � */
+    {{'o', '!'}, 242}, /* � */
+    {{'o', '\''}, 243},        /* � */
+    {{'o', '^'}, 244}, /* � */
+    {{'o', '>'}, 244}, /* � */
+    {{'o', '~'}, 245}, /* � */
+    {{'o', '?'}, 245}, /* � */
+    {{'o', '"'}, 246}, /* � */
+    {{'o', ':'}, 246}, /* � */
+    {{':', '-'}, 247}, /* � */
+    {{'o', '/'}, 248}, /* � */
+    {{'u', '`'}, 249}, /* � */
+    {{'u', '!'}, 249}, /* � */
+    {{'u', '\''}, 250},        /* � */
+    {{'u', '^'}, 251}, /* � */
+    {{'u', '>'}, 251}, /* � */
+    {{'u', '"'}, 252}, /* � */
+    {{'u', ':'}, 252}, /* � */
+    {{'y', '\''}, 253},        /* � */
+    {{'i', 'p'}, 254}, /* � */
+    {{'t', 'h'}, 254}, /* � */
+    {{'y', '"'}, 255}, /* � */
+    {{'y', ':'}, 255}, /* � */
+    {{'"', '['}, 196}, /* � */
+    {{'"', '\\'}, 214},        /* � */
+    {{'"', ']'}, 220}, /* � */
+    {{'"', '{'}, 228}, /* � */
+    {{'"', '|'}, 246}, /* � */
+    {{'"', '}'}, 252}, /* � */
+    {{'"', '~'}, 223}  /* � */
 };
 
 #define RESIZE_FLAG_H 1
-- 
1.7.8.4


>From 5efa6080ce60c9742fc5946fe59e1659eedd0659 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <am...@asmblr.net>
Date: Fri, 27 Jan 2012 20:01:32 +0100
Subject: [PATCH 12/12] if using execvpe then add -D_GNU_SOURCE to CFLAGS

fixes implicit execvpe declaration
---
 src/configure.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/configure.in b/src/configure.in
index 4184947..e9ca223 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -288,7 +288,8 @@ dnl execvpe
 AC_CHECKING(execvpe)
 AC_TRY_LINK(,[
     execvpe(0, 0, 0);
-], AC_DEFINE(HAVE_EXECVPE))
+], AC_DEFINE(HAVE_EXECVPE)
+CFLAGS="$CFLAGS -D_GNU_SOURCE")
 
 dnl
 dnl    ****  select()  ****
-- 
1.7.8.4

Reply via email to