mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fixed initial CR comments
This commit is contained in:
parent
7d55057d88
commit
12494aac45
8 changed files with 34 additions and 21 deletions
|
@ -59,7 +59,7 @@ ci_template: &CI_TEMPLATE
|
||||||
only_if: >
|
only_if: >
|
||||||
( $CIRRUS_REPO_NAME != 'zeek-security' || $CIRRUS_OS != "darwin" ) &&
|
( $CIRRUS_REPO_NAME != 'zeek-security' || $CIRRUS_OS != "darwin" ) &&
|
||||||
( ( $CIRRUS_PR != '' && $CIRRUS_BRANCH !=~ 'dependabot/.*' ) ||
|
( ( $CIRRUS_PR != '' && $CIRRUS_BRANCH !=~ 'dependabot/.*' ) ||
|
||||||
( $CIRRUS_REPO_NAME == 'ms-zeek' &&
|
( $CIRRUS_REPO_NAME == 'zeek' &&
|
||||||
(
|
(
|
||||||
$CIRRUS_BRANCH == 'master' ||
|
$CIRRUS_BRANCH == 'master' ||
|
||||||
$CIRRUS_BRANCH =~ 'release/.*'
|
$CIRRUS_BRANCH =~ 'release/.*'
|
||||||
|
|
|
@ -103,25 +103,10 @@ if ( MSVC )
|
||||||
|
|
||||||
# Disable Spicy as it is not yet supported in Windows.
|
# Disable Spicy as it is not yet supported in Windows.
|
||||||
set(DISABLE_SPICY true)
|
set(DISABLE_SPICY true)
|
||||||
|
|
||||||
set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
|
||||||
else ()
|
else ()
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if ( CMAKE_SYSTEM_NAME STREQUAL Linux )
|
|
||||||
set(CMAKE_DL_LIBS pthread ${CMAKE_DL_LIBS})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if ( NOT CMAKE_INSTALL_LIBDIR )
|
|
||||||
# Currently, some sub-projects may use GNUInstallDirs.cmake to choose the
|
|
||||||
# library install dir, while others just default to "lib". For sake of
|
|
||||||
# consistency, this just overrides the former to always use "lib" in case
|
|
||||||
# it would have chosen something else, like "lib64", but a thing for the
|
|
||||||
# future may be to standardize all sub-projects to use GNUInstallDirs.
|
|
||||||
set(CMAKE_INSTALL_LIBDIR lib)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
include(cmake/CommonCMakeConfig.cmake)
|
include(cmake/CommonCMakeConfig.cmake)
|
||||||
include(cmake/FindClangTidy.cmake)
|
include(cmake/FindClangTidy.cmake)
|
||||||
include(cmake/CheckCompilerArch.cmake)
|
include(cmake/CheckCompilerArch.cmake)
|
||||||
|
|
|
@ -754,3 +754,31 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
|
||||||
|
%%% auxil/libunistd
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015 Robin Rowe
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
|
@ -491,6 +491,7 @@ elseif (${COMPILER_ARCHITECTURE} STREQUAL "power")
|
||||||
elseif(${COMPILER_ARCHITECTURE} STREQUAL "x86_64")
|
elseif(${COMPILER_ARCHITECTURE} STREQUAL "x86_64")
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
set(_avx_flag /arch:AVX2)
|
set(_avx_flag /arch:AVX2)
|
||||||
|
# Using an undocumentd compiler flag: https://stackoverflow.com/questions/64053597/how-do-i-enable-sse4-1-and-sse3-but-not-avx-in-msvc/69328426#69328426
|
||||||
set(_sse_flag /d2archSSE42)
|
set(_sse_flag /d2archSSE42)
|
||||||
else()
|
else()
|
||||||
set(_avx_flag -mavx2)
|
set(_avx_flag -mavx2)
|
||||||
|
|
|
@ -28,7 +28,7 @@ struct NewRef
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This has to be forward decalred and known here in order for us to be able
|
* This has to be forward declared and known here in order for us to be able
|
||||||
* cast this in the `Unref` function.
|
* cast this in the `Unref` function.
|
||||||
*/
|
*/
|
||||||
class OpaqueVal;
|
class OpaqueVal;
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "zeek/fuzzers/FuzzBuffer.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <mem.h>
|
#include <mem.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "zeek/fuzzers/FuzzBuffer.h"
|
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
namespace zeek::detail
|
namespace zeek::detail
|
||||||
|
|
|
@ -162,6 +162,7 @@ void Manager::SearchDynamicPlugins(const std::string& dir)
|
||||||
bool Manager::ActivateDynamicPluginInternal(const std::string& name, bool ok_if_not_found,
|
bool Manager::ActivateDynamicPluginInternal(const std::string& name, bool ok_if_not_found,
|
||||||
std::vector<std::string>* errors)
|
std::vector<std::string>* errors)
|
||||||
{
|
{
|
||||||
|
// Loading dynamic plugins is not currently supported on Windows platform.
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -110,8 +110,6 @@ namespace zeek
|
||||||
class ODesc;
|
class ODesc;
|
||||||
class RecordVal;
|
class RecordVal;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
namespace util
|
namespace util
|
||||||
{
|
{
|
||||||
namespace detail
|
namespace detail
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue