mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 19:47:43 +03:00
msvc: use the vectorcall calling convention
This requires declaring external interfaces with the cdecl calling convention.
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
#ifndef EXPRESSIONS_H
|
||||
#define EXPRESSIONS_H
|
||||
|
||||
#include "hs_common.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -38,12 +40,12 @@ using SignatureSet = std::vector<unsigned>;
|
||||
|
||||
// load all of the expressions from the given directory into the given
|
||||
// expression map. Exits on failure.
|
||||
void loadExpressions(const std::string &inDir, ExpressionMap &exprMap);
|
||||
void HS_CDECL loadExpressions(const std::string &inDir, ExpressionMap &exprMap);
|
||||
|
||||
void loadExpressionsFromFile(const std::string &fname, ExpressionMap &exprMap);
|
||||
void HS_CDECL loadExpressionsFromFile(const std::string &fname, ExpressionMap &exprMap);
|
||||
|
||||
// load a list of signature IDs
|
||||
void loadSignatureList(const std::string &inFile, SignatureSet &signatures);
|
||||
void HS_CDECL loadSignatureList(const std::string &inFile, SignatureSet &signatures);
|
||||
|
||||
// trim expression map to only the given signatures, returning result
|
||||
ExpressionMap limitToSignatures(const ExpressionMap &exprMap,
|
||||
|
Reference in New Issue
Block a user