t* gopherproxy-c customized
       
   URI git clone git://git.codevoid.de/gopherproxy-c-sdk
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit ba4a6bfff30969bbea9529f7852cd4b929421fbe
   DIR parent b8a14c3c0df0a4d9ad6eca8bc772ca0140a0e897
   URI Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Fri, 17 Aug 2018 16:00:07 +0200
       
       display more types as documented in the RFC, distinguish reserved types
       
       Diffstat:
         M gopherproxy.c                       |      16 ++++++++++++++--
       
       1 file changed, 14 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/gopherproxy.c b/gopherproxy.c
       t@@ -145,14 +145,26 @@ typestr(int c)
                switch (c) {
                case '0': return "  TEXT";
                case '1': return "   DIR";
       +        case '2': return "   CSO";
       +        case '3': return "   ERR";
       +        case '4': return "   MAC";
       +        case '5': return "   DOS";
       +        case '6': return " UUENC";
                case '7': return "SEARCH";
       +        case '8': return "TELNET";
                case '9': return "   BIN";
                case 'g': return "   GIF";
                case 'h': return "  HTML"; /* non-standard */
                case 's': return "   SND"; /* non-standard */
       -        case 'A': return " AUDIO"; /* non-standard */
       +        case '+': return "MIRROR";
                case 'I': return "   IMG";
       -        default:  return "      ";
       +        case 'T': return "TN3270";
       +        default:
       +                /* "Characters '0' through 'Z' are reserved." (ASCII) */
       +                if (c >= '0' && c <= 'Z')
       +                        return "RESERV";
       +                else
       +                        return "      ";
                }
        }