* Initial commit.

:)
This commit is contained in:
iProgramInCpp
2023-07-30 22:22:02 +03:00
commit 9642818a88
613 changed files with 151754 additions and 0 deletions

34
thirdparty/raknet/VariadicSQLParser.h vendored Normal file
View File

@@ -0,0 +1,34 @@
/*
* Copyright (c) 2014, Oculus VR, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#ifndef __VARIADIC_SQL_PARSER_H
#define __VARIADIC_SQL_PARSER_H
#include "DS_List.h"
#include <stdarg.h>
namespace VariadicSQLParser
{
struct IndexAndType
{
unsigned int strIndex;
unsigned int typeMappingIndex;
};
const char* GetTypeMappingAtIndex(int i);
void GetTypeMappingIndices( const char *format, DataStructures::List<IndexAndType> &indices );
// Given an SQL string with variadic arguments, allocate argumentBinary and argumentLengths, and hold the parameters in binary format
// Last 2 parameters are out parameters
void ExtractArguments( va_list argptr, const DataStructures::List<IndexAndType> &indices, char ***argumentBinary, int **argumentLengths );
void FreeArguments(const DataStructures::List<IndexAndType> &indices, char **argumentBinary, int *argumentLengths);
}
#endif