Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ int htwcscmp(const void *s1, const void *s2)
return wcscmp((const wchar_t *) s1, (const wchar_t *) s2);
}

#if 0

/* A comparison function for key-value pairs with multibyte-string keys.
* The arguments are pointers to kvpair_T's (const kvpair_T *) whose keys are
* multibyte strings. */
Expand All @@ -400,6 +402,8 @@ int keystrcoll(const void *k1, const void *k2)
return strcoll(((const kvpair_T *) k1)->key, ((const kvpair_T *) k2)->key);
}

#endif

/* A comparison function for key-value pairs with wide-string keys.
* The arguments are pointers to kvpair_T's (const kvpair_T *) whose keys are
* wide strings. */
Expand All @@ -408,20 +412,26 @@ int keywcscoll(const void *k1, const void *k2)
return wcscoll(((const kvpair_T *) k1)->key, ((const kvpair_T *) k2)->key);
}

#if 0

/* `Free's the key of the specified key-value pair.
* Can be used as the freer function to `ht_clear'. */
void kfree(kvpair_T kv)
{
free(kv.key);
}

#endif

/* `Free's the value of the specified key-value pair.
* Can be used as the freer function to `ht_clear'. */
void vfree(kvpair_T kv)
{
free(kv.value);
}

#if 0

/* `Free's the key and the value of the specified key-value pair.
* Can be used as the freer function to `ht_clear'. */
void kvfree(kvpair_T kv)
Expand All @@ -430,6 +440,8 @@ void kvfree(kvpair_T kv)
free(kv.value);
}

#endif


#if DEBUG_HASH
/* Prints statistics.
Expand Down
1 change: 0 additions & 1 deletion job.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ extern void set_active_job(job_T *job)
__attribute__((nonnull));
extern size_t add_job(_Bool current);
extern void remove_job(size_t jobnumber);
extern void remove_job_nofitying_signal(size_t jobnumber);
extern void remove_all_jobs(void);
extern void neglect_all_jobs(void);
extern size_t job_count(void)
Expand Down
2 changes: 0 additions & 2 deletions lineedit/complete.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ extern void le_compdebug(const char *format, ...)

extern void set_completion_variables(void);

extern void le_new_command_candidate(wchar_t *cmdname)
__attribute__((nonnull));
extern void le_new_candidate(le_candtype_T type,
wchar_t *restrict value, wchar_t *restrict desc,
const le_compopt_T *compopt)
Expand Down
4 changes: 4 additions & 0 deletions path.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,17 @@ bool is_regular_file(const char *path)
return (stat(path, &st) == 0) && S_ISREG(st.st_mode);
}

#if 0

/* Checks if `path' is a non-regular file. */
bool is_irregular_file(const char *path)
{
struct stat st;
return (stat(path, &st) == 0) && !S_ISREG(st.st_mode);
}

#endif

/* Checks if `path' is a readable file. */
bool is_readable(const char *path)
{
Expand Down
1 change: 0 additions & 1 deletion path.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ extern void init_cmdhash(void);
extern void clear_cmdhash(void);
extern const char *get_command_path(const char *name, _Bool forcelookup)
__attribute__((nonnull));
extern void fill_cmdhash(const char *prefix, _Bool ignorecase);
extern const char *get_command_path_default(const char *name)
__attribute__((nonnull));

Expand Down
Loading