mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03:00
Clean up uses of completion_t
This commit is contained in:
9
common.h
9
common.h
@@ -22,7 +22,7 @@
|
||||
#include <assert.h>
|
||||
#include "util.h"
|
||||
|
||||
struct completion_t;
|
||||
class completion_t;
|
||||
|
||||
/* Common string type */
|
||||
typedef std::wstring wcstring;
|
||||
@@ -298,6 +298,13 @@ T from_string(const wcstring &x) {
|
||||
return result;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
wcstring to_string(const T &x) {
|
||||
std::wstringstream stream;
|
||||
stream << x;
|
||||
return stream.str();
|
||||
}
|
||||
|
||||
class scoped_lock {
|
||||
pthread_mutex_t *lock_obj;
|
||||
bool locked;
|
||||
|
||||
Reference in New Issue
Block a user