forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
24
project/lib_projects/raknet/jni/RaknetSources/VariadicSQLParser.h
Executable file
24
project/lib_projects/raknet/jni/RaknetSources/VariadicSQLParser.h
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue