Permalink
Browse files

core, refactor: compress embed script module.

  • Loading branch information...
xicilion committed May 27, 2018
1 parent 47a5f79 commit f1a4589a11aa40b18219a2d11b8836a43b1d8007
View
@@ -9,6 +9,8 @@
#define _OPTIONS_H_
#include "utils.h"
#include "Buffer.h"
#include "ifs/zlib.h"
namespace fibjs {
@@ -20,6 +22,20 @@ extern int32_t g_prof_interval;
extern FILE* g_cov;
extern bool g_tracetcp;
struct OptData {
const char* name;
int32_t size;
const char* source;
void getDate(obj_ptr<Buffer_base>& data) const
{
obj_ptr<Buffer_base> zdata = new Buffer(source, size);
zlib_base::cc_inflate(zdata, data);
}
};
extern const OptData opt_tools[];
}
#endif
Oops, something went wrong.

0 comments on commit f1a4589

Please sign in to comment.