mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Merge branch 'paraglob' of https://github.com/ZekeMedley/zeek
* 'paraglob' of https://github.com/ZekeMedley/zeek: Add leak test to paraglob. Catch paraglob serialization errors in DoClone. Update paraglob serialization. Stop execution on paraglob error. Update paraglob submodule Change C++11 detection in paraglob. Make paraglob serializable and copyable. Initial paraglob integration. I made a bunch of small changes: * paraglob now deals better with \0 characters * I rolled back the changes to Binary Serialization format, * there were some small formatting issue * the error output was slightly unsafe * build_unique is now in util.h. and perhaps a few more small things.
This commit is contained in:
commit
5f9a9bbcbe
22 changed files with 432 additions and 4 deletions
|
@ -555,4 +555,13 @@ void bro_strerror_r(int bro_errno, char* buf, size_t buflen);
|
|||
*/
|
||||
char* zeekenv(const char* name);
|
||||
|
||||
/**
|
||||
* Small convenience function. Does what std::make_unique does in C++14. Will not
|
||||
* work on arrays.
|
||||
*/
|
||||
template <typename T, typename ... Args>
|
||||
std::unique_ptr<T> build_unique (Args&&... args) {
|
||||
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue