Displaying 2 results from an estimated 2 matches for "eq_bracket".
2014 Oct 31
0
[PATCH 2/3] fish: basic tests for readline escaping
...ndex 0000000..b0b525b
--- /dev/null
+++ b/fish/test/testquoting.c
@@ -0,0 +1,120 @@
+#include <config.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <memory.h>
+
+#include <guestfs.h>
+#include <guestfs-internal-frontend.h>
+#include <rl.h>
+
+int
+eq_bracket (char *(*fn)(char*), char * in, char * out)
+{
+ char * q = fn(in);
+ return (q != NULL) && STREQ(q, out);
+}
+
+int
+test_empty_escape (void)
+{
+ return eq_bracket(bs_escape_filename, "", "");
+}
+
+int
+test_empty_unescape (void)
+{
+ return eq_bracket(bs_unescape...
2014 Oct 31
6
[PATCH 0/3] WIP readline escaping functions
From: Maros Zatko <hacxman@gmail.com>
Auxiliary functions for readline to support space character escaping
in filenames in future.
Escaping function is taken from fish.c (used to be parse_quoted_string)
plus its un-escaping counterpart. There are a few tests for both.
Maros Zatko (3):
fish: rl.{c,h} - escaping functions for readline
fish: basic tests for readline escaping
autotools: