OSDN Git Service

Delete unused source files for 1.98d.
[ffftp/ffftp.git] / putty / TESTBACK.C
diff --git a/putty/TESTBACK.C b/putty/TESTBACK.C
deleted file mode 100644 (file)
index 0dd26d9..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-/* $Id: testback.c 7628 2007-06-30 21:56:44Z jacob $ */\r
-/*\r
- * Copyright (c) 1999 Simon Tatham\r
- * Copyright (c) 1999 Ben Harris\r
- * All rights reserved.\r
- *\r
- * Permission is hereby granted, free of charge, to any person\r
- * obtaining a copy of this software and associated documentation\r
- * files (the "Software"), to deal in the Software without\r
- * restriction, including without limitation the rights to use,\r
- * copy, modify, merge, publish, distribute, sublicense, and/or\r
- * sell copies of the Software, and to permit persons to whom the\r
- * Software is furnished to do so, subject to the following\r
- * conditions:\r
- * \r
- * The above copyright notice and this permission notice shall be\r
- * included in all copies or substantial portions of the Software.\r
- * \r
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
- * NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR\r
- * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF\r
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
- * SOFTWARE.\r
- */\r
-\r
-/* PuTTY test backends */\r
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-\r
-#include "putty.h"\r
-\r
-static const char *null_init(void *, void **, Config *, char *, int, char **,\r
-                            int, int);\r
-static const char *loop_init(void *, void **, Config *, char *, int, char **,\r
-                            int, int);\r
-static void null_free(void *);\r
-static void loop_free(void *);\r
-static void null_reconfig(void *, Config *);\r
-static int null_send(void *, char *, int);\r
-static int loop_send(void *, char *, int);\r
-static int null_sendbuffer(void *);\r
-static void null_size(void *, int, int);\r
-static void null_special(void *, Telnet_Special);\r
-static const struct telnet_special *null_get_specials(void *handle);\r
-static int null_connected(void *);\r
-static int null_exitcode(void *);\r
-static int null_sendok(void *);\r
-static int null_ldisc(void *, int);\r
-static void null_provide_ldisc(void *, void *);\r
-static void null_provide_logctx(void *, void *);\r
-static void null_unthrottle(void *, int);\r
-static int null_cfg_info(void *);\r
-\r
-Backend null_backend = {\r
-    null_init, null_free, null_reconfig, null_send, null_sendbuffer, null_size,\r
-    null_special, null_get_specials, null_connected, null_exitcode, null_sendok,\r
-    null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle,\r
-    null_cfg_info, "null", -1, 0\r
-};\r
-\r
-Backend loop_backend = {\r
-    loop_init, loop_free, null_reconfig, loop_send, null_sendbuffer, null_size,\r
-    null_special, null_get_specials, null_connected, null_exitcode, null_sendok,\r
-    null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle,\r
-    null_cfg_info, "loop", -1, 0\r
-};\r
-\r
-struct loop_state {\r
-    Terminal *term;\r
-};\r
-\r
-static const char *null_init(void *frontend_handle, void **backend_handle,\r
-                            Config *cfg, char *host, int port,\r
-                            char **realhost, int nodelay, int keepalive) {\r
-\r
-    return NULL;\r
-}\r
-\r
-static const char *loop_init(void *frontend_handle, void **backend_handle,\r
-                            Config *cfg, char *host, int port,\r
-                            char **realhost, int nodelay, int keepalive) {\r
-    struct loop_state *st = snew(struct loop_state);\r
-\r
-    st->term = frontend_handle;\r
-    *backend_handle = st;\r
-    return NULL;\r
-}\r
-\r
-static void null_free(void *handle)\r
-{\r
-\r
-}\r
-\r
-static void loop_free(void *handle)\r
-{\r
-\r
-    sfree(handle);\r
-}\r
-\r
-static void null_reconfig(void *handle, Config *cfg) {\r
-\r
-}\r
-\r
-static int null_send(void *handle, char *buf, int len) {\r
-\r
-    return 0;\r
-}\r
-\r
-static int loop_send(void *handle, char *buf, int len) {\r
-    struct loop_state *st = handle;\r
-\r
-    return from_backend(st->term, 0, buf, len);\r
-}\r
-\r
-static int null_sendbuffer(void *handle) {\r
-\r
-    return 0;\r
-}\r
-\r
-static void null_size(void *handle, int width, int height) {\r
-\r
-}\r
-\r
-static void null_special(void *handle, Telnet_Special code) {\r
-\r
-}\r
-\r
-static const struct telnet_special *null_get_specials (void *handle) {\r
-\r
-    return NULL;\r
-}\r
-\r
-static int null_connected(void *handle) {\r
-\r
-    return 0;\r
-}\r
-\r
-static int null_exitcode(void *handle) {\r
-\r
-    return 0;\r
-}\r
-\r
-static int null_sendok(void *handle) {\r
-\r
-    return 1;\r
-}\r
-\r
-static void null_unthrottle(void *handle, int backlog) {\r
-\r
-}\r
-\r
-static int null_ldisc(void *handle, int option) {\r
-\r
-    return 0;\r
-}\r
-\r
-static void null_provide_ldisc (void *handle, void *ldisc) {\r
-\r
-}\r
-\r
-static void null_provide_logctx(void *handle, void *logctx) {\r
-\r
-}\r
-\r
-static int null_cfg_info(void *handle)\r
-{\r
-    return 0;\r
-}\r
-\r
-\r
-/*\r
- * Emacs magic:\r
- * Local Variables:\r
- * c-file-style: "simon"\r
- * End:\r
- */\r