mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 09:51:56 +00:00
Use mapfile directly instead of buffer
This commit is contained in:
@@ -102,17 +102,14 @@ public:
|
||||
class SynFile
|
||||
{
|
||||
public:
|
||||
SynFile()
|
||||
: syndatabuf(nullptr)
|
||||
{
|
||||
}
|
||||
~SynFile() { g_free(syndatabuf); }
|
||||
SynFile() {}
|
||||
~SynFile() {}
|
||||
bool load(const std::string &url, gulong wc);
|
||||
bool lookup(const char *str, glong &idx);
|
||||
const gchar *get_key(glong idx) { return synlist[idx]; }
|
||||
|
||||
private:
|
||||
gchar *syndatabuf;
|
||||
MapFile synfile;
|
||||
std::vector<gchar *> synlist;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user