Displaying 8 results from an estimated 8 matches for "nr_words".
2014 Oct 31
4
[PATCH] fish: fix dir completion on filesystems w/o dirent.d_type (RHBZ#1153844).
...tion(-)
diff --git a/fish/destpaths.c b/fish/destpaths.c
index f224106..df1ec00 100644
--- a/fish/destpaths.c
+++ b/fish/destpaths.c
@@ -191,7 +191,13 @@ complete_dest_paths_generator (const char *text, int state)
else {
words = w;
words[nr_words].name = p;
- words[nr_words].is_dir = dirents->val[i].ftyp == 'd';
+ if (dirents->val[i].ftyp == 'u'
+ || dirents->val[i].ftyp == '?') {
+ int is_dir = guestfs_is_dir_opts (g, words[nr...
2014 Oct 31
0
Re: [PATCH] fish: fix dir completion on filesystems w/o dirent.d_type (RHBZ#1153844).
...s.c b/fish/destpaths.c
> index f224106..df1ec00 100644
> --- a/fish/destpaths.c
> +++ b/fish/destpaths.c
> @@ -191,7 +191,13 @@ complete_dest_paths_generator (const char *text, int state)
> else {
> words = w;
> words[nr_words].name = p;
> - words[nr_words].is_dir = dirents->val[i].ftyp == 'd';
> + if (dirents->val[i].ftyp == 'u'
> + || dirents->val[i].ftyp == '?') {
> + int is_dir = guestfs_is_d...
2009 Aug 21
9
enable -Werror and all of gcc's warning options
Here is a bunch of small patches to make fish/ build
with most warnings enabled:
[1/9] edit.c: avoid warning about signed/unsigned comparison
[2/9] fish.c: avoid warnings
[3/9] tilde.c: avoid a warning
[4/9] fish.c: avoid "assignment discards qualifiers..." warning
[5/9] fish.c: avoid signed/unsigned-comparison warning
[6/9] fish.c: don't perform arithmetic on void*
2014 Oct 31
0
[PATCH] fish: complete symlink properly
...+
1 file changed, 1 insertion(+)
diff --git a/fish/destpaths.c b/fish/destpaths.c
index df1ec00..d39d6c0 100644
--- a/fish/destpaths.c
+++ b/fish/destpaths.c
@@ -192,6 +192,7 @@ complete_dest_paths_generator (const char *text, int state)
words = w;
words[nr_words].name = p;
if (dirents->val[i].ftyp == 'u'
+ || dirents->val[i].ftyp == 'l'
|| dirents->val[i].ftyp == '?') {
int is_dir = guestfs_is_dir_opts (g, words[nr_words].name,...
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...stfs_int_count_strings (strs); \
+ do { \
+ if (strs) { \
+ size_t i; \
+ size_t n = guestfs_int_count_strings (strs); \
\
- if ( n > 0 && ! xalloc_oversized (nr_words + n, sizeof (struct word))) { \
- struct word *w; \
- w = realloc (words, sizeof (struct word) * (nr_words + n)); \
+ if ( n > 0 && ! xalloc_oversized (nr_words + n, sizeof (struct word))) { \
+ struct word *w; \
+ w = realloc (words, sizeof (struct word) * (...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste.
---
align/scan.c | 35 ++++++++++---------
cat/cat.c | 39 +++++++++++----------
cat/filesystems.c | 69 +++++++++++++++++++-------------------
cat/log.c | 35 ++++++++++---------
cat/ls.c | 61 +++++++++++++++++----------------
df/main.c | 43 ++++++++++++------------
diff/diff.c | 67
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...@@ -112,24 +112,24 @@ complete_dest_paths_generator (const char *text, int state)
if (strs) { \
size_t i; \
size_t n = count_strings (strs); \
- \
+ \
if ( ! xalloc_oversized (nr_words + n, sizeof (struct word))) { \
- struct word *w; \
- w = realloc (words, sizeof (struct word) * (nr_words + n)); \
- \
- if (w == NULL) { \
- free_words (words, nr_words); \
- words = NULL; \
- nr_words = 0; \
- } else { \
- words = w; \
- f...
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers.
These aren't valid for global names in C++.
(http://stackoverflow.com/a/228797)
These large but completely mechanical patches change the illegal
identifiers to legal ones.
Rich.