mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: Add pre-commit hooks and run clang-format on everything
This commit is contained in:
parent
090ac0a6e0
commit
090325df40
91 changed files with 3086 additions and 3665 deletions
|
@ -1,24 +1,25 @@
|
|||
#define binpac_regex_h
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "binpac_bytestring.h"
|
||||
|
||||
namespace binpac
|
||||
{
|
||||
#include <stdlib.h>
|
||||
|
||||
std::string std_string(bytestring const *s)
|
||||
namespace binpac
|
||||
{
|
||||
return std::string((const char *) s->begin(), (const char *) s->end());
|
||||
|
||||
std::string std_string(bytestring const* s)
|
||||
{
|
||||
return std::string((const char*)s->begin(), (const char*)s->end());
|
||||
}
|
||||
|
||||
int bytestring_to_int(bytestring const *s)
|
||||
int bytestring_to_int(bytestring const* s)
|
||||
{
|
||||
return atoi((const char *) s->begin());
|
||||
return atoi((const char*)s->begin());
|
||||
}
|
||||
|
||||
double bytestring_to_double(bytestring const *s)
|
||||
double bytestring_to_double(bytestring const* s)
|
||||
{
|
||||
return atof((const char *) s->begin());
|
||||
return atof((const char*)s->begin());
|
||||
}
|
||||
|
||||
} // namespace binpac
|
||||
} // namespace binpac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue