diff
stringlengths 41
2.03M
| msg
stringlengths 1
1.5k
⌀ | repo
stringlengths 5
40
| sha
stringlengths 40
40
| time
stringlengths 20
20
|
---|---|---|---|---|
mmm a / configure . ac <nl> ppp b / configure . ac <nl> case $ host in <nl> ARCH = " aarch64 " <nl> use_arch = " aarch64 " <nl> use_neon = yes <nl> - use_gles = yes <nl> - use_gl = no <nl> - use_wayland = no <nl> + # Check whether - - enable - gl was given . <nl> + if test " $ { enable_gl + set } " = set ; then : <nl> + enableval = $ enable_gl ; use_gl = $ enableval <nl> + else <nl> + use_gl = no <nl> + use_gles = yes <nl> + fi <nl> USE_STATIC_FFMPEG = 1 <nl> ; ; <nl> arm * - * linux - android * ) <nl>
|
Merge pull request from koenkooi / aarch64 - opengl
|
xbmc/xbmc
|
af3bd6fd0d32ab353d9f659bda8f3e460f3290f5
|
2016-10-16T14:47:06Z
|
mmm a / utils / update - checkout <nl> ppp b / utils / update - checkout <nl> def validate_config ( config ) : <nl> ( 0 , set ( [ ] ) ) ) <nl> if result [ 0 ] = = len ( result [ 1 ] ) : <nl> return <nl> - raise RuntimeError ( ' Overlapping alias names for two types of branches ' ) <nl> + raise RuntimeError ( ' Configuration file has schemes with duplicate ' <nl> + ' aliases ? ! ' ) <nl> <nl> <nl> def main ( ) : <nl>
|
[ gardening ] Improve error message .
|
apple/swift
|
3f47dfadca102a98654cc20a6264cd435e715cfe
|
2016-06-19T06:58:00Z
|
mmm a / src / compiler / wasm - compiler . cc <nl> ppp b / src / compiler / wasm - compiler . cc <nl> Node * WasmGraphBuilder : : Simd8x16ShuffleOp ( const uint8_t shuffle [ 16 ] , <nl> inputs [ 0 ] , inputs [ 1 ] ) ; <nl> } <nl> <nl> - # define ATOMIC_BINOP_LIST ( V ) \ <nl> - V ( I32AtomicAdd , Add , Uint32 ) \ <nl> - V ( I32AtomicSub , Sub , Uint32 ) \ <nl> - V ( I32AtomicAnd , And , Uint32 ) \ <nl> - V ( I32AtomicOr , Or , Uint32 ) \ <nl> - V ( I32AtomicXor , Xor , Uint32 ) \ <nl> - V ( I32AtomicAdd8U , Add , Uint8 ) \ <nl> - V ( I32AtomicSub8U , Sub , Uint8 ) \ <nl> - V ( I32AtomicAnd8U , And , Uint8 ) \ <nl> - V ( I32AtomicOr8U , Or , Uint8 ) \ <nl> - V ( I32AtomicXor8U , Xor , Uint8 ) \ <nl> - V ( I32AtomicAdd16U , Add , Uint16 ) \ <nl> - V ( I32AtomicSub16U , Sub , Uint16 ) \ <nl> - V ( I32AtomicAnd16U , And , Uint16 ) \ <nl> - V ( I32AtomicOr16U , Or , Uint16 ) \ <nl> - V ( I32AtomicXor16U , Xor , Uint16 ) <nl> + # define ATOMIC_BINOP_LIST ( V ) \ <nl> + V ( I32AtomicAdd , Add , Uint32 ) \ <nl> + V ( I32AtomicSub , Sub , Uint32 ) \ <nl> + V ( I32AtomicAnd , And , Uint32 ) \ <nl> + V ( I32AtomicOr , Or , Uint32 ) \ <nl> + V ( I32AtomicXor , Xor , Uint32 ) \ <nl> + V ( I32AtomicExchange , Exchange , Uint32 ) \ <nl> + V ( I32AtomicAdd8U , Add , Uint8 ) \ <nl> + V ( I32AtomicSub8U , Sub , Uint8 ) \ <nl> + V ( I32AtomicAnd8U , And , Uint8 ) \ <nl> + V ( I32AtomicOr8U , Or , Uint8 ) \ <nl> + V ( I32AtomicXor8U , Xor , Uint8 ) \ <nl> + V ( I32AtomicExchange8U , Exchange , Uint8 ) \ <nl> + V ( I32AtomicAdd16U , Add , Uint16 ) \ <nl> + V ( I32AtomicSub16U , Sub , Uint16 ) \ <nl> + V ( I32AtomicAnd16U , And , Uint16 ) \ <nl> + V ( I32AtomicOr16U , Or , Uint16 ) \ <nl> + V ( I32AtomicXor16U , Xor , Uint16 ) \ <nl> + V ( I32AtomicExchange16U , Exchange , Uint16 ) <nl> + <nl> + # define ATOMIC_TERNARY_LIST ( V ) \ <nl> + V ( I32AtomicCompareExchange , CompareExchange , Uint32 ) \ <nl> + V ( I32AtomicCompareExchange8U , CompareExchange , Uint8 ) \ <nl> + V ( I32AtomicCompareExchange16U , CompareExchange , Uint16 ) <nl> <nl> Node * WasmGraphBuilder : : AtomicOp ( wasm : : WasmOpcode opcode , <nl> const NodeVector & inputs , <nl> Node * WasmGraphBuilder : : AtomicOp ( wasm : : WasmOpcode opcode , <nl> } <nl> ATOMIC_BINOP_LIST ( BUILD_ATOMIC_BINOP ) <nl> # undef BUILD_ATOMIC_BINOP <nl> + <nl> + # define BUILD_ATOMIC_TERNARY_OP ( Name , Operation , Type ) \ <nl> + case wasm : : kExpr # # Name : { \ <nl> + BoundsCheckMem ( MachineType : : Type ( ) , inputs [ 0 ] , 0 , position ) ; \ <nl> + node = graph ( ) - > NewNode ( \ <nl> + jsgraph ( ) - > machine ( ) - > Atomic # # Operation ( MachineType : : Type ( ) ) , \ <nl> + MemBuffer ( 0 ) , inputs [ 0 ] , inputs [ 1 ] , inputs [ 2 ] , * effect_ , * control_ ) ; \ <nl> + break ; \ <nl> + } <nl> + ATOMIC_TERNARY_LIST ( BUILD_ATOMIC_TERNARY_OP ) <nl> + # undef BUILD_ATOMIC_TERNARY_OP <nl> default : <nl> FATAL_UNSUPPORTED_OPCODE ( opcode ) ; <nl> } <nl> mmm a / src / wasm / wasm - opcodes . h <nl> ppp b / src / wasm / wasm - opcodes . h <nl> constexpr WasmCodePosition kNoCodePosition = - 1 ; <nl> V ( S128LoadMem , 0xfd80 , s_i ) \ <nl> V ( S128StoreMem , 0xfd81 , s_is ) <nl> <nl> - # define FOREACH_ATOMIC_OPCODE ( V ) \ <nl> - V ( I32AtomicAdd , 0xfe1e , i_ii ) \ <nl> - V ( I32AtomicAdd8U , 0xfe20 , i_ii ) \ <nl> - V ( I32AtomicAdd16U , 0xfe21 , i_ii ) \ <nl> - V ( I32AtomicSub , 0xfe25 , i_ii ) \ <nl> - V ( I32AtomicSub8U , 0xfe27 , i_ii ) \ <nl> - V ( I32AtomicSub16U , 0xfe28 , i_ii ) \ <nl> - V ( I32AtomicAnd , 0xfe2c , i_ii ) \ <nl> - V ( I32AtomicAnd8U , 0xfe2e , i_ii ) \ <nl> - V ( I32AtomicAnd16U , 0xfe2f , i_ii ) \ <nl> - V ( I32AtomicOr , 0xfe33 , i_ii ) \ <nl> - V ( I32AtomicOr8U , 0xfe35 , i_ii ) \ <nl> - V ( I32AtomicOr16U , 0xfe36 , i_ii ) \ <nl> - V ( I32AtomicXor , 0xfe3a , i_ii ) \ <nl> - V ( I32AtomicXor8U , 0xfe3c , i_ii ) \ <nl> - V ( I32AtomicXor16U , 0xfe3d , i_ii ) \ <nl> - V ( I32AtomicExchange , 0xfe41 , i_ii ) \ <nl> - V ( I32AtomicExchange8U , 0xfe43 , i_ii ) \ <nl> - V ( I32AtomicExchange16U , 0xfe44 , i_ii ) \ <nl> - V ( I32AtomicCompareExchange , 0xfe48 , i_ii ) \ <nl> - V ( I32AtomicCompareExchange8U , 0xfe4a , i_ii ) \ <nl> - V ( I32AtomicCompareExchange16U , 0xfe4b , i_ii ) <nl> + # define FOREACH_ATOMIC_OPCODE ( V ) \ <nl> + V ( I32AtomicAdd , 0xfe1e , i_ii ) \ <nl> + V ( I32AtomicAdd8U , 0xfe20 , i_ii ) \ <nl> + V ( I32AtomicAdd16U , 0xfe21 , i_ii ) \ <nl> + V ( I32AtomicSub , 0xfe25 , i_ii ) \ <nl> + V ( I32AtomicSub8U , 0xfe27 , i_ii ) \ <nl> + V ( I32AtomicSub16U , 0xfe28 , i_ii ) \ <nl> + V ( I32AtomicAnd , 0xfe2c , i_ii ) \ <nl> + V ( I32AtomicAnd8U , 0xfe2e , i_ii ) \ <nl> + V ( I32AtomicAnd16U , 0xfe2f , i_ii ) \ <nl> + V ( I32AtomicOr , 0xfe33 , i_ii ) \ <nl> + V ( I32AtomicOr8U , 0xfe35 , i_ii ) \ <nl> + V ( I32AtomicOr16U , 0xfe36 , i_ii ) \ <nl> + V ( I32AtomicXor , 0xfe3a , i_ii ) \ <nl> + V ( I32AtomicXor8U , 0xfe3c , i_ii ) \ <nl> + V ( I32AtomicXor16U , 0xfe3d , i_ii ) \ <nl> + V ( I32AtomicExchange , 0xfe41 , i_ii ) \ <nl> + V ( I32AtomicExchange8U , 0xfe43 , i_ii ) \ <nl> + V ( I32AtomicExchange16U , 0xfe44 , i_ii ) \ <nl> + V ( I32AtomicCompareExchange , 0xfe48 , i_iii ) \ <nl> + V ( I32AtomicCompareExchange8U , 0xfe4a , i_iii ) \ <nl> + V ( I32AtomicCompareExchange16U , 0xfe4b , i_iii ) <nl> <nl> / / All opcodes . <nl> # define FOREACH_OPCODE ( V ) \ <nl> constexpr WasmCodePosition kNoCodePosition = - 1 ; <nl> V ( d_l , kWasmF64 , kWasmI64 ) \ <nl> V ( d_id , kWasmF64 , kWasmI32 , kWasmF64 ) \ <nl> V ( f_if , kWasmF32 , kWasmI32 , kWasmF32 ) \ <nl> - V ( l_il , kWasmI64 , kWasmI32 , kWasmI64 ) <nl> + V ( l_il , kWasmI64 , kWasmI32 , kWasmI64 ) \ <nl> + V ( i_iii , kWasmI32 , kWasmI32 , kWasmI32 , kWasmI32 ) <nl> <nl> # define FOREACH_SIMD_SIGNATURE ( V ) \ <nl> V ( s_s , kWasmS128 , kWasmS128 ) \ <nl> mmm a / test / cctest / wasm / test - run - wasm - atomics . cc <nl> ppp b / test / cctest / wasm / test - run - wasm - atomics . cc <nl> <nl> <nl> # define WASM_ATOMICS_OP ( op ) kAtomicPrefix , static_cast < byte > ( op ) <nl> # define WASM_ATOMICS_BINOP ( op , x , y ) x , y , WASM_ATOMICS_OP ( op ) <nl> + # define WASM_ATOMICS_TERNARY_OP ( op , x , y , z ) x , y , z , WASM_ATOMICS_OP ( op ) <nl> <nl> typedef uint32_t ( * Uint32BinOp ) ( uint32_t , uint32_t ) ; <nl> typedef uint16_t ( * Uint16BinOp ) ( uint16_t , uint16_t ) ; <nl> T Xor ( T a , T b ) { <nl> return a ^ b ; <nl> } <nl> <nl> + template < typename T > <nl> + T Exchange ( T a , T b ) { <nl> + return b ; <nl> + } <nl> + <nl> + template < typename T > <nl> + T CompareExchange ( T initial , T a , T b ) { <nl> + if ( initial = = a ) return b ; <nl> + return a ; <nl> + } <nl> + <nl> void RunU32BinOp ( WasmOpcode wasm_op , Uint32BinOp expected_op ) { <nl> EXPERIMENTAL_FLAG_SCOPE ( threads ) ; <nl> WasmRunner < uint32_t , uint32_t > r ( kExecuteCompiled ) ; <nl> WASM_EXEC_TEST ( I32Sub ) { RunU32BinOp ( kExprI32AtomicSub , Sub ) ; } <nl> WASM_EXEC_TEST ( I32And ) { RunU32BinOp ( kExprI32AtomicAnd , And ) ; } <nl> WASM_EXEC_TEST ( I32Or ) { RunU32BinOp ( kExprI32AtomicOr , Or ) ; } <nl> WASM_EXEC_TEST ( I32Xor ) { RunU32BinOp ( kExprI32AtomicXor , Xor ) ; } <nl> + WASM_EXEC_TEST ( I32Exchange ) { RunU32BinOp ( kExprI32AtomicExchange , Exchange ) ; } <nl> <nl> void RunU16BinOp ( WasmOpcode wasm_op , Uint16BinOp expected_op ) { <nl> EXPERIMENTAL_FLAG_SCOPE ( threads ) ; <nl> WASM_EXEC_TEST ( I32Sub16U ) { RunU16BinOp ( kExprI32AtomicSub16U , Sub ) ; } <nl> WASM_EXEC_TEST ( I32And16U ) { RunU16BinOp ( kExprI32AtomicAnd16U , And ) ; } <nl> WASM_EXEC_TEST ( I32Or16U ) { RunU16BinOp ( kExprI32AtomicOr16U , Or ) ; } <nl> WASM_EXEC_TEST ( I32Xor16U ) { RunU16BinOp ( kExprI32AtomicXor16U , Xor ) ; } <nl> + WASM_EXEC_TEST ( I32Exchange16U ) { <nl> + RunU16BinOp ( kExprI32AtomicExchange16U , Exchange ) ; <nl> + } <nl> <nl> void RunU8BinOp ( WasmOpcode wasm_op , Uint8BinOp expected_op ) { <nl> EXPERIMENTAL_FLAG_SCOPE ( threads ) ; <nl> WASM_EXEC_TEST ( I32Sub8U ) { RunU8BinOp ( kExprI32AtomicSub8U , Sub ) ; } <nl> WASM_EXEC_TEST ( I32And8U ) { RunU8BinOp ( kExprI32AtomicAnd8U , And ) ; } <nl> WASM_EXEC_TEST ( I32Or8U ) { RunU8BinOp ( kExprI32AtomicOr8U , Or ) ; } <nl> WASM_EXEC_TEST ( I32Xor8U ) { RunU8BinOp ( kExprI32AtomicXor8U , Xor ) ; } <nl> + WASM_EXEC_TEST ( I32Exchange8U ) { <nl> + RunU8BinOp ( kExprI32AtomicExchange8U , Exchange ) ; <nl> + } <nl> + <nl> + WASM_EXEC_TEST ( I32CompareExchange ) { <nl> + EXPERIMENTAL_FLAG_SCOPE ( threads ) ; <nl> + WasmRunner < uint32_t , uint32_t , uint32_t > r ( kExecuteCompiled ) ; <nl> + uint32_t * memory = r . builder ( ) . AddMemoryElems < uint32_t > ( 8 ) ; <nl> + BUILD ( r , <nl> + WASM_ATOMICS_TERNARY_OP ( kExprI32AtomicCompareExchange , WASM_I32V_1 ( 0 ) , <nl> + WASM_GET_LOCAL ( 0 ) , WASM_GET_LOCAL ( 1 ) ) ) ; <nl> + <nl> + FOR_UINT32_INPUTS ( i ) { <nl> + uint32_t initial = * i ; <nl> + FOR_UINT32_INPUTS ( j ) { <nl> + r . builder ( ) . WriteMemory ( & memory [ 0 ] , initial ) ; <nl> + CHECK_EQ ( initial , r . Call ( * i , * j ) ) ; <nl> + uint32_t expected = CompareExchange ( initial , * i , * j ) ; <nl> + CHECK_EQ ( expected , r . builder ( ) . ReadMemory ( & memory [ 0 ] ) ) ; <nl> + } <nl> + } <nl> + } <nl> + <nl> + WASM_EXEC_TEST ( I32CompareExchange16U ) { <nl> + EXPERIMENTAL_FLAG_SCOPE ( threads ) ; <nl> + WasmRunner < uint32_t , uint32_t , uint32_t > r ( kExecuteCompiled ) ; <nl> + uint16_t * memory = r . builder ( ) . AddMemoryElems < uint16_t > ( 8 ) ; <nl> + BUILD ( r , WASM_ATOMICS_TERNARY_OP ( kExprI32AtomicCompareExchange16U , <nl> + WASM_I32V_1 ( 0 ) , WASM_GET_LOCAL ( 0 ) , <nl> + WASM_GET_LOCAL ( 1 ) ) ) ; <nl> + <nl> + FOR_UINT16_INPUTS ( i ) { <nl> + uint16_t initial = * i ; <nl> + FOR_UINT16_INPUTS ( j ) { <nl> + r . builder ( ) . WriteMemory ( & memory [ 0 ] , initial ) ; <nl> + CHECK_EQ ( initial , r . Call ( * i , * j ) ) ; <nl> + uint16_t expected = CompareExchange ( initial , * i , * j ) ; <nl> + CHECK_EQ ( expected , r . builder ( ) . ReadMemory ( & memory [ 0 ] ) ) ; <nl> + } <nl> + } <nl> + } <nl> + <nl> + WASM_EXEC_TEST ( I32CompareExchange8U ) { <nl> + EXPERIMENTAL_FLAG_SCOPE ( threads ) ; <nl> + WasmRunner < uint32_t , uint32_t , uint32_t > r ( kExecuteCompiled ) ; <nl> + uint8_t * memory = r . builder ( ) . AddMemoryElems < uint8_t > ( 8 ) ; <nl> + BUILD ( r , <nl> + WASM_ATOMICS_TERNARY_OP ( kExprI32AtomicCompareExchange8U , WASM_I32V_1 ( 0 ) , <nl> + WASM_GET_LOCAL ( 0 ) , WASM_GET_LOCAL ( 1 ) ) ) ; <nl> + <nl> + FOR_UINT8_INPUTS ( i ) { <nl> + uint8_t initial = * i ; <nl> + FOR_UINT8_INPUTS ( j ) { <nl> + r . builder ( ) . WriteMemory ( & memory [ 0 ] , initial ) ; <nl> + CHECK_EQ ( initial , r . Call ( * i , * j ) ) ; <nl> + uint8_t expected = CompareExchange ( initial , * i , * j ) ; <nl> + CHECK_EQ ( expected , r . builder ( ) . ReadMemory ( & memory [ 0 ] ) ) ; <nl> + } <nl> + } <nl> + } <nl> mmm a / test / mjsunit / wasm / atomics . js <nl> ppp b / test / mjsunit / wasm / atomics . js <nl> function Sub ( a , b ) { return a - b ; } <nl> function And ( a , b ) { return a & b ; } <nl> function Or ( a , b ) { return a | b ; } <nl> function Xor ( a , b ) { return a ^ b ; } <nl> + function Exchange ( a , b ) { return b ; } <nl> <nl> let maxSize = 10 ; <nl> let memory = new WebAssembly . Memory ( { initial : 1 , maximum : maxSize , shared : true } ) ; <nl> function GetAtomicBinOpFunction ( wasmExpression ) { <nl> return instance . exports . main ; <nl> } <nl> <nl> + function GetAtomicCmpExchangeFunction ( wasmExpression ) { <nl> + let builder = new WasmModuleBuilder ( ) ; <nl> + builder . addImportedMemory ( " m " , " imported_mem " ) ; <nl> + builder . addFunction ( " main " , kSig_i_iii ) <nl> + . addBody ( [ <nl> + kExprGetLocal , 0 , <nl> + kExprGetLocal , 1 , <nl> + kExprGetLocal , 2 , <nl> + kAtomicPrefix , <nl> + wasmExpression ] ) <nl> + . exportAs ( " main " ) ; <nl> + <nl> + / / Instantiate module , get function exports <nl> + let module = new WebAssembly . Module ( builder . toBuffer ( ) ) ; <nl> + let instance = ( new WebAssembly . Instance ( module , <nl> + { m : { imported_mem : memory } } ) ) ; <nl> + return instance . exports . main ; <nl> + } <nl> + <nl> + <nl> function VerifyBoundsCheck ( func , memtype_size ) { <nl> const kPageSize = 65536 ; <nl> / / Test out of bounds at boundary <nl> for ( let i = memory . buffer . byteLength - memtype_size + 1 ; <nl> i < memory . buffer . byteLength + memtype_size + 4 ; i + + ) { <nl> - assertTraps ( kTrapMemOutOfBounds , ( ) = > func ( i , 5 ) ) ; <nl> + assertTraps ( kTrapMemOutOfBounds , ( ) = > func ( i , 5 , 10 ) ) ; <nl> } <nl> / / Test out of bounds at maximum + 1 <nl> - assertTraps ( kTrapMemOutOfBounds , ( ) = > func ( ( maxSize + 1 ) * kPageSize , 5 ) ) ; <nl> + assertTraps ( kTrapMemOutOfBounds , ( ) = > func ( ( maxSize + 1 ) * kPageSize , 5 , 1 ) ) ; <nl> } <nl> <nl> function Test32Op ( operation , func ) { <nl> function Test8Op ( operation , func ) { <nl> let wasmXor = GetAtomicBinOpFunction ( kExprI32AtomicXor8U ) ; <nl> Test8Op ( Xor , wasmXor ) ; <nl> } ) ( ) ; <nl> + <nl> + ( function TestAtomicExchange ( ) { <nl> + print ( " TestAtomicExchange " ) ; <nl> + let wasmExchange = GetAtomicBinOpFunction ( kExprI32AtomicExchange ) ; <nl> + Test32Op ( Exchange , wasmExchange ) ; <nl> + } ) ( ) ; <nl> + <nl> + ( function TestAtomicExchange16U ( ) { <nl> + print ( " TestAtomicExchange16U " ) ; <nl> + let wasmExchange = GetAtomicBinOpFunction ( kExprI32AtomicExchange16U ) ; <nl> + Test16Op ( Exchange , wasmExchange ) ; <nl> + } ) ( ) ; <nl> + <nl> + ( function TestAtomicExchange8U ( ) { <nl> + print ( " TestAtomicExchange8U " ) ; <nl> + let wasmExchange = GetAtomicBinOpFunction ( kExprI32AtomicExchange8U ) ; <nl> + Test8Op ( Exchange , wasmExchange ) ; <nl> + } ) ( ) ; <nl> + <nl> + function TestCmpExchange ( func , buffer , params , size ) { <nl> + for ( let i = 0 ; i < buffer . length ; i + + ) { <nl> + for ( let j = 0 ; j < params . length ; j + + ) { <nl> + for ( let k = 0 ; k < params . length ; k + + ) { <nl> + buffer [ i ] = params [ j ] ; <nl> + let loaded = func ( i * size , params [ k ] , params [ j ] ) > > > 0 ; <nl> + let expected = ( params [ k ] = = loaded ) ? params [ j ] : loaded ; <nl> + assertEquals ( loaded , params [ j ] ) ; <nl> + assertEquals ( expected , buffer [ i ] ) ; <nl> + } <nl> + } <nl> + } <nl> + VerifyBoundsCheck ( func , size ) ; <nl> + } <nl> + <nl> + ( function TestAtomicCompareExchange ( ) { <nl> + print ( " TestAtomicCompareExchange " ) ; <nl> + let wasmCmpExchange = <nl> + GetAtomicCmpExchangeFunction ( kExprI32AtomicCompareExchange ) ; <nl> + let i32 = new Uint32Array ( memory . buffer ) ; <nl> + let params = [ 0x00000001 , 0x00000555 , 0x00099999 , 0xffffffff ] ; <nl> + TestCmpExchange ( wasmCmpExchange , i32 , params , kMemtypeSize32 ) ; <nl> + } ) ( ) ; <nl> + <nl> + ( function TestAtomicCompareExchange16U ( ) { <nl> + print ( " TestAtomicCompareExchange16U " ) ; <nl> + let wasmCmpExchange = <nl> + GetAtomicCmpExchangeFunction ( kExprI32AtomicCompareExchange16U ) ; <nl> + let i16 = new Uint16Array ( memory . buffer ) ; <nl> + let params = [ 0x0001 , 0x0555 , 0x9999 ] ; <nl> + TestCmpExchange ( wasmCmpExchange , i16 , params , kMemtypeSize16 ) ; <nl> + } ) ( ) ; <nl> + <nl> + ( function TestAtomicCompareExchange8U ( ) { <nl> + print ( " TestAtomicCompareExchange8U " ) ; <nl> + let wasmCmpExchange = <nl> + GetAtomicCmpExchangeFunction ( kExprI32AtomicCompareExchange8U ) ; <nl> + let i8 = new Uint8Array ( memory . buffer ) ; <nl> + let params = [ 0x01 , 0x0d , 0xf9 ] ; <nl> + TestCmpExchange ( wasmCmpExchange , i8 , params , kMemtypeSize8 ) ; <nl> + } ) ( ) ; <nl> mmm a / test / mjsunit / wasm / wasm - constants . js <nl> ppp b / test / mjsunit / wasm / wasm - constants . js <nl> let kExprI32AtomicOr16U = 0x36 ; <nl> let kExprI32AtomicXor = 0x3a ; <nl> let kExprI32AtomicXor8U = 0x3c ; <nl> let kExprI32AtomicXor16U = 0x3d ; <nl> + let kExprI32AtomicExchange = 0x41 ; <nl> + let kExprI32AtomicExchange8U = 0x43 ; <nl> + let kExprI32AtomicExchange16U = 0x44 ; <nl> + let kExprI32AtomicCompareExchange = 0x48 <nl> + let kExprI32AtomicCompareExchange8U = 0x4a <nl> + let kExprI32AtomicCompareExchange16U = 0x4b <nl> <nl> let kTrapUnreachable = 0 ; <nl> let kTrapMemOutOfBounds = 1 ; <nl>
|
[ wasm ] Implement atomics Exchange , CompareExchange
|
v8/v8
|
9c0f98c6a4647321b3e0f085985ac483ab50bbd7
|
2017-08-25T22:09:01Z
|
mmm a / lib / SILOptimizer / Transforms / ARCCodeMotion . cpp <nl> ppp b / lib / SILOptimizer / Transforms / ARCCodeMotion . cpp <nl> class CodeMotionContext { <nl> / / / we compute the genset and killset . <nl> llvm : : SmallPtrSet < SILBasicBlock * , 8 > InterestBlocks ; <nl> <nl> + # ifndef NDEBUG <nl> + / / SILPrintContext is used to print block IDs in RPO order . <nl> + / / It is optional so only the final insertion point interference is printed . <nl> + Optional < SILPrintContext > printCtx ; <nl> + # endif <nl> + <nl> / / / Return the rc - identity root of the SILValue . <nl> SILValue getRCRoot ( SILValue R ) { <nl> return RCFI - > getRCIdentityRoot ( R ) ; <nl> class RetainCodeMotionContext : public CodeMotionContext { <nl> return true ; <nl> / / Identical RC root blocks code motion , we will be able to move this retain <nl> / / further once we move the blocking retain . <nl> - if ( isRetainInstruction ( II ) & & getRCRoot ( II ) = = Ptr ) <nl> + if ( isRetainInstruction ( II ) & & getRCRoot ( II ) = = Ptr ) { <nl> + LLVM_DEBUG ( if ( printCtx ) llvm : : dbgs ( ) <nl> + < < " Retain " < < Ptr < < " at matching retain " < < * II ) ; <nl> return true ; <nl> + } <nl> / / Ref count checks do not have side effects , but are barriers for retains . <nl> - if ( mayCheckRefCount ( II ) ) <nl> + if ( mayCheckRefCount ( II ) ) { <nl> + LLVM_DEBUG ( if ( printCtx ) llvm : : dbgs ( ) <nl> + < < " Retain " < < Ptr < < " at refcount check " < < * II ) ; <nl> return true ; <nl> + } <nl> / / mayDecrement reference count stops code motion . <nl> - if ( mayDecrementRefCount ( II , Ptr , AA ) ) <nl> + if ( mayDecrementRefCount ( II , Ptr , AA ) ) { <nl> + LLVM_DEBUG ( if ( printCtx ) llvm : : dbgs ( ) <nl> + < < " Retain " < < Ptr < < " at may decrement " < < * II ) ; <nl> return true ; <nl> + } <nl> / / This instruction does not block the retain code motion . <nl> return false ; <nl> } <nl> void RetainCodeMotionContext : : initializeCodeMotionDataFlow ( ) { <nl> continue ; <nl> RCRootIndex [ Root ] = RCRootVault . size ( ) ; <nl> RCRootVault . insert ( Root ) ; <nl> + LLVM_DEBUG ( llvm : : dbgs ( ) <nl> + < < " Retain Root # " < < RCRootVault . size ( ) < < " " < < Root ) ; <nl> } <nl> } <nl> <nl> void RetainCodeMotionContext : : convergeCodeMotionDataFlow ( ) { <nl> } <nl> <nl> void RetainCodeMotionContext : : computeCodeMotionInsertPoints ( ) { <nl> + # ifndef NDEBUG <nl> + printCtx . emplace ( llvm : : dbgs ( ) , / * Verbose = * / false , / * Sorted = * / true ) ; <nl> + # endif <nl> / / The BBSetOuts have converged , run last iteration and figure out <nl> / / insertion point for each refcounted root . <nl> for ( SILBasicBlock * BB : PO - > getReversePostOrder ( ) ) { <nl> class ReleaseCodeMotionContext : public CodeMotionContext { <nl> return true ; <nl> / / Identical RC root blocks code motion , we will be able to move this release <nl> / / further once we move the blocking release . <nl> - if ( isReleaseInstruction ( II ) & & getRCRoot ( II ) = = Ptr ) <nl> + if ( isReleaseInstruction ( II ) & & getRCRoot ( II ) = = Ptr ) { <nl> + LLVM_DEBUG ( if ( printCtx ) llvm : : dbgs ( ) <nl> + < < " Release " < < Ptr < < " at matching release " < < * II ) ; <nl> return true ; <nl> + } <nl> / / Stop at may interfere . <nl> - if ( mayHaveSymmetricInterference ( II , Ptr , AA ) ) <nl> + if ( mayHaveSymmetricInterference ( II , Ptr , AA ) ) { <nl> + LLVM_DEBUG ( if ( printCtx ) llvm : : dbgs ( ) <nl> + < < " Release " < < Ptr < < " at interference " < < * II ) ; <nl> return true ; <nl> + } <nl> / / This instruction does not block the release . <nl> return false ; <nl> } <nl> void ReleaseCodeMotionContext : : initializeCodeMotionDataFlow ( ) { <nl> continue ; <nl> RCRootIndex [ Root ] = RCRootVault . size ( ) ; <nl> RCRootVault . insert ( Root ) ; <nl> + LLVM_DEBUG ( llvm : : dbgs ( ) <nl> + < < " Release Root # " < < RCRootVault . size ( ) < < " " < < Root ) ; <nl> } <nl> if ( MultiIteration & & BB . getTerminator ( ) - > isFunctionExiting ( ) ) <nl> Worklist . push_back ( & BB ) ; <nl> void ReleaseCodeMotionContext : : convergeCodeMotionDataFlow ( ) { <nl> } <nl> <nl> void ReleaseCodeMotionContext : : computeCodeMotionInsertPoints ( ) { <nl> + # ifndef NDEBUG <nl> + printCtx . emplace ( llvm : : dbgs ( ) , / * Verbose = * / false , / * Sorted = * / true ) ; <nl> + # endif <nl> + <nl> / / The BBSetIns have converged , run last iteration and figure out insertion <nl> / / point for each RC root . <nl> for ( SILBasicBlock * BB : PO - > getPostOrder ( ) ) { <nl> void ReleaseCodeMotionContext : : computeCodeMotionInsertPoints ( ) { <nl> if ( ! SBB - > BBSetIn [ i ] ) <nl> continue ; <nl> InsertPoints [ RCRootVault [ i ] ] . push_back ( & * ( * Succ ) . begin ( ) ) ; <nl> + LLVM_DEBUG ( llvm : : dbgs ( ) <nl> + < < " Release partial merge . Insert at successor : " <nl> + < < printCtx - > getID ( BB ) < < " " < < RCRootVault [ i ] ) ; <nl> } <nl> } <nl> <nl> void ReleaseCodeMotionContext : : computeCodeMotionInsertPoints ( ) { <nl> if ( ! SBB - > BBSetIn [ i ] ) <nl> continue ; <nl> InsertPoints [ RCRootVault [ i ] ] . push_back ( & * ( * Succ ) . begin ( ) ) ; <nl> + LLVM_DEBUG ( llvm : : dbgs ( ) <nl> + < < " Release terminator use . Insert at successor : " <nl> + < < printCtx - > getID ( BB ) < < " " < < RCRootVault [ i ] ) ; <nl> } <nl> S - > BBSetOut . reset ( i ) ; <nl> } <nl>
|
ARCCodeMotion : add debug tracing .
|
apple/swift
|
8116c0b5964cc0c35f99cc0acc5c32d6721f6ea0
|
2019-07-01T19:00:49Z
|
new file mode 100644 <nl> index 0000000000 . . bd4a8bc2f8 <nl> mmm / dev / null <nl> ppp b / CMakeLibs . txt <nl> <nl> + # - * - mode : cmake ; - * - <nl> + # - osquery macro definitions <nl> + # <nl> + # Remove boilerplate code for linking the osquery core dependent libs <nl> + # compiling and handling static or dynamic ( run time load ) libs . <nl> + <nl> + # osquery - specific helper macros <nl> + MACRO ( SET_OSQUERY_COMPILE TARGET ) <nl> + SET_TARGET_PROPERTIES ( $ { TARGET } PROPERTIES COMPILE_FLAGS $ { OS_COMPILE_FLAGS } ) <nl> + SET ( OPTIONAL_FLAGS $ { ARGN } ) <nl> + LIST ( LENGTH OPTIONAL_FLAGS NUM_OPTIONAL_FLAGS ) <nl> + if ( $ { NUM_OPTIONAL_FLAGS } GREATER 0 ) <nl> + SET_TARGET_PROPERTIES ( $ { TARGET } PROPERTIES COMPILE_FLAGS $ { OPTIONAL_FLAGS } ) <nl> + ENDIF ( ) <nl> + ENDMACRO ( SET_OSQUERY_COMPILE ) <nl> + <nl> + MACRO ( ADD_OSQUERY_TEST TEST_NAME SOURCE ) <nl> + if ( NOT DEFINED ENV { SKIP_TESTS } ) <nl> + ADD_EXECUTABLE ( $ { TEST_NAME } $ { SOURCE } ) <nl> + TARGET_OSQUERY_LINK_WHOLE ( $ { TEST_NAME } libosquery ) <nl> + TARGET_LINK_LIBRARIES ( $ { TEST_NAME } libosquery_extra ) <nl> + TARGET_LINK_LIBRARIES ( $ { TEST_NAME } gtest ) <nl> + TARGET_LINK_LIBRARIES ( $ { TEST_NAME } glog ) <nl> + SET ( OPTIONAL_FLAGS $ { ARGN } ) <nl> + SET_OSQUERY_COMPILE ( $ { TEST_NAME } " $ { OPTIONAL_FLAGS } " ) <nl> + ADD_TEST ( $ { TEST_NAME } $ { TEST_NAME } ) <nl> + endif ( ) <nl> + ENDMACRO ( ADD_OSQUERY_TEST ) <nl> + <nl> + # Core / non core link helping macros ( tell the build to link ALL ) . <nl> + macro ( ADD_OSQUERY_LINK LINK ) <nl> + list ( APPEND OSQUERY_ADDITIONAL_LINKS $ { LINK } ) <nl> + set ( OSQUERY_ADDITIONAL_LINKS $ { OSQUERY_ADDITIONAL_LINKS } PARENT_SCOPE ) <nl> + endmacro ( ADD_OSQUERY_LINK ) <nl> + <nl> + macro ( ADD_OSQUERY_CORE_LINK LINK ) <nl> + list ( APPEND OSQUERY_LINKS $ { LINK } ) <nl> + set ( OSQUERY_LINKS $ { OSQUERY_LINKS } PARENT_SCOPE ) <nl> + endmacro ( ADD_OSQUERY_CORE_LINK ) <nl> + <nl> + # Core / non core lists of target source files . <nl> + macro ( ADD_OSQUERY_LIBRARY TARGET ) <nl> + add_library ( $ { TARGET } OBJECT $ { ARGN } ) <nl> + SET_OSQUERY_COMPILE ( $ { TARGET } ) <nl> + list ( APPEND OSQUERY_ADDITIONAL_SOURCES $ < TARGET_OBJECTS : $ { TARGET } > ) <nl> + set ( OSQUERY_ADDITIONAL_SOURCES $ { OSQUERY_ADDITIONAL_SOURCES } PARENT_SCOPE ) <nl> + endmacro ( ADD_OSQUERY_LIBRARY TARGET ) <nl> + <nl> + macro ( ADD_OSQUERY_CORE_LIBRARY TARGET ) <nl> + add_library ( $ { TARGET } OBJECT $ { ARGN } ) <nl> + SET_OSQUERY_COMPILE ( $ { TARGET } ) <nl> + list ( APPEND OSQUERY_SOURCES $ < TARGET_OBJECTS : $ { TARGET } > ) <nl> + set ( OSQUERY_SOURCES $ { OSQUERY_SOURCES } PARENT_SCOPE ) <nl> + endmacro ( ADD_OSQUERY_CORE_LIBRARY TARGET ) <nl> + <nl> + # Core / non core lists of target source files compiled as ObjC + + . <nl> + macro ( ADD_OSQUERY_OBJCXX_LIBRARY TARGET ) <nl> + add_library ( $ { TARGET } OBJECT $ { ARGN } ) <nl> + SET_OSQUERY_COMPILE ( $ { TARGET } " $ { OBJCXX_COMPILE_FLAGS } " ) <nl> + list ( APPEND OSQUERY_ADDITIONAL_SOURCES $ < TARGET_OBJECTS : $ { TARGET } > ) <nl> + set ( OSQUERY_ADDITIONAL_SOURCES $ { OSQUERY_SOURCES } PARENT_SCOPE ) <nl> + endmacro ( ADD_OSQUERY_OBJCXX_LIBRARY TARGET ) <nl> + <nl> + macro ( ADD_OSQUERY_CORE_OBJCXX_LIBRARY TARGET ) <nl> + add_library ( $ { TARGET } OBJECT $ { ARGN } ) <nl> + SET_OSQUERY_COMPILE ( $ { TARGET } " $ { OBJCXX_COMPILE_FLAGS } " ) <nl> + list ( APPEND OSQUERY_SOURCES $ < TARGET_OBJECTS : $ { TARGET } > ) <nl> + set ( OSQUERY_SOURCES $ { OSQUERY_SOURCES } PARENT_SCOPE ) <nl> + endmacro ( ADD_OSQUERY_CORE_OBJCXX_LIBRARY TARGET ) <nl> + <nl> + # Helper to abstract OS / Compiler whole linking . <nl> + macro ( TARGET_OSQUERY_LINK_WHOLE TARGET OSQUERY_LIB ) <nl> + TARGET_LINK_LIBRARIES ( $ { TARGET } " $ { OS_WHOLELINK_PRE } " ) <nl> + TARGET_LINK_LIBRARIES ( $ { TARGET } $ { OSQUERY_LIB } ) <nl> + TARGET_LINK_LIBRARIES ( $ { TARGET } " $ { OS_WHOLELINK_POST } " ) <nl> + endmacro ( TARGET_OSQUERY_LINK_WHOLE ) <nl> mmm a / CMakeLists . txt <nl> ppp b / CMakeLists . txt <nl> if ( APPLE ) <nl> set ( APPLE_MIN_ABI " 10 . 9 " ) <nl> set ( OS_COMPILE_FLAGS " - std = c + + 11 - stdlib = libc + + - mmacosx - version - min = $ { APPLE_MIN_ABI } " ) <nl> # Special compile flags for Objective - C + + <nl> - set ( OBJCXX_COMPILE_FLAGS " - x objective - c + + - fobjc - arc " ) <nl> + set ( OBJCXX_COMPILE_FLAGS " - x objective - c + + - fobjc - arc - Wno - c + + 11 - extensions " ) <nl> set ( OS_WHOLELINK_PRE " - Wl , - all_load " ) <nl> set ( OS_WHOLELINK_POST " " ) <nl> else ( ) <nl> else ( ) <nl> set ( OS_WHOLELINK_PRE " - Wl , - whole - archive " ) <nl> set ( OS_WHOLELINK_POST " - Wl , - no - whole - archive " ) <nl> endif ( ) <nl> - if ( " $ { CMAKE_BUILD_TYPE } " STREQUAL " Debug " ) <nl> - set ( OS_COMPILE_FLAGS " $ { OS_COMPILE_FLAGS } - g - DDEBUG " ) <nl> - endif ( ) <nl> + endif ( ) <nl> + <nl> + if ( " $ { CMAKE_BUILD_TYPE } " STREQUAL " Debug " ) <nl> + set ( OS_COMPILE_FLAGS " $ { OS_COMPILE_FLAGS } - g - DDEBUG - O0 " ) <nl> + else ( ) <nl> + set ( OS_COMPILE_FLAGS " $ { OS_COMPILE_FLAGS } - O2 " ) <nl> endif ( ) <nl> <nl> # Use osquery language to set platform / os <nl> LINK_DIRECTORIES ( " / usr / local / lib " ) <nl> <nl> ENABLE_TESTING ( ) <nl> <nl> - # osquery - specific helper macros <nl> - MACRO ( SET_OSQUERY_COMPILE TARGET ) <nl> - SET_TARGET_PROPERTIES ( $ { TARGET } PROPERTIES COMPILE_FLAGS $ { OS_COMPILE_FLAGS } ) <nl> - SET ( OPTIONAL_FLAGS $ { ARGN } ) <nl> - LIST ( LENGTH OPTIONAL_FLAGS NUM_OPTIONAL_FLAGS ) <nl> - if ( $ { NUM_OPTIONAL_FLAGS } GREATER 0 ) <nl> - SET_TARGET_PROPERTIES ( $ { TARGET } PROPERTIES COMPILE_FLAGS $ { OPTIONAL_FLAGS } ) <nl> - ENDIF ( ) <nl> - ENDMACRO ( SET_OSQUERY_COMPILE ) <nl> - <nl> - MACRO ( ADD_OSQUERY_TEST TEST_NAME SOURCE ) <nl> - if ( NOT DEFINED ENV { SKIP_TESTS } ) <nl> - ADD_EXECUTABLE ( $ { TEST_NAME } $ { SOURCE } ) <nl> - TARGET_OSQUERY_LINK_WHOLE ( $ { TEST_NAME } libosquery ) <nl> - TARGET_LINK_LIBRARIES ( $ { TEST_NAME } gtest ) <nl> - TARGET_LINK_LIBRARIES ( $ { TEST_NAME } glog ) <nl> - SET ( OPTIONAL_FLAGS $ { ARGN } ) <nl> - SET_OSQUERY_COMPILE ( $ { TEST_NAME } " $ { OPTIONAL_FLAGS } " ) <nl> - ADD_TEST ( $ { TEST_NAME } $ { TEST_NAME } ) <nl> - endif ( ) <nl> - ENDMACRO ( ADD_OSQUERY_TEST ) <nl> - <nl> + include ( CMakeLibs . txt ) <nl> ADD_SUBDIRECTORY ( osquery ) <nl> ADD_SUBDIRECTORY ( tools / tests ) <nl> <nl> ADD_CUSTOM_TARGET ( <nl> WORKING_DIRECTORY " $ { CMAKE_SOURCE_DIR } " <nl> COMMENT " Formatting code staged code changes with clang - format " VERBATIM <nl> ) <nl> - <nl> mmm a / osquery / CMakeLists . txt <nl> ppp b / osquery / CMakeLists . txt <nl> ADD_DEFINITIONS ( " <nl> - D $ { OSQUERY_BUILD_OS } _ $ { OSQUERY_BUILD_DISTRO } <nl> " ) <nl> <nl> - # Core / non core link helping macros ( tell the build to link ALL ) . <nl> - macro ( ADD_OSQUERY_LINK LINK ) <nl> - list ( APPEND OSQUERY_ADDITIONAL_LINKS $ { LINK } ) <nl> - set ( OSQUERY_ADDITIONAL_LINKS $ { OSQUERY_ADDITIONAL_LINKS } PARENT_SCOPE ) <nl> - endmacro ( ADD_OSQUERY_LINK ) <nl> - <nl> - macro ( ADD_OSQUERY_CORE_LINK LINK ) <nl> - list ( APPEND OSQUERY_LINKS $ { LINK } ) <nl> - set ( OSQUERY_LINKS $ { OSQUERY_LINKS } PARENT_SCOPE ) <nl> - endmacro ( ADD_OSQUERY_CORE_LINK ) <nl> - <nl> - # Core / non core lists of target source files . <nl> - macro ( ADD_OSQUERY_LIBRARY TARGET ) <nl> - add_library ( $ { TARGET } OBJECT $ { ARGN } ) <nl> - SET_OSQUERY_COMPILE ( $ { TARGET } ) <nl> - list ( APPEND OSQUERY_ADDITIONAL_SOURCES $ < TARGET_OBJECTS : $ { TARGET } > ) <nl> - set ( OSQUERY_ADDITIONAL_SOURCES $ { OSQUERY_ADDITIONAL_SOURCES } PARENT_SCOPE ) <nl> - endmacro ( ADD_OSQUERY_LIBRARY TARGET ) <nl> - <nl> - macro ( ADD_OSQUERY_CORE_LIBRARY TARGET ) <nl> - add_library ( $ { TARGET } OBJECT $ { ARGN } ) <nl> - SET_OSQUERY_COMPILE ( $ { TARGET } ) <nl> - list ( APPEND OSQUERY_SOURCES $ < TARGET_OBJECTS : $ { TARGET } > ) <nl> - set ( OSQUERY_SOURCES $ { OSQUERY_SOURCES } PARENT_SCOPE ) <nl> - endmacro ( ADD_OSQUERY_CORE_LIBRARY TARGET ) <nl> - <nl> - # Core / non core lists of target source files compiled as ObjC + + . <nl> - macro ( ADD_OSQUERY_OBJCXX_LIBRARY TARGET ) <nl> - add_library ( $ { TARGET } OBJECT $ { ARGN } ) <nl> - SET_OSQUERY_COMPILE ( $ { TARGET } " $ { OBJCXX_COMPILE_FLAGS } " ) <nl> - list ( APPEND OSQUERY_ADDITIONAL_SOURCES $ < TARGET_OBJECTS : $ { TARGET } > ) <nl> - set ( OSQUERY_ADDITIONAL_SOURCES $ { OSQUERY_SOURCES } PARENT_SCOPE ) <nl> - endmacro ( ADD_OSQUERY_OBJCXX_LIBRARY TARGET ) <nl> - <nl> - macro ( ADD_OSQUERY_CORE_OBJCXX_LIBRARY TARGET ) <nl> - add_library ( $ { TARGET } OBJECT $ { ARGN } ) <nl> - SET_OSQUERY_COMPILE ( $ { TARGET } " $ { OBJCXX_COMPILE_FLAGS } " ) <nl> - list ( APPEND OSQUERY_SOURCES $ < TARGET_OBJECTS : $ { TARGET } > ) <nl> - set ( OSQUERY_SOURCES $ { OSQUERY_SOURCES } PARENT_SCOPE ) <nl> - endmacro ( ADD_OSQUERY_CORE_OBJCXX_LIBRARY TARGET ) <nl> - <nl> - # Helper to abstract OS / Compiler whole linking . <nl> - macro ( TARGET_OSQUERY_LINK_WHOLE TARGET OSQUERY_LIB ) <nl> - TARGET_LINK_LIBRARIES ( $ { TARGET } " $ { OS_WHOLELINK_PRE } " ) <nl> - TARGET_LINK_LIBRARIES ( $ { TARGET } $ { OSQUERY_LIB } ) <nl> - TARGET_LINK_LIBRARIES ( $ { TARGET } " $ { OS_WHOLELINK_POST } " ) <nl> - endmacro ( TARGET_OSQUERY_LINK_WHOLE ) <nl> - <nl> # Fill in libraries for Apple , Uunbut , Centos , FreeBSD <nl> if ( APPLE ) <nl> set ( OSQUERY_LIBS $ { OSQUERY_LIBS } $ { OSQUERY_APPLE_LIBS } ) <nl> ADD_SUBDIRECTORY ( scheduler ) <nl> include ( tables / CMakeLibs . txt ) <nl> ADD_SUBDIRECTORY ( tables ) <nl> <nl> - # If the builder wants to include the additional non - utility core tables . <nl> - GENERATE_TABLES ( " $ { CMAKE_SOURCE_DIR } / osquery / tables " " $ { CMAKE_SOURCE_DIR } " ) <nl> - list ( APPEND OSQUERY_OBJECTS $ { OSQUERY_ADDITIONAL_SOURCES } ) <nl> - list ( APPEND OSQUERY_LIBS $ { OSQUERY_ADDITIONAL_LINKS } ) <nl> - <nl> # Utility tables are table specs that are ALWAYS built into osquery core . <nl> GENERATE_UTILITY ( " osquery_info " ) <nl> GENERATE_UTILITY ( " osquery_flags " ) <nl> GENERATE_UTILITY ( " file " ) <nl> GENERATE_UTILITY ( " hash " ) <nl> <nl> # Finally amalgamate all the tables . <nl> - AMALGAMATE ( " $ { CMAKE_SOURCE_DIR } " " amalgamate " AMALGAMATION_CORE ) <nl> - ADD_OSQUERY_CORE_LIBRARY ( osquery_core_tables $ { AMALGAMATION_CORE } ) <nl> + AMALGAMATE ( " $ { CMAKE_SOURCE_DIR } " " utils " AMALGAMATION_UTILS ) <nl> + ADD_OSQUERY_CORE_LIBRARY ( osquery_utils_amalgamation $ { AMALGAMATION_UTILS } ) <nl> <nl> list ( APPEND OSQUERY_OBJECTS $ { OSQUERY_SOURCES } ) <nl> list ( APPEND OSQUERY_LIBS $ { OSQUERY_LINKS } ) <nl> TARGET_LINK_LIBRARIES ( libosquery $ { OSQUERY_LIBS } ) <nl> SET_TARGET_PROPERTIES ( libosquery PROPERTIES OUTPUT_NAME osquery ) <nl> INSTALL ( TARGETS libosquery DESTINATION lib ) <nl> <nl> + # Generate the osquery core tables ( the non - util ) . <nl> + GENERATE_TABLES ( " $ { CMAKE_SOURCE_DIR } / osquery / tables " " $ { CMAKE_SOURCE_DIR } " ) <nl> + AMALGAMATE ( " $ { CMAKE_SOURCE_DIR } " " core " AMALGAMATION_CORE ) <nl> + ADD_OSQUERY_LIBRARY ( osquery_core_amalgamation $ { AMALGAMATION_CORE } ) <nl> + <nl> + # Create the static libosquery_extra <nl> + ADD_LIBRARY ( libosquery_extra STATIC main / empty . cpp $ { OSQUERY_ADDITIONAL_SOURCES } ) <nl> + TARGET_LINK_LIBRARIES ( libosquery_extra <nl> + " $ { OSQUERY_ADDITIONAL_LINKS } " ) <nl> + SET_TARGET_PROPERTIES ( libosquery_extra PROPERTIES OUTPUT_NAME osquery_extra ) <nl> + INSTALL ( TARGETS libosquery_extra DESTINATION lib ) <nl> + <nl> # Include the public API includes <nl> INSTALL ( DIRECTORY " $ { CMAKE_SOURCE_DIR } / include / " DESTINATION include ) <nl> <nl> ADD_EXECUTABLE ( shell main / shell . cpp ) <nl> TARGET_OSQUERY_LINK_WHOLE ( shell libosquery ) <nl> + TARGET_OSQUERY_LINK_WHOLE ( shell libosquery_extra ) <nl> SET_TARGET_PROPERTIES ( shell PROPERTIES OUTPUT_NAME osqueryi ) <nl> SET_TARGET_PROPERTIES ( shell PROPERTIES COMPILE_FLAGS $ { OS_COMPILE_FLAGS } ) <nl> INSTALL ( TARGETS shell DESTINATION bin ) <nl> <nl> ADD_EXECUTABLE ( daemon main / daemon . cpp ) <nl> - TARGET_LINK_LIBRARIES ( daemon libosquery ) <nl> + TARGET_OSQUERY_LINK_WHOLE ( daemon libosquery ) <nl> + # TARGET_OSQUERY_LINK_WHOLE ( daemon libosquery_extra ) <nl> SET_TARGET_PROPERTIES ( daemon PROPERTIES OUTPUT_NAME osqueryd ) <nl> SET_TARGET_PROPERTIES ( daemon PROPERTIES COMPILE_FLAGS $ { OS_COMPILE_FLAGS } ) <nl> INSTALL ( TARGETS daemon DESTINATION bin ) <nl> <nl> - # packages <nl> + ADD_EXECUTABLE ( run main / run . cpp ) <nl> + TARGET_OSQUERY_LINK_WHOLE ( run libosquery ) <nl> + # TARGET_OSQUERY_LINK_WHOLE ( run libosquery_extra ) <nl> + SET_TARGET_PROPERTIES ( run PROPERTIES COMPILE_FLAGS $ { OS_COMPILE_FLAGS } ) <nl> + INSTALL ( TARGETS run DESTINATION bin ) <nl> <nl> + <nl> + # packages <nl> if ( LINUX ) <nl> SET ( CPACK_PACKAGE_NAME " osquery " ) <nl> SET ( CPACK_PACKAGE_VENDOR " facebook " ) <nl> mmm a / osquery / events / CMakeLists . txt <nl> ppp b / osquery / events / CMakeLists . txt <nl> SET ( OSQUERY_EVENTS_SOURCES " " ) <nl> if ( APPLE ) <nl> ADD_OSQUERY_CORE_LINK ( " - framework CoreServices " ) <nl> ADD_OSQUERY_CORE_LINK ( " - framework SystemConfiguration " ) <nl> + ADD_OSQUERY_CORE_LINK ( " - framework IOKit " ) <nl> <nl> ADD_OSQUERY_CORE_LIBRARY ( osquery_events_darwin <nl> darwin / fsevents . cpp <nl> similarity index 97 % <nl> rename from tools / tests / run . cpp <nl> rename to osquery / main / run . cpp <nl> mmm a / tools / tests / run . cpp <nl> ppp b / osquery / main / run . cpp <nl> <nl> # include < gflags / gflags . h > <nl> # include < glog / logging . h > <nl> <nl> - # include " osquery / core . h " <nl> + # include < osquery / core . h > <nl> <nl> DEFINE_string ( query , " " , " query to execute " ) ; <nl> DEFINE_int32 ( iterations , 1 , " times to run the query in question " ) ; <nl> mmm a / osquery / tables / CMakeLibs . txt <nl> ppp b / osquery / tables / CMakeLibs . txt <nl> endmacro ( ) <nl> <nl> # Find and generate table plugins from . table syntax <nl> macro ( GENERATE_TABLES TABLES_PATH BASE_PATH ) <nl> - set ( TABLE_FILES_PLATFORM " " ) <nl> + # Get all matching files for all platforms . <nl> file ( GLOB TABLE_FILES " $ { TABLES_PATH } / specs / x / * . table " ) <nl> - <nl> + set ( TABLE_FILES_PLATFORM " " ) <nl> if ( APPLE ) <nl> file ( GLOB TABLE_FILES_PLATFORM " $ { TABLES_PATH } / specs / darwin / * . table " ) <nl> elseif ( FREEBSD ) <nl> macro ( GENERATE_TABLES TABLES_PATH BASE_PATH ) <nl> else ( ) <nl> file ( GLOB TABLE_FILES_PLATFORM " $ { TABLES_PATH } / specs / linux / * . table " ) <nl> endif ( ) <nl> - <nl> list ( APPEND TABLE_FILES $ { TABLE_FILES_PLATFORM } ) <nl> - set_directory_properties ( PROPERTY <nl> - ADDITIONAL_MAKE_CLEAN_FILES " $ { CMAKE_BINARY_DIR } / generated " ) <nl> - GET_GENERATION_DEPS ( " $ { BASE_PATH } " ) <nl> <nl> + get_property ( TARGETS GLOBAL PROPERTY AMALGAMATE_TARGETS ) <nl> + set ( NEW_TARGETS " " ) <nl> foreach ( TABLE_FILE $ { TABLE_FILES } ) <nl> - set_property ( GLOBAL APPEND PROPERTY AMALGAMATE_TARGETS " $ { TABLE_FILE } " ) <nl> + list ( FIND TARGETS " $ { TABLE_FILE } " INDEX ) <nl> + if ( $ { INDEX } EQUAL - 1 ) <nl> + # Do not set duplicate targets . <nl> + list ( APPEND NEW_TARGETS " $ { TABLE_FILE } " ) <nl> + endif ( ) <nl> endforeach ( ) <nl> + set_property ( GLOBAL PROPERTY AMALGAMATE_TARGETS " $ { NEW_TARGETS } " ) <nl> endmacro ( ) <nl> <nl> macro ( GENERATE_UTILITY TABLE_NAME ) <nl> macro ( GENERATE_UTILITY TABLE_NAME ) <nl> set_property ( GLOBAL APPEND PROPERTY AMALGAMATE_TARGETS " $ { TABLE_SPEC } " ) <nl> endmacro ( ) <nl> <nl> - macro ( GENERATE_TABLE TABLE_FILE BASE_PATH OUTPUT ) <nl> + macro ( GENERATE_TABLE TABLE_FILE NAME BASE_PATH OUTPUT ) <nl> set ( TABLE_FILE_GEN $ { TABLE_FILE } ) <nl> string ( REPLACE " . table " " . cpp " TABLE_FILE_GEN $ { TABLE_FILE_GEN } ) <nl> string ( REPLACE " linux / " " " TABLE_FILE_GEN $ { TABLE_FILE_GEN } ) <nl> macro ( GENERATE_TABLE TABLE_FILE BASE_PATH OUTPUT ) <nl> string ( REPLACE " x / " " " TABLE_FILE_GEN $ { TABLE_FILE_GEN } ) <nl> string ( REGEX REPLACE <nl> " . * / specs " <nl> - " $ { CMAKE_BINARY_DIR } / generated / tables " <nl> + " $ { CMAKE_BINARY_DIR } / generated / tables_ $ { NAME } " <nl> TABLE_FILE_GEN <nl> $ { TABLE_FILE_GEN } <nl> ) <nl> macro ( AMALGAMATE BASE_PATH NAME OUTPUT ) <nl> <nl> set ( GENERATED_TARGETS " " ) <nl> foreach ( TARGET $ { TARGETS } ) <nl> - GENERATE_TABLE ( $ { TARGET } $ { BASE_PATH } GENERATED_TARGETS ) <nl> + GENERATE_TABLE ( $ { TARGET } $ { NAME } $ { BASE_PATH } GENERATED_TARGETS ) <nl> endforeach ( ) <nl> <nl> + # Include the generated folder in make clean . <nl> + set_directory_properties ( PROPERTY <nl> + ADDITIONAL_MAKE_CLEAN_FILES " $ { CMAKE_BINARY_DIR } / generated " ) <nl> + <nl> # Append all of the code to a single amalgamation . <nl> add_custom_command ( <nl> - OUTPUT " $ { CMAKE_BINARY_DIR } / generated / $ { NAME } . cpp " <nl> + OUTPUT " $ { CMAKE_BINARY_DIR } / generated / $ { NAME } _amalgamation . cpp " <nl> COMMAND python " $ { BASE_PATH } / tools / codegen / amalgamate . py " <nl> " $ { BASE_PATH } / osquery / tables / " " $ { CMAKE_BINARY_DIR } / generated " " $ { NAME } " <nl> DEPENDS $ { GENERATED_TARGETS } $ { GENERATION_DEPENDENCIES } <nl> WORKING_DIRECTORY " $ { CMAKE_SOURCE_DIR } " <nl> ) <nl> <nl> - set ( $ { OUTPUT } " $ { CMAKE_BINARY_DIR } / generated / $ { NAME } . cpp " ) <nl> - set_property ( GLOBAL PROPERTY AMALGAMATE_TARGETS " " ) <nl> + set ( $ { OUTPUT } " $ { CMAKE_BINARY_DIR } / generated / $ { NAME } _amalgamation . cpp " ) <nl> endmacro ( ) <nl> mmm a / osquery / tables / CMakeLists . txt <nl> ppp b / osquery / tables / CMakeLists . txt <nl> if ( APPLE ) <nl> system / darwin / osx_version . mm <nl> system / darwin / users . mm <nl> system / darwin / groups . mm <nl> + system / darwin / ca_certs . mm <nl> ) <nl> <nl> ADD_OSQUERY_LIBRARY ( osquery_tables_darwin <nl> if ( APPLE ) <nl> networking / darwin / listening_ports . cpp <nl> networking / darwin / routes . cpp <nl> system / darwin / apps . cpp <nl> - system / darwin / ca_certs . cpp <nl> + system / darwin / ca_certs_utils . cpp <nl> system / darwin / firewall . h <nl> system / darwin / firewall . cpp <nl> system / darwin / homebrew_packages . cpp <nl> mmm a / tools / codegen / amalgamate . py <nl> ppp b / tools / codegen / amalgamate . py <nl> <nl> <nl> def usage ( progname ) : <nl> " " " print program usage " " " <nl> - print ( " Usage : % s / path / to / tables / path / to / generated output . cpp " % progname ) <nl> + print ( ( " Usage : % s / path / to / tables " <nl> + " / path / to / generated output [ _amalgamation . cpp ] " ) % progname ) <nl> return 1 <nl> <nl> <nl> def main ( argc , argv ) : <nl> with open ( template , " rU " ) as fh : <nl> template_data = fh . read ( ) <nl> <nl> - for base , _ , filenames in os . walk ( os . path . join ( directory , " tables " ) ) : <nl> + for base , _ , filenames in os . walk ( os . path . join ( directory , <nl> + " tables_ % s " % ( name ) ) ) : <nl> for filename in filenames : <nl> if filename = = name : <nl> continue <nl> def main ( argc , argv ) : <nl> <nl> amalgamation = jinja2 . Template ( template_data ) . render ( <nl> tables = tables ) <nl> - output = os . path . join ( directory , " % s . cpp " % name ) <nl> + output = os . path . join ( directory , " % s_amalgamation . cpp " % name ) <nl> try : <nl> os . makedirs ( os . path . dirname ( output ) ) <nl> except : <nl> mmm a / tools / profile . py <nl> ppp b / tools / profile . py <nl> def regress_check ( profile1 , profile2 ) : <nl> help = " Run the profile for N rounds and use the average . " <nl> ) <nl> group . add_argument ( <nl> - " - - shell " , metavar = " PATH " , default = " . / build / % s / tools / tests / run " % ( <nl> + " - - shell " , metavar = " PATH " , default = " . / build / % s / osquery / run " % ( <nl> platform ) , <nl> - help = " Path to osquery run wrapper ( . / build / < sys > / tools / run ) . " <nl> + help = " Path to osquery run wrapper ( . / build / < sys > / osquery / run ) . " <nl> ) <nl> <nl> group = parser . add_argument_group ( " Performance Options : " ) <nl> mmm a / tools / tests / CMakeLists . txt <nl> ppp b / tools / tests / CMakeLists . txt <nl> <nl> - # ADD_EXECUTABLE ( flag_test flag_test . cpp ) <nl> - # TARGET_LINK_LIBRARIES ( flag_test gflags glog ) <nl> - # SET_TARGET_PROPERTIES ( flag_test PROPERTIES COMPILE_FLAGS $ { OS_COMPILE_FLAGS } ) <nl> - <nl> ADD_OSQUERY_TEST ( flag_test flag_test . cpp ) <nl> <nl> - # ADD_EXECUTABLE ( registry_test registry_test . cpp ) <nl> - # TARGET_LINK_LIBRARIES ( registry_test osquery_shared ) <nl> - # SET_TARGET_PROPERTIES ( registry_test PROPERTIES COMPILE_FLAGS $ { OS_COMPILE_FLAGS } ) <nl> - # ADD_TEST ( registry_test registry_test ) <nl> - <nl> ADD_OSQUERY_TEST ( registry_test registry_test . cpp ) <nl> - <nl> - ADD_EXECUTABLE ( run run . cpp ) <nl> - TARGET_LINK_LIBRARIES ( run libosquery ) <nl> - SET_TARGET_PROPERTIES ( run PROPERTIES COMPILE_FLAGS $ { OS_COMPILE_FLAGS } ) <nl> \ No newline at end of file <nl>
|
Removed ' core ' tables as a build dependency
|
osquery/osquery
|
94811f3ee87ef45b90001caabe4003c4787fd0c0
|
2014-12-25T20:46:59Z
|
mmm a / platform / javascript / os_javascript . cpp <nl> ppp b / platform / javascript / os_javascript . cpp <nl> <nl> # define DOM_BUTTON_RIGHT 2 <nl> # define DOM_BUTTON_XBUTTON1 3 <nl> # define DOM_BUTTON_XBUTTON2 4 <nl> + # define GODOT_CANVAS_SELECTOR " # canvas " <nl> <nl> / / Window ( canvas ) <nl> <nl> static bool is_canvas_focused ( ) { <nl> / * clang - format on * / <nl> } <nl> <nl> - static Point2 correct_canvas_position ( int x , int y ) { <nl> + static Point2 compute_position_in_canvas ( int x , int y ) { <nl> + int canvas_x = EM_ASM_INT ( { <nl> + return document . getElementById ( ' canvas ' ) . getBoundingClientRect ( ) . x ; <nl> + } ) ; <nl> + int canvas_y = EM_ASM_INT ( { <nl> + return document . getElementById ( ' canvas ' ) . getBoundingClientRect ( ) . y ; <nl> + } ) ; <nl> int canvas_width ; <nl> int canvas_height ; <nl> - emscripten_get_canvas_element_size ( NULL , & canvas_width , & canvas_height ) ; <nl> + emscripten_get_canvas_element_size ( GODOT_CANVAS_SELECTOR , & canvas_width , & canvas_height ) ; <nl> <nl> double element_width ; <nl> double element_height ; <nl> - emscripten_get_element_css_size ( NULL , & element_width , & element_height ) ; <nl> + emscripten_get_element_css_size ( GODOT_CANVAS_SELECTOR , & element_width , & element_height ) ; <nl> <nl> - x = ( int ) ( canvas_width / element_width * x ) ; <nl> - y = ( int ) ( canvas_height / element_height * y ) ; <nl> - return Point2 ( x , y ) ; <nl> + return Point2 ( ( int ) ( canvas_width / element_width * ( x - canvas_x ) ) , <nl> + ( int ) ( canvas_height / element_height * ( y - canvas_y ) ) ) ; <nl> } <nl> <nl> static bool cursor_inside_canvas = true ; <nl> void OS_JavaScript : : set_window_size ( const Size2 p_size ) { <nl> emscripten_exit_soft_fullscreen ( ) ; <nl> window_maximized = false ; <nl> } <nl> - emscripten_set_canvas_element_size ( NULL , p_size . x , p_size . y ) ; <nl> + emscripten_set_canvas_element_size ( GODOT_CANVAS_SELECTOR , p_size . x , p_size . y ) ; <nl> } <nl> } <nl> <nl> Size2 OS_JavaScript : : get_window_size ( ) const { <nl> <nl> int canvas [ 2 ] ; <nl> - emscripten_get_canvas_element_size ( NULL , canvas , canvas + 1 ) ; <nl> + emscripten_get_canvas_element_size ( GODOT_CANVAS_SELECTOR , canvas , canvas + 1 ) ; <nl> return Size2 ( canvas [ 0 ] , canvas [ 1 ] ) ; <nl> } <nl> <nl> void OS_JavaScript : : set_window_maximized ( bool p_enabled ) { <nl> strategy . canvasResolutionScaleMode = EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_STDDEF ; <nl> strategy . filteringMode = EMSCRIPTEN_FULLSCREEN_FILTERING_DEFAULT ; <nl> strategy . canvasResizedCallback = NULL ; <nl> - emscripten_enter_soft_fullscreen ( NULL , & strategy ) ; <nl> + emscripten_enter_soft_fullscreen ( GODOT_CANVAS_SELECTOR , & strategy ) ; <nl> window_maximized = p_enabled ; <nl> } <nl> } <nl> void OS_JavaScript : : set_window_fullscreen ( bool p_enabled ) { <nl> strategy . canvasResolutionScaleMode = EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_STDDEF ; <nl> strategy . filteringMode = EMSCRIPTEN_FULLSCREEN_FILTERING_DEFAULT ; <nl> strategy . canvasResizedCallback = NULL ; <nl> - EMSCRIPTEN_RESULT result = emscripten_request_fullscreen_strategy ( NULL , false , & strategy ) ; <nl> + EMSCRIPTEN_RESULT result = emscripten_request_fullscreen_strategy ( GODOT_CANVAS_SELECTOR , false , & strategy ) ; <nl> ERR_FAIL_COND_MSG ( result = = EMSCRIPTEN_RESULT_FAILED_NOT_DEFERRED , " Enabling fullscreen is only possible from an input callback for the HTML5 platform . " ) ; <nl> ERR_FAIL_COND_MSG ( result ! = EMSCRIPTEN_RESULT_SUCCESS , " Enabling fullscreen is only possible from an input callback for the HTML5 platform . " ) ; <nl> / / Not fullscreen yet , so prevent " windowed " canvas dimensions from <nl> EM_BOOL OS_JavaScript : : mouse_button_callback ( int p_event_type , const EmscriptenM <nl> Ref < InputEventMouseButton > ev ; <nl> ev . instance ( ) ; <nl> ev - > set_pressed ( p_event_type = = EMSCRIPTEN_EVENT_MOUSEDOWN ) ; <nl> - ev - > set_position ( correct_canvas_position ( p_event - > canvasX , p_event - > canvasY ) ) ; <nl> + ev - > set_position ( compute_position_in_canvas ( p_event - > clientX , p_event - > clientY ) ) ; <nl> ev - > set_global_position ( ev - > get_position ( ) ) ; <nl> dom2godot_mod ( p_event , ev ) ; <nl> <nl> EM_BOOL OS_JavaScript : : mousemove_callback ( int p_event_type , const EmscriptenMous <nl> OS_JavaScript * os = get_singleton ( ) ; <nl> <nl> int input_mask = os - > input - > get_mouse_button_mask ( ) ; <nl> - Point2 pos = correct_canvas_position ( p_event - > canvasX , p_event - > canvasY ) ; <nl> + Point2 pos = compute_position_in_canvas ( p_event - > clientX , p_event - > clientY ) ; <nl> / / For motion outside the canvas , only read mouse movement if dragging <nl> / / started inside the canvas ; imitating desktop app behaviour . <nl> if ( ! cursor_inside_canvas & & ! input_mask ) <nl> EM_BOOL OS_JavaScript : : touch_press_callback ( int p_event_type , const EmscriptenTo <nl> if ( ! touch . isChanged ) <nl> continue ; <nl> ev - > set_index ( touch . identifier ) ; <nl> - ev - > set_position ( correct_canvas_position ( touch . canvasX , touch . canvasY ) ) ; <nl> + ev - > set_position ( compute_position_in_canvas ( touch . clientX , touch . clientY ) ) ; <nl> os - > touches [ i ] = ev - > get_position ( ) ; <nl> ev - > set_pressed ( p_event_type = = EMSCRIPTEN_EVENT_TOUCHSTART ) ; <nl> <nl> EM_BOOL OS_JavaScript : : touchmove_callback ( int p_event_type , const EmscriptenTouc <nl> if ( ! touch . isChanged ) <nl> continue ; <nl> ev - > set_index ( touch . identifier ) ; <nl> - ev - > set_position ( correct_canvas_position ( touch . canvasX , touch . canvasY ) ) ; <nl> + ev - > set_position ( compute_position_in_canvas ( touch . clientX , touch . clientY ) ) ; <nl> Point2 & prev = os - > touches [ i ] ; <nl> ev - > set_relative ( ev - > get_position ( ) - prev ) ; <nl> prev = ev - > get_position ( ) ; <nl> Error OS_JavaScript : : initialize ( const VideoMode & p_desired , int p_video_driver , <nl> } <nl> } <nl> <nl> - EMSCRIPTEN_WEBGL_CONTEXT_HANDLE ctx = emscripten_webgl_create_context ( NULL , & attributes ) ; <nl> + EMSCRIPTEN_WEBGL_CONTEXT_HANDLE ctx = emscripten_webgl_create_context ( GODOT_CANVAS_SELECTOR , & attributes ) ; <nl> if ( emscripten_webgl_make_context_current ( ctx ) ! = EMSCRIPTEN_RESULT_SUCCESS ) { <nl> gl_initialization_error = true ; <nl> } <nl> Error OS_JavaScript : : initialize ( const VideoMode & p_desired , int p_video_driver , <nl> / / These callbacks from Emscripten ' s html5 . h suffice to access most <nl> / / JavaScript APIs . For APIs that are not ( sufficiently ) exposed , EM_ASM <nl> / / is used below . <nl> - SET_EM_CALLBACK ( " # window " , mousemove , mousemove_callback ) <nl> - SET_EM_CALLBACK ( " # canvas " , mousedown , mouse_button_callback ) <nl> - SET_EM_CALLBACK ( " # window " , mouseup , mouse_button_callback ) <nl> - SET_EM_CALLBACK ( " # window " , wheel , wheel_callback ) <nl> - SET_EM_CALLBACK ( " # window " , touchstart , touch_press_callback ) <nl> - SET_EM_CALLBACK ( " # window " , touchmove , touchmove_callback ) <nl> - SET_EM_CALLBACK ( " # window " , touchend , touch_press_callback ) <nl> - SET_EM_CALLBACK ( " # window " , touchcancel , touch_press_callback ) <nl> - SET_EM_CALLBACK ( " # canvas " , keydown , keydown_callback ) <nl> - SET_EM_CALLBACK ( " # canvas " , keypress , keypress_callback ) <nl> - SET_EM_CALLBACK ( " # canvas " , keyup , keyup_callback ) <nl> - SET_EM_CALLBACK ( NULL , fullscreenchange , fullscreen_change_callback ) <nl> + SET_EM_CALLBACK ( EMSCRIPTEN_EVENT_TARGET_WINDOW , mousemove , mousemove_callback ) <nl> + SET_EM_CALLBACK ( GODOT_CANVAS_SELECTOR , mousedown , mouse_button_callback ) <nl> + SET_EM_CALLBACK ( EMSCRIPTEN_EVENT_TARGET_WINDOW , mouseup , mouse_button_callback ) <nl> + SET_EM_CALLBACK ( EMSCRIPTEN_EVENT_TARGET_WINDOW , wheel , wheel_callback ) <nl> + SET_EM_CALLBACK ( EMSCRIPTEN_EVENT_TARGET_WINDOW , touchstart , touch_press_callback ) <nl> + SET_EM_CALLBACK ( EMSCRIPTEN_EVENT_TARGET_WINDOW , touchmove , touchmove_callback ) <nl> + SET_EM_CALLBACK ( EMSCRIPTEN_EVENT_TARGET_WINDOW , touchend , touch_press_callback ) <nl> + SET_EM_CALLBACK ( EMSCRIPTEN_EVENT_TARGET_WINDOW , touchcancel , touch_press_callback ) <nl> + SET_EM_CALLBACK ( GODOT_CANVAS_SELECTOR , keydown , keydown_callback ) <nl> + SET_EM_CALLBACK ( GODOT_CANVAS_SELECTOR , keypress , keypress_callback ) <nl> + SET_EM_CALLBACK ( GODOT_CANVAS_SELECTOR , keyup , keyup_callback ) <nl> + SET_EM_CALLBACK ( EMSCRIPTEN_EVENT_TARGET_DOCUMENT , fullscreenchange , fullscreen_change_callback ) <nl> SET_EM_CALLBACK_NOTARGET ( gamepadconnected , gamepad_change_callback ) <nl> SET_EM_CALLBACK_NOTARGET ( gamepaddisconnected , gamepad_change_callback ) <nl> - # undef SET_EM_CALLBACK_NODATA <nl> + # undef SET_EM_CALLBACK_NOTARGET <nl> # undef SET_EM_CALLBACK <nl> # undef EM_CHECK <nl> <nl> bool OS_JavaScript : : main_loop_iterate ( ) { <nl> strategy . canvasResolutionScaleMode = EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_STDDEF ; <nl> strategy . filteringMode = EMSCRIPTEN_FULLSCREEN_FILTERING_DEFAULT ; <nl> strategy . canvasResizedCallback = NULL ; <nl> - emscripten_enter_soft_fullscreen ( NULL , & strategy ) ; <nl> + emscripten_enter_soft_fullscreen ( GODOT_CANVAS_SELECTOR , & strategy ) ; <nl> } else { <nl> - emscripten_set_canvas_element_size ( NULL , windowed_size . width , windowed_size . height ) ; <nl> + emscripten_set_canvas_element_size ( GODOT_CANVAS_SELECTOR , windowed_size . width , windowed_size . height ) ; <nl> } <nl> just_exited_fullscreen = false ; <nl> } <nl> <nl> int canvas [ 2 ] ; <nl> - emscripten_get_canvas_element_size ( NULL , canvas , canvas + 1 ) ; <nl> + emscripten_get_canvas_element_size ( GODOT_CANVAS_SELECTOR , canvas , canvas + 1 ) ; <nl> video_mode . width = canvas [ 0 ] ; <nl> video_mode . height = canvas [ 1 ] ; <nl> if ( ! window_maximized & & ! video_mode . fullscreen & & ! just_exited_fullscreen & & ! entering_fullscreen ) { <nl>
|
Merge pull request from Faless / js / callback_target_fix
|
godotengine/godot
|
bc4ce44d771b99f1ac8d49901630bf3d3c343c8a
|
2020-01-18T10:38:26Z
|
mmm a / version . json <nl> ppp b / version . json <nl> <nl> { <nl> - " version " : " 3 . 1 . 6 - pre - " <nl> + " version " : " 3 . 1 . 6 " <nl> } <nl>
|
BUMP 3 . 1 . 6
|
mongodb/mongo
|
d1aca9594cdd10d56720b4cac28cef7a6eefa2da
|
2015-07-21T01:35:51Z
|
mmm a / cocos / 2d / CCRenderTexture . cpp <nl> ppp b / cocos / 2d / CCRenderTexture . cpp <nl> void RenderTexture : : onBegin ( ) <nl> if ( ! _keepMatrix ) <nl> { <nl> director - > setProjection ( director - > getProjection ( ) ) ; <nl> - <nl> + <nl> + # if CC_TARGET_PLATFORM = = CC_PLATFORM_WP8 <nl> + Matrix modifiedProjection = director - > getMatrix ( MATRIX_STACK_TYPE : : MATRIX_STACK_PROJECTION ) ; <nl> + modifiedProjection = CCEGLView : : sharedOpenGLView ( ) - > getReverseOrientationMatrix ( ) * modifiedProjection ; <nl> + director - > loadMatrix ( MATRIX_STACK_TYPE : : MATRIX_STACK_PROJECTION , modifiedProjection ) ; <nl> + # endif <nl> + <nl> const Size & texSize = _texture - > getContentSizeInPixels ( ) ; <nl> <nl> / / Calculate the adjustment ratios based on the old and new projections <nl>
|
readd wp8 code which is removed by accident
|
cocos2d/cocos2d-x
|
331c2d3872d4ec35772bfa8d7cfa5ee7a52d75cc
|
2014-04-29T08:03:50Z
|
mmm a / dbms / src / Storages / MergeTree / IMergeTreeDataPart . cpp <nl> ppp b / dbms / src / Storages / MergeTree / IMergeTreeDataPart . cpp <nl> String IMergeTreeDataPart : : getNewName ( const MergeTreePartInfo & new_part_info ) c <nl> <nl> std : : optional < size_t > IMergeTreeDataPart : : getColumnPosition ( const String & column_name ) const <nl> { <nl> - if ( ! sample_block . has ( column_name ) ) <nl> + auto it = column_name_to_position . find ( column_name ) ; <nl> + if ( it = = column_name_to_position . end ( ) ) <nl> return { } ; <nl> - return sample_block . getPositionByName ( column_name ) ; <nl> + return it - > second ; <nl> } <nl> <nl> DayNum IMergeTreeDataPart : : getMinDate ( ) const <nl> time_t IMergeTreeDataPart : : getMaxTime ( ) const <nl> return 0 ; <nl> } <nl> <nl> - void IMergeTreeDataPart : : setColumns ( const NamesAndTypesList & columns_ ) <nl> + void IMergeTreeDataPart : : setColumns ( const NamesAndTypesList & new_columns ) <nl> { <nl> - columns = columns_ ; <nl> - sample_block . clear ( ) ; <nl> + columns = new_columns ; <nl> + column_name_to_position . clear ( ) ; <nl> + column_name_to_position . reserve ( new_columns . size ( ) ) ; <nl> + size_t pos = 0 ; <nl> for ( const auto & column : columns ) <nl> - sample_block . insert ( { column . type , column . name } ) ; <nl> + column_name_to_position . emplace ( column . name , pos + + ) ; <nl> } <nl> <nl> IMergeTreeDataPart : : ~ IMergeTreeDataPart ( ) = default ; <nl> void IMergeTreeDataPart : : loadColumns ( bool require ) <nl> } <nl> <nl> index_granularity_info = MergeTreeIndexGranularityInfo { storage , getType ( ) , columns . size ( ) } ; <nl> - for ( const auto & it : columns ) <nl> - sample_block . insert ( { it . type , it . name } ) ; <nl> + size_t pos = 0 ; <nl> + for ( const auto & column : columns ) <nl> + column_name_to_position . emplace ( column . name , pos + + ) ; <nl> } <nl> <nl> void IMergeTreeDataPart : : loadColumnSizes ( ) <nl> mmm a / dbms / src / Storages / MergeTree / IMergeTreeDataPart . h <nl> ppp b / dbms / src / Storages / MergeTree / IMergeTreeDataPart . h <nl> class IMergeTreeDataPart : public std : : enable_shared_from_this < IMergeTreeDataPar <nl> using MergeTreeWriterPtr = std : : unique_ptr < IMergeTreeDataPartWriter > ; <nl> <nl> using ColumnSizeByName = std : : unordered_map < std : : string , ColumnSize > ; <nl> + using NameToPosition = std : : unordered_map < std : : string , size_t > ; <nl> <nl> virtual MergeTreeReaderPtr getReader ( <nl> const NamesAndTypesList & columns_ , <nl> class IMergeTreeDataPart : public std : : enable_shared_from_this < IMergeTreeDataPar <nl> <nl> virtual String getFileNameForColumn ( const NameAndTypePair & column ) const = 0 ; <nl> <nl> + virtual void setColumns ( const NamesAndTypesList & columns_ ) ; <nl> + <nl> virtual NameToNameMap createRenameMapForAlter ( <nl> AlterAnalysisResult & / * analysis_result * / , <nl> - const NamesAndTypesList & / * old_columns * / ) const <nl> - { <nl> - return { } ; <nl> - } <nl> + const NamesAndTypesList & / * old_columns * / ) const { return { } ; } <nl> <nl> virtual ~ IMergeTreeDataPart ( ) ; <nl> <nl> class IMergeTreeDataPart : public std : : enable_shared_from_this < IMergeTreeDataPar <nl> static String typeToString ( Type type ) ; <nl> String getTypeName ( ) { return typeToString ( getType ( ) ) ; } <nl> <nl> - <nl> IMergeTreeDataPart ( <nl> const MergeTreeData & storage_ , <nl> const String & name_ , <nl> class IMergeTreeDataPart : public std : : enable_shared_from_this < IMergeTreeDataPar <nl> time_t getMinTime ( ) const ; <nl> time_t getMaxTime ( ) const ; <nl> <nl> - void setColumns ( const NamesAndTypesList & columns_ ) ; <nl> - <nl> bool isEmpty ( ) const { return rows_count = = 0 ; } <nl> <nl> const MergeTreeData & storage ; <nl> class IMergeTreeDataPart : public std : : enable_shared_from_this < IMergeTreeDataPar <nl> virtual void checkConsistency ( bool require_part_metadata ) const ; <nl> <nl> private : <nl> - Block sample_block ; <nl> + / / / In compact parts order of columns is necessary <nl> + NameToPosition column_name_to_position ; <nl> <nl> / / / Reads columns names and types from columns . txt <nl> void loadColumns ( bool require ) ; <nl> mmm a / dbms / src / Storages / MergeTree / MergeTreeDataPartCompact . cpp <nl> ppp b / dbms / src / Storages / MergeTree / MergeTreeDataPartCompact . cpp <nl> NameToNameMap MergeTreeDataPartCompact : : createRenameMapForAlter ( <nl> return rename_map ; <nl> } <nl> <nl> + void MergeTreeDataPartCompact : : setColumns ( const NamesAndTypesList & new_columns ) <nl> + { <nl> + if ( new_columns . size ( ) ! = columns . size ( ) ) <nl> + index_granularity_info = MergeTreeIndexGranularityInfo { storage , Type : : COMPACT , new_columns . size ( ) } ; <nl> + IMergeTreeDataPart : : setColumns ( new_columns ) ; <nl> + } <nl> + <nl> void MergeTreeDataPartCompact : : checkConsistency ( bool require_part_metadata ) <nl> { <nl> UNUSED ( require_part_metadata ) ; <nl> mmm a / dbms / src / Storages / MergeTree / MergeTreeDataPartCompact . h <nl> ppp b / dbms / src / Storages / MergeTree / MergeTreeDataPartCompact . h <nl> class MergeTreeDataPartCompact : public IMergeTreeDataPart <nl> AlterAnalysisResult & analysis_result , <nl> const NamesAndTypesList & old_columns ) const override ; <nl> <nl> + void setColumns ( const NamesAndTypesList & new_columns ) override ; <nl> + <nl> ~ MergeTreeDataPartCompact ( ) override ; <nl> <nl> private : <nl>
|
better column initialization in data parts
|
ClickHouse/ClickHouse
|
0b99df9aed0a8536c9ecece80fd90048254c84bb
|
2019-12-25T20:06:16Z
|
mmm a / src / core / ext / transport / chttp2 / client / chttp2_connector . c <nl> ppp b / src / core / ext / transport / chttp2 / client / chttp2_connector . c <nl> typedef struct { <nl> bool connecting ; <nl> <nl> char * server_name ; <nl> - grpc_chttp2_create_handshakers_func create_handshakers ; <nl> - void * create_handshakers_user_data ; <nl> + grpc_chttp2_add_handshakers_func add_handshakers ; <nl> + void * add_handshakers_user_data ; <nl> <nl> grpc_closure * notify ; <nl> grpc_connect_in_args args ; <nl> static void start_handshake_locked ( grpc_exec_ctx * exec_ctx , <nl> grpc_http_connect_handshaker_create ( proxy_name , c - > server_name ) ) ; <nl> gpr_free ( proxy_name ) ; <nl> } <nl> - if ( c - > create_handshakers ! = NULL ) { <nl> - c - > create_handshakers ( exec_ctx , c - > create_handshakers_user_data , <nl> - c - > handshake_mgr ) ; <nl> + if ( c - > add_handshakers ! = NULL ) { <nl> + c - > add_handshakers ( exec_ctx , c - > add_handshakers_user_data , <nl> + c - > handshake_mgr ) ; <nl> } <nl> grpc_handshake_manager_do_handshake ( <nl> exec_ctx , c - > handshake_mgr , c - > endpoint , c - > args . channel_args , <nl> static const grpc_connector_vtable chttp2_connector_vtable = { <nl> <nl> grpc_connector * grpc_chttp2_connector_create ( <nl> grpc_exec_ctx * exec_ctx , const char * server_name , <nl> - grpc_chttp2_create_handshakers_func create_handshakers , <nl> - void * create_handshakers_user_data ) { <nl> + grpc_chttp2_add_handshakers_func add_handshakers , <nl> + void * add_handshakers_user_data ) { <nl> chttp2_connector * c = gpr_malloc ( sizeof ( * c ) ) ; <nl> memset ( c , 0 , sizeof ( * c ) ) ; <nl> c - > base . vtable = & chttp2_connector_vtable ; <nl> gpr_mu_init ( & c - > mu ) ; <nl> gpr_ref_init ( & c - > refs , 1 ) ; <nl> c - > server_name = gpr_strdup ( server_name ) ; <nl> - c - > create_handshakers = create_handshakers ; <nl> - c - > create_handshakers_user_data = create_handshakers_user_data ; <nl> + c - > add_handshakers = add_handshakers ; <nl> + c - > add_handshakers_user_data = add_handshakers_user_data ; <nl> return & c - > base ; <nl> } <nl> mmm a / src / core / ext / transport / chttp2 / client / chttp2_connector . h <nl> ppp b / src / core / ext / transport / chttp2 / client / chttp2_connector . h <nl> <nl> # include " src / core / lib / channel / handshaker . h " <nl> # include " src / core / lib / iomgr / exec_ctx . h " <nl> <nl> - typedef void ( * grpc_chttp2_create_handshakers_func ) ( <nl> + typedef void ( * grpc_chttp2_add_handshakers_func ) ( <nl> grpc_exec_ctx * exec_ctx , void * user_data , <nl> grpc_handshake_manager * handshake_mgr ) ; <nl> <nl> - / / / If \ a create_handshakers is non - NULL , it will be called with <nl> - / / / \ a create_handshakers_user_data to add handshakers . <nl> + / / / If \ a add_handshakers is non - NULL , it will be called with <nl> + / / / \ a add_handshakers_user_data to add handshakers . <nl> grpc_connector * grpc_chttp2_connector_create ( <nl> grpc_exec_ctx * exec_ctx , const char * server_name , <nl> - grpc_chttp2_create_handshakers_func create_handshakers , <nl> - void * create_handshakers_user_data ) ; <nl> + grpc_chttp2_add_handshakers_func add_handshakers , <nl> + void * add_handshakers_user_data ) ; <nl> <nl> # endif / * GRPC_CORE_EXT_TRANSPORT_CHTTP2_CLIENT_CHTTP2_CONNECTOR_H * / <nl> mmm a / src / core / ext / transport / chttp2 / client / insecure / channel_create . c <nl> ppp b / src / core / ext / transport / chttp2 / client / insecure / channel_create . c <nl> static grpc_subchannel * client_channel_factory_create_subchannel ( <nl> grpc_exec_ctx * exec_ctx , grpc_client_channel_factory * cc_factory , <nl> const grpc_subchannel_args * args ) { <nl> grpc_connector * connector = grpc_chttp2_connector_create ( <nl> - exec_ctx , args - > server_name , NULL / * create_handshakers * / , <nl> + exec_ctx , args - > server_name , NULL / * add_handshakers * / , <nl> NULL / * user_data * / ) ; <nl> grpc_subchannel * s = grpc_subchannel_create ( exec_ctx , connector , args ) ; <nl> grpc_connector_unref ( exec_ctx , connector ) ; <nl> mmm a / src / core / ext / transport / chttp2 / client / secure / secure_channel_create . c <nl> ppp b / src / core / ext / transport / chttp2 / client / secure / secure_channel_create . c <nl> static void client_channel_factory_unref ( <nl> } <nl> } <nl> <nl> - static void create_handshakers ( grpc_exec_ctx * exec_ctx , <nl> - void * security_connector , <nl> - grpc_handshake_manager * handshake_mgr ) { <nl> - grpc_channel_security_connector_create_handshakers ( <nl> - exec_ctx , security_connector , handshake_mgr ) ; <nl> + static void add_handshakers ( grpc_exec_ctx * exec_ctx , void * security_connector , <nl> + grpc_handshake_manager * handshake_mgr ) { <nl> + grpc_channel_security_connector_add_handshakers ( exec_ctx , security_connector , <nl> + handshake_mgr ) ; <nl> } <nl> <nl> static grpc_subchannel * client_channel_factory_create_subchannel ( <nl> static grpc_subchannel * client_channel_factory_create_subchannel ( <nl> const grpc_subchannel_args * args ) { <nl> client_channel_factory * f = ( client_channel_factory * ) cc_factory ; <nl> grpc_connector * connector = grpc_chttp2_connector_create ( <nl> - exec_ctx , args - > server_name , create_handshakers , f - > security_connector ) ; <nl> + exec_ctx , args - > server_name , add_handshakers , f - > security_connector ) ; <nl> grpc_subchannel * s = grpc_subchannel_create ( exec_ctx , connector , args ) ; <nl> grpc_connector_unref ( exec_ctx , connector ) ; <nl> return s ; <nl> mmm a / src / core / ext / transport / chttp2 / server / chttp2_server . c <nl> ppp b / src / core / ext / transport / chttp2 / server / chttp2_server . c <nl> <nl> # include " src / core / lib / surface / api_trace . h " <nl> # include " src / core / lib / surface / server . h " <nl> <nl> - void grpc_chttp2_server_handshaker_factory_create_handshakers ( <nl> + void grpc_chttp2_server_handshaker_factory_add_handshakers ( <nl> grpc_exec_ctx * exec_ctx , <nl> grpc_chttp2_server_handshaker_factory * handshaker_factory , <nl> grpc_handshake_manager * handshake_mgr ) { <nl> if ( handshaker_factory ! = NULL ) { <nl> - handshaker_factory - > vtable - > create_handshakers ( exec_ctx , handshaker_factory , <nl> - handshake_mgr ) ; <nl> + handshaker_factory - > vtable - > add_handshakers ( exec_ctx , handshaker_factory , <nl> + handshake_mgr ) ; <nl> } <nl> } <nl> <nl> static void on_handshake_done ( grpc_exec_ctx * exec_ctx , void * arg , <nl> gpr_mu_unlock ( & connection_state - > server_state - > mu ) ; <nl> grpc_handshake_manager_destroy ( exec_ctx , connection_state - > handshake_mgr ) ; <nl> grpc_tcp_server_unref ( exec_ctx , connection_state - > server_state - > tcp_server ) ; <nl> + gpr_free ( connection_state - > acceptor ) ; <nl> gpr_free ( connection_state ) ; <nl> } <nl> <nl> static void on_accept ( grpc_exec_ctx * exec_ctx , void * arg , grpc_endpoint * tcp , <nl> if ( state - > shutdown ) { <nl> gpr_mu_unlock ( & state - > mu ) ; <nl> grpc_endpoint_destroy ( exec_ctx , tcp ) ; <nl> + gpr_free ( acceptor ) ; <nl> return ; <nl> } <nl> grpc_handshake_manager * handshake_mgr = grpc_handshake_manager_create ( ) ; <nl> static void on_accept ( grpc_exec_ctx * exec_ctx , void * arg , grpc_endpoint * tcp , <nl> connection_state - > accepting_pollset = accepting_pollset ; <nl> connection_state - > acceptor = acceptor ; <nl> connection_state - > handshake_mgr = handshake_mgr ; <nl> - grpc_chttp2_server_handshaker_factory_create_handshakers ( <nl> + grpc_chttp2_server_handshaker_factory_add_handshakers ( <nl> exec_ctx , state - > handshaker_factory , connection_state - > handshake_mgr ) ; <nl> / / TODO ( roth ) : We should really get this timeout value from channel <nl> / / args instead of hard - coding it . <nl> mmm a / src / core / ext / transport / chttp2 / server / chttp2_server . h <nl> ppp b / src / core / ext / transport / chttp2 / server / chttp2_server . h <nl> typedef struct grpc_chttp2_server_handshaker_factory <nl> grpc_chttp2_server_handshaker_factory ; <nl> <nl> typedef struct { <nl> - void ( * create_handshakers ) ( <nl> + void ( * add_handshakers ) ( <nl> grpc_exec_ctx * exec_ctx , <nl> grpc_chttp2_server_handshaker_factory * handshaker_factory , <nl> grpc_handshake_manager * handshake_mgr ) ; <nl> struct grpc_chttp2_server_handshaker_factory { <nl> const grpc_chttp2_server_handshaker_factory_vtable * vtable ; <nl> } ; <nl> <nl> - void grpc_chttp2_server_handshaker_factory_create_handshakers ( <nl> + void grpc_chttp2_server_handshaker_factory_add_handshakers ( <nl> grpc_exec_ctx * exec_ctx , <nl> grpc_chttp2_server_handshaker_factory * handshaker_factory , <nl> grpc_handshake_manager * handshake_mgr ) ; <nl> mmm a / src / core / ext / transport / chttp2 / server / secure / server_secure_chttp2 . c <nl> ppp b / src / core / ext / transport / chttp2 / server / secure / server_secure_chttp2 . c <nl> typedef struct { <nl> grpc_server_security_connector * security_connector ; <nl> } server_security_handshaker_factory ; <nl> <nl> - static void server_security_handshaker_factory_create_handshakers ( <nl> + static void server_security_handshaker_factory_add_handshakers ( <nl> grpc_exec_ctx * exec_ctx , grpc_chttp2_server_handshaker_factory * hf , <nl> grpc_handshake_manager * handshake_mgr ) { <nl> server_security_handshaker_factory * handshaker_factory = <nl> ( server_security_handshaker_factory * ) hf ; <nl> - grpc_server_security_connector_create_handshakers ( <nl> + grpc_server_security_connector_add_handshakers ( <nl> exec_ctx , handshaker_factory - > security_connector , handshake_mgr ) ; <nl> } <nl> <nl> static void server_security_handshaker_factory_destroy ( <nl> <nl> static const grpc_chttp2_server_handshaker_factory_vtable <nl> server_security_handshaker_factory_vtable = { <nl> - server_security_handshaker_factory_create_handshakers , <nl> + server_security_handshaker_factory_add_handshakers , <nl> server_security_handshaker_factory_destroy } ; <nl> <nl> int grpc_server_add_secure_http2_port ( grpc_server * server , const char * addr , <nl> mmm a / src / core / lib / channel / handshaker . c <nl> ppp b / src / core / lib / channel / handshaker . c <nl> void grpc_handshaker_init ( const grpc_handshaker_vtable * vtable , <nl> handshaker - > vtable = vtable ; <nl> } <nl> <nl> - static void grpc_handshaker_destroy ( grpc_exec_ctx * exec_ctx , <nl> - grpc_handshaker * handshaker ) { <nl> + void grpc_handshaker_destroy ( grpc_exec_ctx * exec_ctx , <nl> + grpc_handshaker * handshaker ) { <nl> handshaker - > vtable - > destroy ( exec_ctx , handshaker ) ; <nl> } <nl> <nl> - static void grpc_handshaker_shutdown ( grpc_exec_ctx * exec_ctx , <nl> - grpc_handshaker * handshaker ) { <nl> + void grpc_handshaker_shutdown ( grpc_exec_ctx * exec_ctx , <nl> + grpc_handshaker * handshaker ) { <nl> handshaker - > vtable - > shutdown ( exec_ctx , handshaker ) ; <nl> } <nl> <nl> - static void grpc_handshaker_do_handshake ( grpc_exec_ctx * exec_ctx , <nl> - grpc_handshaker * handshaker , <nl> - grpc_tcp_server_acceptor * acceptor , <nl> - grpc_closure * on_handshake_done , <nl> - grpc_handshaker_args * args ) { <nl> + void grpc_handshaker_do_handshake ( grpc_exec_ctx * exec_ctx , <nl> + grpc_handshaker * handshaker , <nl> + grpc_tcp_server_acceptor * acceptor , <nl> + grpc_closure * on_handshake_done , <nl> + grpc_handshaker_args * args ) { <nl> handshaker - > vtable - > do_handshake ( exec_ctx , handshaker , acceptor , <nl> on_handshake_done , args ) ; <nl> } <nl> mmm a / src / core / lib / channel / handshaker . h <nl> ppp b / src / core / lib / channel / handshaker . h <nl> struct grpc_handshaker { <nl> void grpc_handshaker_init ( const grpc_handshaker_vtable * vtable , <nl> grpc_handshaker * handshaker ) ; <nl> <nl> + void grpc_handshaker_destroy ( grpc_exec_ctx * exec_ctx , <nl> + grpc_handshaker * handshaker ) ; <nl> + void grpc_handshaker_shutdown ( grpc_exec_ctx * exec_ctx , <nl> + grpc_handshaker * handshaker ) ; <nl> + void grpc_handshaker_do_handshake ( grpc_exec_ctx * exec_ctx , <nl> + grpc_handshaker * handshaker , <nl> + grpc_tcp_server_acceptor * acceptor , <nl> + grpc_closure * on_handshake_done , <nl> + grpc_handshaker_args * args ) ; <nl> + <nl> / / / <nl> / / / grpc_handshake_manager <nl> / / / <nl> mmm a / src / core / lib / http / httpcli_security_connector . c <nl> ppp b / src / core / lib / http / httpcli_security_connector . c <nl> static void httpcli_ssl_destroy ( grpc_security_connector * sc ) { <nl> gpr_free ( sc ) ; <nl> } <nl> <nl> - static void httpcli_ssl_create_handshakers ( <nl> - grpc_exec_ctx * exec_ctx , grpc_channel_security_connector * sc , <nl> - grpc_handshake_manager * handshake_mgr ) { <nl> + static void httpcli_ssl_add_handshakers ( grpc_exec_ctx * exec_ctx , <nl> + grpc_channel_security_connector * sc , <nl> + grpc_handshake_manager * handshake_mgr ) { <nl> grpc_httpcli_ssl_channel_security_connector * c = <nl> ( grpc_httpcli_ssl_channel_security_connector * ) sc ; <nl> tsi_handshaker * handshaker = NULL ; <nl> static void httpcli_ssl_create_handshakers ( <nl> tsi_result_to_string ( result ) ) ; <nl> } <nl> } <nl> - grpc_security_create_handshakers ( exec_ctx , handshaker , & sc - > base , <nl> - handshake_mgr ) ; <nl> + grpc_handshake_manager_add ( <nl> + handshake_mgr , <nl> + grpc_security_handshaker_create ( exec_ctx , handshaker , & sc - > base ) ) ; <nl> } <nl> <nl> static void httpcli_ssl_check_peer ( grpc_exec_ctx * exec_ctx , <nl> static grpc_security_status httpcli_ssl_channel_security_connector_create ( <nl> * sc = NULL ; <nl> return GRPC_SECURITY_ERROR ; <nl> } <nl> - c - > base . create_handshakers = httpcli_ssl_create_handshakers ; <nl> + c - > base . add_handshakers = httpcli_ssl_add_handshakers ; <nl> * sc = & c - > base ; <nl> return GRPC_SECURITY_OK ; <nl> } <nl> static void ssl_handshake ( grpc_exec_ctx * exec_ctx , void * arg , <nl> GPR_ASSERT ( httpcli_ssl_channel_security_connector_create ( <nl> pem_root_certs , pem_root_certs_size , host , & sc ) = = <nl> GRPC_SECURITY_OK ) ; <nl> - grpc_channel_security_connector_create_handshakers ( exec_ctx , sc , <nl> - c - > handshake_mgr ) ; <nl> + grpc_channel_security_connector_add_handshakers ( exec_ctx , sc , <nl> + c - > handshake_mgr ) ; <nl> grpc_handshake_manager_do_handshake ( <nl> exec_ctx , c - > handshake_mgr , tcp , NULL / * channel_args * / , deadline , <nl> NULL / * acceptor * / , on_handshake_done , c / * user_data * / ) ; <nl> mmm a / src / core / lib / iomgr / tcp_server . h <nl> ppp b / src / core / lib / iomgr / tcp_server . h <nl> typedef struct grpc_tcp_server_acceptor { <nl> unsigned fd_index ; <nl> } grpc_tcp_server_acceptor ; <nl> <nl> - / * Called for newly connected TCP connections . * / <nl> + / * Called for newly connected TCP connections . <nl> + Takes ownership of acceptor . * / <nl> typedef void ( * grpc_tcp_server_cb ) ( grpc_exec_ctx * exec_ctx , void * arg , <nl> grpc_endpoint * ep , <nl> grpc_pollset * accepting_pollset , <nl> mmm a / src / core / lib / iomgr / tcp_server_posix . c <nl> ppp b / src / core / lib / iomgr / tcp_server_posix . c <nl> static grpc_error * prepare_socket ( int fd , const grpc_resolved_address * addr , <nl> / * event manager callback when reads are ready * / <nl> static void on_read ( grpc_exec_ctx * exec_ctx , void * arg , grpc_error * err ) { <nl> grpc_tcp_listener * sp = arg ; <nl> - grpc_tcp_server_acceptor acceptor = { sp - > server , sp - > port_index , <nl> - sp - > fd_index } ; <nl> - grpc_pollset * read_notifier_pollset = NULL ; <nl> - grpc_fd * fdobj ; <nl> <nl> if ( err ! = GRPC_ERROR_NONE ) { <nl> goto error ; <nl> } <nl> <nl> - read_notifier_pollset = <nl> + grpc_pollset * read_notifier_pollset = <nl> sp - > server - > pollsets [ ( size_t ) gpr_atm_no_barrier_fetch_add ( <nl> & sp - > server - > next_pollset_to_assign , 1 ) % <nl> sp - > server - > pollset_count ] ; <nl> static void on_read ( grpc_exec_ctx * exec_ctx , void * arg , grpc_error * err ) { <nl> gpr_log ( GPR_DEBUG , " SERVER_CONNECT : incoming connection : % s " , addr_str ) ; <nl> } <nl> <nl> - fdobj = grpc_fd_create ( fd , name ) ; <nl> + grpc_fd * fdobj = grpc_fd_create ( fd , name ) ; <nl> <nl> if ( read_notifier_pollset = = NULL ) { <nl> gpr_log ( GPR_ERROR , " Read notifier pollset is not set on the fd " ) ; <nl> static void on_read ( grpc_exec_ctx * exec_ctx , void * arg , grpc_error * err ) { <nl> <nl> grpc_pollset_add_fd ( exec_ctx , read_notifier_pollset , fdobj ) ; <nl> <nl> + / / Create acceptor . <nl> + grpc_tcp_server_acceptor * acceptor = gpr_malloc ( sizeof ( * acceptor ) ) ; <nl> + acceptor - > from_server = sp - > server ; <nl> + acceptor - > port_index = sp - > port_index ; <nl> + acceptor - > fd_index = sp - > fd_index ; <nl> + <nl> sp - > server - > on_accept_cb ( <nl> exec_ctx , sp - > server - > on_accept_cb_arg , <nl> grpc_tcp_create ( fdobj , sp - > server - > resource_quota , <nl> GRPC_TCP_DEFAULT_READ_SLICE_SIZE , addr_str ) , <nl> - read_notifier_pollset , & acceptor ) ; <nl> + read_notifier_pollset , acceptor ) ; <nl> <nl> gpr_free ( name ) ; <nl> gpr_free ( addr_str ) ; <nl> mmm a / src / core / lib / iomgr / tcp_server_uv . c <nl> ppp b / src / core / lib / iomgr / tcp_server_uv . c <nl> static void accepted_connection_close_cb ( uv_handle_t * handle ) { <nl> <nl> static void on_connect ( uv_stream_t * server , int status ) { <nl> grpc_tcp_listener * sp = ( grpc_tcp_listener * ) server - > data ; <nl> - grpc_tcp_server_acceptor acceptor = { sp - > server , sp - > port_index , 0 } ; <nl> uv_tcp_t * client ; <nl> grpc_endpoint * ep = NULL ; <nl> grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT ; <nl> static void on_connect ( uv_stream_t * server , int status ) { <nl> uv_strerror ( status ) ) ; <nl> return ; <nl> } <nl> + <nl> client = gpr_malloc ( sizeof ( uv_tcp_t ) ) ; <nl> uv_tcp_init ( uv_default_loop ( ) , client ) ; <nl> / / UV documentation says this is guaranteed to succeed <nl> static void on_connect ( uv_stream_t * server , int status ) { <nl> gpr_log ( GPR_INFO , " uv_tcp_getpeername error : % s " , uv_strerror ( status ) ) ; <nl> } <nl> ep = grpc_tcp_create ( client , sp - > server - > resource_quota , peer_name_string ) ; <nl> + / / Create acceptor . <nl> + grpc_tcp_server_acceptor * acceptor = gpr_malloc ( sizeof ( * acceptor ) ) ; <nl> + acceptor - > from_server = sp - > server ; <nl> + acceptor - > port_index = sp - > port_index ; <nl> + acceptor - > fd_index = 0 ; <nl> sp - > server - > on_accept_cb ( & exec_ctx , sp - > server - > on_accept_cb_arg , ep , NULL , <nl> - & acceptor ) ; <nl> + acceptor ) ; <nl> grpc_exec_ctx_finish ( & exec_ctx ) ; <nl> } <nl> } <nl> mmm a / src / core / lib / iomgr / tcp_server_windows . c <nl> ppp b / src / core / lib / iomgr / tcp_server_windows . c <nl> static grpc_error * start_accept_locked ( grpc_exec_ctx * exec_ctx , <nl> / * Event manager callback when reads are ready . * / <nl> static void on_accept ( grpc_exec_ctx * exec_ctx , void * arg , grpc_error * error ) { <nl> grpc_tcp_listener * sp = arg ; <nl> - grpc_tcp_server_acceptor acceptor = { sp - > server , sp - > port_index , 0 } ; <nl> SOCKET sock = sp - > new_socket ; <nl> grpc_winsocket_callback_info * info = & sp - > socket - > read_info ; <nl> grpc_endpoint * ep = NULL ; <nl> static void on_accept ( grpc_exec_ctx * exec_ctx , void * arg , grpc_error * error ) { <nl> / * The only time we should call our callback , is where we successfully <nl> managed to accept a connection , and created an endpoint . * / <nl> if ( ep ) { <nl> + / / Create acceptor . <nl> + grpc_tcp_server_acceptor * acceptor = gpr_malloc ( sizeof ( * acceptor ) ) ; <nl> + acceptor - > from_server = sp - > server ; <nl> + acceptor - > port_index = sp - > port_index ; <nl> + acceptor - > fd_index = 0 ; <nl> sp - > server - > on_accept_cb ( exec_ctx , sp - > server - > on_accept_cb_arg , ep , NULL , <nl> - & acceptor ) ; <nl> + acceptor ) ; <nl> } <nl> / * As we were notified from the IOCP of one and exactly one accept , <nl> the former socked we created has now either been destroy or assigned <nl> mmm a / src / core / lib / security / transport / security_connector . c <nl> ppp b / src / core / lib / security / transport / security_connector . c <nl> <nl> # include < grpc / support / string_util . h > <nl> <nl> # include " src / core / ext / transport / chttp2 / alpn / alpn . h " <nl> + # include " src / core / lib / channel / handshaker . h " <nl> # include " src / core / lib / iomgr / load_file . h " <nl> # include " src / core / lib / security / context / security_context . h " <nl> # include " src / core / lib / security / credentials / credentials . h " <nl> const tsi_peer_property * tsi_peer_get_property_by_name ( const tsi_peer * peer , <nl> return NULL ; <nl> } <nl> <nl> - void grpc_channel_security_connector_create_handshakers ( <nl> + void grpc_channel_security_connector_add_handshakers ( <nl> grpc_exec_ctx * exec_ctx , grpc_channel_security_connector * connector , <nl> grpc_handshake_manager * handshake_mgr ) { <nl> if ( connector ! = NULL ) { <nl> - connector - > create_handshakers ( exec_ctx , connector , handshake_mgr ) ; <nl> + connector - > add_handshakers ( exec_ctx , connector , handshake_mgr ) ; <nl> } <nl> } <nl> <nl> - void grpc_server_security_connector_create_handshakers ( <nl> + void grpc_server_security_connector_add_handshakers ( <nl> grpc_exec_ctx * exec_ctx , grpc_server_security_connector * connector , <nl> grpc_handshake_manager * handshake_mgr ) { <nl> if ( connector ! = NULL ) { <nl> - connector - > create_handshakers ( exec_ctx , connector , handshake_mgr ) ; <nl> + connector - > add_handshakers ( exec_ctx , connector , handshake_mgr ) ; <nl> } <nl> } <nl> <nl> static void fake_channel_check_call_host ( grpc_exec_ctx * exec_ctx , <nl> cb ( exec_ctx , user_data , GRPC_SECURITY_OK ) ; <nl> } <nl> <nl> - static void fake_channel_create_handshakers ( <nl> + static void fake_channel_add_handshakers ( <nl> grpc_exec_ctx * exec_ctx , grpc_channel_security_connector * sc , <nl> grpc_handshake_manager * handshake_mgr ) { <nl> - grpc_security_create_handshakers ( <nl> - exec_ctx , tsi_create_fake_handshaker ( true / * is_client * / ) , & sc - > base , <nl> - handshake_mgr ) ; <nl> + grpc_handshake_manager_add ( <nl> + handshake_mgr , <nl> + grpc_security_handshaker_create ( <nl> + exec_ctx , tsi_create_fake_handshaker ( true / * is_client * / ) , <nl> + & sc - > base ) ) ; <nl> } <nl> <nl> - static void fake_server_create_handshakers ( <nl> - grpc_exec_ctx * exec_ctx , grpc_server_security_connector * sc , <nl> - grpc_handshake_manager * handshake_mgr ) { <nl> - grpc_security_create_handshakers ( <nl> - exec_ctx , tsi_create_fake_handshaker ( false / * is_client * / ) , & sc - > base , <nl> - handshake_mgr ) ; <nl> + static void fake_server_add_handshakers ( grpc_exec_ctx * exec_ctx , <nl> + grpc_server_security_connector * sc , <nl> + grpc_handshake_manager * handshake_mgr ) { <nl> + grpc_handshake_manager_add ( <nl> + handshake_mgr , <nl> + grpc_security_handshaker_create ( <nl> + exec_ctx , tsi_create_fake_handshaker ( false / * is_client * / ) , <nl> + & sc - > base ) ) ; <nl> } <nl> <nl> static grpc_security_connector_vtable fake_channel_vtable = { <nl> grpc_channel_security_connector * grpc_fake_channel_security_connector_create ( <nl> c - > base . vtable = & fake_channel_vtable ; <nl> c - > request_metadata_creds = grpc_call_credentials_ref ( request_metadata_creds ) ; <nl> c - > check_call_host = fake_channel_check_call_host ; <nl> - c - > create_handshakers = fake_channel_create_handshakers ; <nl> + c - > add_handshakers = fake_channel_add_handshakers ; <nl> return c ; <nl> } <nl> <nl> grpc_server_security_connector * grpc_fake_server_security_connector_create ( <nl> gpr_ref_init ( & c - > base . refcount , 1 ) ; <nl> c - > base . vtable = & fake_server_vtable ; <nl> c - > base . url_scheme = GRPC_FAKE_SECURITY_URL_SCHEME ; <nl> - c - > create_handshakers = fake_server_create_handshakers ; <nl> + c - > add_handshakers = fake_server_add_handshakers ; <nl> return c ; <nl> } <nl> <nl> static grpc_security_status ssl_create_handshaker ( <nl> return GRPC_SECURITY_OK ; <nl> } <nl> <nl> - static void ssl_channel_create_handshakers ( <nl> - grpc_exec_ctx * exec_ctx , grpc_channel_security_connector * sc , <nl> - grpc_handshake_manager * handshake_mgr ) { <nl> + static void ssl_channel_add_handshakers ( grpc_exec_ctx * exec_ctx , <nl> + grpc_channel_security_connector * sc , <nl> + grpc_handshake_manager * handshake_mgr ) { <nl> grpc_ssl_channel_security_connector * c = <nl> ( grpc_ssl_channel_security_connector * ) sc ; <nl> / / Instantiate TSI handshaker . <nl> static void ssl_channel_create_handshakers ( <nl> : c - > target_name , <nl> & tsi_hs ) ; <nl> / / Create handshakers . <nl> - grpc_security_create_handshakers ( exec_ctx , tsi_hs , & sc - > base , handshake_mgr ) ; <nl> + grpc_handshake_manager_add ( handshake_mgr , grpc_security_handshaker_create ( <nl> + exec_ctx , tsi_hs , & sc - > base ) ) ; <nl> } <nl> <nl> - static void ssl_server_create_handshakers ( <nl> - grpc_exec_ctx * exec_ctx , grpc_server_security_connector * sc , <nl> - grpc_handshake_manager * handshake_mgr ) { <nl> + static void ssl_server_add_handshakers ( grpc_exec_ctx * exec_ctx , <nl> + grpc_server_security_connector * sc , <nl> + grpc_handshake_manager * handshake_mgr ) { <nl> grpc_ssl_server_security_connector * c = <nl> ( grpc_ssl_server_security_connector * ) sc ; <nl> / / Instantiate TSI handshaker . <nl> static void ssl_server_create_handshakers ( <nl> ssl_create_handshaker ( c - > handshaker_factory , false / * is_client * / , <nl> NULL / * peer_name * / , & tsi_hs ) ; <nl> / / Create handshakers . <nl> - grpc_security_create_handshakers ( exec_ctx , tsi_hs , & sc - > base , handshake_mgr ) ; <nl> + grpc_handshake_manager_add ( handshake_mgr , grpc_security_handshaker_create ( <nl> + exec_ctx , tsi_hs , & sc - > base ) ) ; <nl> } <nl> <nl> static int ssl_host_matches_name ( const tsi_peer * peer , const char * peer_name ) { <nl> grpc_security_status grpc_ssl_channel_security_connector_create ( <nl> c - > base . request_metadata_creds = <nl> grpc_call_credentials_ref ( request_metadata_creds ) ; <nl> c - > base . check_call_host = ssl_channel_check_call_host ; <nl> - c - > base . create_handshakers = ssl_channel_create_handshakers ; <nl> + c - > base . add_handshakers = ssl_channel_add_handshakers ; <nl> gpr_split_host_port ( target_name , & c - > target_name , & port ) ; <nl> gpr_free ( port ) ; <nl> if ( overridden_target_name ! = NULL ) { <nl> grpc_security_status grpc_ssl_server_security_connector_create ( <nl> * sc = NULL ; <nl> goto error ; <nl> } <nl> - c - > base . create_handshakers = ssl_server_create_handshakers ; <nl> + c - > base . add_handshakers = ssl_server_add_handshakers ; <nl> * sc = & c - > base ; <nl> gpr_free ( ( void * ) alpn_protocol_strings ) ; <nl> gpr_free ( alpn_protocol_string_lengths ) ; <nl> mmm a / src / core / lib / security / transport / security_connector . h <nl> ppp b / src / core / lib / security / transport / security_connector . h <nl> void grpc_security_connector_unref ( grpc_security_connector * policy ) ; <nl> # endif <nl> <nl> / * Check the peer . Callee takes ownership of the peer object . <nl> - Sets * auth_context and invokes on_peer_checked when done . * / <nl> + When done , sets * auth_context and invokes on_peer_checked . * / <nl> void grpc_security_connector_check_peer ( grpc_exec_ctx * exec_ctx , <nl> grpc_security_connector * sc , <nl> tsi_peer peer , <nl> struct grpc_channel_security_connector { <nl> grpc_channel_security_connector * sc , const char * host , <nl> grpc_auth_context * auth_context , <nl> grpc_security_call_host_check_cb cb , void * user_data ) ; <nl> - void ( * create_handshakers ) ( grpc_exec_ctx * exec_ctx , <nl> - grpc_channel_security_connector * sc , <nl> - grpc_handshake_manager * handshake_mgr ) ; <nl> + void ( * add_handshakers ) ( grpc_exec_ctx * exec_ctx , <nl> + grpc_channel_security_connector * sc , <nl> + grpc_handshake_manager * handshake_mgr ) ; <nl> } ; <nl> <nl> / * Checks that the host that will be set for a call is acceptable . * / <nl> void grpc_channel_security_connector_check_call_host ( <nl> grpc_security_call_host_check_cb cb , void * user_data ) ; <nl> <nl> / * Registers handshakers with \ a handshake_mgr . * / <nl> - void grpc_channel_security_connector_create_handshakers ( <nl> + void grpc_channel_security_connector_add_handshakers ( <nl> grpc_exec_ctx * exec_ctx , grpc_channel_security_connector * connector , <nl> grpc_handshake_manager * handshake_mgr ) ; <nl> <nl> typedef struct grpc_server_security_connector grpc_server_security_connector ; <nl> <nl> struct grpc_server_security_connector { <nl> grpc_security_connector base ; <nl> - void ( * create_handshakers ) ( grpc_exec_ctx * exec_ctx , <nl> - grpc_server_security_connector * sc , <nl> - grpc_handshake_manager * handshake_mgr ) ; <nl> + void ( * add_handshakers ) ( grpc_exec_ctx * exec_ctx , <nl> + grpc_server_security_connector * sc , <nl> + grpc_handshake_manager * handshake_mgr ) ; <nl> } ; <nl> <nl> - void grpc_server_security_connector_create_handshakers ( <nl> + void grpc_server_security_connector_add_handshakers ( <nl> grpc_exec_ctx * exec_ctx , grpc_server_security_connector * sc , <nl> grpc_handshake_manager * handshake_mgr ) ; <nl> <nl> mmm a / src / core / lib / security / transport / security_handshaker . c <nl> ppp b / src / core / lib / security / transport / security_handshaker . c <nl> static void security_handshake_failed_locked ( grpc_exec_ctx * exec_ctx , <nl> / / Not shutting down , so the write failed . Clean up before <nl> / / invoking the callback . <nl> cleanup_args_for_failure_locked ( h ) ; <nl> + / / Set shutdown to true so that subsequent calls to <nl> + / / security_handshaker_shutdown ( ) do nothing . <nl> + h - > shutdown = true ; <nl> } <nl> / / Invoke callback . <nl> grpc_exec_ctx_sched ( exec_ctx , h - > on_handshake_done , error , NULL ) ; <nl> static grpc_handshaker * fail_handshaker_create ( ) { <nl> / / exported functions <nl> / / <nl> <nl> - void grpc_security_create_handshakers ( grpc_exec_ctx * exec_ctx , <nl> - tsi_handshaker * handshaker , <nl> - grpc_security_connector * connector , <nl> - grpc_handshake_manager * handshake_mgr ) { <nl> - / / If no TSI handshaker was created , add a handshaker that always fails . <nl> - / / Otherwise , add a real security handshaker . <nl> + grpc_handshaker * grpc_security_handshaker_create ( <nl> + grpc_exec_ctx * exec_ctx , tsi_handshaker * handshaker , <nl> + grpc_security_connector * connector ) { <nl> + / / If no TSI handshaker was created , return a handshaker that always fails . <nl> + / / Otherwise , return a real security handshaker . <nl> if ( handshaker = = NULL ) { <nl> - grpc_handshake_manager_add ( handshake_mgr , fail_handshaker_create ( ) ) ; <nl> + return fail_handshaker_create ( ) ; <nl> } else { <nl> - grpc_handshake_manager_add ( <nl> - handshake_mgr , <nl> - security_handshaker_create ( exec_ctx , handshaker , connector ) ) ; <nl> + return security_handshaker_create ( exec_ctx , handshaker , connector ) ; <nl> } <nl> } <nl> mmm a / src / core / lib / security / transport / security_handshaker . h <nl> ppp b / src / core / lib / security / transport / security_handshaker . h <nl> <nl> # ifndef GRPC_CORE_LIB_SECURITY_TRANSPORT_SECURITY_HANDSHAKER_H <nl> # define GRPC_CORE_LIB_SECURITY_TRANSPORT_SECURITY_HANDSHAKER_H <nl> <nl> - # include " src / core / lib / iomgr / endpoint . h " <nl> + # include " src / core / lib / channel / handshaker . h " <nl> + # include " src / core / lib / iomgr / exec_ctx . h " <nl> # include " src / core / lib / security / transport / security_connector . h " <nl> <nl> - / / / Creates any necessary security handshakers and adds them to <nl> - / / / \ a handshake_mgr . <nl> - void grpc_security_create_handshakers ( grpc_exec_ctx * exec_ctx , <nl> - tsi_handshaker * handshaker , <nl> - grpc_security_connector * connector , <nl> - grpc_handshake_manager * handshake_mgr ) ; <nl> + / / / Creates a security handshaker using \ a handshaker . <nl> + grpc_handshaker * grpc_security_handshaker_create ( <nl> + grpc_exec_ctx * exec_ctx , tsi_handshaker * handshaker , <nl> + grpc_security_connector * connector ) ; <nl> <nl> # endif / * GRPC_CORE_LIB_SECURITY_TRANSPORT_SECURITY_HANDSHAKER_H * / <nl> mmm a / test / core / client_channel / set_initial_connect_string_test . c <nl> ppp b / test / core / client_channel / set_initial_connect_string_test . c <nl> static void handle_read ( grpc_exec_ctx * exec_ctx , void * arg , grpc_error * error ) { <nl> static void on_connect ( grpc_exec_ctx * exec_ctx , void * arg , grpc_endpoint * tcp , <nl> grpc_pollset * accepting_pollset , <nl> grpc_tcp_server_acceptor * acceptor ) { <nl> + gpr_free ( acceptor ) ; <nl> test_tcp_server * server = arg ; <nl> grpc_closure_init ( & on_read , handle_read , NULL ) ; <nl> grpc_slice_buffer_init ( & state . incoming_buffer ) ; <nl> mmm a / test / core / end2end / bad_server_response_test . c <nl> ppp b / test / core / end2end / bad_server_response_test . c <nl> static void handle_read ( grpc_exec_ctx * exec_ctx , void * arg , grpc_error * error ) { <nl> static void on_connect ( grpc_exec_ctx * exec_ctx , void * arg , grpc_endpoint * tcp , <nl> grpc_pollset * accepting_pollset , <nl> grpc_tcp_server_acceptor * acceptor ) { <nl> + gpr_free ( acceptor ) ; <nl> test_tcp_server * server = arg ; <nl> grpc_closure_init ( & on_read , handle_read , NULL ) ; <nl> grpc_closure_init ( & on_write , done_write , NULL ) ; <nl> mmm a / test / core / end2end / fixtures / http_proxy . c <nl> ppp b / test / core / end2end / fixtures / http_proxy . c <nl> static void on_read_request_done ( grpc_exec_ctx * exec_ctx , void * arg , <nl> static void on_accept ( grpc_exec_ctx * exec_ctx , void * arg , <nl> grpc_endpoint * endpoint , grpc_pollset * accepting_pollset , <nl> grpc_tcp_server_acceptor * acceptor ) { <nl> + gpr_free ( acceptor ) ; <nl> grpc_end2end_http_proxy * proxy = arg ; <nl> / / Instantiate proxy_connection . <nl> proxy_connection * conn = gpr_malloc ( sizeof ( * conn ) ) ; <nl> mmm a / test / core / iomgr / tcp_server_posix_test . c <nl> ppp b / test / core / iomgr / tcp_server_posix_test . c <nl> static void on_connect ( grpc_exec_ctx * exec_ctx , void * arg , grpc_endpoint * tcp , <nl> <nl> on_connect_result temp_result ; <nl> on_connect_result_set ( & temp_result , acceptor ) ; <nl> + gpr_free ( acceptor ) ; <nl> <nl> gpr_mu_lock ( g_mu ) ; <nl> g_result = temp_result ; <nl> mmm a / test / core / security / ssl_server_fuzzer . c <nl> ppp b / test / core / security / ssl_server_fuzzer . c <nl> int LLVMFuzzerTestOneInput ( const uint8_t * data , size_t size ) { <nl> struct handshake_state state ; <nl> state . done_callback_called = false ; <nl> grpc_handshake_manager * handshake_mgr = grpc_handshake_manager_create ( ) ; <nl> - grpc_server_security_connector_create_handshakers ( & exec_ctx , sc , <nl> - handshake_mgr ) ; <nl> + grpc_server_security_connector_add_handshakers ( & exec_ctx , sc , handshake_mgr ) ; <nl> grpc_handshake_manager_do_handshake ( <nl> & exec_ctx , handshake_mgr , mock_endpoint , NULL / * channel_args * / , <nl> deadline , NULL / * acceptor * / , on_handshake_done , & state ) ; <nl> mmm a / test / core / surface / concurrent_connectivity_test . c <nl> ppp b / test / core / surface / concurrent_connectivity_test . c <nl> void server_thread ( void * vargs ) { <nl> static void on_connect ( grpc_exec_ctx * exec_ctx , void * vargs , grpc_endpoint * tcp , <nl> grpc_pollset * accepting_pollset , <nl> grpc_tcp_server_acceptor * acceptor ) { <nl> + gpr_free ( acceptor ) ; <nl> struct server_thread_args * args = ( struct server_thread_args * ) vargs ; <nl> - ( void ) acceptor ; <nl> grpc_endpoint_shutdown ( exec_ctx , tcp ) ; <nl> grpc_endpoint_destroy ( exec_ctx , tcp ) ; <nl> GRPC_LOG_IF_ERROR ( " pollset_kick " , grpc_pollset_kick ( args - > pollset , NULL ) ) ; <nl> mmm a / test / core / util / reconnect_server . c <nl> ppp b / test / core / util / reconnect_server . c <nl> static void pretty_print_backoffs ( reconnect_server * server ) { <nl> static void on_connect ( grpc_exec_ctx * exec_ctx , void * arg , grpc_endpoint * tcp , <nl> grpc_pollset * accepting_pollset , <nl> grpc_tcp_server_acceptor * acceptor ) { <nl> + gpr_free ( acceptor ) ; <nl> char * peer ; <nl> char * last_colon ; <nl> reconnect_server * server = ( reconnect_server * ) arg ; <nl>
|
Merge pull request from markdroth / handshaker_cleanup
|
grpc/grpc
|
be37dff6d308c9b091d80d9006c2c62d12f5f0ea
|
2016-12-09T21:39:01Z
|
mmm a / arangod / MMFiles / MMFilesLogfileManager . cpp <nl> ppp b / arangod / MMFiles / MMFilesLogfileManager . cpp <nl> void MMFilesLogfileManager : : unprepare ( ) { <nl> LOG_TOPIC ( TRACE , arangodb : : Logger : : FIXME ) < < " stopping collector thread " ; <nl> _collectorThread - > forceStop ( ) ; <nl> while ( _collectorThread - > isRunning ( ) ) { <nl> + locker . unlock ( ) ; <nl> usleep ( 10000 ) ; <nl> + locker . lock ( ) ; <nl> } <nl> delete _collectorThread ; <nl> _collectorThread = nullptr ; <nl>
|
fix shutdown deadlock ( )
|
arangodb/arangodb
|
bd1a2d6cceb0a5f30a6045be05232a68bdc669b0
|
2017-11-24T10:42:09Z
|
mmm a / Marlin / language_da . h <nl> ppp b / Marlin / language_da . h <nl> <nl> # define LANGUAGE_DA_H <nl> <nl> # define MAPPER_C2C3 <nl> + / / Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration . h <nl> + / / # define SIMULATE_ROMFONT <nl> # define DISPLAY_CHARSET_ISO10646_1 <nl> <nl> # define WELCOME_MSG MACHINE_NAME " er klar " <nl> <nl> # define MSG_TEMPERATURE " Temperatur " <nl> # define MSG_MOTION " Bevægelse " <nl> # define MSG_VOLUMETRIC " Filament " <nl> - # define MSG_VOLUMETRIC_ENABLED " E in mm3 " <nl> + # define MSG_VOLUMETRIC_ENABLED " E i mm3 " <nl> # define MSG_FILAMENT_DIAM " Fil . Dia . " <nl> # define MSG_CONTRAST " LCD kontrast " <nl> # define MSG_STORE_EPROM " Gem i EEPROM " <nl> <nl> # define MSG_CONTROL_RETRACTF " Tilbagetræk V " <nl> # define MSG_CONTROL_RETRACT_ZLIFT " Hop mm " <nl> # define MSG_CONTROL_RETRACT_RECOVER " UnRet + mm " <nl> - # define MSG_CONTROL_RETRACT_RECOVER_SWAP " S UnRet + mm " <nl> + # define MSG_CONTROL_RETRACT_RECOVER_SWAP " Skift UnRet + mm " <nl> # define MSG_CONTROL_RETRACT_RECOVERF " UnRet V " <nl> # define MSG_AUTORETRACT " AutoRetr . " <nl> # define MSG_FILAMENTCHANGE " Skift filament " <nl> # define MSG_INIT_SDCARD " Init . SD card " <nl> # define MSG_CNG_SDCARD " Skift SD kort " <nl> # define MSG_ZPROBE_OUT " Probe udenfor plade " <nl> + # define MSG_BLTOUCH_SELFTEST " BLTouch Selv - Test " <nl> + # define MSG_BLTOUCH_RESET " Reset BLTouch " <nl> # define MSG_HOME " Home " / / Used as MSG_HOME " " MSG_X MSG_Y MSG_Z " " MSG_FIRST <nl> # define MSG_FIRST " først " <nl> # define MSG_ZPROBE_ZOFFSET " Z Offset " <nl> <nl> # define MSG_HEATING_FAILED_LCD " Opvarmning fejlet " <nl> # define MSG_ERR_REDUNDANT_TEMP " Fejl : reserve temp " <nl> # define MSG_THERMAL_RUNAWAY " Temp løber løbsk " <nl> - # define MSG_ERR_MAXTEMP " Fejl : MAKSTEMP " <nl> - # define MSG_ERR_MINTEMP " Fejl : MINTEMP " <nl> - # define MSG_ERR_MAXTEMP_BED " Fejl : MAKSTEMP PLADE " <nl> - # define MSG_ERR_MINTEMP_BED " Fejl : MINTEMP PLADE " <nl> - # define MSG_HALTED " PRINTER HALTED " <nl> - # define MSG_PLEASE_RESET " Reset venligst " <nl> - # define MSG_SHORT_DAY " d " / / One character only <nl> - # define MSG_SHORT_HOUR " h " / / One character only <nl> - # define MSG_SHORT_MINUTE " m " / / One character only <nl> + # define MSG_ERR_MAXTEMP " Fejl : Maks temp " <nl> + # define MSG_ERR_MINTEMP " Fejl : Min temp " <nl> + # define MSG_ERR_MAXTEMP_BED " Fejl : Maks Plade temp " <nl> + # define MSG_ERR_MINTEMP_BED " Fejl : Min Plade temp " <nl> + # define MSG_ERR_Z_HOMING " G28 Z Forbudt " <nl> + # define MSG_HALTED " PRINTER STOPPET " <nl> + # define MSG_PLEASE_RESET " Reset Venligst " <nl> + # define MSG_SHORT_DAY " d " / / Kun et bogstav <nl> + # define MSG_SHORT_HOUR " h " / / Kun et bogstav <nl> + # define MSG_SHORT_MINUTE " m " / / Kun et bogstav <nl> # define MSG_HEATING " Opvarmer . . . " <nl> # define MSG_HEATING_COMPLETE " Opvarmet " <nl> # define MSG_BED_HEATING " Opvarmer plade " <nl> <nl> <nl> # define MSG_INFO_MENU " Om Printer " <nl> # define MSG_INFO_PRINTER_MENU " Printer Info " <nl> - # define MSG_INFO_STATS_MENU " Printer Stat . " <nl> - # define MSG_INFO_BOARD_MENU " Board Info " <nl> + # define MSG_INFO_STATS_MENU " Printer Stats " <nl> + # define MSG_INFO_BOARD_MENU " Kort Info " <nl> # define MSG_INFO_THERMISTOR_MENU " Thermistors " <nl> - # define MSG_INFO_EXTRUDERS " Extrudere " <nl> + # define MSG_INFO_EXTRUDERS " Extruders " <nl> # define MSG_INFO_BAUDRATE " Baud " <nl> # define MSG_INFO_PROTOCOL " Protocol " <nl> <nl> # if LCD_WIDTH > 19 <nl> - # define MSG_INFO_PRINT_COUNT " Antal Print " <nl> + # define MSG_INFO_PRINT_COUNT " Ant . Prints " <nl> # define MSG_INFO_COMPLETED_PRINTS " Færdige " <nl> # define MSG_INFO_PRINT_TIME " Total print tid " <nl> - # define MSG_INFO_PRINT_LONGEST " Længste print tid " <nl> - # define MSG_INFO_PRINT_FILAMENT " Total extruderet " <nl> + # define MSG_INFO_PRINT_LONGEST " Længste print " <nl> + # define MSG_INFO_PRINT_FILAMENT " Total Extruderet " <nl> # else <nl> # define MSG_INFO_PRINT_COUNT " Prints " <nl> # define MSG_INFO_COMPLETED_PRINTS " Færdige " <nl> <nl> <nl> # define MSG_INFO_MIN_TEMP " Min Temp " <nl> # define MSG_INFO_MAX_TEMP " Max Temp " <nl> - # define MSG_INFO_PSU " Strømforsyning " <nl> + # define MSG_INFO_PSU " Strømfors . " <nl> <nl> + # define MSG_DRIVE_STRENGTH " Driv Styrke " <nl> + # define MSG_DAC_PERCENT " Driv % " <nl> + # define MSG_DAC_EEPROM_WRITE " DAC EEPROM Skriv " <nl> # define MSG_FILAMENT_CHANGE_HEADER " SKIFT FILAMENT " <nl> - # define MSG_FILAMENT_CHANGE_OPTION_HEADER " SKIFTE MULIGHEDER : " <nl> + # define MSG_FILAMENT_CHANGE_OPTION_HEADER " Skift muligheder : " <nl> # define MSG_FILAMENT_CHANGE_OPTION_EXTRUDE " Extruder mere " <nl> - # define MSG_FILAMENT_CHANGE_OPTION_RESUME " forsæt print " <nl> + # define MSG_FILAMENT_CHANGE_OPTION_RESUME " Forsæt print " <nl> <nl> # if LCD_HEIGHT > = 4 <nl> - # define MSG_FILAMENT_CHANGE_INIT_1 " Vent på " <nl> - # define MSG_FILAMENT_CHANGE_INIT_2 " skift af " <nl> - # define MSG_FILAMENT_CHANGE_INIT_3 " filament " <nl> + # define MSG_FILAMENT_CHANGE_INIT_1 " Vent på start " <nl> + # define MSG_FILAMENT_CHANGE_INIT_2 " af filament " <nl> + # define MSG_FILAMENT_CHANGE_INIT_3 " skift " <nl> # define MSG_FILAMENT_CHANGE_UNLOAD_1 " Vent på " <nl> - # define MSG_FILAMENT_CHANGE_UNLOAD_2 " filament tømning " <nl> - # define MSG_FILAMENT_CHANGE_INSERT_1 " indsæt filament " <nl> - # define MSG_FILAMENT_CHANGE_INSERT_2 " og tryk for " <nl> - # define MSG_FILAMENT_CHANGE_INSERT_3 " at fortsætte . . . " <nl> + # define MSG_FILAMENT_CHANGE_UNLOAD_2 " filament udskyd . " <nl> + # define MSG_FILAMENT_CHANGE_INSERT_1 " Indsæt filament " <nl> + # define MSG_FILAMENT_CHANGE_INSERT_2 " og tryk på knap " <nl> + # define MSG_FILAMENT_CHANGE_INSERT_3 " for at fortsætte . . . " <nl> # define MSG_FILAMENT_CHANGE_LOAD_1 " Vent på " <nl> - # define MSG_FILAMENT_CHANGE_LOAD_2 " filament fødning " <nl> + # define MSG_FILAMENT_CHANGE_LOAD_2 " filament indtag " <nl> # define MSG_FILAMENT_CHANGE_EXTRUDE_1 " Vent på " <nl> - # define MSG_FILAMENT_CHANGE_EXTRUDE_2 " filament extrudere " <nl> - # define MSG_FILAMENT_CHANGE_RESUME_1 " Vent på at " <nl> - # define MSG_FILAMENT_CHANGE_RESUME_2 " print forsætter " <nl> + # define MSG_FILAMENT_CHANGE_EXTRUDE_2 " filament extrudering " <nl> + # define MSG_FILAMENT_CHANGE_RESUME_1 " Vent på at print " <nl> + # define MSG_FILAMENT_CHANGE_RESUME_2 " fortsætter " <nl> # else / / LCD_HEIGHT < 4 <nl> # define MSG_FILAMENT_CHANGE_INIT_1 " Vent venligst . . . " <nl> - # define MSG_FILAMENT_CHANGE_UNLOAD_1 " Tømmer . . . " <nl> + # define MSG_FILAMENT_CHANGE_UNLOAD_1 " Udskyder . . . " <nl> # define MSG_FILAMENT_CHANGE_INSERT_1 " Indsæt og klik " <nl> - # define MSG_FILAMENT_CHANGE_LOAD_1 " Føder . . . " <nl> + # define MSG_FILAMENT_CHANGE_LOAD_1 " Indtager . . . " <nl> # define MSG_FILAMENT_CHANGE_EXTRUDE_1 " Extrudere . . . " <nl> # define MSG_FILAMENT_CHANGE_RESUME_1 " Fortsætter . . . " <nl> # endif / / LCD_HEIGHT < 4 <nl> <nl> # endif / / LANGUAGE_DA_H <nl> - <nl>
|
Update to Danish language 10 / 11 - 2016
|
MarlinFirmware/Marlin
|
8cffa60cc5188c06f75514736cfbc216cd490fce
|
2016-11-18T07:16:57Z
|
mmm a / CNTK . sln <nl> ppp b / CNTK . sln <nl> Global <nl> Release_CpuOnly | Any CPU = Release_CpuOnly | Any CPU <nl> Release_CpuOnly | Mixed Platforms = Release_CpuOnly | Mixed Platforms <nl> Release_CpuOnly | x64 = Release_CpuOnly | x64 <nl> - Release_NoOpt_CpuOnly | Any CPU = Release_NoOpt_CpuOnly | Any CPU <nl> - Release_NoOpt_CpuOnly | Mixed Platforms = Release_NoOpt_CpuOnly | Mixed Platforms <nl> - Release_NoOpt_CpuOnly | x64 = Release_NoOpt_CpuOnly | x64 <nl> - Release_NoOpt | Any CPU = Release_NoOpt | Any CPU <nl> - Release_NoOpt | Mixed Platforms = Release_NoOpt | Mixed Platforms <nl> - Release_NoOpt | x64 = Release_NoOpt | x64 <nl> Release | Any CPU = Release | Any CPU <nl> Release | Mixed Platforms = Release | Mixed Platforms <nl> Release | x64 = Release | x64 <nl> Global <nl> { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { E6F26F9A - FF64 - 4F0A - B749 - CD309EE357EE } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 928ABD1B - 4D3B - 4017 - AEF1 - 0FA1B4467513 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { DE3C54E5 - D7D0 - 47AF - A783 - DFDCE59E7937 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { EAD17188 - 072C - 4726 - B840 - A769C36DAD1B } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 4701E678 - 5E6F - 470D - B348 - 9CD1A2C095D1 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { EB2BE26F - 6BD4 - 4274 - 971F - 86D080779DD1 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { A4FC3467 - 4787 - 43E8 - BBC0 - D79AE56B468D } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 482999D1 - B7E2 - 466E - 9F8D - 2119F93EAFD9 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 60BDB847 - D0C4 - 4FD3 - A947 - 0C15C08BCDB5 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_CpuOnly | Mixed Platforms . ActiveCfg = Release | x64 <nl> { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release | x64 <nl> { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_CpuOnly | x64 . ActiveCfg = Release | x64 <nl> - { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { B3DD765E - 694E - 4494 - BAD7 - 37BBF2942517 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { D667AF32 - 028A - 4A5D - BE19 - F46776F0F6B2 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 1D5787D4 - 52E4 - 45DB - 951B - 82F220EE0C6A } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 014DA766 - B37B - 4581 - BC26 - 963EA5507931 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 33D2FD22 - DEF2 - 4507 - A58A - 368F641AEBE5 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 9A2F2441 - 5972 - 4EA8 - 9215 - 4119FCE0FB68 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 62836DC1 - DF77 - 4B98 - BF2D - 45C943B7DDC6 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { CE429AA2 - 3778 - 4619 - 8FD1 - 49BA3B81197B } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { E6646FFE - 3588 - 4276 - 8A15 - 8D65C22711C1 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 668BEED5 - AC07 - 4F35 - B3AE - EE65A7F9C976 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { EF766CAE - 9CB1 - 494C - 9153 - 0030631A6340 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { F0A9637C - 20DA - 42F0 - 83D4 - 23B4704DE602 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 91973E60 - A7BE - 4C86 - 8FDB - 59C88A0B3715 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 7B7A51ED - AA8E - 4660 - A805 - D50235A02120 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 9BD0A711 - 0BBD - 45B6 - B81C - 053F03C26CFB } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { CDA96AA3 - 3252 - 4978 - A0BF - 2ACD670823CB } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 86883653 - 8A61 - 4038 - 81A0 - 2379FAE4200A } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 7B7A563D - AA8E - 4660 - A805 - D50235A02120 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 82125DA1 - 1CD7 - 45B5 - 9281 - E6AE7C287CB7 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 731312A8 - 6DA3 - 4841 - AFCD - 57520BA1BF8E } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { E5606ECE - 48CA - 4464 - BB12 - 09D81D02B9EF } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { F4CC3AB2 - 0DB2 - 4281 - 929A - 2E68E30F0F6E } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { CC8DDDCB - D53A - 4B30 - 8596 - AEF1C493DB31 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 9F999212 - AFC5 - 4EAC - AA78 - F7247D46C456 } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { CCC07E8E - F33A - 4AF7 - 9F60 - 93E2AA61C75E } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_CpuOnly | Mixed Platforms . Build . 0 = Release_CpuOnly | x64 <nl> { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_CpuOnly | x64 . ActiveCfg = Release_CpuOnly | x64 <nl> { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_CpuOnly | x64 . Build . 0 = Release_CpuOnly | x64 <nl> - { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_NoOpt_CpuOnly | Mixed Platforms . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release_NoOpt_CpuOnly | x64 <nl> - { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_NoOpt_CpuOnly | x64 . Build . 0 = Release_NoOpt_CpuOnly | x64 <nl> - { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_NoOpt | Any CPU . ActiveCfg = Release_NoOpt | x64 <nl> - { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release_NoOpt | x64 <nl> - { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_NoOpt | Mixed Platforms . Build . 0 = Release_NoOpt | x64 <nl> - { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_NoOpt | x64 . ActiveCfg = Release_NoOpt | x64 <nl> - { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release_NoOpt | x64 . Build . 0 = Release_NoOpt | x64 <nl> { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release | Any CPU . ActiveCfg = Release | x64 <nl> { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release | Mixed Platforms . ActiveCfg = Release | x64 <nl> { 1C6E6C53 - 1AA7 - 4B69 - 913E - B97BB5A872CF } . Release | Mixed Platforms . Build . 0 = Release | x64 <nl> Global <nl> { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release_CpuOnly | Any CPU . ActiveCfg = Release | Any CPU <nl> { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release_CpuOnly | Mixed Platforms . ActiveCfg = Release | Any CPU <nl> { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release_CpuOnly | x64 . ActiveCfg = Release | Any CPU <nl> - { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release_NoOpt_CpuOnly | Any CPU . ActiveCfg = Release | Any CPU <nl> - { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release_NoOpt_CpuOnly | Mixed Platforms . ActiveCfg = Release | Any CPU <nl> - { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release_NoOpt_CpuOnly | x64 . ActiveCfg = Release | Any CPU <nl> - { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release_NoOpt | Any CPU . ActiveCfg = Release | Any CPU <nl> - { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release_NoOpt | Mixed Platforms . ActiveCfg = Release | Any CPU <nl> - { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release_NoOpt | x64 . ActiveCfg = Release | Any CPU <nl> { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release | Any CPU . ActiveCfg = Release | Any CPU <nl> { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release | Mixed Platforms . ActiveCfg = Release | Any CPU <nl> { 1A078FC2 - 21C0 - 4F42 - 9A5B - 0E84E944BC74 } . Release | x64 . ActiveCfg = Release | Any CPU <nl> mmm a / Source / ActionsLib / ActionsLib . vcxproj <nl> ppp b / Source / ActionsLib / ActionsLib . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < / ItemGroup > <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " / > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / ActionsLib / ActionsLib . vcxproj . filters <nl> ppp b / Source / ActionsLib / ActionsLib . vcxproj . filters <nl> <nl> < ? xml version = " 1 . 0 " encoding = " utf - 8 " ? > <nl> < Project ToolsVersion = " 4 . 0 " xmlns = " http : / / schemas . microsoft . com / developer / msbuild / 2003 " > <nl> < ItemGroup > <nl> + < ClCompile Include = " . . \ Common \ File . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ Common \ fileutil . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ Common \ TimerUtility . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < ClCompile Include = " TrainActions . cpp " > <nl> < Filter > Actions < / Filter > <nl> < / ClCompile > <nl> mmm a / Source / CNTK / CNTK . vcxproj <nl> ppp b / Source / CNTK / CNTK . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < DeploymentContent Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Debug | x64 ' " > true < / DeploymentContent > <nl> < DeploymentContent Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Debug_CpuOnly | x64 ' " > true < / DeploymentContent > <nl> < DeploymentContent Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release | x64 ' " > true < / DeploymentContent > <nl> - < DeploymentContent Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > true < / DeploymentContent > <nl> < DeploymentContent Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_CpuOnly | x64 ' " > true < / DeploymentContent > <nl> - < DeploymentContent Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > true < / DeploymentContent > <nl> < ExcludedFromBuild Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Debug | x64 ' " > false < / ExcludedFromBuild > <nl> < ExcludedFromBuild Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Debug_CpuOnly | x64 ' " > false < / ExcludedFromBuild > <nl> < ExcludedFromBuild Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release | x64 ' " > false < / ExcludedFromBuild > <nl> - < ExcludedFromBuild Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > false < / ExcludedFromBuild > <nl> < ExcludedFromBuild Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_CpuOnly | x64 ' " > false < / ExcludedFromBuild > <nl> - < ExcludedFromBuild Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > false < / ExcludedFromBuild > <nl> < / Xml > <nl> < None Include = " BrainScript \ Doc \ BrainScript - - extending the CNTK config language , Frank Seide August 2015 . pptx " / > <nl> < None Include = " prebuild . bat " / > <nl> < / ItemGroup > <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " / > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / CNTKv2LibraryDll / CNTKv2LibraryDll . vcxproj <nl> ppp b / Source / CNTKv2LibraryDll / CNTKv2LibraryDll . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> mmm a / Source / Common / Common . vcxproj <nl> ppp b / Source / Common / Common . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> mmm a / Source / ComputationNetworkLib / ComputationNetworkLib . vcxproj <nl> ppp b / Source / ComputationNetworkLib / ComputationNetworkLib . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> mmm a / Source / EvalDll / EvalDll . vcxproj <nl> ppp b / Source / EvalDll / EvalDll . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> mmm a / Source / Extensibility / EvalWrapper / EvalWrapper . vcxproj <nl> ppp b / Source / Extensibility / EvalWrapper / EvalWrapper . vcxproj <nl> <nl> < Configuration > Debug_CpuOnly < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> mmm a / Source / Math / Math . vcxproj <nl> ppp b / Source / Math / Math . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Error Condition = " ' $ ( MathLibrary ) ' = = ' MKL ' And ' $ ( CNTK_MKL_PATH ) ' = = ' ' " Text = " CNTK custom MKL location not specified , see https : / / github . com / Microsoft / CNTK / wiki / Setup - CNTK - on - Windows # mkl for instructions . " / > <nl> < Error Condition = " ' $ ( MathLibrary ) ' = = ' MKL ' And ! Exists ( ' $ ( CNTKCustomMKLPath ) ' ) " Text = " CNTK custom MKL version $ ( CNTKCustomMKLVersion ) not found . See https : / / github . com / Microsoft / CNTK / wiki / Setup - CNTK - on - Windows # mkl for instructions . " / > <nl> < / Target > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Math / MathCUDA . vcxproj <nl> ppp b / Source / Math / MathCUDA . vcxproj <nl> <nl> - < ? xml version = " 1 . 0 " encoding = " utf - 8 " ? > <nl> + < ? xml version = " 1 . 0 " encoding = " utf - 8 " ? > <nl> < Project DefaultTargets = " Build " InitialTargets = " CheckDependencies " ToolsVersion = " 12 . 0 " xmlns = " http : / / schemas . microsoft . com / developer / msbuild / 2003 " > <nl> < ItemGroup Label = " ProjectConfigurations " > <nl> < ProjectConfiguration Include = " Debug | x64 " > <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> if exist " $ ( CuDnnDll ) " xcopy / D / Y " $ ( CuDnnDll ) " " $ ( OutputPath ) " <nl> < / CudaCompile > <nl> < CudaCompile Include = " GPUTensor . cu " > <nl> < InterleaveSourceInPTX Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release | x64 ' " > true < / InterleaveSourceInPTX > <nl> - < InterleaveSourceInPTX Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > true < / InterleaveSourceInPTX > <nl> - < InterleaveSourceInPTX Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > true < / InterleaveSourceInPTX > <nl> < Keep Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release | x64 ' " > true < / Keep > <nl> - < Keep Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > true < / Keep > <nl> - < Keep Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > true < / Keep > <nl> < FileType > CppCode < / FileType > <nl> < / CudaCompile > <nl> < CudaCompile Include = " cudalatticeops . cu " > <nl> if exist " $ ( CuDnnDll ) " xcopy / D / Y " $ ( CuDnnDll ) " " $ ( OutputPath ) " <nl> < CudaCompile Include = " GPUMatrix . cu " > <nl> < FileType > CppCode < / FileType > <nl> < Keep Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release | x64 ' " > true < / Keep > <nl> - < Keep Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > true < / Keep > <nl> - < Keep Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > true < / Keep > <nl> < InterleaveSourceInPTX Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release | x64 ' " > false < / InterleaveSourceInPTX > <nl> - < InterleaveSourceInPTX Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > false < / InterleaveSourceInPTX > <nl> - < InterleaveSourceInPTX Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > false < / InterleaveSourceInPTX > <nl> < / CudaCompile > <nl> < CudaCompile Include = " GPUMatrixCUDAKernels . cuh " > <nl> < ExcludedFromBuild > true < / ExcludedFromBuild > <nl> if exist " $ ( CuDnnDll ) " xcopy / D / Y " $ ( CuDnnDll ) " " $ ( OutputPath ) " <nl> < Error Condition = " ! Exists ( ' $ ( CUB_PATH ) ' ) " Text = " CNTK requires the NVIDIA CUB library to build . Please see https : / / github . com / Microsoft / CNTK / wiki / Setup - CNTK - on - Windows # cuda for installation instructions . " / > <nl> < Error Condition = " ! Exists ( ' $ ( CUDNN_PATH ) ' ) " Text = " CNTK requires the NVIDIA cuDNN library 5 . 0 or higher to build . Please see https : / / github . com / Microsoft / CNTK / wiki / Setup - CNTK - on - Windows # cuda for installation instructions . " / > <nl> < / Target > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Math / MathCUDA . vcxproj . filters <nl> ppp b / Source / Math / MathCUDA . vcxproj . filters <nl> <nl> < ClCompile Include = " GPUDataTransferer . cpp " > <nl> < Filter > GPU < / Filter > <nl> < / ClCompile > <nl> + < ClCompile Include = " . . \ Common \ ExceptionWithCallStack . cpp " > <nl> + < Filter > Misc < / Filter > <nl> + < / ClCompile > <nl> < ClCompile Include = " CuDnnCommon . cpp " > <nl> < Filter > GPU \ CuDnn < / Filter > <nl> < / ClCompile > <nl> mmm a / Source / Readers / BinaryReader / BinaryReader . vcxproj <nl> ppp b / Source / Readers / BinaryReader / BinaryReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " > <nl> < / ImportGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Readers / BinaryReader / BinaryReader . vcxproj . filters <nl> ppp b / Source / Readers / BinaryReader / BinaryReader . vcxproj . filters <nl> <nl> < ClCompile Include = " Exports . cpp " / > <nl> < ClCompile Include = " dllmain . cpp " / > <nl> < ClCompile Include = " stdafx . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ DataWriter . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ fileutil . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ File . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ Config . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ ExceptionWithCallStack . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < / ItemGroup > <nl> < ItemGroup > <nl> < ClInclude Include = " BinaryReader . h " / > <nl> mmm a / Source / Readers / CNTKTextFormatReader / CNTKTextFormatReader . vcxproj <nl> ppp b / Source / Readers / CNTKTextFormatReader / CNTKTextFormatReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> mmm a / Source / Readers / CNTKTextFormatReader / CNTKTextFormatReader . vcxproj . filters <nl> ppp b / Source / Readers / CNTKTextFormatReader / CNTKTextFormatReader . vcxproj . filters <nl> <nl> < ItemGroup > <nl> < ClCompile Include = " Exports . cpp " / > <nl> < ClCompile Include = " stdafx . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ ExceptionWithCallStack . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ fileutil . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ File . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < ClCompile Include = " dllmain . cpp " / > <nl> < ClCompile Include = " TextConfigHelper . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ Config . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < ClCompile Include = " Indexer . cpp " / > <nl> < ClCompile Include = " TextParser . cpp " / > <nl> < ClCompile Include = " CNTKTextFormatReader . cpp " / > <nl> <nl> < UniqueIdentifier > { C6F55578 - 121A - 4D7C - 8F57 - 4172BC5C463B } < / UniqueIdentifier > <nl> < / Filter > <nl> < / ItemGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Readers / CompositeDataReader / CompositeDataReader . vcxproj <nl> ppp b / Source / Readers / CompositeDataReader / CompositeDataReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> mmm a / Source / Readers / DSSMReader / DSSMReader . vcxproj <nl> ppp b / Source / Readers / DSSMReader / DSSMReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " > <nl> < / ImportGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Readers / HTKDeserializers / HTKDeserializers . vcxproj <nl> ppp b / Source / Readers / HTKDeserializers / HTKDeserializers . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " > <nl> < / ImportGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Readers / HTKDeserializers / HTKDeserializers . vcxproj . filters <nl> ppp b / Source / Readers / HTKDeserializers / HTKDeserializers . vcxproj . filters <nl> <nl> < ItemGroup > <nl> < ClCompile Include = " dllmain . cpp " / > <nl> < ClCompile Include = " stdafx . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ TimerUtility . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ fileutil . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < ClCompile Include = " ConfigHelper . cpp " / > <nl> < ClCompile Include = " MLFDataDeserializer . cpp " / > <nl> < ClCompile Include = " HTKDataDeserializer . cpp " / > <nl> < ClCompile Include = " HTKMLFReader . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ Config . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ File . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ ExceptionWithCallStack . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < ClCompile Include = " Exports . cpp " / > <nl> < / ItemGroup > <nl> < ItemGroup > <nl> mmm a / Source / Readers / HTKMLFReader / HTKMLFReader . vcxproj <nl> ppp b / Source / Readers / HTKMLFReader / HTKMLFReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < AdditionalOptions > / d2Zi + % ( AdditionalOptions ) < / AdditionalOptions > <nl> < TreatWarningAsError > true < / TreatWarningAsError > <nl> < AdditionalIncludeDirectories Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release | x64 ' " > . . \ . . \ common \ include ; . . \ . . \ Math < / AdditionalIncludeDirectories > <nl> - < AdditionalIncludeDirectories Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > . . \ . . \ common \ include ; . . \ . . \ Math < / AdditionalIncludeDirectories > <nl> < AdditionalIncludeDirectories Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_CpuOnly | x64 ' " > . . \ . . \ common \ include ; . . \ . . \ Math < / AdditionalIncludeDirectories > <nl> - < AdditionalIncludeDirectories Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > . . \ . . \ common \ include ; . . \ . . \ Math < / AdditionalIncludeDirectories > <nl> < / ClCompile > <nl> < Link > <nl> < SubSystem > Console < / SubSystem > <nl> <nl> < AdditionalDependencies > Math . lib ; Common . lib ; kernel32 . lib ; user32 . lib ; gdi32 . lib ; winspool . lib ; comdlg32 . lib ; advapi32 . lib ; shell32 . lib ; ole32 . lib ; oleaut32 . lib ; uuid . lib ; odbc32 . lib ; odbccp32 . lib ; % ( AdditionalDependencies ) < / AdditionalDependencies > <nl> < Profile > true < / Profile > <nl> < AdditionalLibraryDirectories Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release | x64 ' " > $ ( SolutionDir ) $ ( Platform ) \ $ ( Configuration ) \ < / AdditionalLibraryDirectories > <nl> - < AdditionalLibraryDirectories Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > $ ( SolutionDir ) $ ( Platform ) \ $ ( Configuration ) \ < / AdditionalLibraryDirectories > <nl> < AdditionalLibraryDirectories Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_CpuOnly | x64 ' " > $ ( SolutionDir ) $ ( Platform ) \ $ ( Configuration ) \ < / AdditionalLibraryDirectories > <nl> - < AdditionalLibraryDirectories Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > $ ( SolutionDir ) $ ( Platform ) \ $ ( Configuration ) \ < / AdditionalLibraryDirectories > <nl> < / Link > <nl> < / ItemDefinitionGroup > <nl> < ItemGroup > <nl> <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " > <nl> < / ImportGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Readers / HTKMLFReader / HTKMLFReader . vcxproj . filters <nl> ppp b / Source / Readers / HTKMLFReader / HTKMLFReader . vcxproj . filters <nl> <nl> < ClCompile Include = " HTKMLFWriter . cpp " / > <nl> < ClCompile Include = " latticearchive . cpp " / > <nl> < ClCompile Include = " stdafx . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ TimerUtility . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ fileutil . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ ExceptionWithCallStack . cpp " / > <nl> < ClCompile Include = " Exports . cpp " / > <nl> < ClCompile Include = " DataWriterLocal . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ DataReader . cpp " > <nl> + < Filter > Common \ Include < / Filter > <nl> + < / ClCompile > <nl> < / ItemGroup > <nl> < ItemGroup > <nl> < ClInclude Include = " biggrowablevectors . h " / > <nl> mmm a / Source / Readers / ImageReader / ImageReader . vcxproj <nl> ppp b / Source / Readers / ImageReader / ImageReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> mmm a / Source / Readers / LMSequenceReader / LMSequenceReader . vcxproj <nl> ppp b / Source / Readers / LMSequenceReader / LMSequenceReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " > <nl> < / ImportGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Readers / LUSequenceReader / LUSequenceReader . vcxproj <nl> ppp b / Source / Readers / LUSequenceReader / LUSequenceReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " > <nl> < / ImportGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Readers / LUSequenceReader / LUSequenceReader . vcxproj . filters <nl> ppp b / Source / Readers / LUSequenceReader / LUSequenceReader . vcxproj . filters <nl> <nl> < ClCompile Include = " stdafx . cpp " / > <nl> < ClCompile Include = " LUSequenceReader . cpp " / > <nl> < ClCompile Include = " LUSequenceParser . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ fileutil . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ File . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ Config . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ ExceptionWithCallStack . cpp " / > <nl> < ClCompile Include = " DataWriterLocal . cpp " > <nl> < Filter > Common < / Filter > <nl> < / ClCompile > <nl> mmm a / Source / Readers / LibSVMBinaryReader / LibSVMBinaryReader . vcxproj <nl> ppp b / Source / Readers / LibSVMBinaryReader / LibSVMBinaryReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " > <nl> < / ImportGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Readers / LibSVMBinaryReader / LibSVMBinaryReader . vcxproj . filters <nl> ppp b / Source / Readers / LibSVMBinaryReader / LibSVMBinaryReader . vcxproj . filters <nl> <nl> < / Filter > <nl> < / ItemGroup > <nl> < ItemGroup > <nl> + < ClCompile Include = " . . \ . . \ Common \ DataWriter . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ File . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ fileutil . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < ClCompile Include = " dllmain . cpp " / > <nl> < ClCompile Include = " Exports . cpp " / > <nl> < ClCompile Include = " LibSVMBinaryReader . cpp " / > <nl> < ClCompile Include = " stdafx . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ Config . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ ExceptionWithCallStack . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < / ItemGroup > <nl> < ItemGroup > <nl> < ClInclude Include = " . . \ . . \ Common \ Include \ DataReader . h " > <nl> mmm a / Source / Readers / ReaderLib / ReaderLib . vcxproj <nl> ppp b / Source / Readers / ReaderLib / ReaderLib . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> mmm a / Source / Readers / SparsePCReader / SparsePCReader . vcxproj <nl> ppp b / Source / Readers / SparsePCReader / SparsePCReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " > <nl> < / ImportGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Readers / SparsePCReader / SparsePCReader . vcxproj . filters <nl> ppp b / Source / Readers / SparsePCReader / SparsePCReader . vcxproj . filters <nl> <nl> < / Filter > <nl> < / ItemGroup > <nl> < ItemGroup > <nl> + < ClCompile Include = " . . \ . . \ Common \ DataWriter . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ File . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ fileutil . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < ClCompile Include = " dllmain . cpp " > <nl> < Filter > Source Files < / Filter > <nl> < / ClCompile > <nl> <nl> < ClCompile Include = " stdafx . cpp " > <nl> < Filter > Source Files < / Filter > <nl> < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ Config . cpp " > <nl> + < Filter > Source Files < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ ExceptionWithCallStack . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < / ItemGroup > <nl> < ItemGroup > <nl> < ClInclude Include = " . . \ . . \ Common \ Include \ DataReader . h " > <nl> mmm a / Source / Readers / UCIFastReader / UCIFastReader . vcxproj <nl> ppp b / Source / Readers / UCIFastReader / UCIFastReader . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " > <nl> < / ImportGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / Readers / UCIFastReader / UCIFastReader . vcxproj . filters <nl> ppp b / Source / Readers / UCIFastReader / UCIFastReader . vcxproj . filters <nl> <nl> < ClCompile Include = " stdafx . cpp " / > <nl> < ClCompile Include = " UCIFastReader . cpp " / > <nl> < ClCompile Include = " UCIParser . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ DataReader . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ CompositeDataReader . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ DataWriter . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ File . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ fileutil . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ . . \ Common \ Config . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ Common \ ExceptionWithCallStack . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < / ItemGroup > <nl> < ItemGroup > <nl> < ClInclude Include = " stdafx . h " / > <nl> mmm a / Source / SGDLib / SGDLib . vcxproj <nl> ppp b / Source / SGDLib / SGDLib . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < / ItemGroup > <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " / > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / SGDLib / SGDLib . vcxproj . filters <nl> ppp b / Source / SGDLib / SGDLib . vcxproj . filters <nl> <nl> < ? xml version = " 1 . 0 " encoding = " utf - 8 " ? > <nl> < Project ToolsVersion = " 4 . 0 " xmlns = " http : / / schemas . microsoft . com / developer / msbuild / 2003 " > <nl> < ItemGroup > <nl> + < ClCompile Include = " . . \ Common \ DataReader . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ Common \ DataWriter . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ Common \ File . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> + < ClCompile Include = " . . \ Common \ fileutil . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < ClCompile Include = " stdafx . cpp " > <nl> < Filter > Misc < / Filter > <nl> < / ClCompile > <nl> + < ClCompile Include = " . . \ Common \ TimerUtility . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < ClCompile Include = " Profiler . cpp " > <nl> < Filter > GPU Interfacing < / Filter > <nl> < / ClCompile > <nl> < ClCompile Include = " SGD . cpp " > <nl> < Filter > SGD < / Filter > <nl> < / ClCompile > <nl> + < ClCompile Include = " . . \ Common \ Config . cpp " > <nl> + < Filter > Common < / Filter > <nl> + < / ClCompile > <nl> < / ItemGroup > <nl> < ItemGroup > <nl> < ClInclude Include = " . . \ Common \ Include \ fileutil . h " > <nl> <nl> < UniqueIdentifier > { b866d513 - 7bd0 - 497c - 98c2 - f62dbcd4cde4 } < / UniqueIdentifier > <nl> < / Filter > <nl> < / ItemGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Source / SequenceTrainingLib / SequenceTrainingLib . vcxproj <nl> ppp b / Source / SequenceTrainingLib / SequenceTrainingLib . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < ClCompile Include = " parallelforwardbackward . cpp " / > <nl> < / ItemGroup > <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Tests / EndToEndTests / EvalClientTests / CPPEvalClientTest / CPPEvalClientTest . vcxproj <nl> ppp b / Tests / EndToEndTests / EvalClientTests / CPPEvalClientTest / CPPEvalClientTest . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < / ItemGroup > <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " / > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Tests / EndToEndTests / EvalClientTests / CPPEvalClientTest / CPPEvalClientTest . vcxproj . filters <nl> ppp b / Tests / EndToEndTests / EvalClientTests / CPPEvalClientTest / CPPEvalClientTest . vcxproj . filters <nl> <nl> < / Filter > <nl> < / ItemGroup > <nl> < ItemGroup > <nl> - < ClCompile Include = " . . \ . . \ . . \ . . \ Examples \ Evaluation \ CPPEvalClient \ CPPEvalClient . cpp " > <nl> + < ClCompile Include = " CPPEvalClient . cpp " > <nl> < Filter > Source Files < / Filter > <nl> < / ClCompile > <nl> < / ItemGroup > <nl> mmm a / Tests / EndToEndTests / EvalClientTests / CSEvalClientTest / CSEvalClientTest . csproj <nl> ppp b / Tests / EndToEndTests / EvalClientTests / CSEvalClientTest / CSEvalClientTest . csproj <nl> <nl> < RootNamespace > Microsoft . MSR . CNTK . Extensibility . Managed . CSEvalClientTest < / RootNamespace > <nl> < AssemblyName > CSEvalClientTest < / AssemblyName > <nl> < TargetFrameworkVersion > v4 . 5 < / TargetFrameworkVersion > <nl> - < FileAlignment > 512 < / FileAlignment > <nl> + < FileAlignment > 512 < / FileAlignment > <nl> < / PropertyGroup > <nl> < PropertyGroup Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Debug | x64 ' " > <nl> < DebugSymbols > true < / DebugSymbols > <nl> <nl> < CodeAnalysisRuleSet > MinimumRecommendedRules . ruleset < / CodeAnalysisRuleSet > <nl> < TreatWarningsAsErrors > true < / TreatWarningsAsErrors > <nl> < / PropertyGroup > <nl> - < PropertyGroup Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > <nl> - < OutputPath > bin \ x64 \ Release_NoOpt \ < / OutputPath > <nl> - < DefineConstants > TRACE < / DefineConstants > <nl> - < Optimize > true < / Optimize > <nl> - < TreatWarningsAsErrors > true < / TreatWarningsAsErrors > <nl> - < DebugType > pdbonly < / DebugType > <nl> - < PlatformTarget > x64 < / PlatformTarget > <nl> - < ErrorReport > prompt < / ErrorReport > <nl> - < CodeAnalysisRuleSet > MinimumRecommendedRules . ruleset < / CodeAnalysisRuleSet > <nl> - < Prefer32Bit > true < / Prefer32Bit > <nl> - < / PropertyGroup > <nl> - < PropertyGroup Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > <nl> - < OutputPath > bin \ x64 \ Release_NoOpt_CpuOnly \ < / OutputPath > <nl> - < DefineConstants > TRACE < / DefineConstants > <nl> - < Optimize > true < / Optimize > <nl> - < TreatWarningsAsErrors > true < / TreatWarningsAsErrors > <nl> - < DebugType > pdbonly < / DebugType > <nl> - < PlatformTarget > x64 < / PlatformTarget > <nl> - < ErrorReport > prompt < / ErrorReport > <nl> - < CodeAnalysisRuleSet > MinimumRecommendedRules . ruleset < / CodeAnalysisRuleSet > <nl> - < Prefer32Bit > true < / Prefer32Bit > <nl> - < / PropertyGroup > <nl> < ItemGroup > <nl> < Reference Include = " System " / > <nl> < Reference Include = " System . Core " / > <nl> <nl> < Project > { ef766cae - 9cb1 - 494c - 9153 - 0030631a6340 } < / Project > <nl> < Name > EvalWrapper < / Name > <nl> < / ProjectReference > <nl> - < / ItemGroup > <nl> + < / ItemGroup > <nl> < Import Project = " $ ( MSBuildToolsPath ) \ Microsoft . CSharp . targets " / > <nl> < / Project > <nl> \ No newline at end of file <nl> mmm a / Tests / UnitTests / BrainScriptTests / BrainScriptTests . vcxproj <nl> ppp b / Tests / UnitTests / BrainScriptTests / BrainScriptTests . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Target Name = " CheckDependencies " > <nl> < Warning Condition = " ! $ ( HasBoost ) " Text = " BrainScriptTests requires the Boost library to build . Please see https : / / github . com / Microsoft / CNTK / wiki / Setup - CNTK - on - Windows # boost for installation instructions . " / > <nl> < / Target > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Tests / UnitTests / CommandEval / CommandEval . vcxproj <nl> ppp b / Tests / UnitTests / CommandEval / CommandEval . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> < ImportGroup Label = " ExtensionTargets " > <nl> < / ImportGroup > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Tests / UnitTests / EvalTests / EvalTests . vcxproj <nl> ppp b / Tests / UnitTests / EvalTests / EvalTests . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < WholeProgramOptimization > true < / WholeProgramOptimization > <nl> < CharacterSet > Unicode < / CharacterSet > <nl> < UseOfMfc > false < / UseOfMfc > <nl> - < / PropertyGroup > <nl> + < / PropertyGroup > <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . props " / > <nl> < ImportGroup Condition = " $ ( GpuBuild ) " Label = " ExtensionSettings " > <nl> < Import Project = " $ ( VCTargetsPath ) \ BuildCustomizations \ CUDA $ ( CudaVersion ) . props " / > <nl> <nl> < / ClCompile > <nl> < Link > <nl> < SubSystem > Console < / SubSystem > <nl> - < GenerateDebugInformation > true < / GenerateDebugInformation > <nl> + < GenerateDebugInformation > true < / GenerateDebugInformation > <nl> < / Link > <nl> < CudaCompile > <nl> < TargetMachinePlatform > 64 < / TargetMachinePlatform > <nl> <nl> < GenerateDebugInformation > true < / GenerateDebugInformation > <nl> < EnableCOMDATFolding > true < / EnableCOMDATFolding > <nl> < OptimizeReferences > true < / OptimizeReferences > <nl> - < PreprocessorDefinitions > WIN32 ; NDEBUG ; % ( PreprocessorDefinitions ) < / PreprocessorDefinitions > <nl> + < PreprocessorDefinitions > WIN32 ; NDEBUG ; % ( PreprocessorDefinitions ) < / PreprocessorDefinitions > <nl> < / Link > <nl> < / ItemDefinitionGroup > <nl> < ItemDefinitionGroup Condition = " $ ( GpuBuild ) " > <nl> <nl> < Target Name = " CheckDependencies " > <nl> < Warning Condition = " ! $ ( HasBoost ) " Text = " EvalTests requires the Boost library to build . Please see https : / / github . com / Microsoft / CNTK / wiki / Setup - CNTK - on - Windows # boost for installation instructions . " / > <nl> < / Target > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Tests / UnitTests / ManagedEvalTests / ManagedEvalTests . csproj <nl> ppp b / Tests / UnitTests / ManagedEvalTests / ManagedEvalTests . csproj <nl> <nl> < ErrorReport > prompt < / ErrorReport > <nl> < CodeAnalysisRuleSet > MinimumRecommendedRules . ruleset < / CodeAnalysisRuleSet > <nl> < / PropertyGroup > <nl> - < PropertyGroup Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > <nl> - < OutputPath > bin \ x64 \ Release_NoOpt \ < / OutputPath > <nl> - < DefineConstants > TRACE < / DefineConstants > <nl> - < Optimize > true < / Optimize > <nl> - < DebugType > pdbonly < / DebugType > <nl> - < PlatformTarget > x64 < / PlatformTarget > <nl> - < ErrorReport > prompt < / ErrorReport > <nl> - < CodeAnalysisRuleSet > MinimumRecommendedRules . ruleset < / CodeAnalysisRuleSet > <nl> - < / PropertyGroup > <nl> - < PropertyGroup Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > <nl> - < OutputPath > bin \ x64 \ Release_NoOpt_CpuOnly \ < / OutputPath > <nl> - < DefineConstants > TRACE < / DefineConstants > <nl> - < Optimize > true < / Optimize > <nl> - < DebugType > pdbonly < / DebugType > <nl> - < PlatformTarget > x64 < / PlatformTarget > <nl> - < ErrorReport > prompt < / ErrorReport > <nl> - < CodeAnalysisRuleSet > MinimumRecommendedRules . ruleset < / CodeAnalysisRuleSet > <nl> - < / PropertyGroup > <nl> < ItemGroup > <nl> < Reference Include = " System " / > <nl> < / ItemGroup > <nl> <nl> < Target Name = " AfterBuild " > <nl> < / Target > <nl> - - > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Tests / UnitTests / MathPerformanceTests / MathPerformanceTests . vcxproj <nl> ppp b / Tests / UnitTests / MathPerformanceTests / MathPerformanceTests . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> mmm a / Tests / UnitTests / MathTests / MathTests . vcxproj <nl> ppp b / Tests / UnitTests / MathTests / MathTests . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < WholeProgramOptimization > true < / WholeProgramOptimization > <nl> < CharacterSet > Unicode < / CharacterSet > <nl> < UseOfMfc > false < / UseOfMfc > <nl> - < / PropertyGroup > <nl> + < / PropertyGroup > <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . props " / > <nl> < ImportGroup Condition = " $ ( GpuBuild ) " Label = " ExtensionSettings " > <nl> < Import Project = " $ ( VCTargetsPath ) \ BuildCustomizations \ CUDA $ ( CudaVersion ) . props " / > <nl> <nl> < ClCompile Include = " MatrixQuantizerTests . cpp " / > <nl> < ClCompile Include = " MatrixSparseDenseInteractionsTests . cpp " / > <nl> < ClCompile Include = " MatrixTests . cpp " / > <nl> - < ClCompile Include = " QuantizersTests . cpp " / > <nl> + < ClCompile Include = " QuantizersTests . cpp " / > <nl> < ClCompile Include = " stdafx . cpp " > <nl> < PrecompiledHeader > Create < / PrecompiledHeader > <nl> < / ClCompile > <nl> <nl> < Target Name = " CheckDependencies " > <nl> < Warning Condition = " ! $ ( HasBoost ) " Text = " MathTests requires the Boost library to build . Please see https : / / github . com / Microsoft / CNTK / wiki / Setup - CNTK - on - Windows # boost for installation instructions . " / > <nl> < / Target > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Tests / UnitTests / NetworkTests / NetworkTests . vcxproj <nl> ppp b / Tests / UnitTests / NetworkTests / NetworkTests . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < ProjectName > NetworkTests < / ProjectName > <nl> < / PropertyGroup > <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . Default . props " / > <nl> - < Import Project = " $ ( SolutionDir ) \ CNTK . Cpp . props " / > <nl> + < Import Project = " $ ( SolutionDir ) \ CNTK . Cpp . props " / > <nl> < PropertyGroup Label = " Configuration " > <nl> < ConfigurationType > Application < / ConfigurationType > <nl> < PlatformToolset > v120 < / PlatformToolset > <nl> <nl> < Target Name = " CheckDependencies " > <nl> < Warning Condition = " ! $ ( HasBoost ) " Text = " NetworkTests requires the Boost library to build . Please see https : / / github . com / Microsoft / CNTK / wiki / Setup - CNTK - on - Windows # boost for installation instructions . " / > <nl> < / Target > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Tests / UnitTests / ReaderTests / ReaderTests . vcxproj <nl> ppp b / Tests / UnitTests / ReaderTests / ReaderTests . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < Target Name = " CheckDependencies " > <nl> < Warning Condition = " ! $ ( HasBoost ) " Text = " ReaderTests requires the Boost library to build . Please see https : / / github . com / Microsoft / CNTK / wiki / Setup - CNTK - on - Windows # boost for installation instructions . " / > <nl> < / Target > <nl> - < / Project > <nl> \ No newline at end of file <nl> + < / Project > <nl> mmm a / Tests / UnitTests / V2LibraryTests / V2LibraryTests . vcxproj <nl> ppp b / Tests / UnitTests / V2LibraryTests / V2LibraryTests . vcxproj <nl> <nl> < Configuration > Debug < / Configuration > <nl> < Platform > x64 < / Platform > <nl> < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt_CpuOnly | x64 " > <nl> - < Configuration > Release_NoOpt_CpuOnly < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> - < ProjectConfiguration Include = " Release_NoOpt | x64 " > <nl> - < Configuration > Release_NoOpt < / Configuration > <nl> - < Platform > x64 < / Platform > <nl> - < / ProjectConfiguration > <nl> < ProjectConfiguration Include = " Release | x64 " > <nl> < Configuration > Release < / Configuration > <nl> < Platform > x64 < / Platform > <nl> <nl> < AdditionalOptions > / d2Zi + % ( AdditionalOptions ) < / AdditionalOptions > <nl> < TreatWarningAsError > true < / TreatWarningAsError > <nl> < RuntimeLibrary Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release | x64 ' " > MultiThreaded < / RuntimeLibrary > <nl> - < RuntimeLibrary Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt | x64 ' " > MultiThreaded < / RuntimeLibrary > <nl> < / ClCompile > <nl> < Link > <nl> < SubSystem > Console < / SubSystem > <nl> <nl> < PreprocessorDefinitions > CPUONLY ; % ( PreprocessorDefinitions ) < / PreprocessorDefinitions > <nl> < RuntimeLibrary Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Debug_CpuOnly | x64 ' " > MultiThreadedDebug < / RuntimeLibrary > <nl> < RuntimeLibrary Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_CpuOnly | x64 ' " > MultiThreaded < / RuntimeLibrary > <nl> - < RuntimeLibrary Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release_NoOpt_CpuOnly | x64 ' " > MultiThreaded < / RuntimeLibrary > <nl> < / ClCompile > <nl> < / ItemDefinitionGroup > <nl> < ItemGroup > <nl> mmm a / bindings / python / cntk / cntk_py . i <nl> ppp b / bindings / python / cntk / cntk_py . i <nl> <nl> - % module ( directors = " 1 " ) cntk_py <nl> - <nl> - % include " stl . i " <nl> - % include " std_wstring . i " <nl> - % include < std_vector . i > <nl> - % include < std_map . i > <nl> - % include < std_set . i > <nl> - % include < std_pair . i > <nl> - % include < windows . i > <nl> - % include < attribute . i > <nl> - % include < std_shared_ptr . i > <nl> - <nl> - % rename ( output_internal ) CNTK : : Function : : Output ; <nl> - % rename ( replace_placeholders_internal ) CNTK : : Function : : ReplacePlaceholders ; <nl> - % rename ( sgd_learner ) CNTK : : SGDLearner ; <nl> - % rename ( momentum_sgd_learner ) CNTK : : MomentumSGDLearner ; <nl> - % rename ( gpu_device ) CNTK : : DeviceDescriptor : : GPUDevice ; <nl> - % rename ( cpu_device ) CNTK : : DeviceDescriptor : : CPUDevice ; <nl> - <nl> - / / if we don ' t except RandomUniform the corresponding template functions will not be generated <nl> - % rename ( " % ( utitle ) s " , % $ isfunction , notregexmatch $ name = " RandomUniform " ) " " ; <nl> - % rename ( " % ( utitle ) s " , % $ isvariable ) " " ; <nl> - <nl> - % template ( ) std : : vector < size_t > ; <nl> - % template ( ) std : : vector < bool > ; <nl> - % template ( ) std : : vector < double > ; <nl> - % template ( ) std : : vector < std : : vector < size_t > > ; <nl> - % template ( ) std : : vector < std : : vector < float > > ; <nl> - % template ( ) std : : vector < std : : vector < double > > ; <nl> - <nl> - % template ( ) std : : vector < CNTK : : Variable > ; <nl> - % template ( ) std : : vector < CNTK : : Parameter > ; <nl> - % template ( ) std : : vector < CNTK : : Constant > ; <nl> - % template ( ) std : : vector < CNTK : : Axis > ; <nl> - % template ( ) std : : vector < CNTK : : DeviceDescriptor > ; <nl> - % template ( ) std : : vector < CNTK : : StreamConfiguration > ; <nl> - / / % template ( ) std : : vector < CNTK : : DictionaryValue > ; <nl> - % template ( ) std : : vector < std : : shared_ptr < CNTK : : Function > > ; <nl> - <nl> - / / They are defined twice under CNTK : : Internal and under CNTK namespace <nl> - % ignore CNTK : : Internal : : Combine ; <nl> - % ignore CNTK : : Internal : : Where ; <nl> - % ignore CNTK : : Internal : : Gather ; <nl> - % ignore CNTK : : Internal : : Scatter ; <nl> - % ignore CNTK : : Internal : : Slice ; <nl> - <nl> - / / These aren ' t exported from the CNTK C + + library <nl> - % ignore CNTK : : Internal : : IsReversingTensorShapesInErrorMessagesEnabled ; <nl> - % ignore CNTK : : Internal : : IsSettingDefaultDeviceAlwaysAllowed ; <nl> - % ignore CNTK : : Internal : : IsAutomaticUnpackingOfPackedValuesDisabled ; <nl> - <nl> - % { <nl> - # define SWIG_FILE_WITH_INIT <nl> - % } <nl> - % init % { <nl> - import_array ( ) ; <nl> - % } <nl> - <nl> - / / <nl> - / / Whenever a tuple of dynamic axes is returned we need to reverse it <nl> - / / <nl> - % feature ( " shadow " ) CNTK : : Variable : : DynamicAxes % { <nl> - def dynamic_axes ( self ) : <nl> - return tuple ( reversed ( $ action ( self ) ) ) <nl> - % } <nl> - <nl> - % define % eq_for ( DATA_TYPE , EQ ) <nl> - % rename ( EQ ) operator = = ( const DATA_TYPE & , const DATA_TYPE & ) ; <nl> - % enddef <nl> - <nl> - % eq_for ( Variable , Variable_eq ) <nl> - % eq_for ( Constant , Variable_eq ) <nl> - % eq_for ( Parameter , Variable_eq ) <nl> - % eq_for ( NDShape , NDShape_eq ) <nl> - % eq_for ( DeviceDescriptor , DeviceDescriptor_eq ) <nl> - <nl> - <nl> - % extend CNTK : : Dictionary { <nl> - CNTK : : DictionaryValue __getitem__ ( const wchar_t * key ) { <nl> - return ( * ( $ self ) ) [ key ] ; <nl> - } <nl> - <nl> - void __setitem__ ( const wchar_t * key , CNTK : : DictionaryValue value ) { <nl> - ( * ( $ self ) ) [ key ] = value ; <nl> - } <nl> - } <nl> - <nl> - % extend CNTK : : TrainingParameterSchedule < double > { <nl> - const double & __getitem__ ( size_t sampleCount ) { <nl> - return ( * ( $ self ) ) [ sampleCount ] ; <nl> - } <nl> - } <nl> - <nl> - <nl> - % { <nl> - # include " CNTKLibrary . h " <nl> - # define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION <nl> - # include " numpy / ndarraytypes . h " <nl> - # include " numpy / arrayobject . h " <nl> - using namespace CNTK ; <nl> - % } <nl> - <nl> - <nl> - / / Callback support <nl> - % feature ( " director " ) Callback ; <nl> - <nl> - / / <nl> - / / Exception handling <nl> - / / <nl> - % exception { <nl> - try { $ action } <nl> - catch ( Swig : : DirectorException & e ) { SWIG_exception ( SWIG_RuntimeError , e . what ( ) ) ; } <nl> - catch ( std : : runtime_error & e ) { SWIG_exception ( SWIG_RuntimeError , e . what ( ) ) ; } <nl> - catch ( std : : invalid_argument & e ) { SWIG_exception ( SWIG_RuntimeError , e . what ( ) ) ; } <nl> - catch ( std : : logic_error & e ) { SWIG_exception ( SWIG_RuntimeError , e . what ( ) ) ; } <nl> - catch ( . . . ) { SWIG_exception ( SWIG_RuntimeError , " Runtime exception " ) ; } <nl> - } <nl> - <nl> - <nl> - / / <nl> - / / NDShape <nl> - / / <nl> - % typecheck ( 1000 ) CNTK : : NDShape const & , CNTK : : NDShape { <nl> - / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> - / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> - $ 1 = PyTuple_Check ( $ input ) ? 1 : 0 ; <nl> - } <nl> - <nl> - % typemap ( in ) CNTK : : NDShape const & { <nl> - if ( PyTuple_Check ( $ input ) ) { <nl> - std : : vector < size_t > dimensions ; <nl> - size_t rank = PyTuple_Size ( $ input ) ; <nl> - for ( size_t i = 0 ; i < rank ; i + + ) <nl> - dimensions . push_back ( PyLong_AsLong ( PyTuple_GET_ITEM ( $ input , i ) ) ) ; <nl> - <nl> - / / TODO cleans this up ? <nl> - $ 1 = new CNTK : : NDShape ( dimensions ) ; <nl> - } else { <nl> - SWIG_exception ( SWIG_TypeError , " tuple expected " ) ; <nl> - } <nl> - } <nl> - <nl> - % ignore CNTK : : NDShape : : operator [ ] ; <nl> - % ignore CNTK : : NDShape : : AppendShape ; <nl> - % ignore CNTK : : NDShape : : Dimensions ; <nl> - <nl> - % typemap ( out ) CNTK : : NDShape { <nl> - size_t rank = $ 1 . Rank ( ) ; <nl> - $ result = PyTuple_New ( rank ) ; <nl> - for ( size_t i = 0 ; i < rank ; i + + ) <nl> - { <nl> - size_t dim = ( & $ 1 ) - > operator [ ] ( i ) ; <nl> - PyTuple_SET_ITEM ( $ result , i , PyInt_FromLong ( dim ) ) ; <nl> - } <nl> - } <nl> - <nl> - % extend CNTK : : NDShape { <nl> - const size_t & __getitem__ ( int i ) { <nl> - / / CNTK uses column major , thus we reverse the shape <nl> - size_t rank = ( * self ) . Rank ( ) ; <nl> - if ( i < 0 ) <nl> - { <nl> - return ( * self ) [ - i - 1 ] ; <nl> - } <nl> - return ( * self ) [ rank - 1 - i ] ; <nl> - } <nl> - <nl> - PyObject * dimensions ( ) { <nl> - std : : vector < size_t > dims = ( * self ) . Dimensions ( ) ; <nl> - size_t rank = ( * self ) . Rank ( ) ; <nl> - PyObject * result = PyTuple_New ( rank ) ; <nl> - / / CNTK uses column major , thus we reverse the shape <nl> - for ( size_t i = 0 ; i < rank ; i + + ) <nl> - { <nl> - size_t dim = dims [ i ] ; <nl> - PyTuple_SET_ITEM ( result , rank - 1 - i , PyInt_FromLong ( dim ) ) ; <nl> - } <nl> - return result ; <nl> - } <nl> - } <nl> - <nl> - % ignore CNTK : : Dictionary : : AppendShape ; <nl> - % rename ( " $ ignore " , fullname = 1 ) CNTK : : Variable ( const NDShape & , CNTK : : DataType , const wchar_t * ) ; <nl> - <nl> - <nl> - / / ( size_t ) - 1 will result into an OverflowException <nl> - % ignore CNTK : : NDShape : : InferredDimension ; <nl> - / / % ignore CNTK : : NDShape : : Dimensions ; <nl> - / / FIXME : The following is not picked up yet , which is why we have to tag it to <nl> - / / the module <nl> - / / % constant long CNTK : : NDShape : : InferredDimension = - 1 ; <nl> - % constant long InferredDimension = - 1 ; <nl> - <nl> - / / end of NDShape <nl> - <nl> - / / <nl> - / / Converting Python dictionary { Variable : ValuePtr } to std : : unordered_map <nl> - / / <nl> - % typecheck ( 1000 ) const std : : unordered_map < CNTK : : Variable , const CNTK : : ValuePtr > & , std : : unordered_map < CNTK : : Variable , CNTK : : ValuePtr > & { <nl> - / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> - / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> - $ 1 = PyDict_Check ( $ input ) ? 1 : 0 ; <nl> - } <nl> - <nl> - % typemap ( in ) const std : : unordered_map < CNTK : : Variable , const CNTK : : ValuePtr > & { <nl> - if ( PyDict_Check ( $ input ) ) { <nl> - std : : unordered_map < CNTK : : Variable , const CNTK : : ValuePtr > * args_map = new std : : unordered_map < CNTK : : Variable , const CNTK : : ValuePtr > ( ) ; <nl> - <nl> - PyObject * key , * value ; <nl> - Py_ssize_t pos = 0 ; <nl> - <nl> - while ( PyDict_Next ( $ input , & pos , & key , & value ) ) { <nl> - void * raw_var = 0 ; <nl> - int res1 = SWIG_ConvertPtr ( key , & raw_var , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res1 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert key of dictionary to CNTK : : Variable " ) ; <nl> - } <nl> - if ( ! raw_var ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : Variable " ) ; <nl> - } <nl> - <nl> - CNTK : : Variable * var = reinterpret_cast < CNTK : : Variable * > ( raw_var ) ; <nl> - <nl> - void * raw_value = 0 ; <nl> - int res2 = SWIG_ConvertPtr ( value , & raw_value , SWIGTYPE_p_std__shared_ptrT_CNTK__Value_t , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res2 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " cannot convert value of dictionary to CNTK : : ValuePtr " ) ; <nl> - } <nl> - <nl> - CNTK : : ValuePtr * value ; <nl> - if ( raw_value ) { <nl> - value = reinterpret_cast < CNTK : : ValuePtr * > ( raw_value ) ; <nl> - } else { <nl> - / / We got an empty ValuePtr , which carries a nullptr . <nl> - value = new CNTK : : ValuePtr ( ) ; <nl> - } <nl> - <nl> - args_map - > insert ( std : : make_pair ( * var , * value ) ) ; <nl> - } <nl> - <nl> - $ 1 = args_map ; <nl> - } else { <nl> - SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> - } <nl> - } <nl> - <nl> - / / supporting the non - const version <nl> - % typemap ( in ) std : : unordered_map < CNTK : : Variable , CNTK : : ValuePtr > & { <nl> - if ( PyDict_Check ( $ input ) ) { <nl> - std : : unordered_map < CNTK : : Variable , CNTK : : ValuePtr > * args_map = new std : : unordered_map < CNTK : : Variable , CNTK : : ValuePtr > ( ) ; <nl> - <nl> - PyObject * key , * value ; <nl> - Py_ssize_t pos = 0 ; <nl> - <nl> - while ( PyDict_Next ( $ input , & pos , & key , & value ) ) { <nl> - void * raw_var = 0 ; <nl> - int res1 = SWIG_ConvertPtr ( key , & raw_var , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res1 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert key of dictionary to CNTK : : Variable " ) ; <nl> - } <nl> - if ( ! raw_var ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : Variable " ) ; <nl> - } <nl> - <nl> - CNTK : : Variable * var = reinterpret_cast < CNTK : : Variable * > ( raw_var ) ; <nl> - <nl> - void * raw_value = 0 ; <nl> - int res2 = SWIG_ConvertPtr ( value , & raw_value , SWIGTYPE_p_std__shared_ptrT_CNTK__Value_t , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res2 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " cannot convert value of dictionary to CNTK : : ValuePtr " ) ; <nl> - } <nl> - <nl> - CNTK : : ValuePtr * value ; <nl> - if ( raw_value ) { <nl> - value = reinterpret_cast < CNTK : : ValuePtr * > ( raw_value ) ; <nl> - } else { <nl> - / / We got an empty ValuePtr , which carries a nullptr . <nl> - value = new CNTK : : ValuePtr ( ) ; <nl> - } <nl> - <nl> - args_map - > insert ( std : : make_pair ( * var , * value ) ) ; <nl> - } <nl> - <nl> - $ 1 = args_map ; <nl> - } else { <nl> - SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> - } <nl> - } <nl> - <nl> - / / For the output dict ( the non - const unordered_map ) we need to get the <nl> - / / modified values and put them back into the dictionary . This is used , when <nl> - / / e . g . the user puts a variable into the dictionary , hoping that it will <nl> - / / afterwards point to the proper value . <nl> - % typemap ( argout ) std : : unordered_map < CNTK : : Variable , CNTK : : ValuePtr > & { <nl> - if ( ! PyDict_Check ( $ input ) ) { <nl> - SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> - } <nl> - <nl> - for ( auto it : * $ 1 ) <nl> - { <nl> - / / Push the ValuePtr onto the heap so that it survives <nl> - std : : shared_ptr < CNTK : : Value > * smartresult = it . second ? new std : : shared_ptr < CNTK : : Value > ( it . second ) : 0 ; <nl> - PyObject * returned_val = SWIG_NewPointerObj ( SWIG_as_voidptr ( smartresult ) , SWIGTYPE_p_std__shared_ptrT_CNTK__Value_t , SWIG_POINTER_OWN ) ; <nl> - <nl> - / / Find the corresponding Variable instance in the Python dictionary <nl> - / / and set its value to the new ValuePtr <nl> - <nl> - / * FIXME We would love to do the following , but the hashing does not <nl> - * correctly work here , which is why we never find the keys . Instead , <nl> - * we will for now loop over the dictionary and use C + + comparison . <nl> - * Although not beautiful , there should not be a lot of overhead since <nl> - * the dictionary usually contains only a handful of variables as keys . <nl> - if ( PyDict_Contains ( $ input , returned_var ) ) <nl> - { <nl> - SWIG_exception_fail ( SWIG_ValueError , " returned output map contains unknown key " ) ; <nl> - } <nl> - * / <nl> - <nl> - PyObject * py_key , * py_value ; <nl> - Py_ssize_t pos = 0 ; <nl> - <nl> - while ( PyDict_Next ( $ input , & pos , & py_key , & py_value ) ) { <nl> - void * cntk_key = 0 ; <nl> - int res = SWIG_ConvertPtr ( py_key , & cntk_key , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res ) , " cannot convert key of dictionary to CNTK : : Variable " ) ; <nl> - } <nl> - if ( ! cntk_key ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : Variable " ) ; <nl> - } <nl> - <nl> - CNTK : : Variable * cntk_var = reinterpret_cast < CNTK : : Variable * > ( cntk_key ) ; <nl> - if ( * cntk_var = = * & it . first ) <nl> - { <nl> - PyDict_SetItem ( $ input , py_key , returned_val ) ; <nl> - / / FIXME is this necessary ? <nl> - Py_INCREF ( returned_val ) ; <nl> - } <nl> - } <nl> - } <nl> - } <nl> - <nl> - <nl> - / / <nl> - / / Converting Python dictionary { StreamInformation : ( mbsize , Value ) } to std : : unordered_map < CNTK : : StreamInformation , std : : pair < size_t , size_t > > & <nl> - / / <nl> - % typecheck ( 1000 ) std : : unordered_map < CNTK : : StreamInformation , std : : pair < size_t , size_t > > & { <nl> - / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> - / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> - $ 1 = PyDict_Check ( $ input ) ? 1 : 0 ; <nl> - } <nl> - <nl> - % typemap ( in ) std : : unordered_map < CNTK : : StreamInformation , std : : pair < size_t , size_t > > & { <nl> - if ( PyDict_Check ( $ input ) ) { <nl> - std : : unordered_map < CNTK : : StreamInformation , std : : pair < size_t , size_t > > * args_map = new std : : unordered_map < CNTK : : StreamInformation , std : : pair < size_t , size_t > > ( ) ; <nl> - <nl> - PyObject * key , * value ; <nl> - Py_ssize_t pos = 0 ; <nl> - <nl> - while ( PyDict_Next ( $ input , & pos , & key , & value ) ) { <nl> - void * raw_var = 0 ; <nl> - int res1 = SWIG_ConvertPtr ( key , & raw_var , SWIGTYPE_p_CNTK__StreamInformation , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res1 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert key of dictionary to CNTK : : StreamInformation " ) ; <nl> - } <nl> - if ( ! raw_var ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : StreamInformation " ) ; <nl> - } <nl> - <nl> - CNTK : : StreamInformation * var = reinterpret_cast < CNTK : : StreamInformation * > ( raw_var ) ; <nl> - <nl> - void * raw_value = 0 ; <nl> - <nl> - if ( PyTuple_Check ( value ) ) { <nl> - PyObject * first = PyTuple_GET_ITEM ( value , 0 ) ; <nl> - size_t first_val = PyLong_AsSize_t ( first ) ; <nl> - PyObject * second = PyTuple_GET_ITEM ( value , 1 ) ; <nl> - size_t second_val = PyLong_AsSize_t ( second ) ; <nl> - args_map - > insert ( std : : make_pair ( * var , std : : make_pair ( first_val , second_val ) ) ) ; <nl> - } else { <nl> - SWIG_exception ( SWIG_TypeError , " tuple expected " ) ; <nl> - } <nl> - <nl> - } <nl> - <nl> - $ 1 = args_map ; <nl> - } else { <nl> - SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> - } <nl> - } <nl> - <nl> - % typecheck ( 1000 ) std : : unordered_map < CNTK : : StreamInformation , std : : pair < CNTK : : NDArrayViewPtr , CNTK : : NDArrayViewPtr > > & { <nl> - / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> - / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> - $ 1 = PyDict_Check ( $ input ) ? 1 : 0 ; <nl> - } <nl> - <nl> - % typemap ( in ) std : : unordered_map < CNTK : : StreamInformation , std : : pair < CNTK : : NDArrayViewPtr , CNTK : : NDArrayViewPtr > > & { <nl> - if ( PyDict_Check ( $ input ) ) { <nl> - std : : unordered_map < CNTK : : StreamInformation , std : : pair < CNTK : : NDArrayViewPtr , CNTK : : NDArrayViewPtr > > * args_map = new std : : unordered_map < CNTK : : StreamInformation , std : : pair < CNTK : : NDArrayViewPtr , CNTK : : NDArrayViewPtr > > ( ) ; <nl> - <nl> - PyObject * key , * value ; <nl> - Py_ssize_t pos = 0 ; <nl> - <nl> - while ( PyDict_Next ( $ input , & pos , & key , & value ) ) { <nl> - void * raw_var = 0 ; <nl> - int res = SWIG_ConvertPtr ( key , & raw_var , SWIGTYPE_p_CNTK__StreamInformation , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res ) , " cannot convert key of dictionary to CNTK : : StreamInformation " ) ; <nl> - } <nl> - if ( ! raw_var ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : StreamInformation " ) ; <nl> - } <nl> - <nl> - CNTK : : StreamInformation * var = reinterpret_cast < CNTK : : StreamInformation * > ( raw_var ) ; <nl> - <nl> - if ( PyTuple_Check ( value ) ) { <nl> - PyObject * first = PyTuple_GET_ITEM ( value , 0 ) ; <nl> - void * raw_value1 = 0 ; <nl> - int res1 = SWIG_ConvertPtr ( first , & raw_value1 , SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res1 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert value of dictionary to CNTK : : NDArrayViewPtr " ) ; <nl> - } <nl> - <nl> - CNTK : : NDArrayViewPtr * value1 ; <nl> - if ( raw_value1 ) { <nl> - value1 = reinterpret_cast < CNTK : : NDArrayViewPtr * > ( raw_value1 ) ; <nl> - } else { <nl> - / / We got an empty NDArrayViewPtr , which carries a nullptr . <nl> - value1 = new CNTK : : NDArrayViewPtr ( ) ; <nl> - } <nl> - <nl> - PyObject * second = PyTuple_GET_ITEM ( value , 1 ) ; <nl> - void * raw_value2 = 0 ; <nl> - int res2 = SWIG_ConvertPtr ( second , & raw_value2 , SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res2 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " cannot convert value of dictionary to CNTK : : NDArrayViewPtr " ) ; <nl> - } <nl> - <nl> - CNTK : : NDArrayViewPtr * value2 ; <nl> - if ( raw_value2 ) { <nl> - value2 = reinterpret_cast < CNTK : : NDArrayViewPtr * > ( raw_value2 ) ; <nl> - } else { <nl> - / / We got an empty NDArrayViewPtr , which carries a nullptr . <nl> - value2 = new CNTK : : NDArrayViewPtr ( ) ; <nl> - } <nl> - <nl> - args_map - > insert ( std : : make_pair ( * var , std : : make_pair ( * value1 , * value2 ) ) ) ; <nl> - } else { <nl> - SWIG_exception ( SWIG_TypeError , " tuple expected " ) ; <nl> - } <nl> - } <nl> - <nl> - $ 1 = args_map ; <nl> - } else { <nl> - SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> - } <nl> - } <nl> - <nl> - % typemap ( argout ) std : : unordered_map < CNTK : : StreamInformation , std : : pair < CNTK : : NDArrayViewPtr , CNTK : : NDArrayViewPtr > > & { <nl> - if ( ! PyDict_Check ( $ input ) ) { <nl> - SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> - } <nl> - <nl> - for ( auto it : * $ 1 ) <nl> - { <nl> - / / Push onto the heap so that it survives <nl> - <nl> - std : : shared_ptr < CNTK : : NDArrayView > * smartresult1 = it . second . first ? new std : : shared_ptr < CNTK : : NDArrayView > ( it . second . first ) : 0 ; <nl> - PyObject * returned_val1 = SWIG_NewPointerObj ( SWIG_as_voidptr ( smartresult1 ) , SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t , SWIG_POINTER_OWN ) ; <nl> - <nl> - std : : shared_ptr < CNTK : : NDArrayView > * smartresult2 = it . second . second ? new std : : shared_ptr < CNTK : : NDArrayView > ( it . second . second ) : 0 ; <nl> - PyObject * returned_val2 = SWIG_NewPointerObj ( SWIG_as_voidptr ( smartresult2 ) , SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t , SWIG_POINTER_OWN ) ; <nl> - <nl> - / / Find the corresponding Variable instance in the Python dictionary <nl> - / / and set its value to the new MinibatchData <nl> - <nl> - / * FIXME We would love to do the following , but the hashing does not <nl> - * correctly work here , which is why we never find the keys . Instead , <nl> - * we will for now loop over the dictionary and use C + + comparison . <nl> - * Although not beautiful , there should not be a lot of overhead since <nl> - * the dictionary usually contains only a handful of variables as keys . <nl> - if ( PyDict_Contains ( $ input , returned_var ) ) <nl> - { <nl> - SWIG_exception_fail ( SWIG_ValueError , " returned output map contains unknown key " ) ; <nl> - } <nl> - * / <nl> - <nl> - PyObject * py_key , * py_value ; <nl> - Py_ssize_t pos = 0 ; <nl> - <nl> - while ( PyDict_Next ( $ input , & pos , & py_key , & py_value ) ) { <nl> - void * cntk_key = 0 ; <nl> - int res = SWIG_ConvertPtr ( py_key , & cntk_key , SWIGTYPE_p_CNTK__StreamInformation , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res ) , " cannot convert key of dictionary to CNTK : : StreamInformation " ) ; <nl> - } <nl> - if ( ! cntk_key ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : StreamInformation " ) ; <nl> - } <nl> - <nl> - CNTK : : StreamInformation * cntk_var = reinterpret_cast < CNTK : : StreamInformation * > ( cntk_key ) ; <nl> - if ( * cntk_var = = * & it . first ) <nl> - { <nl> - PyDict_SetItem ( $ input , py_key , PyTuple_Pack ( 2 , returned_val1 , returned_val2 ) ) ; <nl> - / / FIXME is this necessary ? <nl> - Py_INCREF ( returned_val2 ) ; <nl> - } <nl> - } <nl> - } <nl> - } <nl> - <nl> - / / <nl> - / / Converting Python list { DictionaryValue } to std : : vector <nl> - / / <nl> - % typecheck ( 1000 ) std : : vector < CNTK : : DictionaryValue > & { <nl> - / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> - / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> - $ 1 = PyList_Check ( $ input ) ? 1 : 0 ; <nl> - } <nl> - <nl> - % typemap ( in ) std : : vector < CNTK : : DictionaryValue > & { <nl> - if ( PyList_Check ( $ input ) ) { <nl> - std : : vector < CNTK : : DictionaryValue > * vec = new std : : vector < CNTK : : DictionaryValue > ( ) ; <nl> - <nl> - PyObject * item ; <nl> - <nl> - PyObject * iterator = PyObject_GetIter ( $ input ) ; <nl> - if ( iterator = = NULL ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : DictionaryValue " ) ; <nl> - } <nl> - <nl> - while ( ( item = PyIter_Next ( iterator ) ) ) { <nl> - void * raw_var = 0 ; <nl> - int res1 = SWIG_ConvertPtr ( item , & raw_var , SWIGTYPE_p_CNTK__DictionaryValue , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res1 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert list element to CNTK : : DictionaryValue " ) ; <nl> - } <nl> - if ( ! raw_var ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting a list element to CNTK : : DictionaryValue " ) ; <nl> - } <nl> - <nl> - CNTK : : DictionaryValue * var = reinterpret_cast < CNTK : : DictionaryValue * > ( raw_var ) ; <nl> - <nl> - vec - > push_back ( * var ) ; <nl> - <nl> - Py_DECREF ( item ) ; <nl> - } <nl> - <nl> - Py_DECREF ( iterator ) ; <nl> - <nl> - if ( PyErr_Occurred ( ) ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : LearnerPtr " ) ; <nl> - } <nl> - <nl> - $ 1 = vec ; <nl> - <nl> - } else { <nl> - SWIG_exception ( SWIG_ValueError , " list expected " ) ; <nl> - } <nl> - } <nl> - <nl> - / / end of map conversion <nl> - <nl> - / / TODO : Parametrize the following four typemaps and unify set / list usage . <nl> - <nl> - / / <nl> - / / Converting Python set { Variable } to std : : unordered_set <nl> - / / <nl> - % typecheck ( 1000 ) std : : unordered_set < CNTK : : Variable > & { <nl> - / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> - / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> - $ 1 = PySet_Check ( $ input ) ? 1 : 0 ; <nl> - } <nl> - <nl> - % typemap ( in ) std : : unordered_set < CNTK : : Variable > & { <nl> - if ( PySet_Check ( $ input ) ) { <nl> - std : : unordered_set < CNTK : : Variable > * args_set = new std : : unordered_set < CNTK : : Variable > ( ) ; <nl> - <nl> - PyObject * item ; <nl> - <nl> - PyObject * iterator = PyObject_GetIter ( $ input ) ; <nl> - if ( iterator = = NULL ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : Variable " ) ; <nl> - } <nl> - <nl> - while ( ( item = PyIter_Next ( iterator ) ) ) { <nl> - void * raw_var = 0 ; <nl> - int res1 = SWIG_ConvertPtr ( item , & raw_var , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res1 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert set element to CNTK : : Variable " ) ; <nl> - } <nl> - if ( ! raw_var ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting a list element to CNTK : : Variable " ) ; <nl> - } <nl> - <nl> - CNTK : : Variable * var = reinterpret_cast < CNTK : : Variable * > ( raw_var ) ; <nl> - <nl> - args_set - > insert ( * var ) ; <nl> - <nl> - Py_DECREF ( item ) ; <nl> - } <nl> - <nl> - Py_DECREF ( iterator ) ; <nl> - <nl> - if ( PyErr_Occurred ( ) ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " cannot convert set element to CNTK : : Variable " ) ; <nl> - } <nl> - <nl> - $ 1 = args_set ; <nl> - <nl> - } else { <nl> - SWIG_exception ( SWIG_ValueError , " set expected " ) ; <nl> - } <nl> - } <nl> - <nl> - / / <nl> - / / Converting Python set { StreamInformation } to std : : unordered_set <nl> - / / <nl> - % typecheck ( 1000 ) std : : unordered_set < CNTK : : StreamInformation > & { <nl> - / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> - / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> - $ 1 = PySet_Check ( $ input ) ? 1 : 0 ; <nl> - } <nl> - <nl> - % typemap ( in ) std : : unordered_set < CNTK : : StreamInformation > & { <nl> - if ( PySet_Check ( $ input ) ) { <nl> - std : : unordered_set < CNTK : : StreamInformation > * args_set = new std : : unordered_set < CNTK : : StreamInformation > ( ) ; <nl> - <nl> - PyObject * item ; <nl> - <nl> - PyObject * iterator = PyObject_GetIter ( $ input ) ; <nl> - if ( iterator = = NULL ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : StreamInformation " ) ; <nl> - } <nl> - <nl> - while ( ( item = PyIter_Next ( iterator ) ) ) { <nl> - void * raw_var = 0 ; <nl> - int res1 = SWIG_ConvertPtr ( item , & raw_var , SWIGTYPE_p_CNTK__StreamInformation , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res1 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert set element to CNTK : : StreamInformation " ) ; <nl> - } <nl> - if ( ! raw_var ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting a set element to CNTK : : StreamInformation " ) ; <nl> - } <nl> - <nl> - CNTK : : StreamInformation * var = reinterpret_cast < CNTK : : StreamInformation * > ( raw_var ) ; <nl> - <nl> - args_set - > insert ( * var ) ; <nl> - <nl> - Py_DECREF ( item ) ; <nl> - } <nl> - <nl> - Py_DECREF ( iterator ) ; <nl> - <nl> - if ( PyErr_Occurred ( ) ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " cannot convert set element to CNTK : : StreamInformation " ) ; <nl> - } <nl> - <nl> - $ 1 = args_set ; <nl> - <nl> - } else { <nl> - SWIG_exception ( SWIG_ValueError , " set expected " ) ; <nl> - } <nl> - } <nl> - <nl> - / / <nl> - / / Converting Python list { Parameter } to std : : unordered_set <nl> - / / <nl> - % typecheck ( 1000 ) std : : unordered_set < CNTK : : Parameter > & { <nl> - / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> - / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> - $ 1 = PyList_Check ( $ input ) ? 1 : 0 ; <nl> - } <nl> - <nl> - % typemap ( in ) std : : unordered_set < CNTK : : Parameter > & { <nl> - if ( PyList_Check ( $ input ) ) { <nl> - std : : unordered_set < CNTK : : Parameter > * args_set = new std : : unordered_set < CNTK : : Parameter > ( ) ; <nl> - <nl> - PyObject * item ; <nl> - <nl> - PyObject * iterator = PyObject_GetIter ( $ input ) ; <nl> - if ( iterator = = NULL ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : Parameter " ) ; <nl> - } <nl> - <nl> - while ( ( item = PyIter_Next ( iterator ) ) ) { <nl> - void * raw_var = 0 ; <nl> - int res1 = SWIG_ConvertPtr ( item , & raw_var , SWIGTYPE_p_CNTK__Parameter , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res1 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert set element to CNTK : : Parameter " ) ; <nl> - } <nl> - if ( ! raw_var ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting a list element to CNTK : : Parameter " ) ; <nl> - } <nl> - <nl> - CNTK : : Parameter * var = reinterpret_cast < CNTK : : Parameter * > ( raw_var ) ; <nl> - <nl> - args_set - > insert ( * var ) ; <nl> - <nl> - Py_DECREF ( item ) ; <nl> - } <nl> - <nl> - Py_DECREF ( iterator ) ; <nl> - <nl> - if ( PyErr_Occurred ( ) ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " cannot convert set element to CNTK : : Parameter " ) ; <nl> - } <nl> - <nl> - $ 1 = args_set ; <nl> - <nl> - } else { <nl> - SWIG_exception ( SWIG_ValueError , " list expected " ) ; <nl> - } <nl> - } <nl> - <nl> - <nl> - / / <nl> - / / Converting Python list { LearnerPtr } to std : : unordered_set <nl> - / / <nl> - % typecheck ( 1000 ) std : : unordered_set < CNTK : : LearnerPtr > & { <nl> - / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> - / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> - $ 1 = PyList_Check ( $ input ) ? 1 : 0 ; <nl> - } <nl> - <nl> - % typemap ( in ) std : : unordered_set < CNTK : : LearnerPtr > & { <nl> - if ( PyList_Check ( $ input ) ) { <nl> - std : : unordered_set < CNTK : : LearnerPtr > * args_set = new std : : unordered_set < CNTK : : LearnerPtr > ( ) ; <nl> - <nl> - PyObject * item ; <nl> - <nl> - PyObject * iterator = PyObject_GetIter ( $ input ) ; <nl> - if ( iterator = = NULL ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : LearnerPtr " ) ; <nl> - } <nl> - <nl> - while ( ( item = PyIter_Next ( iterator ) ) ) { <nl> - void * raw_var = 0 ; <nl> - int res1 = SWIG_ConvertPtr ( item , & raw_var , SWIGTYPE_p_std__shared_ptrT_CNTK__Learner_t , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res1 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert list element to CNTK : : LearnerPtr " ) ; <nl> - } <nl> - if ( ! raw_var ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting a list element to CNTK : : LearnerPtr " ) ; <nl> - } <nl> - <nl> - CNTK : : LearnerPtr * var = reinterpret_cast < CNTK : : LearnerPtr * > ( raw_var ) ; <nl> - <nl> - args_set - > insert ( * var ) ; <nl> - <nl> - Py_DECREF ( item ) ; <nl> - } <nl> - <nl> - Py_DECREF ( iterator ) ; <nl> - <nl> - if ( PyErr_Occurred ( ) ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : LearnerPtr " ) ; <nl> - } <nl> - <nl> - $ 1 = args_set ; <nl> - <nl> - } else { <nl> - SWIG_exception ( SWIG_ValueError , " list expected " ) ; <nl> - } <nl> - } <nl> - <nl> - % typecheck ( 1000 ) const std : : unordered_map < CNTK : : Variable , CNTK : : Variable > & { <nl> - / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> - / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> - $ 1 = PyDict_Check ( $ input ) ? 1 : 0 ; <nl> - } <nl> - <nl> - <nl> - % typemap ( in ) std : : unordered_map < CNTK : : Variable , CNTK : : Variable > & { <nl> - if ( PyDict_Check ( $ input ) ) { <nl> - std : : unordered_map < CNTK : : Variable , CNTK : : Variable > * args_map = new std : : unordered_map < CNTK : : Variable , CNTK : : Variable > ( ) ; <nl> - <nl> - PyObject * key , * value ; <nl> - Py_ssize_t pos = 0 ; <nl> - <nl> - while ( PyDict_Next ( $ input , & pos , & key , & value ) ) { <nl> - void * raw_var = 0 ; <nl> - int res1 = SWIG_ConvertPtr ( key , & raw_var , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res1 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert key of dictionary to CNTK : : Variable " ) ; <nl> - } <nl> - if ( ! raw_var ) { <nl> - SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : Variable " ) ; <nl> - } <nl> - <nl> - CNTK : : Variable * var = reinterpret_cast < CNTK : : Variable * > ( raw_var ) ; <nl> - <nl> - void * raw_value = 0 ; <nl> - int res2 = SWIG_ConvertPtr ( value , & raw_value , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> - if ( ! SWIG_IsOK ( res2 ) ) { <nl> - SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " cannot convert value of dictionary to CNTK : : Variable " ) ; <nl> - } <nl> - <nl> - CNTK : : Variable * value ; <nl> - if ( raw_value ) { <nl> - value = reinterpret_cast < CNTK : : Variable * > ( raw_value ) ; <nl> - } else { <nl> - / / We got an empty Variable , which carries a nullptr . <nl> - value = new CNTK : : Variable ( ) ; <nl> - } <nl> - <nl> - args_map - > insert ( std : : make_pair ( * var , * value ) ) ; <nl> - } <nl> - <nl> - $ 1 = args_map ; <nl> - } else { <nl> - SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> - } <nl> - } <nl> - <nl> - <nl> - <nl> - / / <nl> - / / Converting std : : unordered_set to Python list . <nl> - / / TOOD : figure out how to return a Python set instead of a list . For this , <nl> - / / we need to define a hash function on SwigPyObject . <nl> - / / <nl> - <nl> - % define % unordered_set_conversion ( DATA_TYPE , _SWIG_TYPE ) <nl> - <nl> - % typemap ( out ) std : : unordered_set < CNTK : : DATA_TYPE > { <nl> - PyObject * container = PyList_New ( ( * & $ 1 ) - > size ( ) ) ; <nl> - if ( container = = NULL ) <nl> - { <nl> - SWIG_exception ( SWIG_RuntimeError , " error passing set to Python " ) ; <nl> - } <nl> - <nl> - / / * & $ 1 - > $ 1 is the returned result being converted ( unordered_set < . . . > * ) , <nl> - / / wrapped by SwigValueWrapper . So we need to unwrap it using ' & ' , <nl> - / / then access its value using ' * ' . <nl> - for ( auto var : * & $ 1 ) <nl> - { <nl> - PyObject * item = SWIG_NewPointerObj ( new CNTK : : DATA_TYPE ( var ) , _SWIG_TYPE , SWIG_POINTER_OWN ) ; <nl> - / / No error handling here , because the error will be passed directly to Python <nl> - PyList_Append ( container , item ) ; <nl> - } <nl> - <nl> - Py_INCREF ( container ) ; <nl> - <nl> - $ result = container ; <nl> - } <nl> - % enddef <nl> - <nl> - % unordered_set_conversion ( Variable , SWIGTYPE_p_CNTK__Variable ) <nl> - % unordered_set_conversion ( Constant , SWIGTYPE_p_CNTK__Constant ) <nl> - % unordered_set_conversion ( Parameter , SWIGTYPE_p_CNTK__Parameter ) <nl> - <nl> - % define % unordered_set_ref_conversion ( DATA_TYPE , _SWIG_TYPE ) <nl> - <nl> - % typemap ( out ) std : : unordered_set < CNTK : : DATA_TYPE > & { <nl> - PyObject * container = PyList_New ( ( * & $ 1 ) - > size ( ) ) ; <nl> - if ( container = = NULL ) <nl> - { <nl> - SWIG_exception ( SWIG_RuntimeError , " error passing set to Python " ) ; <nl> - } <nl> - <nl> - for ( auto var : * $ 1 ) <nl> - { <nl> - PyObject * item = SWIG_NewPointerObj ( new CNTK : : DATA_TYPE ( var ) , _SWIG_TYPE , SWIG_POINTER_OWN ) ; <nl> - / / No error handling here , because the error will be passed directly to Python <nl> - PyList_Append ( container , item ) ; <nl> - } <nl> - <nl> - Py_INCREF ( container ) ; <nl> - <nl> - $ result = container ; <nl> - } <nl> - % enddef <nl> - <nl> - % unordered_set_ref_conversion ( StreamInformation , SWIGTYPE_p_CNTK__StreamInformation ) <nl> - <nl> - / / Unordered map conversion <nl> - <nl> - % define % unordered_map_ref_conversion ( DATA_TYPE1 , _SWIG_TYPE1 , DATA_TYPE2 , _SWIG_TYPE2 ) <nl> - <nl> - % typemap ( out ) std : : unordered_map < CNTK : : DATA_TYPE1 , CNTK : : DATA_TYPE2 > & { <nl> - PyObject * container = PyDict_New ( ) ; <nl> - if ( container = = NULL ) <nl> - { <nl> - SWIG_exception ( SWIG_RuntimeError , " error passing dictionary to Python " ) ; <nl> - } <nl> - <nl> - / / * & $ 1 - > $ 1 is the returned result being converted ( unordered_map < . . . > * ) , <nl> - / / wrapped by SwigValueWrapper . So we need to unwrap it using ' & ' , <nl> - / / then access its value using ' * ' . <nl> - for ( auto it : * $ 1 ) <nl> - { <nl> - PyObject * returned_var = SWIG_NewPointerObj ( SWIG_as_voidptr ( new CNTK : : DATA_TYPE1 ( it . first ) ) , _SWIG_TYPE1 , SWIG_POINTER_OWN ) ; <nl> - PyObject * returned_val = SWIG_NewPointerObj ( SWIG_as_voidptr ( new CNTK : : DATA_TYPE2 ( it . second ) ) , _SWIG_TYPE2 , SWIG_POINTER_OWN ) ; <nl> - <nl> - PyDict_SetItem ( container , returned_var , returned_val ) ; <nl> - } <nl> - <nl> - Py_INCREF ( container ) ; <nl> - <nl> - $ result = container ; <nl> - } <nl> - % enddef <nl> - <nl> - % unordered_map_ref_conversion ( StreamInformation , SWIGTYPE_p_CNTK__StreamInformation , MinibatchData , SWIGTYPE_p_CNTK__MinibatchData ) ; <nl> - <nl> - <nl> - % shared_ptr ( CNTK : : Function ) <nl> - % shared_ptr ( CNTK : : NDArrayView ) <nl> - % shared_ptr ( CNTK : : Value ) <nl> - % shared_ptr ( CNTK : : NDMask ) <nl> - % shared_ptr ( CNTK : : BackPropState ) <nl> - % shared_ptr ( CNTK : : Learner ) <nl> - % shared_ptr ( CNTK : : MinibatchSource ) <nl> - <nl> - % include " CNTKLibraryInternals . h " <nl> - % include " CNTKLibrary . h " <nl> - <nl> - <nl> - / / <nl> - / / NDMask <nl> - / / <nl> - / / FIXME ignore is ignored <nl> - % ignore CNTK : : NDMask : : DataBuffer ( ) ; <nl> - % extend CNTK : : NDMask { <nl> - PyObject * to_numpy ( ) { <nl> - std : : vector < size_t > cntk_dims = ( * self ) . Shape ( ) . Dimensions ( ) ; <nl> - static_assert ( dims . size ( ) = = 2 , " mask requires exactly two dimensions " ) ; <nl> - std : : vector < size_t > dimensions = { cntk_dims [ 1 ] , cntk_dims [ 0 ] } ; <nl> - <nl> - size_t num_elements = dimensions [ 0 ] * dimensions [ 1 ] ; <nl> - <nl> - npy_intp * shape = reinterpret_cast < npy_intp * > ( & dimensions [ 0 ] ) ; <nl> - <nl> - NDMask * cpuMask ; <nl> - if ( ( * self ) . Device ( ) ! = DeviceDescriptor : : CPUDevice ( ) ) <nl> - { <nl> - cpuMask = new NDMask ( ( * self ) . Shape ( ) , DeviceDescriptor : : CPUDevice ( ) ) ; <nl> - cpuMask - > CopyFrom ( ( * self ) ) ; <nl> - } <nl> - else <nl> - { <nl> - cpuMask = & ( * self ) ; <nl> - } <nl> - <nl> - void * buffer = const_cast < void * > ( reinterpret_cast < const void * > ( cpuMask - > DataBuffer ( ) ) ) ; <nl> - <nl> - PyObject * ndarray = PyArray_SimpleNew ( dimensions . size ( ) , shape , NPY_BYTE ) ; <nl> - void * arr_data = PyArray_DATA ( ( PyArrayObject * ) ndarray ) ; <nl> - <nl> - memcpy ( arr_data , buffer , PyArray_ITEMSIZE ( ( PyArrayObject * ) ndarray ) * num_elements ) ; <nl> - <nl> - if ( ( * self ) . Device ( ) ! = DeviceDescriptor : : CPUDevice ( ) ) <nl> - { <nl> - delete cpuMask ; <nl> - } <nl> - <nl> - return ndarray ; <nl> - } <nl> - } <nl> - <nl> - / / end NDMask <nl> - <nl> - / / <nl> - / / NDArrayView <nl> - / / <nl> - % extend CNTK : : NDArrayView { <nl> - <nl> - NDArrayView ( PyObject * pyobj , const CNTK : : DeviceDescriptor & device , bool readOnly ) <nl> - { <nl> - if ( ! PyArray_Check ( ( PyArrayObject * ) pyobj ) ) <nl> - { <nl> - / / Note that in contrast to numpy . i ' s implementation we demand NumPy arrays <nl> - / / and do not accept arbitrary sequences , which would needed to be copied around . <nl> - throw std : : logic_error ( " NumPy array expected " ) ; <nl> - } <nl> - <nl> - PyArrayObject * array = ( PyArrayObject * ) pyobj ; <nl> - <nl> - int rank = PyArray_NDIM ( array ) ; <nl> - <nl> - npy_intp * np_shape = PyArray_SHAPE ( array ) ; <nl> - std : : vector < size_t > shape ; <nl> - <nl> - npy_intp num_elements = 1 ; <nl> - / / CNTK uses column major , thus we reverse the shape <nl> - for ( int i = rank - 1 ; i > = 0 ; i - - ) <nl> - { <nl> - shape . push_back ( np_shape [ i ] ) ; <nl> - num_elements * = np_shape [ i ] ; <nl> - } <nl> - <nl> - int typecode = PyArray_TYPE ( array ) ; <nl> - <nl> - void * buf ; <nl> - <nl> - NDArrayView * cpuView ; <nl> - if ( typecode = = NPY_FLOAT ) <nl> - { <nl> - size_t num_bytes = num_elements * sizeof ( float ) ; <nl> - buf = malloc ( num_bytes ) ; <nl> - memcpy ( buf , PyArray_DATA ( array ) , num_bytes ) ; <nl> - cpuView = new NDArrayView ( NDShape ( shape ) , ( float * ) buf , num_elements , DeviceDescriptor : : CPUDevice ( ) , readOnly ) ; <nl> - } <nl> - <nl> - else if ( typecode = = NPY_DOUBLE ) <nl> - { <nl> - size_t num_bytes = num_elements * sizeof ( double ) ; <nl> - buf = malloc ( num_bytes ) ; <nl> - memcpy ( buf , PyArray_DATA ( array ) , num_bytes ) ; <nl> - cpuView = new NDArrayView ( NDShape ( shape ) , ( double * ) buf , num_elements , DeviceDescriptor : : CPUDevice ( ) , readOnly ) ; <nl> - } <nl> - else <nl> - { <nl> - throw std : : logic_error ( " NumPy array of type float32 or float64 expected " ) ; <nl> - } <nl> - <nl> - NDArrayView * view ; <nl> - if ( device ! = DeviceDescriptor : : CPUDevice ( ) ) <nl> - { <nl> - DataType data_type = cpuView - > GetDataType ( ) ; <nl> - view = new NDArrayView ( data_type , cpuView - > Shape ( ) , device ) ; <nl> - view - > CopyFrom ( * cpuView ) ; <nl> - delete cpuView ; <nl> - } <nl> - else <nl> - { <nl> - view = cpuView ; <nl> - } <nl> - <nl> - return view ; <nl> - } <nl> - <nl> - PyObject * to_numpy ( ) { <nl> - if ( ( * self ) . GetStorageFormat ( ) ! = StorageFormat : : Dense ) <nl> - throw std : : invalid_argument ( " only dense supported at the moment " ) ; <nl> - <nl> - / / FIXME use not yet existing NDShape function that returns the dimensions at once <nl> - std : : vector < size_t > dimensions_cntk = ( * self ) . Shape ( ) . Dimensions ( ) ; <nl> - std : : vector < size_t > dimensions ; <nl> - <nl> - / / We have at least one element . In case the shape is empty ( e . g . <nl> - / / ' ( ) ' ) , we have a scalar , which we need to copy ( e . g . a constant ) . <nl> - size_t num_elements = 1 ; <nl> - <nl> - / / CNTK uses column major , thus we reverse the shape <nl> - for ( int i = dimensions_cntk . size ( ) - 1 ; i > = 0 ; i - - ) <nl> - { <nl> - dimensions . push_back ( dimensions_cntk [ i ] ) ; <nl> - num_elements * = dimensions_cntk [ i ] ; <nl> - } <nl> - <nl> - npy_intp * shape = reinterpret_cast < npy_intp * > ( & dimensions [ 0 ] ) ; <nl> - <nl> - CNTK : : DataType cntk_type = ( * self ) . GetDataType ( ) ; <nl> - <nl> - NDArrayView * cpuView ; <nl> - if ( ( * self ) . Device ( ) ! = DeviceDescriptor : : CPUDevice ( ) ) <nl> - { <nl> - cpuView = new NDArrayView ( cntk_type , ( * self ) . Shape ( ) , DeviceDescriptor : : CPUDevice ( ) ) ; <nl> - cpuView - > CopyFrom ( ( * self ) ) ; <nl> - } <nl> - else <nl> - { <nl> - cpuView = & ( * self ) ; <nl> - } <nl> - <nl> - NPY_TYPES numpy_type ; <nl> - void * buffer ; <nl> - <nl> - if ( cntk_type = = CNTK : : DataType : : Float ) <nl> - { <nl> - numpy_type = NPY_FLOAT ; <nl> - buffer = ( void * ) cpuView - > DataBuffer < float > ( ) ; <nl> - } <nl> - else if ( cntk_type = = CNTK : : DataType : : Double ) <nl> - { <nl> - numpy_type = NPY_DOUBLE ; <nl> - buffer = ( void * ) cpuView - > DataBuffer < double > ( ) ; <nl> - } <nl> - else <nl> - { <nl> - throw std : : invalid_argument ( " unknown CNTK data type " ) ; <nl> - } <nl> - <nl> - PyObject * ndarray = PyArray_SimpleNew ( dimensions . size ( ) , shape , numpy_type ) ; <nl> - void * arr_data = PyArray_DATA ( ( PyArrayObject * ) ndarray ) ; <nl> - <nl> - memcpy ( arr_data , buffer , PyArray_ITEMSIZE ( ( PyArrayObject * ) ndarray ) * num_elements ) ; <nl> - <nl> - if ( ( * self ) . Device ( ) ! = DeviceDescriptor : : CPUDevice ( ) ) <nl> - { <nl> - delete cpuView ; <nl> - } <nl> - <nl> - return ndarray ; <nl> - } <nl> - } <nl> - <nl> - % template ( NDArrayViewFloat ) CNTK : : NDArrayView : : NDArrayView < float > ; <nl> - % template ( NDArrayViewDouble ) CNTK : : NDArrayView : : NDArrayView < double > ; <nl> - % template ( ConstantFloat ) CNTK : : Constant : : Constant < float > ; <nl> - % template ( ConstantDouble ) CNTK : : Constant : : Constant < double > ; <nl> - % template ( ParameterFloat ) CNTK : : Parameter : : Parameter < float > ; <nl> - % template ( ParameterDouble ) CNTK : : Parameter : : Parameter < double > ; <nl> - % template ( random_uniform_float ) CNTK : : NDArrayView : : RandomUniform < float > ; <nl> - % template ( random_uniform_double ) CNTK : : NDArrayView : : RandomUniform < double > ; <nl> - % template ( DictionaryValueFromDict ) CNTK : : DictionaryValue : : DictionaryValue < CNTK : : Dictionary > ; <nl> - <nl> - % template ( training_param_schedule_double ) CNTK : : TrainingParameterSchedule < double > ; <nl> - <nl> - % pythoncode % { <nl> - learning_rates_per_sample = training_param_schedule_double <nl> - momentums_per_sample = training_param_schedule_double <nl> - % } <nl> - <nl> - / / end of NDArrayView <nl> - <nl> - / / <nl> - / / The following callback code is only for testing . Will have to be merged with <nl> - / / the operator classes . <nl> - / / <nl> - % inline % { <nl> - class Callback { <nl> - public : <nl> - virtual ~ Callback ( ) { std : : cout < < " Callback : : ~ Callback ( ) " < < std : : endl ; } <nl> - virtual void forward ( ) { std : : cout < < " Callback : : forward ( ) " < < std : : endl ; } <nl> - virtual void backward ( ) { std : : cout < < " Callback : : backward ( ) " < < std : : endl ; } <nl> - } ; <nl> - <nl> - class FunctionInCNTK { <nl> - private : <nl> - Callback * _callback ; <nl> - public : <nl> - FunctionInCNTK ( ) : _callback ( 0 ) { } <nl> - ~ FunctionInCNTK ( ) { delCallback ( ) ; } <nl> - void delCallback ( ) { delete _callback ; _callback = 0 ; } <nl> - void setCallback ( Callback * cb ) { delCallback ( ) ; _callback = cb ; } <nl> - void forward ( ) { <nl> - if ( _callback ) <nl> - _callback - > forward ( ) ; <nl> - else <nl> - throw " Forward callback not defined ! " ; <nl> - } <nl> - void backward ( ) { if ( _callback ) _callback - > backward ( ) ; } <nl> - } ; <nl> - % } <nl> - <nl> - / / <nl> - / / Release the GIL before calling into C + + <nl> - / / <nl> - % exception { <nl> - Py_BEGIN_ALLOW_THREADS ; <nl> - $ action <nl> - Py_END_ALLOW_THREADS ; <nl> - } <nl> - <nl> - / / <nl> - / / Setting up hash calculation so that __hash__ on Swig objects <nl> - / / are redirected to the std : : hash computation of the C + + API <nl> - / / <nl> - % define % py_hash_for ( DATA_TYPE , EQ ) <nl> - % extend CNTK : : DATA_TYPE { <nl> - const size_t __hash__ ( ) { <nl> - return std : : hash < CNTK : : DATA_TYPE > ( ) ( * $ self ) ; <nl> - } <nl> - } <nl> - % enddef <nl> - <nl> - % define % py_eq_for ( DATA_TYPE , EQ ) <nl> - % pythoncode % { <nl> - DATA_TYPE . __eq__ = lambda a , b : EQ ( a , b ) <nl> - % } <nl> - % enddef <nl> - <nl> - % py_eq_for ( Variable , Variable_eq ) <nl> - % py_eq_for ( Constant , Variable_eq ) <nl> - % py_eq_for ( Parameter , Variable_eq ) <nl> - % py_eq_for ( NDShape , NDShape_eq ) <nl> - <nl> - % py_hash_for ( Variable , Variable_eq ) <nl> - % py_hash_for ( Constant , Variable_eq ) <nl> - % py_hash_for ( Parameter , Variable_eq ) <nl> - % py_hash_for ( NDShape , NDShape_eq ) <nl> - <nl> - % py_eq_for ( DeviceDescriptor , DeviceDescriptor_eq ) <nl> - <nl> - % pythoncode % { <nl> - StreamInformation . __eq__ = lambda a , b : a . m_name = = b . m_name and a . m_id = = b . m_id and a . m_storage_format = = b . m_storage_format and a . m_element_type = = b . m_element_type and a . m_sample_layout . dimensions ( ) = = b . m_sample_layout . dimensions ( ) <nl> - % } <nl> - <nl> - % extend CNTK : : StreamInformation { <nl> - const size_t __hash__ ( ) { <nl> - return std : : hash < CNTK : : StreamInformation > ( ) ( * $ self ) ; <nl> - } <nl> - } <nl> - <nl> - % pythoncode % { <nl> - # in case of multiple outputs return the function , not the variable <nl> - def get_output_and_keep_reference ( self ) : <nl> - variable = self . output_internal ( ) <nl> - variable . owner = self <nl> - return variable <nl> - Function . output = lambda self : get_output_and_keep_reference ( self ) <nl> - Function . replace_placeholders = lambda self , ph_map : self . replace_placeholders_internal ( ph_map ) <nl> - <nl> - from . tensor import _add_tensor_ops , _add_eval <nl> - for klass in [ Function , Variable ] : <nl> - _add_tensor_ops ( klass ) <nl> - <nl> - _add_eval ( Function ) <nl> - <nl> - enable_reversing_tensor_shapes_in_error_messages ( ) <nl> - % } <nl> - <nl> + % module ( directors = " 1 " ) cntk_py <nl> + <nl> + % include " stl . i " <nl> + % include " std_wstring . i " <nl> + % include < std_vector . i > <nl> + % include < std_map . i > <nl> + % include < std_set . i > <nl> + % include < std_pair . i > <nl> + % include < windows . i > <nl> + % include < attribute . i > <nl> + % include < std_shared_ptr . i > <nl> + <nl> + % rename ( output_internal ) CNTK : : Function : : Output ; <nl> + % rename ( replace_placeholders_internal ) CNTK : : Function : : ReplacePlaceholders ; <nl> + % rename ( sgd_learner ) CNTK : : SGDLearner ; <nl> + % rename ( momentum_sgd_learner ) CNTK : : MomentumSGDLearner ; <nl> + % rename ( gpu_device ) CNTK : : DeviceDescriptor : : GPUDevice ; <nl> + % rename ( cpu_device ) CNTK : : DeviceDescriptor : : CPUDevice ; <nl> + <nl> + / / if we don ' t except RandomUniform the corresponding template functions will not be generated <nl> + % rename ( " % ( utitle ) s " , % $ isfunction , notregexmatch $ name = " RandomUniform " ) " " ; <nl> + % rename ( " % ( utitle ) s " , % $ isvariable ) " " ; <nl> + <nl> + % template ( ) std : : vector < size_t > ; <nl> + % template ( ) std : : vector < bool > ; <nl> + % template ( ) std : : vector < double > ; <nl> + % template ( ) std : : vector < std : : vector < size_t > > ; <nl> + % template ( ) std : : vector < std : : vector < float > > ; <nl> + % template ( ) std : : vector < std : : vector < double > > ; <nl> + <nl> + % template ( ) std : : vector < CNTK : : Variable > ; <nl> + % template ( ) std : : vector < CNTK : : Parameter > ; <nl> + % template ( ) std : : vector < CNTK : : Constant > ; <nl> + % template ( ) std : : vector < CNTK : : Axis > ; <nl> + % template ( ) std : : vector < CNTK : : DeviceDescriptor > ; <nl> + % template ( ) std : : vector < CNTK : : StreamConfiguration > ; <nl> + / / % template ( ) std : : vector < CNTK : : DictionaryValue > ; <nl> + % template ( ) std : : vector < std : : shared_ptr < CNTK : : Function > > ; <nl> + <nl> + / / They are defined twice under CNTK : : Internal and under CNTK namespace <nl> + % ignore CNTK : : Internal : : Combine ; <nl> + % ignore CNTK : : Internal : : Where ; <nl> + % ignore CNTK : : Internal : : Gather ; <nl> + % ignore CNTK : : Internal : : Scatter ; <nl> + % ignore CNTK : : Internal : : Slice ; <nl> + <nl> + / / These aren ' t exported from the CNTK C + + library <nl> + % ignore CNTK : : Internal : : IsReversingTensorShapesInErrorMessagesEnabled ; <nl> + % ignore CNTK : : Internal : : IsSettingDefaultDeviceAlwaysAllowed ; <nl> + % ignore CNTK : : Internal : : IsAutomaticUnpackingOfPackedValuesDisabled ; <nl> + <nl> + % { <nl> + # define SWIG_FILE_WITH_INIT <nl> + % } <nl> + % init % { <nl> + import_array ( ) ; <nl> + % } <nl> + <nl> + / / <nl> + / / Whenever a tuple of dynamic axes is returned we need to reverse it <nl> + / / <nl> + % feature ( " shadow " ) CNTK : : Variable : : DynamicAxes % { <nl> + def dynamic_axes ( self ) : <nl> + return tuple ( reversed ( $ action ( self ) ) ) <nl> + % } <nl> + <nl> + % define % eq_for ( DATA_TYPE , EQ ) <nl> + % rename ( EQ ) operator = = ( const DATA_TYPE & , const DATA_TYPE & ) ; <nl> + % enddef <nl> + <nl> + % eq_for ( Variable , Variable_eq ) <nl> + % eq_for ( Constant , Variable_eq ) <nl> + % eq_for ( Parameter , Variable_eq ) <nl> + % eq_for ( NDShape , NDShape_eq ) <nl> + % eq_for ( DeviceDescriptor , DeviceDescriptor_eq ) <nl> + <nl> + <nl> + % extend CNTK : : Dictionary { <nl> + CNTK : : DictionaryValue __getitem__ ( const wchar_t * key ) { <nl> + return ( * ( $ self ) ) [ key ] ; <nl> + } <nl> + <nl> + void __setitem__ ( const wchar_t * key , CNTK : : DictionaryValue value ) { <nl> + ( * ( $ self ) ) [ key ] = value ; <nl> + } <nl> + } <nl> + <nl> + % extend CNTK : : TrainingParameterSchedule < double > { <nl> + const double & __getitem__ ( size_t sampleCount ) { <nl> + return ( * ( $ self ) ) [ sampleCount ] ; <nl> + } <nl> + } <nl> + <nl> + <nl> + % { <nl> + # include " CNTKLibrary . h " <nl> + # define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION <nl> + # include " numpy / ndarraytypes . h " <nl> + # include " numpy / arrayobject . h " <nl> + using namespace CNTK ; <nl> + % } <nl> + <nl> + <nl> + / / Callback support <nl> + % feature ( " director " ) Callback ; <nl> + <nl> + / / <nl> + / / Exception handling <nl> + / / <nl> + % exception { <nl> + try { $ action } <nl> + catch ( Swig : : DirectorException & e ) { SWIG_exception ( SWIG_RuntimeError , e . what ( ) ) ; } <nl> + catch ( std : : runtime_error & e ) { SWIG_exception ( SWIG_RuntimeError , e . what ( ) ) ; } <nl> + catch ( std : : invalid_argument & e ) { SWIG_exception ( SWIG_RuntimeError , e . what ( ) ) ; } <nl> + catch ( std : : logic_error & e ) { SWIG_exception ( SWIG_RuntimeError , e . what ( ) ) ; } <nl> + catch ( . . . ) { SWIG_exception ( SWIG_RuntimeError , " Runtime exception " ) ; } <nl> + } <nl> + <nl> + <nl> + / / <nl> + / / NDShape <nl> + / / <nl> + % typecheck ( 1000 ) CNTK : : NDShape const & , CNTK : : NDShape { <nl> + / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> + / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> + $ 1 = PyTuple_Check ( $ input ) ? 1 : 0 ; <nl> + } <nl> + <nl> + % typemap ( in ) CNTK : : NDShape const & { <nl> + if ( PyTuple_Check ( $ input ) ) { <nl> + std : : vector < size_t > dimensions ; <nl> + size_t rank = PyTuple_Size ( $ input ) ; <nl> + for ( size_t i = 0 ; i < rank ; i + + ) <nl> + dimensions . push_back ( PyLong_AsLong ( PyTuple_GET_ITEM ( $ input , i ) ) ) ; <nl> + <nl> + / / TODO cleans this up ? <nl> + $ 1 = new CNTK : : NDShape ( dimensions ) ; <nl> + } else { <nl> + SWIG_exception ( SWIG_TypeError , " tuple expected " ) ; <nl> + } <nl> + } <nl> + <nl> + % ignore CNTK : : NDShape : : operator [ ] ; <nl> + % ignore CNTK : : NDShape : : AppendShape ; <nl> + % ignore CNTK : : NDShape : : Dimensions ; <nl> + <nl> + % typemap ( out ) CNTK : : NDShape { <nl> + size_t rank = $ 1 . Rank ( ) ; <nl> + $ result = PyTuple_New ( rank ) ; <nl> + for ( size_t i = 0 ; i < rank ; i + + ) <nl> + { <nl> + size_t dim = ( & $ 1 ) - > operator [ ] ( i ) ; <nl> + PyTuple_SET_ITEM ( $ result , i , PyInt_FromLong ( dim ) ) ; <nl> + } <nl> + } <nl> + <nl> + % extend CNTK : : NDShape { <nl> + const size_t & __getitem__ ( int i ) { <nl> + / / CNTK uses column major , thus we reverse the shape <nl> + size_t rank = ( * self ) . Rank ( ) ; <nl> + if ( i < 0 ) <nl> + { <nl> + return ( * self ) [ - i - 1 ] ; <nl> + } <nl> + return ( * self ) [ rank - 1 - i ] ; <nl> + } <nl> + <nl> + PyObject * dimensions ( ) { <nl> + std : : vector < size_t > dims = ( * self ) . Dimensions ( ) ; <nl> + size_t rank = ( * self ) . Rank ( ) ; <nl> + PyObject * result = PyTuple_New ( rank ) ; <nl> + / / CNTK uses column major , thus we reverse the shape <nl> + for ( size_t i = 0 ; i < rank ; i + + ) <nl> + { <nl> + size_t dim = dims [ i ] ; <nl> + PyTuple_SET_ITEM ( result , rank - 1 - i , PyInt_FromLong ( dim ) ) ; <nl> + } <nl> + return result ; <nl> + } <nl> + } <nl> + <nl> + % ignore CNTK : : Dictionary : : AppendShape ; <nl> + % rename ( " $ ignore " , fullname = 1 ) CNTK : : Variable ( const NDShape & , CNTK : : DataType , const wchar_t * ) ; <nl> + <nl> + <nl> + / / ( size_t ) - 1 will result into an OverflowException <nl> + % ignore CNTK : : NDShape : : InferredDimension ; <nl> + / / % ignore CNTK : : NDShape : : Dimensions ; <nl> + / / FIXME : The following is not picked up yet , which is why we have to tag it to <nl> + / / the module <nl> + / / % constant long CNTK : : NDShape : : InferredDimension = - 1 ; <nl> + % constant long InferredDimension = - 1 ; <nl> + <nl> + / / end of NDShape <nl> + <nl> + / / <nl> + / / Converting Python dictionary { Variable : ValuePtr } to std : : unordered_map <nl> + / / <nl> + % typecheck ( 1000 ) const std : : unordered_map < CNTK : : Variable , const CNTK : : ValuePtr > & , std : : unordered_map < CNTK : : Variable , CNTK : : ValuePtr > & { <nl> + / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> + / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> + $ 1 = PyDict_Check ( $ input ) ? 1 : 0 ; <nl> + } <nl> + <nl> + % typemap ( in ) const std : : unordered_map < CNTK : : Variable , const CNTK : : ValuePtr > & { <nl> + if ( PyDict_Check ( $ input ) ) { <nl> + std : : unordered_map < CNTK : : Variable , const CNTK : : ValuePtr > * args_map = new std : : unordered_map < CNTK : : Variable , const CNTK : : ValuePtr > ( ) ; <nl> + <nl> + PyObject * key , * value ; <nl> + Py_ssize_t pos = 0 ; <nl> + <nl> + while ( PyDict_Next ( $ input , & pos , & key , & value ) ) { <nl> + void * raw_var = 0 ; <nl> + int res1 = SWIG_ConvertPtr ( key , & raw_var , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res1 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert key of dictionary to CNTK : : Variable " ) ; <nl> + } <nl> + if ( ! raw_var ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : Variable " ) ; <nl> + } <nl> + <nl> + CNTK : : Variable * var = reinterpret_cast < CNTK : : Variable * > ( raw_var ) ; <nl> + <nl> + void * raw_value = 0 ; <nl> + int res2 = SWIG_ConvertPtr ( value , & raw_value , SWIGTYPE_p_std__shared_ptrT_CNTK__Value_t , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res2 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " cannot convert value of dictionary to CNTK : : ValuePtr " ) ; <nl> + } <nl> + <nl> + CNTK : : ValuePtr * value ; <nl> + if ( raw_value ) { <nl> + value = reinterpret_cast < CNTK : : ValuePtr * > ( raw_value ) ; <nl> + } else { <nl> + / / We got an empty ValuePtr , which carries a nullptr . <nl> + value = new CNTK : : ValuePtr ( ) ; <nl> + } <nl> + <nl> + args_map - > insert ( std : : make_pair ( * var , * value ) ) ; <nl> + } <nl> + <nl> + $ 1 = args_map ; <nl> + } else { <nl> + SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> + } <nl> + } <nl> + <nl> + / / supporting the non - const version <nl> + % typemap ( in ) std : : unordered_map < CNTK : : Variable , CNTK : : ValuePtr > & { <nl> + if ( PyDict_Check ( $ input ) ) { <nl> + std : : unordered_map < CNTK : : Variable , CNTK : : ValuePtr > * args_map = new std : : unordered_map < CNTK : : Variable , CNTK : : ValuePtr > ( ) ; <nl> + <nl> + PyObject * key , * value ; <nl> + Py_ssize_t pos = 0 ; <nl> + <nl> + while ( PyDict_Next ( $ input , & pos , & key , & value ) ) { <nl> + void * raw_var = 0 ; <nl> + int res1 = SWIG_ConvertPtr ( key , & raw_var , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res1 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert key of dictionary to CNTK : : Variable " ) ; <nl> + } <nl> + if ( ! raw_var ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : Variable " ) ; <nl> + } <nl> + <nl> + CNTK : : Variable * var = reinterpret_cast < CNTK : : Variable * > ( raw_var ) ; <nl> + <nl> + void * raw_value = 0 ; <nl> + int res2 = SWIG_ConvertPtr ( value , & raw_value , SWIGTYPE_p_std__shared_ptrT_CNTK__Value_t , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res2 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " cannot convert value of dictionary to CNTK : : ValuePtr " ) ; <nl> + } <nl> + <nl> + CNTK : : ValuePtr * value ; <nl> + if ( raw_value ) { <nl> + value = reinterpret_cast < CNTK : : ValuePtr * > ( raw_value ) ; <nl> + } else { <nl> + / / We got an empty ValuePtr , which carries a nullptr . <nl> + value = new CNTK : : ValuePtr ( ) ; <nl> + } <nl> + <nl> + args_map - > insert ( std : : make_pair ( * var , * value ) ) ; <nl> + } <nl> + <nl> + $ 1 = args_map ; <nl> + } else { <nl> + SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> + } <nl> + } <nl> + <nl> + / / For the output dict ( the non - const unordered_map ) we need to get the <nl> + / / modified values and put them back into the dictionary . This is used , when <nl> + / / e . g . the user puts a variable into the dictionary , hoping that it will <nl> + / / afterwards point to the proper value . <nl> + % typemap ( argout ) std : : unordered_map < CNTK : : Variable , CNTK : : ValuePtr > & { <nl> + if ( ! PyDict_Check ( $ input ) ) { <nl> + SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> + } <nl> + <nl> + for ( auto it : * $ 1 ) <nl> + { <nl> + / / Push the ValuePtr onto the heap so that it survives <nl> + std : : shared_ptr < CNTK : : Value > * smartresult = it . second ? new std : : shared_ptr < CNTK : : Value > ( it . second ) : 0 ; <nl> + PyObject * returned_val = SWIG_NewPointerObj ( SWIG_as_voidptr ( smartresult ) , SWIGTYPE_p_std__shared_ptrT_CNTK__Value_t , SWIG_POINTER_OWN ) ; <nl> + <nl> + / / Find the corresponding Variable instance in the Python dictionary <nl> + / / and set its value to the new ValuePtr <nl> + <nl> + / * FIXME We would love to do the following , but the hashing does not <nl> + * correctly work here , which is why we never find the keys . Instead , <nl> + * we will for now loop over the dictionary and use C + + comparison . <nl> + * Although not beautiful , there should not be a lot of overhead since <nl> + * the dictionary usually contains only a handful of variables as keys . <nl> + if ( PyDict_Contains ( $ input , returned_var ) ) <nl> + { <nl> + SWIG_exception_fail ( SWIG_ValueError , " returned output map contains unknown key " ) ; <nl> + } <nl> + * / <nl> + <nl> + PyObject * py_key , * py_value ; <nl> + Py_ssize_t pos = 0 ; <nl> + <nl> + while ( PyDict_Next ( $ input , & pos , & py_key , & py_value ) ) { <nl> + void * cntk_key = 0 ; <nl> + int res = SWIG_ConvertPtr ( py_key , & cntk_key , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res ) , " cannot convert key of dictionary to CNTK : : Variable " ) ; <nl> + } <nl> + if ( ! cntk_key ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : Variable " ) ; <nl> + } <nl> + <nl> + CNTK : : Variable * cntk_var = reinterpret_cast < CNTK : : Variable * > ( cntk_key ) ; <nl> + if ( * cntk_var = = * & it . first ) <nl> + { <nl> + PyDict_SetItem ( $ input , py_key , returned_val ) ; <nl> + / / FIXME is this necessary ? <nl> + Py_INCREF ( returned_val ) ; <nl> + } <nl> + } <nl> + } <nl> + } <nl> + <nl> + <nl> + / / <nl> + / / Converting Python dictionary { StreamInformation : ( mbsize , Value ) } to std : : unordered_map < CNTK : : StreamInformation , std : : pair < size_t , size_t > > & <nl> + / / <nl> + % typecheck ( 1000 ) std : : unordered_map < CNTK : : StreamInformation , std : : pair < size_t , size_t > > & { <nl> + / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> + / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> + $ 1 = PyDict_Check ( $ input ) ? 1 : 0 ; <nl> + } <nl> + <nl> + % typemap ( in ) std : : unordered_map < CNTK : : StreamInformation , std : : pair < size_t , size_t > > & { <nl> + if ( PyDict_Check ( $ input ) ) { <nl> + std : : unordered_map < CNTK : : StreamInformation , std : : pair < size_t , size_t > > * args_map = new std : : unordered_map < CNTK : : StreamInformation , std : : pair < size_t , size_t > > ( ) ; <nl> + <nl> + PyObject * key , * value ; <nl> + Py_ssize_t pos = 0 ; <nl> + <nl> + while ( PyDict_Next ( $ input , & pos , & key , & value ) ) { <nl> + void * raw_var = 0 ; <nl> + int res1 = SWIG_ConvertPtr ( key , & raw_var , SWIGTYPE_p_CNTK__StreamInformation , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res1 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert key of dictionary to CNTK : : StreamInformation " ) ; <nl> + } <nl> + if ( ! raw_var ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : StreamInformation " ) ; <nl> + } <nl> + <nl> + CNTK : : StreamInformation * var = reinterpret_cast < CNTK : : StreamInformation * > ( raw_var ) ; <nl> + <nl> + void * raw_value = 0 ; <nl> + <nl> + if ( PyTuple_Check ( value ) ) { <nl> + PyObject * first = PyTuple_GET_ITEM ( value , 0 ) ; <nl> + size_t first_val = PyLong_AsSize_t ( first ) ; <nl> + PyObject * second = PyTuple_GET_ITEM ( value , 1 ) ; <nl> + size_t second_val = PyLong_AsSize_t ( second ) ; <nl> + args_map - > insert ( std : : make_pair ( * var , std : : make_pair ( first_val , second_val ) ) ) ; <nl> + } else { <nl> + SWIG_exception ( SWIG_TypeError , " tuple expected " ) ; <nl> + } <nl> + <nl> + } <nl> + <nl> + $ 1 = args_map ; <nl> + } else { <nl> + SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> + } <nl> + } <nl> + <nl> + % typecheck ( 1000 ) std : : unordered_map < CNTK : : StreamInformation , std : : pair < CNTK : : NDArrayViewPtr , CNTK : : NDArrayViewPtr > > & { <nl> + / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> + / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> + $ 1 = PyDict_Check ( $ input ) ? 1 : 0 ; <nl> + } <nl> + <nl> + % typemap ( in ) std : : unordered_map < CNTK : : StreamInformation , std : : pair < CNTK : : NDArrayViewPtr , CNTK : : NDArrayViewPtr > > & { <nl> + if ( PyDict_Check ( $ input ) ) { <nl> + std : : unordered_map < CNTK : : StreamInformation , std : : pair < CNTK : : NDArrayViewPtr , CNTK : : NDArrayViewPtr > > * args_map = new std : : unordered_map < CNTK : : StreamInformation , std : : pair < CNTK : : NDArrayViewPtr , CNTK : : NDArrayViewPtr > > ( ) ; <nl> + <nl> + PyObject * key , * value ; <nl> + Py_ssize_t pos = 0 ; <nl> + <nl> + while ( PyDict_Next ( $ input , & pos , & key , & value ) ) { <nl> + void * raw_var = 0 ; <nl> + int res = SWIG_ConvertPtr ( key , & raw_var , SWIGTYPE_p_CNTK__StreamInformation , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res ) , " cannot convert key of dictionary to CNTK : : StreamInformation " ) ; <nl> + } <nl> + if ( ! raw_var ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : StreamInformation " ) ; <nl> + } <nl> + <nl> + CNTK : : StreamInformation * var = reinterpret_cast < CNTK : : StreamInformation * > ( raw_var ) ; <nl> + <nl> + if ( PyTuple_Check ( value ) ) { <nl> + PyObject * first = PyTuple_GET_ITEM ( value , 0 ) ; <nl> + void * raw_value1 = 0 ; <nl> + int res1 = SWIG_ConvertPtr ( first , & raw_value1 , SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res1 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert value of dictionary to CNTK : : NDArrayViewPtr " ) ; <nl> + } <nl> + <nl> + CNTK : : NDArrayViewPtr * value1 ; <nl> + if ( raw_value1 ) { <nl> + value1 = reinterpret_cast < CNTK : : NDArrayViewPtr * > ( raw_value1 ) ; <nl> + } else { <nl> + / / We got an empty NDArrayViewPtr , which carries a nullptr . <nl> + value1 = new CNTK : : NDArrayViewPtr ( ) ; <nl> + } <nl> + <nl> + PyObject * second = PyTuple_GET_ITEM ( value , 1 ) ; <nl> + void * raw_value2 = 0 ; <nl> + int res2 = SWIG_ConvertPtr ( second , & raw_value2 , SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res2 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " cannot convert value of dictionary to CNTK : : NDArrayViewPtr " ) ; <nl> + } <nl> + <nl> + CNTK : : NDArrayViewPtr * value2 ; <nl> + if ( raw_value2 ) { <nl> + value2 = reinterpret_cast < CNTK : : NDArrayViewPtr * > ( raw_value2 ) ; <nl> + } else { <nl> + / / We got an empty NDArrayViewPtr , which carries a nullptr . <nl> + value2 = new CNTK : : NDArrayViewPtr ( ) ; <nl> + } <nl> + <nl> + args_map - > insert ( std : : make_pair ( * var , std : : make_pair ( * value1 , * value2 ) ) ) ; <nl> + } else { <nl> + SWIG_exception ( SWIG_TypeError , " tuple expected " ) ; <nl> + } <nl> + } <nl> + <nl> + $ 1 = args_map ; <nl> + } else { <nl> + SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> + } <nl> + } <nl> + <nl> + % typemap ( argout ) std : : unordered_map < CNTK : : StreamInformation , std : : pair < CNTK : : NDArrayViewPtr , CNTK : : NDArrayViewPtr > > & { <nl> + if ( ! PyDict_Check ( $ input ) ) { <nl> + SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> + } <nl> + <nl> + for ( auto it : * $ 1 ) <nl> + { <nl> + / / Push onto the heap so that it survives <nl> + <nl> + std : : shared_ptr < CNTK : : NDArrayView > * smartresult1 = it . second . first ? new std : : shared_ptr < CNTK : : NDArrayView > ( it . second . first ) : 0 ; <nl> + PyObject * returned_val1 = SWIG_NewPointerObj ( SWIG_as_voidptr ( smartresult1 ) , SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t , SWIG_POINTER_OWN ) ; <nl> + <nl> + std : : shared_ptr < CNTK : : NDArrayView > * smartresult2 = it . second . second ? new std : : shared_ptr < CNTK : : NDArrayView > ( it . second . second ) : 0 ; <nl> + PyObject * returned_val2 = SWIG_NewPointerObj ( SWIG_as_voidptr ( smartresult2 ) , SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t , SWIG_POINTER_OWN ) ; <nl> + <nl> + / / Find the corresponding Variable instance in the Python dictionary <nl> + / / and set its value to the new MinibatchData <nl> + <nl> + / * FIXME We would love to do the following , but the hashing does not <nl> + * correctly work here , which is why we never find the keys . Instead , <nl> + * we will for now loop over the dictionary and use C + + comparison . <nl> + * Although not beautiful , there should not be a lot of overhead since <nl> + * the dictionary usually contains only a handful of variables as keys . <nl> + if ( PyDict_Contains ( $ input , returned_var ) ) <nl> + { <nl> + SWIG_exception_fail ( SWIG_ValueError , " returned output map contains unknown key " ) ; <nl> + } <nl> + * / <nl> + <nl> + PyObject * py_key , * py_value ; <nl> + Py_ssize_t pos = 0 ; <nl> + <nl> + while ( PyDict_Next ( $ input , & pos , & py_key , & py_value ) ) { <nl> + void * cntk_key = 0 ; <nl> + int res = SWIG_ConvertPtr ( py_key , & cntk_key , SWIGTYPE_p_CNTK__StreamInformation , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res ) , " cannot convert key of dictionary to CNTK : : StreamInformation " ) ; <nl> + } <nl> + if ( ! cntk_key ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : StreamInformation " ) ; <nl> + } <nl> + <nl> + CNTK : : StreamInformation * cntk_var = reinterpret_cast < CNTK : : StreamInformation * > ( cntk_key ) ; <nl> + if ( * cntk_var = = * & it . first ) <nl> + { <nl> + PyDict_SetItem ( $ input , py_key , PyTuple_Pack ( 2 , returned_val1 , returned_val2 ) ) ; <nl> + / / FIXME is this necessary ? <nl> + Py_INCREF ( returned_val2 ) ; <nl> + } <nl> + } <nl> + } <nl> + } <nl> + <nl> + / / <nl> + / / Converting Python list { DictionaryValue } to std : : vector <nl> + / / <nl> + % typecheck ( 1000 ) std : : vector < CNTK : : DictionaryValue > & { <nl> + / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> + / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> + $ 1 = PyList_Check ( $ input ) ? 1 : 0 ; <nl> + } <nl> + <nl> + % typemap ( in ) std : : vector < CNTK : : DictionaryValue > & { <nl> + if ( PyList_Check ( $ input ) ) { <nl> + std : : vector < CNTK : : DictionaryValue > * vec = new std : : vector < CNTK : : DictionaryValue > ( ) ; <nl> + <nl> + PyObject * item ; <nl> + <nl> + PyObject * iterator = PyObject_GetIter ( $ input ) ; <nl> + if ( iterator = = NULL ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : DictionaryValue " ) ; <nl> + } <nl> + <nl> + while ( ( item = PyIter_Next ( iterator ) ) ) { <nl> + void * raw_var = 0 ; <nl> + int res1 = SWIG_ConvertPtr ( item , & raw_var , SWIGTYPE_p_CNTK__DictionaryValue , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res1 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert list element to CNTK : : DictionaryValue " ) ; <nl> + } <nl> + if ( ! raw_var ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting a list element to CNTK : : DictionaryValue " ) ; <nl> + } <nl> + <nl> + CNTK : : DictionaryValue * var = reinterpret_cast < CNTK : : DictionaryValue * > ( raw_var ) ; <nl> + <nl> + vec - > push_back ( * var ) ; <nl> + <nl> + Py_DECREF ( item ) ; <nl> + } <nl> + <nl> + Py_DECREF ( iterator ) ; <nl> + <nl> + if ( PyErr_Occurred ( ) ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : LearnerPtr " ) ; <nl> + } <nl> + <nl> + $ 1 = vec ; <nl> + <nl> + } else { <nl> + SWIG_exception ( SWIG_ValueError , " list expected " ) ; <nl> + } <nl> + } <nl> + <nl> + / / end of map conversion <nl> + <nl> + / / TODO : Parametrize the following four typemaps and unify set / list usage . <nl> + <nl> + / / <nl> + / / Converting Python set { Variable } to std : : unordered_set <nl> + / / <nl> + % typecheck ( 1000 ) std : : unordered_set < CNTK : : Variable > & { <nl> + / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> + / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> + $ 1 = PySet_Check ( $ input ) ? 1 : 0 ; <nl> + } <nl> + <nl> + % typemap ( in ) std : : unordered_set < CNTK : : Variable > & { <nl> + if ( PySet_Check ( $ input ) ) { <nl> + std : : unordered_set < CNTK : : Variable > * args_set = new std : : unordered_set < CNTK : : Variable > ( ) ; <nl> + <nl> + PyObject * item ; <nl> + <nl> + PyObject * iterator = PyObject_GetIter ( $ input ) ; <nl> + if ( iterator = = NULL ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : Variable " ) ; <nl> + } <nl> + <nl> + while ( ( item = PyIter_Next ( iterator ) ) ) { <nl> + void * raw_var = 0 ; <nl> + int res1 = SWIG_ConvertPtr ( item , & raw_var , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res1 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert set element to CNTK : : Variable " ) ; <nl> + } <nl> + if ( ! raw_var ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting a list element to CNTK : : Variable " ) ; <nl> + } <nl> + <nl> + CNTK : : Variable * var = reinterpret_cast < CNTK : : Variable * > ( raw_var ) ; <nl> + <nl> + args_set - > insert ( * var ) ; <nl> + <nl> + Py_DECREF ( item ) ; <nl> + } <nl> + <nl> + Py_DECREF ( iterator ) ; <nl> + <nl> + if ( PyErr_Occurred ( ) ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " cannot convert set element to CNTK : : Variable " ) ; <nl> + } <nl> + <nl> + $ 1 = args_set ; <nl> + <nl> + } else { <nl> + SWIG_exception ( SWIG_ValueError , " set expected " ) ; <nl> + } <nl> + } <nl> + <nl> + / / <nl> + / / Converting Python set { StreamInformation } to std : : unordered_set <nl> + / / <nl> + % typecheck ( 1000 ) std : : unordered_set < CNTK : : StreamInformation > & { <nl> + / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> + / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> + $ 1 = PySet_Check ( $ input ) ? 1 : 0 ; <nl> + } <nl> + <nl> + % typemap ( in ) std : : unordered_set < CNTK : : StreamInformation > & { <nl> + if ( PySet_Check ( $ input ) ) { <nl> + std : : unordered_set < CNTK : : StreamInformation > * args_set = new std : : unordered_set < CNTK : : StreamInformation > ( ) ; <nl> + <nl> + PyObject * item ; <nl> + <nl> + PyObject * iterator = PyObject_GetIter ( $ input ) ; <nl> + if ( iterator = = NULL ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : StreamInformation " ) ; <nl> + } <nl> + <nl> + while ( ( item = PyIter_Next ( iterator ) ) ) { <nl> + void * raw_var = 0 ; <nl> + int res1 = SWIG_ConvertPtr ( item , & raw_var , SWIGTYPE_p_CNTK__StreamInformation , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res1 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert set element to CNTK : : StreamInformation " ) ; <nl> + } <nl> + if ( ! raw_var ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting a set element to CNTK : : StreamInformation " ) ; <nl> + } <nl> + <nl> + CNTK : : StreamInformation * var = reinterpret_cast < CNTK : : StreamInformation * > ( raw_var ) ; <nl> + <nl> + args_set - > insert ( * var ) ; <nl> + <nl> + Py_DECREF ( item ) ; <nl> + } <nl> + <nl> + Py_DECREF ( iterator ) ; <nl> + <nl> + if ( PyErr_Occurred ( ) ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " cannot convert set element to CNTK : : StreamInformation " ) ; <nl> + } <nl> + <nl> + $ 1 = args_set ; <nl> + <nl> + } else { <nl> + SWIG_exception ( SWIG_ValueError , " set expected " ) ; <nl> + } <nl> + } <nl> + <nl> + / / <nl> + / / Converting Python list { Parameter } to std : : unordered_set <nl> + / / <nl> + % typecheck ( 1000 ) std : : unordered_set < CNTK : : Parameter > & { <nl> + / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> + / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> + $ 1 = PyList_Check ( $ input ) ? 1 : 0 ; <nl> + } <nl> + <nl> + % typemap ( in ) std : : unordered_set < CNTK : : Parameter > & { <nl> + if ( PyList_Check ( $ input ) ) { <nl> + std : : unordered_set < CNTK : : Parameter > * args_set = new std : : unordered_set < CNTK : : Parameter > ( ) ; <nl> + <nl> + PyObject * item ; <nl> + <nl> + PyObject * iterator = PyObject_GetIter ( $ input ) ; <nl> + if ( iterator = = NULL ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : Parameter " ) ; <nl> + } <nl> + <nl> + while ( ( item = PyIter_Next ( iterator ) ) ) { <nl> + void * raw_var = 0 ; <nl> + int res1 = SWIG_ConvertPtr ( item , & raw_var , SWIGTYPE_p_CNTK__Parameter , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res1 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert set element to CNTK : : Parameter " ) ; <nl> + } <nl> + if ( ! raw_var ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting a list element to CNTK : : Parameter " ) ; <nl> + } <nl> + <nl> + CNTK : : Parameter * var = reinterpret_cast < CNTK : : Parameter * > ( raw_var ) ; <nl> + <nl> + args_set - > insert ( * var ) ; <nl> + <nl> + Py_DECREF ( item ) ; <nl> + } <nl> + <nl> + Py_DECREF ( iterator ) ; <nl> + <nl> + if ( PyErr_Occurred ( ) ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " cannot convert set element to CNTK : : Parameter " ) ; <nl> + } <nl> + <nl> + $ 1 = args_set ; <nl> + <nl> + } else { <nl> + SWIG_exception ( SWIG_ValueError , " list expected " ) ; <nl> + } <nl> + } <nl> + <nl> + <nl> + / / <nl> + / / Converting Python list { LearnerPtr } to std : : unordered_set <nl> + / / <nl> + % typecheck ( 1000 ) std : : unordered_set < CNTK : : LearnerPtr > & { <nl> + / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> + / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> + $ 1 = PyList_Check ( $ input ) ? 1 : 0 ; <nl> + } <nl> + <nl> + % typemap ( in ) std : : unordered_set < CNTK : : LearnerPtr > & { <nl> + if ( PyList_Check ( $ input ) ) { <nl> + std : : unordered_set < CNTK : : LearnerPtr > * args_set = new std : : unordered_set < CNTK : : LearnerPtr > ( ) ; <nl> + <nl> + PyObject * item ; <nl> + <nl> + PyObject * iterator = PyObject_GetIter ( $ input ) ; <nl> + if ( iterator = = NULL ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : LearnerPtr " ) ; <nl> + } <nl> + <nl> + while ( ( item = PyIter_Next ( iterator ) ) ) { <nl> + void * raw_var = 0 ; <nl> + int res1 = SWIG_ConvertPtr ( item , & raw_var , SWIGTYPE_p_std__shared_ptrT_CNTK__Learner_t , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res1 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert list element to CNTK : : LearnerPtr " ) ; <nl> + } <nl> + if ( ! raw_var ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting a list element to CNTK : : LearnerPtr " ) ; <nl> + } <nl> + <nl> + CNTK : : LearnerPtr * var = reinterpret_cast < CNTK : : LearnerPtr * > ( raw_var ) ; <nl> + <nl> + args_set - > insert ( * var ) ; <nl> + <nl> + Py_DECREF ( item ) ; <nl> + } <nl> + <nl> + Py_DECREF ( iterator ) ; <nl> + <nl> + if ( PyErr_Occurred ( ) ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " cannot convert list element to CNTK : : LearnerPtr " ) ; <nl> + } <nl> + <nl> + $ 1 = args_set ; <nl> + <nl> + } else { <nl> + SWIG_exception ( SWIG_ValueError , " list expected " ) ; <nl> + } <nl> + } <nl> + <nl> + % typecheck ( 1000 ) const std : : unordered_map < CNTK : : Variable , CNTK : : Variable > & { <nl> + / / ' 1000 ' is the typecheck precedence code . It means : check after basic <nl> + / / types , but before arrays . See : http : / / www . swig . org / Doc1 . 3 / Typemaps . html # Typemaps_overloading <nl> + $ 1 = PyDict_Check ( $ input ) ? 1 : 0 ; <nl> + } <nl> + <nl> + <nl> + % typemap ( in ) std : : unordered_map < CNTK : : Variable , CNTK : : Variable > & { <nl> + if ( PyDict_Check ( $ input ) ) { <nl> + std : : unordered_map < CNTK : : Variable , CNTK : : Variable > * args_map = new std : : unordered_map < CNTK : : Variable , CNTK : : Variable > ( ) ; <nl> + <nl> + PyObject * key , * value ; <nl> + Py_ssize_t pos = 0 ; <nl> + <nl> + while ( PyDict_Next ( $ input , & pos , & key , & value ) ) { <nl> + void * raw_var = 0 ; <nl> + int res1 = SWIG_ConvertPtr ( key , & raw_var , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res1 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " cannot convert key of dictionary to CNTK : : Variable " ) ; <nl> + } <nl> + if ( ! raw_var ) { <nl> + SWIG_exception_fail ( SWIG_ValueError , " invalid null reference when converting key of dictionary to CNTK : : Variable " ) ; <nl> + } <nl> + <nl> + CNTK : : Variable * var = reinterpret_cast < CNTK : : Variable * > ( raw_var ) ; <nl> + <nl> + void * raw_value = 0 ; <nl> + int res2 = SWIG_ConvertPtr ( value , & raw_value , SWIGTYPE_p_CNTK__Variable , 0 ) ; <nl> + if ( ! SWIG_IsOK ( res2 ) ) { <nl> + SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " cannot convert value of dictionary to CNTK : : Variable " ) ; <nl> + } <nl> + <nl> + CNTK : : Variable * value ; <nl> + if ( raw_value ) { <nl> + value = reinterpret_cast < CNTK : : Variable * > ( raw_value ) ; <nl> + } else { <nl> + / / We got an empty Variable , which carries a nullptr . <nl> + value = new CNTK : : Variable ( ) ; <nl> + } <nl> + <nl> + args_map - > insert ( std : : make_pair ( * var , * value ) ) ; <nl> + } <nl> + <nl> + $ 1 = args_map ; <nl> + } else { <nl> + SWIG_exception ( SWIG_TypeError , " dictionary expected " ) ; <nl> + } <nl> + } <nl> + <nl> + <nl> + <nl> + / / <nl> + / / Converting std : : unordered_set to Python list . <nl> + / / TOOD : figure out how to return a Python set instead of a list . For this , <nl> + / / we need to define a hash function on SwigPyObject . <nl> + / / <nl> + <nl> + % define % unordered_set_conversion ( DATA_TYPE , _SWIG_TYPE ) <nl> + <nl> + % typemap ( out ) std : : unordered_set < CNTK : : DATA_TYPE > { <nl> + PyObject * container = PyList_New ( ( * & $ 1 ) - > size ( ) ) ; <nl> + if ( container = = NULL ) <nl> + { <nl> + SWIG_exception ( SWIG_RuntimeError , " error passing set to Python " ) ; <nl> + } <nl> + <nl> + / / * & $ 1 - > $ 1 is the returned result being converted ( unordered_set < . . . > * ) , <nl> + / / wrapped by SwigValueWrapper . So we need to unwrap it using ' & ' , <nl> + / / then access its value using ' * ' . <nl> + for ( auto var : * & $ 1 ) <nl> + { <nl> + PyObject * item = SWIG_NewPointerObj ( new CNTK : : DATA_TYPE ( var ) , _SWIG_TYPE , SWIG_POINTER_OWN ) ; <nl> + / / No error handling here , because the error will be passed directly to Python <nl> + PyList_Append ( container , item ) ; <nl> + } <nl> + <nl> + Py_INCREF ( container ) ; <nl> + <nl> + $ result = container ; <nl> + } <nl> + % enddef <nl> + <nl> + % unordered_set_conversion ( Variable , SWIGTYPE_p_CNTK__Variable ) <nl> + % unordered_set_conversion ( Constant , SWIGTYPE_p_CNTK__Constant ) <nl> + % unordered_set_conversion ( Parameter , SWIGTYPE_p_CNTK__Parameter ) <nl> + <nl> + % define % unordered_set_ref_conversion ( DATA_TYPE , _SWIG_TYPE ) <nl> + <nl> + % typemap ( out ) std : : unordered_set < CNTK : : DATA_TYPE > & { <nl> + PyObject * container = PyList_New ( ( * & $ 1 ) - > size ( ) ) ; <nl> + if ( container = = NULL ) <nl> + { <nl> + SWIG_exception ( SWIG_RuntimeError , " error passing set to Python " ) ; <nl> + } <nl> + <nl> + for ( auto var : * $ 1 ) <nl> + { <nl> + PyObject * item = SWIG_NewPointerObj ( new CNTK : : DATA_TYPE ( var ) , _SWIG_TYPE , SWIG_POINTER_OWN ) ; <nl> + / / No error handling here , because the error will be passed directly to Python <nl> + PyList_Append ( container , item ) ; <nl> + } <nl> + <nl> + Py_INCREF ( container ) ; <nl> + <nl> + $ result = container ; <nl> + } <nl> + % enddef <nl> + <nl> + % unordered_set_ref_conversion ( StreamInformation , SWIGTYPE_p_CNTK__StreamInformation ) <nl> + <nl> + / / Unordered map conversion <nl> + <nl> + % define % unordered_map_ref_conversion ( DATA_TYPE1 , _SWIG_TYPE1 , DATA_TYPE2 , _SWIG_TYPE2 ) <nl> + <nl> + % typemap ( out ) std : : unordered_map < CNTK : : DATA_TYPE1 , CNTK : : DATA_TYPE2 > & { <nl> + PyObject * container = PyDict_New ( ) ; <nl> + if ( container = = NULL ) <nl> + { <nl> + SWIG_exception ( SWIG_RuntimeError , " error passing dictionary to Python " ) ; <nl> + } <nl> + <nl> + / / * & $ 1 - > $ 1 is the returned result being converted ( unordered_map < . . . > * ) , <nl> + / / wrapped by SwigValueWrapper . So we need to unwrap it using ' & ' , <nl> + / / then access its value using ' * ' . <nl> + for ( auto it : * $ 1 ) <nl> + { <nl> + PyObject * returned_var = SWIG_NewPointerObj ( SWIG_as_voidptr ( new CNTK : : DATA_TYPE1 ( it . first ) ) , _SWIG_TYPE1 , SWIG_POINTER_OWN ) ; <nl> + PyObject * returned_val = SWIG_NewPointerObj ( SWIG_as_voidptr ( new CNTK : : DATA_TYPE2 ( it . second ) ) , _SWIG_TYPE2 , SWIG_POINTER_OWN ) ; <nl> + <nl> + PyDict_SetItem ( container , returned_var , returned_val ) ; <nl> + } <nl> + <nl> + Py_INCREF ( container ) ; <nl> + <nl> + $ result = container ; <nl> + } <nl> + % enddef <nl> + <nl> + % unordered_map_ref_conversion ( StreamInformation , SWIGTYPE_p_CNTK__StreamInformation , MinibatchData , SWIGTYPE_p_CNTK__MinibatchData ) ; <nl> + <nl> + <nl> + % shared_ptr ( CNTK : : Function ) <nl> + % shared_ptr ( CNTK : : NDArrayView ) <nl> + % shared_ptr ( CNTK : : Value ) <nl> + % shared_ptr ( CNTK : : NDMask ) <nl> + % shared_ptr ( CNTK : : BackPropState ) <nl> + % shared_ptr ( CNTK : : Learner ) <nl> + % shared_ptr ( CNTK : : MinibatchSource ) <nl> + <nl> + % include " CNTKLibraryInternals . h " <nl> + % include " CNTKLibrary . h " <nl> + <nl> + <nl> + / / <nl> + / / NDMask <nl> + / / <nl> + / / FIXME ignore is ignored <nl> + % ignore CNTK : : NDMask : : DataBuffer ( ) ; <nl> + % extend CNTK : : NDMask { <nl> + PyObject * to_numpy ( ) { <nl> + std : : vector < size_t > cntk_dims = ( * self ) . Shape ( ) . Dimensions ( ) ; <nl> + static_assert ( dims . size ( ) = = 2 , " mask requires exactly two dimensions " ) ; <nl> + std : : vector < size_t > dimensions = { cntk_dims [ 1 ] , cntk_dims [ 0 ] } ; <nl> + <nl> + size_t num_elements = dimensions [ 0 ] * dimensions [ 1 ] ; <nl> + <nl> + npy_intp * shape = reinterpret_cast < npy_intp * > ( & dimensions [ 0 ] ) ; <nl> + <nl> + NDMask * cpuMask ; <nl> + if ( ( * self ) . Device ( ) ! = DeviceDescriptor : : CPUDevice ( ) ) <nl> + { <nl> + cpuMask = new NDMask ( ( * self ) . Shape ( ) , DeviceDescriptor : : CPUDevice ( ) ) ; <nl> + cpuMask - > CopyFrom ( ( * self ) ) ; <nl> + } <nl> + else <nl> + { <nl> + cpuMask = & ( * self ) ; <nl> + } <nl> + <nl> + void * buffer = const_cast < void * > ( reinterpret_cast < const void * > ( cpuMask - > DataBuffer ( ) ) ) ; <nl> + <nl> + PyObject * ndarray = PyArray_SimpleNew ( dimensions . size ( ) , shape , NPY_BYTE ) ; <nl> + void * arr_data = PyArray_DATA ( ( PyArrayObject * ) ndarray ) ; <nl> + <nl> + memcpy ( arr_data , buffer , PyArray_ITEMSIZE ( ( PyArrayObject * ) ndarray ) * num_elements ) ; <nl> + <nl> + if ( ( * self ) . Device ( ) ! = DeviceDescriptor : : CPUDevice ( ) ) <nl> + { <nl> + delete cpuMask ; <nl> + } <nl> + <nl> + return ndarray ; <nl> + } <nl> + } <nl> + <nl> + / / end NDMask <nl> + <nl> + / / <nl> + / / NDArrayView <nl> + / / <nl> + % extend CNTK : : NDArrayView { <nl> + <nl> + NDArrayView ( PyObject * pyobj , const CNTK : : DeviceDescriptor & device , bool readOnly ) <nl> + { <nl> + if ( ! PyArray_Check ( ( PyArrayObject * ) pyobj ) ) <nl> + { <nl> + / / Note that in contrast to numpy . i ' s implementation we demand NumPy arrays <nl> + / / and do not accept arbitrary sequences , which would needed to be copied around . <nl> + throw std : : logic_error ( " NumPy array expected " ) ; <nl> + } <nl> + <nl> + PyArrayObject * array = ( PyArrayObject * ) pyobj ; <nl> + <nl> + int rank = PyArray_NDIM ( array ) ; <nl> + <nl> + npy_intp * np_shape = PyArray_SHAPE ( array ) ; <nl> + std : : vector < size_t > shape ; <nl> + <nl> + npy_intp num_elements = 1 ; <nl> + / / CNTK uses column major , thus we reverse the shape <nl> + for ( int i = rank - 1 ; i > = 0 ; i - - ) <nl> + { <nl> + shape . push_back ( np_shape [ i ] ) ; <nl> + num_elements * = np_shape [ i ] ; <nl> + } <nl> + <nl> + int typecode = PyArray_TYPE ( array ) ; <nl> + <nl> + void * buf ; <nl> + <nl> + NDArrayView * cpuView ; <nl> + if ( typecode = = NPY_FLOAT ) <nl> + { <nl> + size_t num_bytes = num_elements * sizeof ( float ) ; <nl> + buf = malloc ( num_bytes ) ; <nl> + memcpy ( buf , PyArray_DATA ( array ) , num_bytes ) ; <nl> + cpuView = new NDArrayView ( NDShape ( shape ) , ( float * ) buf , num_elements , DeviceDescriptor : : CPUDevice ( ) , readOnly ) ; <nl> + } <nl> + <nl> + else if ( typecode = = NPY_DOUBLE ) <nl> + { <nl> + size_t num_bytes = num_elements * sizeof ( double ) ; <nl> + buf = malloc ( num_bytes ) ; <nl> + memcpy ( buf , PyArray_DATA ( array ) , num_bytes ) ; <nl> + cpuView = new NDArrayView ( NDShape ( shape ) , ( double * ) buf , num_elements , DeviceDescriptor : : CPUDevice ( ) , readOnly ) ; <nl> + } <nl> + else <nl> + { <nl> + throw std : : logic_error ( " NumPy array of type float32 or float64 expected " ) ; <nl> + } <nl> + <nl> + NDArrayView * view ; <nl> + if ( device ! = DeviceDescriptor : : CPUDevice ( ) ) <nl> + { <nl> + DataType data_type = cpuView - > GetDataType ( ) ; <nl> + view = new NDArrayView ( data_type , cpuView - > Shape ( ) , device ) ; <nl> + view - > CopyFrom ( * cpuView ) ; <nl> + delete cpuView ; <nl> + } <nl> + else <nl> + { <nl> + view = cpuView ; <nl> + } <nl> + <nl> + return view ; <nl> + } <nl> + <nl> + PyObject * to_numpy ( ) { <nl> + if ( ( * self ) . GetStorageFormat ( ) ! = StorageFormat : : Dense ) <nl> + throw std : : invalid_argument ( " only dense supported at the moment " ) ; <nl> + <nl> + / / FIXME use not yet existing NDShape function that returns the dimensions at once <nl> + std : : vector < size_t > dimensions_cntk = ( * self ) . Shape ( ) . Dimensions ( ) ; <nl> + std : : vector < size_t > dimensions ; <nl> + <nl> + / / We have at least one element . In case the shape is empty ( e . g . <nl> + / / ' ( ) ' ) , we have a scalar , which we need to copy ( e . g . a constant ) . <nl> + size_t num_elements = 1 ; <nl> + <nl> + / / CNTK uses column major , thus we reverse the shape <nl> + for ( int i = dimensions_cntk . size ( ) - 1 ; i > = 0 ; i - - ) <nl> + { <nl> + dimensions . push_back ( dimensions_cntk [ i ] ) ; <nl> + num_elements * = dimensions_cntk [ i ] ; <nl> + } <nl> + <nl> + npy_intp * shape = reinterpret_cast < npy_intp * > ( & dimensions [ 0 ] ) ; <nl> + <nl> + CNTK : : DataType cntk_type = ( * self ) . GetDataType ( ) ; <nl> + <nl> + NDArrayView * cpuView ; <nl> + if ( ( * self ) . Device ( ) ! = DeviceDescriptor : : CPUDevice ( ) ) <nl> + { <nl> + cpuView = new NDArrayView ( cntk_type , ( * self ) . Shape ( ) , DeviceDescriptor : : CPUDevice ( ) ) ; <nl> + cpuView - > CopyFrom ( ( * self ) ) ; <nl> + } <nl> + else <nl> + { <nl> + cpuView = & ( * self ) ; <nl> + } <nl> + <nl> + NPY_TYPES numpy_type ; <nl> + void * buffer ; <nl> + <nl> + if ( cntk_type = = CNTK : : DataType : : Float ) <nl> + { <nl> + numpy_type = NPY_FLOAT ; <nl> + buffer = ( void * ) cpuView - > DataBuffer < float > ( ) ; <nl> + } <nl> + else if ( cntk_type = = CNTK : : DataType : : Double ) <nl> + { <nl> + numpy_type = NPY_DOUBLE ; <nl> + buffer = ( void * ) cpuView - > DataBuffer < double > ( ) ; <nl> + } <nl> + else <nl> + { <nl> + throw std : : invalid_argument ( " unknown CNTK data type " ) ; <nl> + } <nl> + <nl> + PyObject * ndarray = PyArray_SimpleNew ( dimensions . size ( ) , shape , numpy_type ) ; <nl> + void * arr_data = PyArray_DATA ( ( PyArrayObject * ) ndarray ) ; <nl> + <nl> + memcpy ( arr_data , buffer , PyArray_ITEMSIZE ( ( PyArrayObject * ) ndarray ) * num_elements ) ; <nl> + <nl> + if ( ( * self ) . Device ( ) ! = DeviceDescriptor : : CPUDevice ( ) ) <nl> + { <nl> + delete cpuView ; <nl> + } <nl> + <nl> + return ndarray ; <nl> + } <nl> + } <nl> + <nl> + % template ( NDArrayViewFloat ) CNTK : : NDArrayView : : NDArrayView < float > ; <nl> + % template ( NDArrayViewDouble ) CNTK : : NDArrayView : : NDArrayView < double > ; <nl> + % template ( ConstantFloat ) CNTK : : Constant : : Constant < float > ; <nl> + % template ( ConstantDouble ) CNTK : : Constant : : Constant < double > ; <nl> + % template ( ParameterFloat ) CNTK : : Parameter : : Parameter < float > ; <nl> + % template ( ParameterDouble ) CNTK : : Parameter : : Parameter < double > ; <nl> + % template ( random_uniform_float ) CNTK : : NDArrayView : : RandomUniform < float > ; <nl> + % template ( random_uniform_double ) CNTK : : NDArrayView : : RandomUniform < double > ; <nl> + % template ( DictionaryValueFromDict ) CNTK : : DictionaryValue : : DictionaryValue < CNTK : : Dictionary > ; <nl> + <nl> + % template ( training_param_schedule_double ) CNTK : : TrainingParameterSchedule < double > ; <nl> + <nl> + % pythoncode % { <nl> + learning_rates_per_sample = training_param_schedule_double <nl> + momentums_per_sample = training_param_schedule_double <nl> + % } <nl> + <nl> + / / end of NDArrayView <nl> + <nl> + / / <nl> + / / The following callback code is only for testing . Will have to be merged with <nl> + / / the operator classes . <nl> + / / <nl> + % inline % { <nl> + class Callback { <nl> + public : <nl> + virtual ~ Callback ( ) { std : : cout < < " Callback : : ~ Callback ( ) " < < std : : endl ; } <nl> + virtual void forward ( ) { std : : cout < < " Callback : : forward ( ) " < < std : : endl ; } <nl> + virtual void backward ( ) { std : : cout < < " Callback : : backward ( ) " < < std : : endl ; } <nl> + } ; <nl> + <nl> + class FunctionInCNTK { <nl> + private : <nl> + Callback * _callback ; <nl> + public : <nl> + FunctionInCNTK ( ) : _callback ( 0 ) { } <nl> + ~ FunctionInCNTK ( ) { delCallback ( ) ; } <nl> + void delCallback ( ) { delete _callback ; _callback = 0 ; } <nl> + void setCallback ( Callback * cb ) { delCallback ( ) ; _callback = cb ; } <nl> + void forward ( ) { <nl> + if ( _callback ) <nl> + _callback - > forward ( ) ; <nl> + else <nl> + throw " Forward callback not defined ! " ; <nl> + } <nl> + void backward ( ) { if ( _callback ) _callback - > backward ( ) ; } <nl> + } ; <nl> + % } <nl> + <nl> + / / <nl> + / / Release the GIL before calling into C + + <nl> + / / <nl> + % exception { <nl> + Py_BEGIN_ALLOW_THREADS ; <nl> + $ action <nl> + Py_END_ALLOW_THREADS ; <nl> + } <nl> + <nl> + / / <nl> + / / Setting up hash calculation so that __hash__ on Swig objects <nl> + / / are redirected to the std : : hash computation of the C + + API <nl> + / / <nl> + % define % py_hash_for ( DATA_TYPE , EQ ) <nl> + % extend CNTK : : DATA_TYPE { <nl> + const size_t __hash__ ( ) { <nl> + return std : : hash < CNTK : : DATA_TYPE > ( ) ( * $ self ) ; <nl> + } <nl> + } <nl> + % enddef <nl> + <nl> + % define % py_eq_for ( DATA_TYPE , EQ ) <nl> + % pythoncode % { <nl> + DATA_TYPE . __eq__ = lambda a , b : EQ ( a , b ) <nl> + % } <nl> + % enddef <nl> + <nl> + % py_eq_for ( Variable , Variable_eq ) <nl> + % py_eq_for ( Constant , Variable_eq ) <nl> + % py_eq_for ( Parameter , Variable_eq ) <nl> + % py_eq_for ( NDShape , NDShape_eq ) <nl> + <nl> + % py_hash_for ( Variable , Variable_eq ) <nl> + % py_hash_for ( Constant , Variable_eq ) <nl> + % py_hash_for ( Parameter , Variable_eq ) <nl> + % py_hash_for ( NDShape , NDShape_eq ) <nl> + <nl> + % py_eq_for ( DeviceDescriptor , DeviceDescriptor_eq ) <nl> + <nl> + % pythoncode % { <nl> + StreamInformation . __eq__ = lambda a , b : a . m_name = = b . m_name and a . m_id = = b . m_id and a . m_storage_format = = b . m_storage_format and a . m_element_type = = b . m_element_type and a . m_sample_layout . dimensions ( ) = = b . m_sample_layout . dimensions ( ) <nl> + % } <nl> + <nl> + % extend CNTK : : StreamInformation { <nl> + const size_t __hash__ ( ) { <nl> + return std : : hash < CNTK : : StreamInformation > ( ) ( * $ self ) ; <nl> + } <nl> + } <nl> + <nl> + % pythoncode % { <nl> + # in case of multiple outputs return the function , not the variable <nl> + def get_output_and_keep_reference ( self ) : <nl> + variable = self . output_internal ( ) <nl> + variable . owner = self <nl> + return variable <nl> + Function . output = lambda self : get_output_and_keep_reference ( self ) <nl> + Function . replace_placeholders = lambda self , ph_map : self . replace_placeholders_internal ( ph_map ) <nl> + <nl> + from . tensor import _add_tensor_ops , _add_eval <nl> + for klass in [ Function , Variable ] : <nl> + _add_tensor_ops ( klass ) <nl> + <nl> + _add_eval ( Function ) <nl> + <nl> + enable_reversing_tensor_shapes_in_error_messages ( ) <nl> + % } <nl> + <nl>
|
Revert " Add NoOpt build flavor "
|
microsoft/CNTK
|
e0b62abf4a54cd572549e71f88058654a53d5208
|
2016-10-05T21:07:01Z
|
mmm a / xbmc / LangInfo . cpp <nl> ppp b / xbmc / LangInfo . cpp <nl> <nl> <nl> # include " LangInfo . h " <nl> # include " Application . h " <nl> + # include " ApplicationMessenger . h " <nl> # include " FileItem . h " <nl> # include " Util . h " <nl> # include " filesystem / Directory . h " <nl> bool CLangInfo : : SetLanguage ( const std : : string & strLanguage ) <nl> / / also tell our weather and skin to reload as these are localized <nl> g_weatherManager . Refresh ( ) ; <nl> g_PVRManager . LocalizationChanged ( ) ; <nl> - g_application . ReloadSkin ( ) ; <nl> + CApplicationMessenger : : Get ( ) . ExecBuiltIn ( " ReloadSkin " , false ) ; <nl> <nl> return true ; <nl> } <nl>
|
fix crash when changing language from non - GUI thread ( fixes )
|
xbmc/xbmc
|
8bf0a3462cd0109d6956ac768b9e9808982091df
|
2014-04-11T17:38:44Z
|
mmm a / tensorflow / python / autograph / pyct / parser . py <nl> ppp b / tensorflow / python / autograph / pyct / parser . py <nl> def parse_str ( src ) : <nl> " " " Returns the AST of given piece of code . " " " <nl> # TODO ( mdan ) : This should exclude the module things are autowrapped in . <nl> <nl> - if six . PY2 and re . search ( ' \ \ Wprint \ \ ( ' , src ) : <nl> + if six . PY2 and re . search ( ' \ \ Wprint \ \ s * \ \ ( ' , src ) : <nl> # This special treatment is required because gast . parse is not aware of <nl> # whether print_function was present in the original context . <nl> src = ' from __future__ import print_function \ n ' + src <nl> mmm a / tensorflow / python / autograph / pyct / parser_test . py <nl> ppp b / tensorflow / python / autograph / pyct / parser_test . py <nl> def f ( x ) : <nl> " " " ) ) <nl> self . assertEqual ( ' f ' , mod . body [ 0 ] . name ) <nl> <nl> + def test_parse_str_weird_print ( self ) : <nl> + mod = parser . parse_str ( <nl> + textwrap . dedent ( " " " <nl> + def f ( x ) : <nl> + print ( x ) <nl> + return x + 1 <nl> + " " " ) ) <nl> + self . assertEqual ( ' f ' , mod . body [ 0 ] . name ) <nl> + <nl> def test_parse_comments ( self ) : <nl> def f ( ) : <nl> # unindented comment <nl>
|
Another corner case for the print function : ` print ( ` .
|
tensorflow/tensorflow
|
414296b1a47e6331c14a4b37af1ae260579ea948
|
2019-02-08T22:30:20Z
|
mmm a / js / apps / system / _admin / aardvark / APP / frontend / js / views / documentsView . js <nl> ppp b / js / apps / system / _admin / aardvark / APP / frontend / js / views / documentsView . js <nl> <nl> else { <nl> if ( result . responseText ) { <nl> var message = JSON . parse ( result . responseText ) ; <nl> - arangoHelper . arangoNotification ( " Document error " , message . errorMessage ) ; <nl> + arangoHelper . arangoError ( " Document error " , message . errorMessage ) ; <nl> } <nl> else { <nl> - arangoHelper . arangoNotification ( " Document error " , " Could not create index . " ) ; <nl> + arangoHelper . arangoError ( " Document error " , " Could not create index . " ) ; <nl> } <nl> } <nl> } , <nl>
|
web ui wrong usage of arango notification in document view
|
arangodb/arangodb
|
05cdfb43dc4ff29e63a68bdd98486d0815e2d9b8
|
2015-12-22T17:17:25Z
|
mmm a / include / spdlog / details / pattern_formatter . h <nl> ppp b / include / spdlog / details / pattern_formatter . h <nl> class full_formatter final : public flag_formatter <nl> <nl> if ( cache_timestamp_ ! = secs | | cached_datetime_ . size ( ) = = 0 ) <nl> { <nl> - cached_datetime_ . resize ( 0 ) ; <nl> + cached_datetime_ . clear ( ) ; <nl> cached_datetime_ . push_back ( ' [ ' ) ; <nl> fmt_helper : : append_int ( tm_time . tm_year + 1900 , cached_datetime_ ) ; <nl> cached_datetime_ . push_back ( ' - ' ) ; <nl>
|
user buffer . clear ( ) insread of resize ( 0 )
|
gabime/spdlog
|
0b516733db31d911b1f5aac60969841740b3a6a7
|
2018-09-27T14:08:21Z
|
mmm a / Telegram / SourceFiles / application . cpp <nl> ppp b / Telegram / SourceFiles / application . cpp <nl> Application : : Application ( int & argc , char * * argv ) : PsApplication ( argc , argv ) , <nl> QFontDatabase : : addApplicationFont ( qsl ( " : / gui / art / OpenSans - Bold . ttf " ) ) ; <nl> QFontDatabase : : addApplicationFont ( qsl ( " : / gui / art / OpenSans - Semibold . ttf " ) ) ; <nl> <nl> - { <nl> - QImage img ( 800 , 600 , QImage : : Format_ARGB32_Premultiplied ) ; <nl> - QPainter p ( & img ) ; <nl> - QFont f ; <nl> - f . setPixelSize ( 24 ) ; <nl> - f . setFamily ( " Open Sans Semibold " ) ; <nl> - p . setFont ( f ) ; <nl> - p . drawText ( 0 , 0 , " t " ) ; <nl> - } <nl> - <nl> float64 dpi = primaryScreen ( ) - > logicalDotsPerInch ( ) ; <nl> if ( dpi < = 108 ) { / / 0 - 96 - 108 <nl> cSetScreenScale ( dbisOne ) ; <nl>
|
removed debug code
|
telegramdesktop/tdesktop
|
4e763dcb263c442a5962f7d9a44b21ea8984a626
|
2014-07-06T03:40:01Z
|
mmm a / imgui . h <nl> ppp b / imgui . h <nl> namespace ImGui <nl> / / Make sure to set ' SpecsDirty = false ' after sorting , else you may wastefully sort your data every frame ! <nl> / / Lifetime : don ' t hold on this pointer over multiple frames or past any subsequent call to BeginTable ( ) . <nl> IMGUI_API int TableGetColumnCount ( ) ; / / return number of columns ( value passed to BeginTable ) <nl> - IMGUI_API const char * TableGetColumnName ( int column_n = - 1 ) ; / / return NULL if column didn ' t have a name declared by TableSetupColumn ( ) . Pass - 1 to use current column . <nl> + IMGUI_API const char * TableGetColumnName ( int column_n = - 1 ) ; / / return " " if column didn ' t have a name declared by TableSetupColumn ( ) . Pass - 1 to use current column . <nl> IMGUI_API bool TableGetColumnIsVisible ( int column_n = - 1 ) ; / / return true if column is visible . Same value is also returned by TableNextColumn ( ) and TableSetColumnIndex ( ) . Pass - 1 to use current column . <nl> IMGUI_API bool TableGetColumnIsSorted ( int column_n = - 1 ) ; / / return true if column is included in the sort specs . Rarely used , can be useful to tell if a data change should trigger resort . Equivalent to test ImGuiTableSortSpecs ' s - > ColumnsMask & ( 1 < < column_n ) . Pass - 1 to use current column . <nl> IMGUI_API int TableGetHoveredColumn ( ) ; / / return hovered column . return - 1 when table is not hovered . return columns_count if the unused space at the right of visible columns is hovered . <nl> mmm a / imgui_tables . cpp <nl> ppp b / imgui_tables . cpp <nl> bool ImGui : : BeginTable ( const char * str_id , int columns_count , ImGuiTableFlags <nl> } <nl> <nl> / / For reference , the total _allocation count_ for a table is : <nl> - / / + 0 ( for ImGuiTable instance , we sharing allocation in g . Tables pool ) <nl> + / / + 0 ( for ImGuiTable instance , we are pooling allocations in g . Tables ) <nl> / / + 1 ( for table - > RawData allocated below ) <nl> + / / + 1 ( for table - > ColumnsNames , if names are used ) <nl> / / + 1 ( for table - > Splitter . _Channels ) <nl> / / + 2 * active_channels_count ( for ImDrawCmd and ImDrawIdx buffers inside channels ) <nl> / / Where active_channels_count is variable but often = = columns_count or columns_count + 1 , see TableUpdateDrawChannels ( ) for details . <nl> void ImGui : : TableSetupColumn ( const char * label , ImGuiTableColumnFlags flags , <nl> <nl> / / Store name ( append with zero - terminator in contiguous buffer ) <nl> IM_ASSERT ( column - > NameOffset = = - 1 ) ; <nl> - if ( label ! = NULL ) <nl> + if ( label ! = NULL & & label [ 0 ] ! = 0 ) <nl> { <nl> column - > NameOffset = ( ImS16 ) table - > ColumnsNames . size ( ) ; <nl> table - > ColumnsNames . append ( label , label + strlen ( label ) + 1 ) ; <nl> const char * ImGui : : TableGetColumnName ( const ImGuiTable * table , int column_n ) <nl> { <nl> const ImGuiTableColumn * column = & table - > Columns [ column_n ] ; <nl> if ( column - > NameOffset = = - 1 ) <nl> - return NULL ; <nl> + return " " ; <nl> return & table - > ColumnsNames . Buf [ column - > NameOffset ] ; <nl> } <nl> <nl> void ImGui : : TableDrawContextMenu ( ImGuiTable * table ) <nl> { <nl> ImGuiTableColumn * other_column = & table - > Columns [ other_column_n ] ; <nl> const char * name = TableGetColumnName ( table , other_column_n ) ; <nl> - if ( name = = NULL ) <nl> + if ( name = = NULL | | name [ 0 ] = = 0 ) <nl> name = " < Unknown > " ; <nl> <nl> / / Make sure we can ' t hide the last active column <nl> void ImGui : : DebugNodeTable ( ImGuiTable * table ) <nl> " ContentWidth : Frozen % d , Unfrozen % d , HeadersUsed / Ideal % d / % d \ n " <nl> " SortOrder : % d , SortDir : % s \ n " <nl> " UserID : 0x % 08X , Flags : 0x % 04X : % s % s % s % s . . " , <nl> - n , column - > DisplayOrder , name ? name : " NULL " , column - > MinX - table - > WorkRect . Min . x , column - > MaxX - table - > WorkRect . Min . x , <nl> + n , column - > DisplayOrder , name , column - > MinX - table - > WorkRect . Min . x , column - > MaxX - table - > WorkRect . Min . x , <nl> column - > IsVisible , column - > IsClipped , column - > DrawChannelFrozen , column - > DrawChannelUnfrozen , <nl> column - > WidthGiven , column - > WidthRequest , column - > WidthStretchWeight , <nl> column - > ContentWidthFrozen , column - > ContentWidthUnfrozen , column - > ContentWidthHeadersUsed , column - > ContentWidthHeadersIdeal , <nl>
|
Tables : Avoid allocating into ColumnsName for empty strings , changed TableGetColumnName ( ) to return " " on missing name , generally more friendly .
|
ocornut/imgui
|
75c5f534e8b8533cfda4b39e708096d7ede61df8
|
2020-12-04T18:15:24Z
|
mmm a / include / swift / AST / DiagnosticsSema . def <nl> ppp b / include / swift / AST / DiagnosticsSema . def <nl> ERROR ( closure_tuple_parameter_destructuring , none , <nl> ERROR ( closure_tuple_parameter_destructuring_implicit , none , <nl> " closure tuple parameter % 0 does not support destructuring " <nl> " with implicit parameters " , ( Type ) ) <nl> + ERROR ( nested_tuple_parameter_destructuring , none , <nl> + " nested tuple parameter % 0 of function % 1 " <nl> + " does not support destructuring " , ( Type , Type ) ) <nl> + ERROR ( single_tuple_parameter_mismatch , none , <nl> + " % 0 % select { | % 1 } 3expects a single parameter of type % 2 " , <nl> + ( DescriptiveDeclKind , Identifier , Type , bool ) ) <nl> + ERROR ( unknown_single_tuple_parameter_mismatch , none , <nl> + " single parameter of type % 0 is expected in call " , ( Type ) ) <nl> + <nl> <nl> ERROR ( tuple_pattern_length_mismatch , none , <nl> " tuple pattern has the wrong length for tuple type % 0 " , ( Type ) ) <nl> mmm a / lib / Sema / CSDiag . cpp <nl> ppp b / lib / Sema / CSDiag . cpp <nl> diagnoseInstanceMethodAsCurriedMemberOnType ( CalleeCandidateInfo & CCI , <nl> return false ; <nl> } <nl> <nl> + static bool diagnoseTupleParameterMismatch ( CalleeCandidateInfo & CCI , <nl> + Type paramType , Type argType , <nl> + Expr * fnExpr , Expr * argExpr , <nl> + bool isTopLevel = true ) { <nl> + / / Try to diagnose function call tuple parameter splat only if <nl> + / / there is no trailing or argument closure , because <nl> + / / FailureDiagnosis : : visitClosureExpr will produce better <nl> + / / diagnostic and fix - it for trailing closure case . <nl> + if ( isTopLevel ) { <nl> + if ( CCI . hasTrailingClosure ) <nl> + return false ; <nl> + <nl> + if ( auto * parenExpr = dyn_cast < ParenExpr > ( argExpr ) ) { <nl> + if ( isa < ClosureExpr > ( parenExpr - > getSubExpr ( ) ) ) <nl> + return false ; <nl> + } <nl> + } <nl> + <nl> + if ( auto * paramFnType = paramType - > getAs < AnyFunctionType > ( ) ) { <nl> + / / Only if both of the parameter and argument types are functions <nl> + / / let ' s recur into diagnosing their arguments . <nl> + if ( auto * argFnType = argType - > getAs < AnyFunctionType > ( ) ) <nl> + return diagnoseTupleParameterMismatch ( CCI , paramFnType - > getInput ( ) , <nl> + argFnType - > getInput ( ) , fnExpr , <nl> + argExpr , / * isTopLevel * / false ) ; <nl> + return false ; <nl> + } <nl> + <nl> + unsigned parameterCount = 1 , argumentCount = 1 ; <nl> + <nl> + / / Don ' t try to desugar ParenType which is going to result in incorrect <nl> + / / inferred argument / parameter count . <nl> + <nl> + if ( auto * paramTypeTy = dyn_cast < TupleType > ( paramType . getPointer ( ) ) ) <nl> + parameterCount = paramTypeTy - > getNumElements ( ) ; <nl> + <nl> + if ( auto * argTupleTy = dyn_cast < TupleType > ( argType . getPointer ( ) ) ) <nl> + argumentCount = argTupleTy - > getNumElements ( ) ; <nl> + <nl> + if ( parameterCount = = 1 & & argumentCount > 1 ) { <nl> + / / Let ' s see if inferred argument is actually a tuple inside of Paren . <nl> + auto * paramTupleTy = paramType - > getAs < TupleType > ( ) ; <nl> + if ( ! paramTupleTy ) <nl> + return false ; <nl> + <nl> + / / Looks like the number of tuple elements matches number <nl> + / / of function arguments , which means we can we can emit an <nl> + / / error about an attempt to make use of tuple splat or tuple <nl> + / / destructuring , unfortunately we can ' t provide a fix - it for <nl> + / / this case . <nl> + if ( paramTupleTy - > getNumElements ( ) = = argumentCount ) { <nl> + auto & TC = CCI . CS - > TC ; <nl> + if ( isTopLevel ) { <nl> + if ( auto * decl = CCI [ 0 ] . getDecl ( ) ) { <nl> + Identifier name ; <nl> + auto kind = decl - > getDescriptiveKind ( ) ; <nl> + / / Constructors / descructors and subscripts don ' t really have names . <nl> + if ( ! ( isa < ConstructorDecl > ( decl ) | | isa < DestructorDecl > ( decl ) | | <nl> + isa < SubscriptDecl > ( decl ) ) ) { <nl> + name = decl - > getName ( ) ; <nl> + } <nl> + <nl> + TC . diagnose ( argExpr - > getLoc ( ) , diag : : single_tuple_parameter_mismatch , <nl> + kind , name , paramType , ! name . empty ( ) ) <nl> + . highlight ( argExpr - > getSourceRange ( ) ) <nl> + . fixItInsertAfter ( argExpr - > getStartLoc ( ) , " ( " ) <nl> + . fixItInsert ( argExpr - > getEndLoc ( ) , " ) " ) ; <nl> + } else { <nl> + TC . diagnose ( argExpr - > getLoc ( ) , <nl> + diag : : unknown_single_tuple_parameter_mismatch , paramType ) <nl> + . highlight ( argExpr - > getSourceRange ( ) ) <nl> + . fixItInsertAfter ( argExpr - > getStartLoc ( ) , " ( " ) <nl> + . fixItInsert ( argExpr - > getEndLoc ( ) , " ) " ) ; <nl> + } <nl> + } else { <nl> + TC . diagnose ( argExpr - > getLoc ( ) , <nl> + diag : : nested_tuple_parameter_destructuring , paramType , <nl> + fnExpr - > getType ( ) ) ; <nl> + } <nl> + return true ; <nl> + } <nl> + } <nl> + <nl> + return false ; <nl> + } <nl> + <nl> / / / Emit a class of diagnostics that we only know how to generate when there is <nl> / / / exactly one candidate we know about . Return true if an error is emitted . <nl> static bool diagnoseSingleCandidateFailures ( CalleeCandidateInfo & CCI , <nl> static bool diagnoseSingleCandidateFailures ( CalleeCandidateInfo & CCI , <nl> } <nl> } <nl> <nl> + if ( diagnoseTupleParameterMismatch ( CCI , candidate . getArgumentType ( ) , <nl> + argExpr - > getType ( ) , fnExpr , argExpr ) ) <nl> + return true ; <nl> + <nl> / / We only handle structural errors here . <nl> if ( CCI . closeness ! = CC_ArgumentLabelMismatch & & <nl> CCI . closeness ! = CC_ArgumentCountMismatch ) <nl> mmm a / test / Compatibility / tuple_arguments . swift <nl> ppp b / test / Compatibility / tuple_arguments . swift <nl> do { <nl> concreteTwo ( 3 , 4 ) <nl> concreteTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - concreteTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + concreteTuple ( 3 , 4 ) / / expected - error { { global function ' concreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> concreteTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> concreteTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> concreteTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - concreteTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + concreteTuple ( a , b ) / / expected - error { { global function ' concreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> concreteTuple ( ( a , b ) ) <nl> concreteTuple ( d ) <nl> } <nl> do { <nl> genericTwo ( 3 , 4 ) <nl> genericTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - genericTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + genericTuple ( 3 , 4 ) / / expected - error { { global function ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 16 - 16 = ( } } { { 20 - 20 = ) } } <nl> genericTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> genericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + genericTuple ( a , b ) / / expected - error { { global function ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 16 - 16 = ( } } { { 20 - 20 = ) } } <nl> genericTuple ( ( a , b ) ) <nl> genericTuple ( d ) <nl> } <nl> do { <nl> genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> genericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + genericTuple ( a , b ) / / expected - error { { global function ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 16 - 16 = ( } } { { 20 - 20 = ) } } <nl> genericTuple ( ( a , b ) ) <nl> genericTuple ( d ) <nl> } <nl> do { <nl> functionTwo ( 3 , 4 ) <nl> functionTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - functionTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + functionTuple ( 3 , 4 ) / / expected - error { { var ' functionTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> functionTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> functionTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> functionTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - functionTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + functionTuple ( a , b ) / / expected - error { { var ' functionTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> functionTuple ( ( a , b ) ) <nl> functionTuple ( d ) <nl> } <nl> do { <nl> s . concreteTwo ( 3 , 4 ) <nl> s . concreteTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . concreteTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + s . concreteTuple ( 3 , 4 ) / / expected - error { { instance method ' concreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 19 - 19 = ( } } { { 23 - 23 = ) } } <nl> s . concreteTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> s . concreteTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . concreteTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . concreteTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . concreteTuple ( a , b ) / / expected - error { { instance method ' concreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 19 - 19 = ( } } { { 23 - 23 = ) } } <nl> s . concreteTuple ( ( a , b ) ) <nl> s . concreteTuple ( d ) <nl> } <nl> do { <nl> s . genericTwo ( 3 , 4 ) <nl> s . genericTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( 3 , 4 ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> s . genericTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> s . genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . genericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( a , b ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> s . genericTuple ( ( a , b ) ) <nl> s . genericTuple ( d ) <nl> } <nl> do { <nl> s . genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . genericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( a , b ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> s . genericTuple ( ( a , b ) ) <nl> s . genericTuple ( d ) <nl> } <nl> do { <nl> s . mutatingConcreteTwo ( 3 , 4 ) <nl> s . mutatingConcreteTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingConcreteTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + s . mutatingConcreteTuple ( 3 , 4 ) / / expected - error { { instance method ' mutatingConcreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 27 - 27 = ( } } { { 31 - 31 = ) } } <nl> s . mutatingConcreteTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> s . mutatingConcreteTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . mutatingConcreteTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingConcreteTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . mutatingConcreteTuple ( a , b ) / / expected - error { { instance method ' mutatingConcreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 27 - 27 = ( } } { { 31 - 31 = ) } } <nl> s . mutatingConcreteTuple ( ( a , b ) ) <nl> s . mutatingConcreteTuple ( d ) <nl> } <nl> do { <nl> s . mutatingGenericTwo ( 3 , 4 ) <nl> s . mutatingGenericTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( 3 , 4 ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . mutatingGenericTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> s . mutatingGenericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . mutatingGenericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( a , b ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . mutatingGenericTuple ( ( a , b ) ) <nl> s . mutatingGenericTuple ( d ) <nl> } <nl> do { <nl> s . mutatingGenericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . mutatingGenericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( a , b ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . mutatingGenericTuple ( ( a , b ) ) <nl> s . mutatingGenericTuple ( d ) <nl> } <nl> do { <nl> s . functionTwo ( 3 , 4 ) <nl> s . functionTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . functionTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + s . functionTuple ( 3 , 4 ) / / expected - error { { single parameter of type ' ( Int , Int ) ' is expected in call } } { { 19 - 19 = ( } } { { 23 - 23 = ) } } <nl> s . functionTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> s . functionTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . functionTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . functionTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . functionTuple ( a , b ) / / expected - error { { single parameter of type ' ( Int , Int ) ' is expected in call } } { { 19 - 19 = ( } } { { 23 - 23 = ) } } <nl> s . functionTuple ( ( a , b ) ) <nl> s . functionTuple ( d ) <nl> } <nl> do { <nl> _ = InitTwo ( 3 , 4 ) <nl> _ = InitTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = InitTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = InitTuple ( 3 , 4 ) / / expected - error { { initializer expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> _ = InitTuple ( ( 3 , 4 ) ) <nl> <nl> _ = InitLabeledTuple ( x : 3 , 4 ) / / expected - error { { extra argument in call } } <nl> do { <nl> _ = InitTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = InitTwo ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = InitTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = InitTuple ( a , b ) / / expected - error { { initializer expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> _ = InitTuple ( ( a , b ) ) <nl> _ = InitTuple ( c ) <nl> } <nl> do { <nl> _ = s1 [ ( 3 , 4 ) ] / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> let s2 = SubscriptTuple ( ) <nl> - _ = s2 [ 3 , 4 ] / / expected - error { { extra argument in call } } <nl> + _ = s2 [ 3 , 4 ] / / expected - error { { subscript expects a single parameter of type ' ( Int , Int ) ' } } { { 10 - 10 = ( } } { { 14 - 14 = ) } } <nl> _ = s2 [ ( 3 , 4 ) ] <nl> <nl> let s3 = SubscriptLabeledTuple ( ) <nl> do { <nl> _ = s1 [ d ] / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> var s2 = SubscriptTuple ( ) <nl> - _ = s2 [ a , b ] / / expected - error { { extra argument in call } } } <nl> + _ = s2 [ a , b ] / / expected - error { { subscript expects a single parameter of type ' ( Int , Int ) ' } } { { 10 - 10 = ( } } { { 14 - 14 = ) } } <nl> _ = s2 [ ( a , b ) ] <nl> _ = s2 [ d ] <nl> } <nl> do { <nl> _ = Enum . two ( 3 , 4 ) <nl> _ = Enum . two ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = Enum . tuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = Enum . tuple ( 3 , 4 ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> _ = Enum . tuple ( ( 3 , 4 ) ) <nl> <nl> _ = Enum . labeledTuple ( x : 3 , 4 ) / / expected - error { { extra argument in call } } <nl> do { <nl> _ = Enum . two ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = Enum . two ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = Enum . tuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = Enum . tuple ( a , b ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> _ = Enum . tuple ( ( a , b ) ) <nl> _ = Enum . tuple ( c ) <nl> } <nl> do { <nl> s . genericTwo ( 3 . 0 , 4 . 0 ) <nl> s . genericTwo ( ( 3 . 0 , 4 . 0 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 18 - 18 = ( } } { { 26 - 26 = ) } } <nl> s . genericTuple ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> let sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . generic ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + sTwo . generic ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' generic ' expects a single parameter of type ' ( Double , Double ) ' } } { { 16 - 16 = ( } } { { 24 - 24 = ) } } <nl> sTwo . generic ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> sTwo . genericLabeled ( x : 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> do { <nl> s . genericTwo ( a , b ) <nl> s . genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( a , b ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> s . genericTuple ( ( a , b ) ) <nl> <nl> var sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . generic ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . generic ( a , b ) / / expected - error { { instance method ' generic ' expects a single parameter of type ' ( Double , Double ) ' } } { { 16 - 16 = ( } } { { 20 - 20 = ) } } <nl> sTwo . generic ( ( a , b ) ) <nl> sTwo . generic ( d ) <nl> } <nl> do { <nl> s . mutatingGenericTwo ( 3 . 0 , 4 . 0 ) <nl> s . mutatingGenericTwo ( ( 3 . 0 , 4 . 0 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 26 - 26 = ( } } { { 34 - 34 = ) } } <nl> s . mutatingGenericTuple ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> var sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . mutatingGeneric ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + sTwo . mutatingGeneric ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' mutatingGeneric ' expects a single parameter of type ' ( Double , Double ) ' } } { { 24 - 24 = ( } } { { 32 - 32 = ) } } <nl> sTwo . mutatingGeneric ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> sTwo . mutatingGenericLabeled ( x : 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> do { <nl> s . mutatingGenericTwo ( a , b ) <nl> s . mutatingGenericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( a , b ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . mutatingGenericTuple ( ( a , b ) ) <nl> <nl> var sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . mutatingGeneric ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . mutatingGeneric ( a , b ) / / expected - error { { instance method ' mutatingGeneric ' expects a single parameter of type ' ( Double , Double ) ' } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> sTwo . mutatingGeneric ( ( a , b ) ) <nl> sTwo . mutatingGeneric ( d ) <nl> } <nl> do { <nl> s . genericFunctionTwo ( 3 . 0 , 4 . 0 ) <nl> s . genericFunctionTwo ( ( 3 . 0 , 4 . 0 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericFunctionTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + s . genericFunctionTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { single parameter of type ' ( Double , Double ) ' is expected in call } } { { 26 - 26 = ( } } { { 34 - 34 = ) } } <nl> s . genericFunctionTuple ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> let sTwo = Generic < ( Double , Double ) > ( ) <nl> do { <nl> s . genericFunctionTwo ( a , b ) <nl> s . genericFunctionTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericFunctionTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . genericFunctionTuple ( a , b ) / / expected - error { { single parameter of type ' ( Double , Double ) ' is expected in call } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . genericFunctionTuple ( ( a , b ) ) <nl> <nl> var sTwo = Generic < ( Double , Double ) > ( ) <nl> do { <nl> _ = GenericInitTwo ( 3 , 4 ) <nl> _ = GenericInitTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple ( 3 , 4 ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> _ = GenericInitTuple ( ( 3 , 4 ) ) <nl> <nl> _ = GenericInitLabeledTuple ( x : 3 , 4 ) / / expected - error { { extra argument in call } } <nl> do { <nl> _ = GenericInitTwo < Int > ( 3 , 4 ) <nl> _ = GenericInitTwo < Int > ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple < Int > ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple < Int > ( 3 , 4 ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 29 - 29 = ( } } { { 33 - 33 = ) } } <nl> _ = GenericInitTuple < Int > ( ( 3 , 4 ) ) <nl> <nl> _ = GenericInitLabeledTuple < Int > ( x : 3 , 4 ) / / expected - error { { extra argument in call } } <nl> do { <nl> _ = GenericInitTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericInitTwo ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple ( a , b ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> _ = GenericInitTuple ( ( a , b ) ) <nl> _ = GenericInitTuple ( c ) <nl> } <nl> do { <nl> _ = GenericInitTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericInitTwo ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple ( a , b ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> _ = GenericInitTuple ( ( a , b ) ) <nl> _ = GenericInitTuple ( c ) <nl> } <nl> do { <nl> _ = GenericInitTwo < Int > ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericInitTwo < Int > ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple < Int > ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple < Int > ( a , b ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 29 - 29 = ( } } { { 33 - 33 = ) } } <nl> _ = GenericInitTuple < Int > ( ( a , b ) ) <nl> _ = GenericInitTuple < Int > ( c ) <nl> } <nl> do { <nl> _ = s2 [ ( 3 . 0 , 4 . 0 ) ] / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> let s3 = GenericSubscriptTuple < Double > ( ) <nl> - _ = s3 [ 3 . 0 , 4 . 0 ] / / expected - error { { extra argument in call } } <nl> + _ = s3 [ 3 . 0 , 4 . 0 ] / / expected - error { { subscript expects a single parameter of type ' ( T , T ) ' } } { { 10 - 10 = ( } } { { 18 - 18 = ) } } <nl> _ = s3 [ ( 3 . 0 , 4 . 0 ) ] <nl> <nl> let s3a = GenericSubscriptLabeledTuple < Double > ( ) <nl> do { <nl> _ = s2 [ d ] / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> var s3 = GenericSubscriptTuple < Double > ( ) <nl> - _ = s3 [ a , b ] / / expected - error { { extra argument in call } } <nl> + _ = s3 [ a , b ] / / expected - error { { subscript expects a single parameter of type ' ( T , T ) ' } } { { 10 - 10 = ( } } { { 14 - 14 = ) } } <nl> _ = s3 [ ( a , b ) ] <nl> _ = s3 [ d ] <nl> } <nl> do { <nl> _ = GenericEnum . two ( 3 , 4 ) <nl> _ = GenericEnum . two ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum . tuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum . tuple ( 3 , 4 ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( _ , _ ) ' } } { { 25 - 25 = ( } } { { 29 - 29 = ) } } <nl> _ = GenericEnum . tuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> _ = GenericEnum < Int > . two ( 3 , 4 ) <nl> _ = GenericEnum < Int > . two ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum < Int > . tuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum < Int > . tuple ( 3 , 4 ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 30 - 30 = ( } } { { 34 - 34 = ) } } <nl> _ = GenericEnum < Int > . tuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> _ = GenericEnum . two ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericEnum . two ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum . tuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum . tuple ( a , b ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( _ , _ ) ' } } { { 25 - 25 = ( } } { { 29 - 29 = ) } } <nl> _ = GenericEnum . tuple ( ( a , b ) ) <nl> _ = GenericEnum . tuple ( c ) <nl> } <nl> do { <nl> _ = GenericEnum . two ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericEnum . two ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum . tuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum . tuple ( a , b ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( _ , _ ) ' } } { { 25 - 25 = ( } } { { 29 - 29 = ) } } <nl> _ = GenericEnum . tuple ( ( a , b ) ) <nl> _ = GenericEnum . tuple ( c ) <nl> } <nl> do { <nl> _ = GenericEnum < Int > . two ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericEnum < Int > . two ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum < Int > . tuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum < Int > . tuple ( a , b ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 30 - 30 = ( } } { { 34 - 34 = ) } } <nl> _ = GenericEnum < Int > . tuple ( ( a , b ) ) <nl> _ = GenericEnum < Int > . tuple ( c ) <nl> } <nl> do { <nl> s . requirementTwo ( 3 . 0 , 4 . 0 ) <nl> s . requirementTwo ( ( 3 . 0 , 4 . 0 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . requirementTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + s . requirementTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' requirementTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 22 - 22 = ( } } { { 30 - 30 = ) } } <nl> s . requirementTuple ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> let sTwo = GenericConforms < ( Double , Double ) > ( ) <nl> <nl> - sTwo . requirement ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + sTwo . requirement ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' requirement ' expects a single parameter of type ' ( Double , Double ) ' } } { { 20 - 20 = ( } } { { 28 - 28 = ) } } <nl> sTwo . requirement ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> sTwo . requirementLabeled ( x : 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> do { <nl> s . requirementTwo ( a , b ) <nl> s . requirementTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . requirementTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . requirementTuple ( a , b ) / / expected - error { { instance method ' requirementTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 22 - 22 = ( } } { { 26 - 26 = ) } } <nl> s . requirementTuple ( ( a , b ) ) <nl> <nl> var sTwo = GenericConforms < ( Double , Double ) > ( ) <nl> <nl> - sTwo . requirement ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . requirement ( a , b ) / / expected - error { { instance method ' requirement ' expects a single parameter of type ' ( Double , Double ) ' } } { { 20 - 20 = ( } } { { 24 - 24 = ) } } <nl> sTwo . requirement ( ( a , b ) ) <nl> sTwo . requirement ( d ) <nl> } <nl> mmm a / test / Constraints / diagnostics . swift <nl> ppp b / test / Constraints / diagnostics . swift <nl> func test17875634 ( ) { <nl> var row = 1 <nl> var col = 2 <nl> <nl> - match . append ( row , col ) / / expected - error { { extra argument in call } } <nl> + match . append ( row , col ) / / expected - error { { instance method ' append ' expects a single parameter of type ' ( Int , Int ) ' } } { { 16 - 16 = ( } } { { 24 - 24 = ) } } <nl> } <nl> <nl> / / < https : / / github . com / apple / swift / pull / 1205 > Improved diagnostics for enums with associated values <nl> mmm a / test / Constraints / diagnostics_swift4 . swift <nl> ppp b / test / Constraints / diagnostics_swift4 . swift <nl> enum R31898542 < T > { <nl> <nl> func foo ( ) - > R31898542 < ( ) > { <nl> return . success ( ) / / expected - error { { missing argument for parameter # 1 in call } } { { 19 - 19 = < # T # > } } <nl> + } <nl> + <nl> + / / rdar : / / problem / 31973368 - Cannot convert value of type ' ( K , V ) - > ( ) ' to expected argument type ' ( ( key : _ , value : _ ) ) - > Void ' <nl> + <nl> + class R < K : Hashable , V > { <nl> + func forEach ( _ body : ( ( K , V ) - > ( ) ) ) { <nl> + var dict : [ K : V ] = [ : ] <nl> + dict . forEach ( body ) / / expected - error { { nested tuple parameter ' ( key : K , value : V ) ' of function ' ( ( ( key : K , value : V ) ) throws - > Void ) throws - > ( ) ' does not support destructuring } } <nl> + } <nl> } <nl> \ No newline at end of file <nl> mmm a / test / Constraints / keyword_arguments . swift <nl> ppp b / test / Constraints / keyword_arguments . swift <nl> func acceptTuple1 < T > ( _ x : ( T , Bool ) ) { } <nl> <nl> acceptTuple1 ( produceTuple1 ( ) ) <nl> acceptTuple1 ( ( 1 , false ) ) <nl> - / / FIXME : QoI is awful here . <nl> - acceptTuple1 ( 1 , false ) / / expected - error { { extra argument in call } } <nl> + acceptTuple1 ( 1 , false ) / / expected - error { { global function ' acceptTuple1 ' expects a single parameter of type ' ( T , Bool ) ' } } { { 14 - 14 = ( } } { { 22 - 22 = ) } } <nl> <nl> func acceptTuple2 < T > ( _ input : T ) - > T { return input } <nl> var tuple1 = ( 1 , " hello " ) <nl> mmm a / test / Constraints / tuple_arguments . swift <nl> ppp b / test / Constraints / tuple_arguments . swift <nl> do { <nl> concreteTwo ( 3 , 4 ) <nl> concreteTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - concreteTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + concreteTuple ( 3 , 4 ) / / expected - error { { global function ' concreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> concreteTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> concreteTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> concreteTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - concreteTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + concreteTuple ( a , b ) / / expected - error { { global function ' concreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> concreteTuple ( ( a , b ) ) <nl> concreteTuple ( d ) <nl> } <nl> do { <nl> concreteTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> concreteTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - concreteTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + concreteTuple ( a , b ) / / expected - error { { global function ' concreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> concreteTuple ( ( a , b ) ) <nl> concreteTuple ( d ) <nl> } <nl> do { <nl> genericTwo ( 3 , 4 ) <nl> genericTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - genericTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + genericTuple ( 3 , 4 ) / / expected - error { { global function ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 16 - 16 = ( } } { { 20 - 20 = ) } } <nl> genericTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> genericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + genericTuple ( a , b ) / / expected - error { { global function ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 16 - 16 = ( } } { { 20 - 20 = ) } } <nl> genericTuple ( ( a , b ) ) <nl> genericTuple ( d ) <nl> } <nl> do { <nl> genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> genericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + genericTuple ( a , b ) / / expected - error { { global function ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 16 - 16 = ( } } { { 20 - 20 = ) } } <nl> genericTuple ( ( a , b ) ) <nl> genericTuple ( d ) <nl> } <nl> do { <nl> functionTwo ( 3 , 4 ) <nl> functionTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - functionTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + functionTuple ( 3 , 4 ) / / expected - error { { var ' functionTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> functionTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> functionTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> functionTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - functionTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + functionTuple ( a , b ) / / expected - error { { var ' functionTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> functionTuple ( ( a , b ) ) <nl> functionTuple ( d ) <nl> } <nl> do { <nl> functionTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> functionTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - functionTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + functionTuple ( a , b ) / / expected - error { { var ' functionTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> functionTuple ( ( a , b ) ) <nl> functionTuple ( d ) <nl> } <nl> do { <nl> s . concreteTwo ( 3 , 4 ) <nl> s . concreteTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . concreteTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + s . concreteTuple ( 3 , 4 ) / / expected - error { { instance method ' concreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 19 - 19 = ( } } { { 23 - 23 = ) } } <nl> s . concreteTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> s . concreteTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . concreteTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . concreteTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . concreteTuple ( a , b ) / / expected - error { { instance method ' concreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 19 - 19 = ( } } { { 23 - 23 = ) } } <nl> s . concreteTuple ( ( a , b ) ) <nl> s . concreteTuple ( d ) <nl> } <nl> do { <nl> s . concreteTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . concreteTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . concreteTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . concreteTuple ( a , b ) / / expected - error { { instance method ' concreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 19 - 19 = ( } } { { 23 - 23 = ) } } <nl> s . concreteTuple ( ( a , b ) ) <nl> s . concreteTuple ( d ) <nl> } <nl> do { <nl> s . genericTwo ( 3 , 4 ) <nl> s . genericTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( 3 , 4 ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> s . genericTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> s . genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . genericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( a , b ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> s . genericTuple ( ( a , b ) ) <nl> s . genericTuple ( d ) <nl> } <nl> do { <nl> s . genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . genericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( a , b ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> s . genericTuple ( ( a , b ) ) <nl> s . genericTuple ( d ) <nl> } <nl> do { <nl> s . mutatingConcreteTwo ( 3 , 4 ) <nl> s . mutatingConcreteTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingConcreteTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + s . mutatingConcreteTuple ( 3 , 4 ) / / expected - error { { instance method ' mutatingConcreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 27 - 27 = ( } } { { 31 - 31 = ) } } <nl> s . mutatingConcreteTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> s . mutatingConcreteTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . mutatingConcreteTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingConcreteTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . mutatingConcreteTuple ( a , b ) / / expected - error { { instance method ' mutatingConcreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 27 - 27 = ( } } { { 31 - 31 = ) } } <nl> s . mutatingConcreteTuple ( ( a , b ) ) <nl> s . mutatingConcreteTuple ( d ) <nl> } <nl> do { <nl> s . mutatingConcreteTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . mutatingConcreteTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingConcreteTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . mutatingConcreteTuple ( a , b ) / / expected - error { { instance method ' mutatingConcreteTuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 27 - 27 = ( } } { { 31 - 31 = ) } } <nl> s . mutatingConcreteTuple ( ( a , b ) ) <nl> s . mutatingConcreteTuple ( d ) <nl> } <nl> do { <nl> s . mutatingGenericTwo ( 3 , 4 ) <nl> s . mutatingGenericTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( 3 , 4 ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . mutatingGenericTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> s . mutatingGenericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . mutatingGenericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( a , b ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . mutatingGenericTuple ( ( a , b ) ) <nl> s . mutatingGenericTuple ( d ) <nl> } <nl> do { <nl> s . mutatingGenericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . mutatingGenericTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( a , b ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( T , U ) ' } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . mutatingGenericTuple ( ( a , b ) ) <nl> s . mutatingGenericTuple ( d ) <nl> } <nl> do { <nl> s . functionTwo ( 3 , 4 ) <nl> s . functionTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . functionTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + s . functionTuple ( 3 , 4 ) / / expected - error { { single parameter of type ' ( Int , Int ) ' is expected in call } } { { 19 - 19 = ( } } { { 23 - 23 = ) } } <nl> s . functionTuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> s . functionTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> <nl> - s . functionTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . functionTuple ( a , b ) / / expected - error { { single parameter of type ' ( Int , Int ) ' is expected in call } } { { 19 - 19 = ( } } { { 23 - 23 = ) } } <nl> s . functionTuple ( ( a , b ) ) <nl> s . functionTuple ( d ) <nl> } <nl> do { <nl> s . functionTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> s . functionTwo ( d ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . functionTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . functionTuple ( a , b ) / / expected - error { { single parameter of type ' ( Int , Int ) ' is expected in call } } { { 19 - 19 = ( } } { { 23 - 23 = ) } } <nl> s . functionTuple ( ( a , b ) ) <nl> s . functionTuple ( d ) <nl> } <nl> do { <nl> _ = InitTwo ( 3 , 4 ) <nl> _ = InitTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = InitTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = InitTuple ( 3 , 4 ) / / expected - error { { initializer expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> _ = InitTuple ( ( 3 , 4 ) ) <nl> <nl> _ = InitLabeledTuple ( x : 3 , 4 ) / / expected - error { { extra argument in call } } <nl> do { <nl> _ = InitTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = InitTwo ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = InitTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = InitTuple ( a , b ) / / expected - error { { initializer expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> _ = InitTuple ( ( a , b ) ) <nl> _ = InitTuple ( c ) <nl> } <nl> do { <nl> _ = InitTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = InitTwo ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = InitTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = InitTuple ( a , b ) / / expected - error { { initializer expects a single parameter of type ' ( Int , Int ) ' } } { { 17 - 17 = ( } } { { 21 - 21 = ) } } <nl> _ = InitTuple ( ( a , b ) ) <nl> _ = InitTuple ( c ) <nl> } <nl> do { <nl> _ = s1 [ ( 3 , 4 ) ] / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> let s2 = SubscriptTuple ( ) <nl> - _ = s2 [ 3 , 4 ] / / expected - error { { extra argument in call } } <nl> + _ = s2 [ 3 , 4 ] / / expected - error { { subscript expects a single parameter of type ' ( Int , Int ) ' } } { { 10 - 10 = ( } } { { 14 - 14 = ) } } <nl> _ = s2 [ ( 3 , 4 ) ] <nl> } <nl> <nl> do { <nl> _ = s1 [ d ] / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> let s2 = SubscriptTuple ( ) <nl> - _ = s2 [ a , b ] / / expected - error { { extra argument in call } } <nl> + _ = s2 [ a , b ] / / expected - error { { subscript expects a single parameter of type ' ( Int , Int ) ' } } { { 10 - 10 = ( } } { { 14 - 14 = ) } } <nl> _ = s2 [ ( a , b ) ] <nl> _ = s2 [ d ] <nl> <nl> do { <nl> _ = s1 [ d ] / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> var s2 = SubscriptTuple ( ) <nl> - _ = s2 [ a , b ] / / expected - error { { extra argument in call } } } <nl> + _ = s2 [ a , b ] / / expected - error { { subscript expects a single parameter of type ' ( Int , Int ) ' } } { { 10 - 10 = ( } } { { 14 - 14 = ) } } <nl> _ = s2 [ ( a , b ) ] <nl> _ = s2 [ d ] <nl> } <nl> do { <nl> _ = Enum . two ( 3 , 4 ) <nl> _ = Enum . two ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = Enum . tuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = Enum . tuple ( 3 , 4 ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> _ = Enum . tuple ( ( 3 , 4 ) ) <nl> <nl> _ = Enum . labeledTuple ( x : 3 , 4 ) / / expected - error { { extra argument in call } } <nl> do { <nl> _ = Enum . two ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = Enum . two ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = Enum . tuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = Enum . tuple ( a , b ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> _ = Enum . tuple ( ( a , b ) ) <nl> _ = Enum . tuple ( c ) <nl> } <nl> do { <nl> _ = Enum . two ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = Enum . two ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = Enum . tuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = Enum . tuple ( a , b ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> _ = Enum . tuple ( ( a , b ) ) <nl> _ = Enum . tuple ( c ) <nl> } <nl> do { <nl> s . genericTwo ( 3 . 0 , 4 . 0 ) <nl> s . genericTwo ( ( 3 . 0 , 4 . 0 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 18 - 18 = ( } } { { 26 - 26 = ) } } <nl> s . genericTuple ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> let sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . generic ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + sTwo . generic ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' generic ' expects a single parameter of type ' ( Double , Double ) ' } } { { 16 - 16 = ( } } { { 24 - 24 = ) } } <nl> sTwo . generic ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> sTwo . genericLabeled ( x : 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> do { <nl> s . genericTwo ( a , b ) <nl> s . genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( a , b ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> s . genericTuple ( ( a , b ) ) <nl> <nl> let sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . generic ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . generic ( a , b ) / / expected - error { { instance method ' generic ' expects a single parameter of type ' ( Double , Double ) ' } } { { 16 - 16 = ( } } { { 20 - 20 = ) } } <nl> sTwo . generic ( ( a , b ) ) <nl> sTwo . generic ( d ) <nl> } <nl> do { <nl> s . genericTwo ( a , b ) <nl> s . genericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . genericTuple ( a , b ) / / expected - error { { instance method ' genericTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 18 - 18 = ( } } { { 22 - 22 = ) } } <nl> s . genericTuple ( ( a , b ) ) <nl> <nl> var sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . generic ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . generic ( a , b ) / / expected - error { { instance method ' generic ' expects a single parameter of type ' ( Double , Double ) ' } } { { 16 - 16 = ( } } { { 20 - 20 = ) } } <nl> sTwo . generic ( ( a , b ) ) <nl> sTwo . generic ( d ) <nl> } <nl> do { <nl> s . mutatingGenericTwo ( 3 . 0 , 4 . 0 ) <nl> s . mutatingGenericTwo ( ( 3 . 0 , 4 . 0 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 26 - 26 = ( } } { { 34 - 34 = ) } } <nl> s . mutatingGenericTuple ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> var sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . mutatingGeneric ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + sTwo . mutatingGeneric ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' mutatingGeneric ' expects a single parameter of type ' ( Double , Double ) ' } } { { 24 - 24 = ( } } { { 32 - 32 = ) } } <nl> sTwo . mutatingGeneric ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> sTwo . mutatingGenericLabeled ( x : 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> do { <nl> s . mutatingGenericTwo ( a , b ) <nl> s . mutatingGenericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( a , b ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . mutatingGenericTuple ( ( a , b ) ) <nl> <nl> var sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . mutatingGeneric ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . mutatingGeneric ( a , b ) / / expected - error { { instance method ' mutatingGeneric ' expects a single parameter of type ' ( Double , Double ) ' } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> sTwo . mutatingGeneric ( ( a , b ) ) <nl> sTwo . mutatingGeneric ( d ) <nl> } <nl> do { <nl> s . mutatingGenericTwo ( a , b ) <nl> s . mutatingGenericTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . mutatingGenericTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . mutatingGenericTuple ( a , b ) / / expected - error { { instance method ' mutatingGenericTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . mutatingGenericTuple ( ( a , b ) ) <nl> <nl> var sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . mutatingGeneric ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . mutatingGeneric ( a , b ) / / expected - error { { instance method ' mutatingGeneric ' expects a single parameter of type ' ( Double , Double ) ' } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> sTwo . mutatingGeneric ( ( a , b ) ) <nl> sTwo . mutatingGeneric ( d ) <nl> } <nl> do { <nl> s . genericFunctionTwo ( 3 . 0 , 4 . 0 ) <nl> s . genericFunctionTwo ( ( 3 . 0 , 4 . 0 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericFunctionTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + s . genericFunctionTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { single parameter of type ' ( Double , Double ) ' is expected in call } } { { 26 - 26 = ( } } { { 34 - 34 = ) } } <nl> s . genericFunctionTuple ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> let sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . genericFunction ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + sTwo . genericFunction ( 3 . 0 , 4 . 0 ) / / expected - error { { single parameter of type ' ( Double , Double ) ' is expected in call } } { { 24 - 24 = ( } } { { 32 - 32 = ) } } <nl> sTwo . genericFunction ( ( 3 . 0 , 4 . 0 ) ) <nl> } <nl> <nl> do { <nl> s . genericFunctionTwo ( a , b ) <nl> s . genericFunctionTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericFunctionTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . genericFunctionTuple ( a , b ) / / expected - error { { single parameter of type ' ( Double , Double ) ' is expected in call } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . genericFunctionTuple ( ( a , b ) ) <nl> <nl> let sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . genericFunction ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . genericFunction ( a , b ) / / expected - error { { single parameter of type ' ( Double , Double ) ' is expected in call } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> sTwo . genericFunction ( ( a , b ) ) <nl> sTwo . genericFunction ( d ) <nl> } <nl> do { <nl> s . genericFunctionTwo ( a , b ) <nl> s . genericFunctionTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . genericFunctionTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . genericFunctionTuple ( a , b ) / / expected - error { { single parameter of type ' ( Double , Double ) ' is expected in call } } { { 26 - 26 = ( } } { { 30 - 30 = ) } } <nl> s . genericFunctionTuple ( ( a , b ) ) <nl> <nl> var sTwo = Generic < ( Double , Double ) > ( ) <nl> <nl> - sTwo . genericFunction ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . genericFunction ( a , b ) / / expected - error { { single parameter of type ' ( Double , Double ) ' is expected in call } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> sTwo . genericFunction ( ( a , b ) ) <nl> sTwo . genericFunction ( d ) <nl> } <nl> do { <nl> _ = GenericInitTwo ( 3 , 4 ) <nl> _ = GenericInitTwo ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple ( 3 , 4 ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> _ = GenericInitTuple ( ( 3 , 4 ) ) <nl> <nl> _ = GenericInitLabeledTuple ( x : 3 , 4 ) / / expected - error { { extra argument in call } } <nl> do { <nl> _ = GenericInitTwo < Int > ( 3 , 4 ) <nl> _ = GenericInitTwo < Int > ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple < Int > ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple < Int > ( 3 , 4 ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 29 - 29 = ( } } { { 33 - 33 = ) } } <nl> _ = GenericInitTuple < Int > ( ( 3 , 4 ) ) <nl> <nl> _ = GenericInitLabeledTuple < Int > ( x : 3 , 4 ) / / expected - error { { extra argument in call } } <nl> do { <nl> _ = GenericInitTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericInitTwo ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple ( a , b ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> _ = GenericInitTuple ( ( a , b ) ) <nl> _ = GenericInitTuple ( c ) <nl> } <nl> do { <nl> _ = GenericInitTwo < Int > ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericInitTwo < Int > ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple < Int > ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple < Int > ( a , b ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 29 - 29 = ( } } { { 33 - 33 = ) } } <nl> _ = GenericInitTuple < Int > ( ( a , b ) ) <nl> _ = GenericInitTuple < Int > ( c ) <nl> } <nl> do { <nl> _ = GenericInitTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericInitTwo ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple ( a , b ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 24 - 24 = ( } } { { 28 - 28 = ) } } <nl> _ = GenericInitTuple ( ( a , b ) ) <nl> _ = GenericInitTuple ( c ) <nl> } <nl> do { <nl> _ = GenericInitTwo < Int > ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericInitTwo < Int > ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericInitTuple < Int > ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericInitTuple < Int > ( a , b ) / / expected - error { { initializer expects a single parameter of type ' ( T , T ) ' } } { { 29 - 29 = ( } } { { 33 - 33 = ) } } <nl> _ = GenericInitTuple < Int > ( ( a , b ) ) <nl> _ = GenericInitTuple < Int > ( c ) <nl> } <nl> do { <nl> _ = s2 [ ( 3 . 0 , 4 . 0 ) ] / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> let s3 = GenericSubscriptTuple < Double > ( ) <nl> - _ = s3 [ 3 . 0 , 4 . 0 ] / / expected - error { { extra argument in call } } <nl> + _ = s3 [ 3 . 0 , 4 . 0 ] / / expected - error { { subscript expects a single parameter of type ' ( T , T ) ' } } { { 10 - 10 = ( } } { { 18 - 18 = ) } } <nl> _ = s3 [ ( 3 . 0 , 4 . 0 ) ] <nl> <nl> let s3a = GenericSubscriptLabeledTuple < Double > ( ) <nl> do { <nl> _ = s2 [ d ] / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> let s3 = GenericSubscriptTuple < Double > ( ) <nl> - _ = s3 [ a , b ] / / expected - error { { extra argument in call } } <nl> + _ = s3 [ a , b ] / / expected - error { { subscript expects a single parameter of type ' ( T , T ) ' } } { { 10 - 10 = ( } } { { 14 - 14 = ) } } <nl> _ = s3 [ ( a , b ) ] <nl> _ = s3 [ d ] <nl> } <nl> do { <nl> _ = s2 [ d ] / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> var s3 = GenericSubscriptTuple < Double > ( ) <nl> - _ = s3 [ a , b ] / / expected - error { { extra argument in call } } <nl> + _ = s3 [ a , b ] / / expected - error { { subscript expects a single parameter of type ' ( T , T ) ' } } { { 10 - 10 = ( } } { { 14 - 14 = ) } } <nl> _ = s3 [ ( a , b ) ] <nl> _ = s3 [ d ] <nl> } <nl> do { <nl> _ = GenericEnum . two ( 3 , 4 ) <nl> _ = GenericEnum . two ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum . tuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum . tuple ( 3 , 4 ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( _ , _ ) ' } } { { 25 - 25 = ( } } { { 29 - 29 = ) } } <nl> _ = GenericEnum . tuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> - _ = GenericEnum < ( Int , Int ) > . one ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum < ( Int , Int ) > . one ( 3 , 4 ) / / expected - error { { enum element ' one ' expects a single parameter of type ' ( Int , Int ) ' } } { { 35 - 35 = ( } } { { 39 - 39 = ) } } <nl> _ = GenericEnum < ( Int , Int ) > . one ( ( 3 , 4 ) ) <nl> <nl> _ = GenericEnum < ( Int , Int ) > . labeled ( x : 3 , 4 ) / / expected - error { { extra argument in call } } <nl> do { <nl> _ = GenericEnum < Int > . two ( 3 , 4 ) <nl> _ = GenericEnum < Int > . two ( ( 3 , 4 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum < Int > . tuple ( 3 , 4 ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum < Int > . tuple ( 3 , 4 ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 30 - 30 = ( } } { { 34 - 34 = ) } } <nl> _ = GenericEnum < Int > . tuple ( ( 3 , 4 ) ) <nl> } <nl> <nl> do { <nl> _ = GenericEnum . two ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericEnum . two ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum . tuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum . tuple ( a , b ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( _ , _ ) ' } } { { 25 - 25 = ( } } { { 29 - 29 = ) } } <nl> _ = GenericEnum . tuple ( ( a , b ) ) <nl> _ = GenericEnum . tuple ( c ) <nl> } <nl> do { <nl> let b = 4 <nl> let c = ( a , b ) <nl> <nl> - _ = GenericEnum < ( Int , Int ) > . one ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum < ( Int , Int ) > . one ( a , b ) / / expected - error { { enum element ' one ' expects a single parameter of type ' ( Int , Int ) ' } } { { 35 - 35 = ( } } { { 39 - 39 = ) } } <nl> _ = GenericEnum < ( Int , Int ) > . one ( ( a , b ) ) <nl> _ = GenericEnum < ( Int , Int ) > . one ( c ) <nl> <nl> do { <nl> _ = GenericEnum < Int > . two ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericEnum < Int > . two ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum < Int > . tuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum < Int > . tuple ( a , b ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 30 - 30 = ( } } { { 34 - 34 = ) } } <nl> _ = GenericEnum < Int > . tuple ( ( a , b ) ) <nl> _ = GenericEnum < Int > . tuple ( c ) <nl> } <nl> do { <nl> _ = GenericEnum . two ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericEnum . two ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum . tuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum . tuple ( a , b ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( _ , _ ) ' } } { { 25 - 25 = ( } } { { 29 - 29 = ) } } <nl> _ = GenericEnum . tuple ( ( a , b ) ) <nl> _ = GenericEnum . tuple ( c ) <nl> } <nl> do { <nl> var b = 4 <nl> var c = ( a , b ) <nl> <nl> - _ = GenericEnum < ( Int , Int ) > . one ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum < ( Int , Int ) > . one ( a , b ) / / expected - error { { enum element ' one ' expects a single parameter of type ' ( Int , Int ) ' } } { { 35 - 35 = ( } } { { 39 - 39 = ) } } <nl> _ = GenericEnum < ( Int , Int ) > . one ( ( a , b ) ) <nl> _ = GenericEnum < ( Int , Int ) > . one ( c ) <nl> <nl> do { <nl> _ = GenericEnum < Int > . two ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> _ = GenericEnum < Int > . two ( c ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - _ = GenericEnum < Int > . tuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + _ = GenericEnum < Int > . tuple ( a , b ) / / expected - error { { enum element ' tuple ' expects a single parameter of type ' ( Int , Int ) ' } } { { 30 - 30 = ( } } { { 34 - 34 = ) } } <nl> _ = GenericEnum < Int > . tuple ( ( a , b ) ) <nl> _ = GenericEnum < Int > . tuple ( c ) <nl> } <nl> do { <nl> s . requirementTwo ( 3 . 0 , 4 . 0 ) <nl> s . requirementTwo ( ( 3 . 0 , 4 . 0 ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . requirementTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + s . requirementTuple ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' requirementTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 22 - 22 = ( } } { { 30 - 30 = ) } } <nl> s . requirementTuple ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> let sTwo = GenericConforms < ( Double , Double ) > ( ) <nl> <nl> - sTwo . requirement ( 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> + sTwo . requirement ( 3 . 0 , 4 . 0 ) / / expected - error { { instance method ' requirement ' expects a single parameter of type ' ( Double , Double ) ' } } { { 20 - 20 = ( } } { { 28 - 28 = ) } } <nl> sTwo . requirement ( ( 3 . 0 , 4 . 0 ) ) <nl> <nl> sTwo . requirementLabeled ( x : 3 . 0 , 4 . 0 ) / / expected - error { { extra argument in call } } <nl> do { <nl> s . requirementTwo ( a , b ) <nl> s . requirementTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . requirementTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . requirementTuple ( a , b ) / / expected - error { { instance method ' requirementTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 22 - 22 = ( } } { { 26 - 26 = ) } } <nl> s . requirementTuple ( ( a , b ) ) <nl> <nl> let sTwo = GenericConforms < ( Double , Double ) > ( ) <nl> <nl> - sTwo . requirement ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . requirement ( a , b ) / / expected - error { { instance method ' requirement ' expects a single parameter of type ' ( Double , Double ) ' } } { { 20 - 20 = ( } } { { 24 - 24 = ) } } <nl> sTwo . requirement ( ( a , b ) ) <nl> sTwo . requirement ( d ) <nl> } <nl> do { <nl> s . requirementTwo ( a , b ) <nl> s . requirementTwo ( ( a , b ) ) / / expected - error { { missing argument for parameter # 2 in call } } <nl> <nl> - s . requirementTuple ( a , b ) / / expected - error { { extra argument in call } } <nl> + s . requirementTuple ( a , b ) / / expected - error { { instance method ' requirementTuple ' expects a single parameter of type ' ( Double , Double ) ' } } { { 22 - 22 = ( } } { { 26 - 26 = ) } } <nl> s . requirementTuple ( ( a , b ) ) <nl> <nl> var sTwo = GenericConforms < ( Double , Double ) > ( ) <nl> <nl> - sTwo . requirement ( a , b ) / / expected - error { { extra argument in call } } <nl> + sTwo . requirement ( a , b ) / / expected - error { { instance method ' requirement ' expects a single parameter of type ' ( Double , Double ) ' } } { { 20 - 20 = ( } } { { 24 - 24 = ) } } <nl> sTwo . requirement ( ( a , b ) ) <nl> sTwo . requirement ( d ) <nl> } <nl> func processArrayOfFunctions ( f1 : [ ( ( Bool , Bool ) ) - > ( ) ] , <nl> f1 . forEach { block in <nl> block ( p ) <nl> block ( ( c , c ) ) <nl> - block ( c , c ) / / expected - error { { extra argument in call } } <nl> + block ( c , c ) / / expected - error { { parameter ' block ' expects a single parameter of type ' ( Bool , Bool ) ' } } { { 11 - 11 = ( } } { { 15 - 15 = ) } } <nl> } <nl> <nl> f2 . forEach { block in <nl> mmm a / test / Misc / misc_diagnostics . swift <nl> ppp b / test / Misc / misc_diagnostics . swift <nl> func test17875634 ( ) { <nl> <nl> match + = coord / / expected - error { { argument type ' @ lvalue ( Int , Int ) ' does not conform to expected type ' Sequence ' } } <nl> <nl> - match . append ( row , col ) / / expected - error { { extra argument in call } } <nl> + match . append ( row , col ) / / expected - error { { instance method ' append ' expects a single parameter of type ' ( Int , Int ) ' } } { { 16 - 16 = ( } } { { 24 - 24 = ) } } <nl> <nl> - match . append ( 1 , 2 ) / / expected - error { { extra argument in call } } <nl> + match . append ( 1 , 2 ) / / expected - error { { instance method ' append ' expects a single parameter of type ' ( Int , Int ) ' } } { { 16 - 16 = ( } } { { 20 - 20 = ) } } <nl> <nl> match . append ( coord ) <nl> match . append ( ( 1 , 2 ) ) <nl> func test17875634 ( ) { <nl> func append ( _ p : ( Int , Int ) ) { } <nl> } <nl> let a2 = FakeNonGenericArray ( ) <nl> - a2 . append ( row , col ) / / expected - error { { extra argument in call } } <nl> - a2 . append ( 1 , 2 ) / / expected - error { { extra argument in call } } <nl> + a2 . append ( row , col ) / / expected - error { { instance method ' append ' expects a single parameter of type ' ( Int , Int ) ' } } { { 13 - 13 = ( } } { { 21 - 21 = ) } } <nl> + a2 . append ( 1 , 2 ) / / expected - error { { instance method ' append ' expects a single parameter of type ' ( Int , Int ) ' } } { { 13 - 13 = ( } } { { 17 - 17 = ) } } <nl> a2 . append ( coord ) <nl> a2 . append ( ( 1 , 2 ) ) <nl> } <nl> func tuple_splat2 ( _ q : ( a : Int , b : Int ) ) { <nl> let y = ( 1 , b : 2 ) <nl> tuple_splat2 ( y ) / / Ok <nl> tuple_splat2 ( ( 1 , b : 2 ) ) / / Ok . <nl> - tuple_splat2 ( 1 , b : 2 ) / / expected - error { { extra argument ' b ' in call } } <nl> + tuple_splat2 ( 1 , b : 2 ) / / expected - error { { global function ' tuple_splat2 ' expects a single parameter of type ' ( a : Int , b : Int ) ' } } { { 16 - 16 = ( } } { { 23 - 23 = ) } } <nl> } <nl> <nl> / / SR - 1612 : Type comparison of foreign types is always true . <nl>
|
[ QoI ] Extend single tuple parameter diagnostics to function / subscript calls
|
apple/swift
|
ead1447aa1a1243266207818eee88eee0c7a367a
|
2017-05-16T01:41:41Z
|
mmm a / README . md <nl> ppp b / README . md <nl> Ninja : <nl> <nl> utils / build - script - r - t <nl> <nl> - # # Developing Swift in Xcode <nl> + # # # Development Environment <nl> <nl> - ` build - script ` can also generate Xcode projects : <nl> + There are two primary build options to use with CMake , xcodebuild or Ninja . <nl> + xcodebuild integrates nicely with Xcode . app , but Ninja is a bit faster and <nl> + supports more environments . <nl> + <nl> + To build using Xcode , run : <nl> <nl> utils / build - script - x <nl> <nl> The Xcode IDE can be used to edit the Swift source code , but it is not currently <nl> fully supported as a build environment for SDKs other than macOS . If you need to <nl> work with other SDKs , you ' ll need to create a second build using Ninja . <nl> <nl> + To build using Ninja , run : <nl> + <nl> + utils / build - script - R - - debug - swift <nl> + <nl> + This will build LLVM + Clang with optimizations and no debug symbols , but will <nl> + build swift with debug symbols . This is a good starting point since the debugger <nl> + will work in the swift code base , and the tests will run faster . <nl> + <nl> + # # # # Build Products <nl> + <nl> + All of the build products are placed in ` swift - source / build / $ { TOOL } - $ { MODE } / $ { PRODUCT } - $ { PLATFORM } / ` . <nl> + If macOS swift with Ninja in DebugAssert mode was built , all of the products <nl> + would be in ` swift - source / build / Ninja - DebugAssert / swift - macosx - x86_64 / ` . It <nl> + helps to save this directory as an environment variable for future use . <nl> + <nl> + export SWIFT_BUILD_ROOT = " ~ / swift - source / build / Ninja - DebugAssert / swift - macosx - x86_64 " <nl> + <nl> + # # # # Ninja <nl> + <nl> + Once the first build has been finished with ` build - script ` , ninja can perform <nl> + fast incremental builds of various products . <nl> + <nl> + cd $ { SWIFT_BUILD_ROOT } <nl> + ninja swift <nl> + ninja swift - stdlib <nl> + <nl> + These incremental builds are a big timesaver when developing and debugging . It <nl> + is still always a good idea to do a full build after using ` update - checkout ` . <nl> + Building the ` swift - stdlib ` target as an additional layer of testing from time <nl> + to time is also a good idea . <nl> + <nl> + # # # # Xcode <nl> + <nl> + To open the swift in Xcode , open ` $ { SWIFT_BUILD_ROOT } / Swift . xcodeproj ` . It will <nl> + auto - create a * lot * of schemes for all of the available targets . A common debug <nl> + flow would involve : <nl> + <nl> + - Select the ‘ swift ’ scheme <nl> + - Pull up the scheme editor ( ⌘ + ⇧ + < ) <nl> + - Select the ‘ Arguments ’ tab and click the ‘ + ’ <nl> + - Add the command line options <nl> + - Close the scheme editor <nl> + - Build and run <nl> + <nl> + # # # Build Failures <nl> + <nl> + Make sure you are using the latest release of Xcode to build , including Betas . <nl> + If you have changed Xcode versions but still encounter errors that appear to <nl> + be related to the Xcode version , try passing ` - - - - rebuild ` to ` build - script ` . <nl> + <nl> + Make sure all repositories are up to date with the ` update - checkout ` command <nl> + described above . <nl> + <nl> # # Testing Swift <nl> <nl> See [ docs / Testing . md ] ( docs / Testing . md ) . <nl>
|
Expand options on building Swift
|
apple/swift
|
e0d53198c99ddcbd861cb48fc0516852586defee
|
2017-08-14T23:23:43Z
|
mmm a / flow / Profiler . actor . cpp <nl> ppp b / flow / Profiler . actor . cpp <nl> <nl> <nl> extern volatile thread_local int profilingEnabled ; <nl> <nl> - static uint64_t gettid ( ) { return syscall ( __NR_gettid ) ; } <nl> + static uint64_t sys_gettid ( ) { return syscall ( __NR_gettid ) ; } <nl> <nl> struct SignalClosure { <nl> void ( * func ) ( int , siginfo_t * , void * , void * ) ; <nl> struct Profiler { <nl> sev . sigev_notify = SIGEV_THREAD_ID ; <nl> sev . sigev_signo = SIGPROF ; <nl> sev . sigev_value . sival_ptr = & ( self - > signalClosure ) ; <nl> - sev . _sigev_un . _tid = gettid ( ) ; <nl> + sev . _sigev_un . _tid = sys_gettid ( ) ; <nl> if ( timer_create ( CLOCK_THREAD_CPUTIME_ID , & sev , & self - > periodicTimer ) ! = 0 ) { <nl> TraceEvent ( SevWarn , " FailedToCreateProfilingTimer " ) . GetLastError ( ) ; <nl> return Void ( ) ; <nl> void startProfiling ( INetwork * network , Optional < int > maybePeriod / * = { } * / , Optio <nl> const char * outfn = getenv ( " FLOW_PROFILER_OUTPUT " ) ; <nl> outputFile = ( outfn ? outfn : " profile . bin " ) ; <nl> } <nl> - outputFile = findAndReplace ( findAndReplace ( findAndReplace ( outputFile , " % ADDRESS % " , findAndReplace ( network - > getLocalAddress ( ) . toString ( ) , " : " , " . " ) ) , " % PID % " , format ( " % d " , getpid ( ) ) ) , " % TID % " , format ( " % llx " , ( long long ) gettid ( ) ) ) ; <nl> + outputFile = findAndReplace ( findAndReplace ( findAndReplace ( outputFile , " % ADDRESS % " , findAndReplace ( network - > getLocalAddress ( ) . toString ( ) , " : " , " . " ) ) , " % PID % " , format ( " % d " , getpid ( ) ) ) , " % TID % " , format ( " % llx " , ( long long ) sys_gettid ( ) ) ) ; <nl> <nl> if ( ! Profiler : : active_profiler ) <nl> Profiler : : active_profiler = new Profiler ( period , outputFile , network ) ; <nl>
|
Merge pull request from Ma27 / fix - glibc230 - build
|
apple/foundationdb
|
2bc5b2cf8a7560b0214fa617062ebe182e09c826
|
2020-01-24T04:21:32Z
|
mmm a / jstests / replsets / rollback2 . js <nl> ppp b / jstests / replsets / rollback2 . js <nl> function doInitialWrites ( db ) { <nl> t . insert ( { q : 3 , bb : 9 , a : " foo " } ) ; <nl> t . insert ( { q : 40 , a : 1 } ) ; <nl> t . insert ( { q : 40 , a : 2 } ) ; <nl> - i . insert ( { q : 70 , txt : ' willremove ' } ) ; <nl> + t . insert ( { q : 70 , txt : ' willremove ' } ) ; <nl> } <nl> <nl> / * these writes on one primary only and will be rolled back . * / <nl>
|
fix
|
mongodb/mongo
|
9701370edf60e8864403a21e4fc357552e84ccd2
|
2010-08-03T17:04:17Z
|
mmm a / src / searchengine / search . qrc <nl> ppp b / src / searchengine / search . qrc <nl> <nl> < file > nova / engines / isohunt . py < / file > <nl> < file > nova / engines / kickasstorrents . png < / file > <nl> < file > nova / engines / kickasstorrents . py < / file > <nl> - < file > nova / engines / limetorrents . py < / file > <nl> < file > nova / engines / mininova . png < / file > <nl> < file > nova / engines / mininova . py < / file > <nl> < file > nova / engines / piratebay . png < / file > <nl>
|
Small build fix
|
qbittorrent/qBittorrent
|
312263da49c648e10046e3dbaa10b75fca5b7563
|
2012-09-15T14:47:30Z
|
mmm a / tools / depends / native / libjpeg - turbo - native / Makefile <nl> ppp b / tools / depends / native / libjpeg - turbo - native / Makefile <nl> DEPS = . . / . . / Makefile . include . in Makefile <nl> <nl> # lib name , version <nl> LIBNAME = libjpeg - turbo <nl> - VERSION = 1 . 4 . 2 <nl> + VERSION = 1 . 5 . 1 <nl> SOURCE = $ ( LIBNAME ) - $ ( VERSION ) <nl> ARCHIVE = $ ( LIBNAME ) - $ ( VERSION ) . tar . gz <nl> # configuration settings <nl> mmm a / tools / depends / target / libjpeg - turbo / Makefile <nl> ppp b / tools / depends / target / libjpeg - turbo / Makefile <nl> DEPS = . . / . . / Makefile . include Makefile <nl> <nl> # lib name , version <nl> LIBNAME = libjpeg - turbo <nl> - VERSION = 1 . 4 . 2 <nl> + VERSION = 1 . 5 . 1 <nl> SOURCE = $ ( LIBNAME ) - $ ( VERSION ) <nl> ARCHIVE = $ ( LIBNAME ) - $ ( VERSION ) . tar . gz <nl> # configuration settings <nl>
|
Merge pull request from MartijnKaijser / libjpgturbo_update
|
xbmc/xbmc
|
b82100898318cbc67eeb427369045969270821b1
|
2016-12-17T07:25:55Z
|
mmm a / tools / depends / native / TexturePacker / src / xwinapi . h <nl> ppp b / tools / depends / native / TexturePacker / src / xwinapi . h <nl> <nl> - # ifndef XWINAPI_H__ <nl> - # define XWINAPI_H__ <nl> - <nl> + # pragma once <nl> / * <nl> * Copyright ( C ) 2005 - 2013 Team XBMC <nl> * http : / / xbmc . org <nl> <nl> * < http : / / www . gnu . org / licenses / > . <nl> * <nl> * / <nl> - <nl> # include " PlatformDefs . h " <nl> <nl> LPTSTR GetCommandLine ( ) ; <nl> DWORD GetCurrentDirectory ( DWORD nBufferLength , LPTSTR lpBuffer ) ; <nl> - BOOL SetCurrentDirectory ( LPCTSTR lpPathName ) ; <nl> + int SetCurrentDirectory ( LPCTSTR lpPathName ) ; <nl> DWORD GetLastError ( ) ; <nl> - # endif / / XWINAPI_H__ <nl> - <nl> mmm a / xbmc / cores / AudioEngine / Sinks / AESinkDARWINIOS . mm <nl> ppp b / xbmc / cores / AudioEngine / Sinks / AESinkDARWINIOS . mm <nl> <nl> <nl> # include " cores / AudioEngine / Sinks / AESinkDARWINIOS . h " <nl> <nl> - # define BOOL XBMC_BOOL <nl> # include " cores / AudioEngine / Utils / AEUtil . h " <nl> # include " cores / AudioEngine / Utils / AERingBuffer . h " <nl> # include " cores / AudioEngine / Sinks / osx / CoreAudioHelpers . h " <nl> <nl> # include " utils / StringUtils . h " <nl> # include " threads / Condition . h " <nl> # include " windowing / WindowingFactory . h " <nl> - # undef BOOL <nl> <nl> # include < sstream > <nl> # include < AudioToolbox / AudioToolbox . h > <nl> mmm a / xbmc / cores / DllLoader / DllLoader . cpp <nl> ppp b / xbmc / cores / DllLoader / DllLoader . cpp <nl> extern " C " FILE * fopen_utf8 ( const char * _Filename , const char * _Mode ) ; <nl> # endif <nl> <nl> / / Entry point of a dll ( DllMain ) <nl> - typedef BOOL ( APIENTRY * EntryFunc ) ( HINSTANCE hinstDLL , DWORD fdwReason , LPVOID lpvReserved ) ; <nl> + typedef int ( APIENTRY * EntryFunc ) ( HINSTANCE hinstDLL , DWORD fdwReason , LPVOID lpvReserved ) ; <nl> <nl> <nl> # ifdef TARGET_POSIX <nl> mmm a / xbmc / cores / DllLoader / dll . cpp <nl> ppp b / xbmc / cores / DllLoader / dll . cpp <nl> extern " C " HMODULE __stdcall dllLoadLibraryExA ( LPCSTR lpLibFileName , HANDLE hFil <nl> return dllLoadLibraryExExtended ( lpLibFileName , hFile , dwFlags , NULL ) ; <nl> } <nl> <nl> - extern " C " BOOL __stdcall dllFreeLibrary ( HINSTANCE hLibModule ) <nl> + extern " C " int __stdcall dllFreeLibrary ( HINSTANCE hLibModule ) <nl> { <nl> LibraryLoader * dllhandle = DllLoaderContainer : : GetModule ( hLibModule ) ; <nl> <nl> extern " C " HMODULE WINAPI dllGetModuleHandleA ( LPCSTR lpModuleName ) <nl> <nl> CLog : : Log ( LOGDEBUG , " GetModuleHandleA ( ' % s ' ) failed " , lpModuleName ) ; <nl> return NULL ; <nl> - } <nl> \ No newline at end of file <nl> + } <nl> mmm a / xbmc / cores / DllLoader / dll . h <nl> ppp b / xbmc / cores / DllLoader / dll . h <nl> extern " C " HMODULE __stdcall dllLoadLibraryExtended ( LPCSTR file , LPCSTR sourcedl <nl> extern " C " HMODULE __stdcall dllLoadLibraryA ( LPCSTR file ) ; <nl> extern " C " HMODULE __stdcall dllLoadLibraryExExtended ( LPCSTR lpLibFileName , HANDLE hFile , DWORD dwFlags , LPCSTR sourcedll ) ; <nl> extern " C " HMODULE __stdcall dllLoadLibraryExA ( LPCSTR lpLibFileName , HANDLE hFile , DWORD dwFlags ) ; <nl> - extern " C " BOOL __stdcall dllFreeLibrary ( HINSTANCE hLibModule ) ; <nl> + extern " C " int __stdcall dllFreeLibrary ( HINSTANCE hLibModule ) ; <nl> extern " C " FARPROC __stdcall dllGetProcAddress ( HMODULE hModule , LPCSTR function ) ; <nl> extern " C " HMODULE WINAPI dllGetModuleHandleA ( LPCSTR lpModuleName ) ; <nl> <nl> mmm a / xbmc / cores / DllLoader / dll_tracker_library . cpp <nl> ppp b / xbmc / cores / DllLoader / dll_tracker_library . cpp <nl> extern " C " HMODULE __stdcall track_LoadLibraryExA ( LPCSTR lpLibFileName , HANDLE h <nl> return hHandle ; <nl> } <nl> <nl> - extern " C " BOOL __stdcall track_FreeLibrary ( HINSTANCE hLibModule ) <nl> + extern " C " int __stdcall track_FreeLibrary ( HINSTANCE hLibModule ) <nl> { <nl> uintptr_t loc = ( uintptr_t ) _ReturnAddress ( ) ; <nl> <nl> extern " C " BOOL __stdcall track_FreeLibrary ( HINSTANCE hLibModule ) <nl> <nl> return dllFreeLibrary ( hLibModule ) ; <nl> } <nl> - <nl> - <nl> mmm a / xbmc / cores / DllLoader / dll_tracker_library . h <nl> ppp b / xbmc / cores / DllLoader / dll_tracker_library . h <nl> extern " C " void tracker_library_free_all ( DllTrackInfo * pInfo ) ; <nl> <nl> extern " C " HMODULE __stdcall track_LoadLibraryA ( LPCSTR file ) ; <nl> extern " C " HMODULE __stdcall track_LoadLibraryExA ( LPCSTR lpLibFileName , HANDLE hFile , DWORD dwFlags ) ; <nl> - extern " C " BOOL __stdcall track_FreeLibrary ( HINSTANCE hLibModule ) ; <nl> - <nl> + extern " C " int __stdcall track_FreeLibrary ( HINSTANCE hLibModule ) ; <nl> mmm a / xbmc / cores / ExternalPlayer / ExternalPlayer . cpp <nl> ppp b / xbmc / cores / ExternalPlayer / ExternalPlayer . cpp <nl> void CExternalPlayer : : Process ( ) <nl> <nl> m_callback . OnPlayBackStarted ( ) ; <nl> <nl> - BOOL ret = TRUE ; <nl> + bool ret = true ; <nl> # if defined ( TARGET_WINDOWS ) <nl> ret = ExecuteAppW32 ( strFName . c_str ( ) , strFArgs . c_str ( ) ) ; <nl> # elif defined ( TARGET_ANDROID ) <nl> void CExternalPlayer : : Process ( ) <nl> } <nl> <nl> # if defined ( TARGET_WINDOWS ) <nl> - BOOL CExternalPlayer : : ExecuteAppW32 ( const char * strPath , const char * strSwitches ) <nl> + bool CExternalPlayer : : ExecuteAppW32 ( const char * strPath , const char * strSwitches ) <nl> { <nl> CLog : : Log ( LOGNOTICE , " % s : % s % s " , __FUNCTION__ , strPath , strSwitches ) ; <nl> <nl> BOOL CExternalPlayer : : ExecuteAppW32 ( const char * strPath , const char * strSwitches <nl> CloseHandle ( m_processInfo . hProcess ) ; <nl> m_processInfo . hProcess = 0 ; <nl> } <nl> - <nl> - return ret ; <nl> + return ( ret = = 0 ) ; <nl> } <nl> # endif <nl> <nl> # if ! defined ( TARGET_ANDROID ) & & ( defined ( TARGET_POSIX ) | | defined ( TARGET_DARWIN_OSX ) ) <nl> - BOOL CExternalPlayer : : ExecuteAppLinux ( const char * strSwitches ) <nl> + bool CExternalPlayer : : ExecuteAppLinux ( const char * strSwitches ) <nl> { <nl> CLog : : Log ( LOGNOTICE , " % s : % s " , __FUNCTION__ , strSwitches ) ; <nl> <nl> BOOL CExternalPlayer : : ExecuteAppLinux ( const char * strSwitches ) <nl> CLog : : Log ( LOGNOTICE , " % s : Failure : % d " , __FUNCTION__ , ret ) ; <nl> } <nl> <nl> - return ret = = 0 ; <nl> + return ( ret = = 0 ) ; <nl> } <nl> # endif <nl> <nl> # if defined ( TARGET_ANDROID ) <nl> - BOOL CExternalPlayer : : ExecuteAppAndroid ( const char * strSwitches , const char * strPath ) <nl> + bool CExternalPlayer : : ExecuteAppAndroid ( const char * strSwitches , const char * strPath ) <nl> { <nl> CLog : : Log ( LOGNOTICE , " % s : % s " , __FUNCTION__ , strSwitches ) ; <nl> <nl> BOOL CExternalPlayer : : ExecuteAppAndroid ( const char * strSwitches , const char * strP <nl> CLog : : Log ( LOGNOTICE , " % s : Failure " , __FUNCTION__ ) ; <nl> } <nl> <nl> - return ret ; <nl> + return ( ret = = 0 ) ; <nl> } <nl> # endif <nl> <nl> mmm a / xbmc / cores / ExternalPlayer / ExternalPlayer . h <nl> ppp b / xbmc / cores / ExternalPlayer / ExternalPlayer . h <nl> class CExternalPlayer : public IPlayer , public CThread <nl> virtual void SetSpeed ( float iSpeed ) override ; <nl> virtual float GetSpeed ( ) override ; <nl> virtual void DoAudioWork ( ) override { } <nl> - <nl> + <nl> virtual std : : string GetPlayerState ( ) override ; <nl> virtual bool SetPlayerState ( const std : : string & state ) override ; <nl> - <nl> + <nl> # if defined ( TARGET_WINDOWS ) <nl> - BOOL ExecuteAppW32 ( const char * strPath , const char * strSwitches ) ; <nl> + bool ExecuteAppW32 ( const char * strPath , const char * strSwitches ) ; <nl> / / static void CALLBACK AppFinished ( void * closure , BOOLEAN TimerOrWaitFired ) ; <nl> # elif defined ( TARGET_ANDROID ) <nl> - BOOL ExecuteAppAndroid ( const char * strSwitches , const char * strPath ) ; <nl> + bool ExecuteAppAndroid ( const char * strSwitches , const char * strPath ) ; <nl> # elif defined ( TARGET_POSIX ) <nl> - BOOL ExecuteAppLinux ( const char * strSwitches ) ; <nl> + bool ExecuteAppLinux ( const char * strSwitches ) ; <nl> # endif <nl> <nl> private : <nl> class CExternalPlayer : public IPlayer , public CThread <nl> int m_totalTime ; <nl> int m_time ; <nl> std : : string m_launchFilename ; <nl> - HWND m_hwndXbmc ; <nl> + HWND m_hwndXbmc ; <nl> # if defined ( TARGET_WINDOWS ) <nl> POINT m_ptCursorpos ; <nl> PROCESS_INFORMATION m_processInfo ; <nl> - # endif <nl> + # endif <nl> CGUIDialogOK * m_dialog ; <nl> int m_xPos ; <nl> int m_yPos ; <nl> mmm a / xbmc / cores / omxplayer / OMXAudio . h <nl> ppp b / xbmc / cores / omxplayer / OMXAudio . h <nl> typedef struct tGUID <nl> BYTE Data4 [ 8 ] ; <nl> } __attribute__ ( ( __packed__ ) ) GUID ; <nl> <nl> + / / Audio stuff <nl> + typedef struct tWAVEFORMATEX <nl> + { <nl> + WORD wFormatTag ; <nl> + WORD nChannels ; <nl> + DWORD nSamplesPerSec ; <nl> + DWORD nAvgBytesPerSec ; <nl> + WORD nBlockAlign ; <nl> + WORD wBitsPerSample ; <nl> + WORD cbSize ; <nl> + } __attribute__ ( ( __packed__ ) ) WAVEFORMATEX , * PWAVEFORMATEX , * LPWAVEFORMATEX ; <nl> + <nl> + # define WAVE_FORMAT_UNKNOWN 0x0000 <nl> + # define WAVE_FORMAT_PCM 0x0001 <nl> + # define WAVE_FORMAT_ADPCM 0x0002 <nl> + # define WAVE_FORMAT_IEEE_FLOAT 0x0003 <nl> + # define WAVE_FORMAT_EXTENSIBLE 0xFFFE <nl> + <nl> typedef struct tWAVEFORMATEXTENSIBLE <nl> { <nl> WAVEFORMATEX Format ; <nl> class COMXAudio <nl> <nl> CCriticalSection m_critSection ; <nl> } ; <nl> - <nl> mmm a / xbmc / filesystem / iso9660 . cpp <nl> ppp b / xbmc / filesystem / iso9660 . cpp <nl> struct iso_dirtree * iso9660 : : ReadRecursiveDirFromSector ( DWORD sector , const cha <nl> if ( ! pCurr_dir_cache ) <nl> return NULL ; <nl> <nl> - BOOL bResult = : : ReadFile ( m_info . ISO_HANDLE , pCurr_dir_cache , wSectorSize , & lpNumberOfBytesRead , NULL ) ; <nl> + int bResult = : : ReadFile ( m_info . ISO_HANDLE , pCurr_dir_cache , wSectorSize , & lpNumberOfBytesRead , NULL ) ; <nl> if ( ! bResult | | lpNumberOfBytesRead ! = wSectorSize ) <nl> { <nl> CLog : : Log ( LOGERROR , " % s : unable to read " , __FUNCTION__ ) ; <nl> void iso9660 : : Scan ( ) <nl> DWORD lpNumberOfBytesRead ; <nl> char * pCurr_dir_cache = ( char * ) malloc ( 16 * wSectorSize ) ; <nl> iso9660_Directory isodir ; <nl> - BOOL bResult = : : ReadFile ( m_info . ISO_HANDLE , pCurr_dir_cache , wSectorSize , & lpNumberOfBytesRead , NULL ) ; <nl> + int bResult = : : ReadFile ( m_info . ISO_HANDLE , pCurr_dir_cache , wSectorSize , & lpNumberOfBytesRead , NULL ) ; <nl> memcpy ( & isodir , pCurr_dir_cache , sizeof ( isodir ) ) ; <nl> <nl> int iso9660searchpointer = 0 ; <nl> mmm a / xbmc / guilib / CMakeLists . txt <nl> ppp b / xbmc / guilib / CMakeLists . txt <nl> <nl> set ( SOURCES DDSImage . cpp <nl> - DirectXGraphics . cpp <nl> DirtyRegionSolvers . cpp <nl> DirtyRegionTracker . cpp <nl> FFmpegImage . cpp <nl> set ( SOURCES DDSImage . cpp <nl> XBTFReader . cpp ) <nl> <nl> set ( HEADERS DDSImage . h <nl> - DirectXGraphics . h <nl> DirtyRegion . h <nl> DirtyRegionSolvers . h <nl> DirtyRegionTracker . h <nl> endif ( ) <nl> <nl> if ( CORE_SYSTEM_NAME STREQUAL windows ) <nl> list ( APPEND SOURCES D3DResource . cpp <nl> + DirectXGraphics . cpp <nl> GUIFontTTFDX . cpp <nl> GUIShaderDX . cpp <nl> GUITextureD3D . cpp <nl> TextureDX . cpp ) <nl> list ( APPEND HEADERS D3DResource . h <nl> + DirectXGraphics . h <nl> GUIFontTTFDX . h <nl> GUIShaderDX . h <nl> GUITextureD3D . h <nl> mmm a / xbmc / linux / PlatformDefs . h <nl> ppp b / xbmc / linux / PlatformDefs . h <nl> typedef unsigned short WORD ; <nl> typedef unsigned char BYTE ; <nl> typedef char CHAR ; <nl> typedef wchar_t WCHAR ; <nl> - typedef int BOOL ; <nl> typedef int INT ; <nl> typedef unsigned int UINT ; <nl> / / typedef int INT32 ; / / unused ; must match Xmd . h but why bother <nl> typedef intptr_t ( * FARPROC ) ( void ) ; <nl> <nl> typedef DWORD LCID ; <nl> typedef WORD * LPWORD ; <nl> - typedef BOOL * LPBOOL ; <nl> typedef CHAR * LPCHAR ; <nl> typedef CHAR * PCHAR ; <nl> typedef const void * LPCVOID ; <nl> typedef struct _WIN32_FIND_DATA <nl> typedef struct _SECURITY_ATTRIBUTES { <nl> DWORD nLength ; <nl> LPVOID lpSecurityDescriptor ; <nl> - BOOL bInheritHandle ; <nl> + int bInheritHandle ; <nl> } SECURITY_ATTRIBUTES , * PSECURITY_ATTRIBUTES , * LPSECURITY_ATTRIBUTES ; <nl> <nl> # define FILE_BEGIN 0 <nl> typedef struct _RECT { <nl> LONG bottom ; <nl> } RECT , * PRECT ; <nl> <nl> - typedef enum _D3DFORMAT <nl> - { <nl> - D3DFMT_A8R8G8B8 = 0x00000006 , <nl> - D3DFMT_DXT1 = 0x0000000C , <nl> - D3DFMT_DXT2 = 0x0000000E , <nl> - D3DFMT_DXT4 = 0x0000000F , <nl> - D3DFMT_UNKNOWN = 0xFFFFFFFF <nl> - } D3DFORMAT ; <nl> - <nl> / / Misc stuff found in the code , not really important <nl> # define PAGE_READWRITE 0x04 <nl> # define MAXULONG_PTR ( ( ULONG ) 0xffffffff ) <nl> typedef enum _D3DFORMAT <nl> # define FILE_SHARE_WRITE 0x00000002 <nl> # define FILE_SHARE_DELETE 0x00000004 <nl> <nl> - / / Audio stuff <nl> - typedef struct tWAVEFORMATEX <nl> - { <nl> - WORD wFormatTag ; <nl> - WORD nChannels ; <nl> - DWORD nSamplesPerSec ; <nl> - DWORD nAvgBytesPerSec ; <nl> - WORD nBlockAlign ; <nl> - WORD wBitsPerSample ; <nl> - WORD cbSize ; <nl> - } __attribute__ ( ( __packed__ ) ) WAVEFORMATEX , * PWAVEFORMATEX , * LPWAVEFORMATEX ; <nl> - <nl> - # define WAVE_FORMAT_UNKNOWN 0x0000 <nl> - # define WAVE_FORMAT_PCM 0x0001 <nl> - # define WAVE_FORMAT_ADPCM 0x0002 <nl> - # define WAVE_FORMAT_IEEE_FLOAT 0x0003 <nl> - # define WAVE_FORMAT_EXTENSIBLE 0xFFFE <nl> - <nl> # endif <nl> <nl> mmm a / xbmc / linux / XFileUtils . cpp <nl> ppp b / xbmc / linux / XFileUtils . cpp <nl> HANDLE CreateFile ( LPCTSTR lpFileName , DWORD dwDesiredAccess , <nl> HANDLE result = new CXHandle ( CXHandle : : HND_FILE ) ; <nl> result - > fd = fd ; <nl> <nl> - # if ( defined ( TARGET_LINUX ) | | defined ( TARGET_FREEBSD ) ) & & defined ( HAS_DVD_DRIVE ) <nl> + # if ( defined ( TARGET_LINUX ) | | defined ( TARGET_FREEBSD ) ) & & defined ( HAS_DVD_DRIVE ) <nl> / / special case for opening the cdrom device <nl> if ( strcmp ( lpFileName , MEDIA_DETECT : : CLibcdio : : GetInstance ( ) - > GetDeviceFileName ( ) ) = = 0 ) <nl> result - > m_bCDROM = true ; <nl> HANDLE CreateFile ( LPCTSTR lpFileName , DWORD dwDesiredAccess , <nl> return result ; <nl> } <nl> <nl> - BOOL ReadFile ( HANDLE hFile , LPVOID lpBuffer , DWORD nNumberOfBytesToRead , <nl> + int ReadFile ( HANDLE hFile , LPVOID lpBuffer , DWORD nNumberOfBytesToRead , <nl> LPDWORD lpNumberOfBytesRead , LPVOID lpOverlapped ) <nl> { <nl> if ( lpOverlapped ) <nl> BOOL ReadFile ( HANDLE hFile , LPVOID lpBuffer , DWORD nNumberOfBytesToRead , <nl> return 1 ; <nl> } <nl> <nl> - BOOL WriteFile ( HANDLE hFile , const void * lpBuffer , DWORD nNumberOfBytesToWrite , <nl> + int WriteFile ( HANDLE hFile , const void * lpBuffer , DWORD nNumberOfBytesToWrite , <nl> LPDWORD lpNumberOfBytesWritten , LPVOID lpOverlapped ) <nl> { <nl> if ( lpOverlapped ) <nl> BOOL WriteFile ( HANDLE hFile , const void * lpBuffer , DWORD nNumberOfBytesToWrite , <nl> return 1 ; <nl> } <nl> <nl> - DWORD SetFilePointer ( HANDLE hFile , int32_t lDistanceToMove , <nl> + uint32_t SetFilePointer ( HANDLE hFile , int32_t lDistanceToMove , <nl> int32_t * lpDistanceToMoveHigh , DWORD dwMoveMethod ) <nl> { <nl> if ( hFile = = NULL ) <nl> DWORD SetFilePointer ( HANDLE hFile , int32_t lDistanceToMove , <nl> } <nl> <nl> / / uses statfs <nl> - BOOL GetDiskFreeSpaceEx ( <nl> + int GetDiskFreeSpaceEx ( <nl> LPCTSTR lpDirectoryName , <nl> PULARGE_INTEGER lpFreeBytesAvailable , <nl> PULARGE_INTEGER lpTotalNumberOfBytes , <nl> BOOL GetDiskFreeSpaceEx ( <nl> if ( lpTotalNumberOfFreeBytes ) <nl> lpTotalNumberOfFreeBytes - > QuadPart = ( ULONGLONG ) fsInfo . f_bfree * ( ULONGLONG ) fsInfo . f_bsize ; <nl> <nl> - return true ; <nl> + return 1 ; <nl> } <nl> <nl> - DWORD GetTimeZoneInformation ( LPTIME_ZONE_INFORMATION lpTimeZoneInformation ) <nl> + uint32_t GetTimeZoneInformation ( LPTIME_ZONE_INFORMATION lpTimeZoneInformation ) <nl> { <nl> if ( lpTimeZoneInformation = = NULL ) <nl> return TIME_ZONE_ID_INVALID ; <nl> DWORD GetTimeZoneInformation ( LPTIME_ZONE_INFORMATION lpTimeZoneInformation ) <nl> return TIME_ZONE_ID_UNKNOWN ; <nl> } <nl> <nl> - BOOL SetFilePointerEx ( HANDLE hFile , <nl> + int SetFilePointerEx ( HANDLE hFile , <nl> LARGE_INTEGER liDistanceToMove , <nl> PLARGE_INTEGER lpNewFilePointer , <nl> DWORD dwMoveMethod ) <nl> BOOL SetFilePointerEx ( HANDLE hFile , <nl> if ( lpNewFilePointer ) <nl> lpNewFilePointer - > QuadPart = currOff ; <nl> <nl> - return true ; <nl> + return 1 ; <nl> } <nl> <nl> int _fstat64 ( int fd , struct __stat64 * buffer ) <nl> int _stat64 ( const char * path , struct __stat64 * buffer ) <nl> return stat64 ( path , buffer ) ; <nl> } <nl> # endif <nl> - <nl> mmm a / xbmc / linux / XFileUtils . h <nl> ppp b / xbmc / linux / XFileUtils . h <nl> HANDLE CreateFile ( LPCTSTR lpFileName , DWORD dwDesiredAccess , DWORD dwShareMode , <nl> LPSECURITY_ATTRIBUTES lpSecurityAttributes , DWORD dwCreationDisposition , <nl> DWORD dwFlagsAndAttributes , HANDLE hTemplateFile ) ; <nl> <nl> - BOOL WriteFile ( HANDLE hFile , const void * lpBuffer , DWORD nNumberOfBytesToWrite , LPDWORD lpNumberOfBytesWritten , LPVOID lpOverlapped ) ; <nl> - BOOL ReadFile ( HANDLE hFile , LPVOID lpBuffer , DWORD nNumberOfBytesToRead , LPDWORD lpNumberOfBytesRead , void * unsupportedlpOverlapped ) ; <nl> + int WriteFile ( HANDLE hFile , const void * lpBuffer , DWORD nNumberOfBytesToWrite , LPDWORD lpNumberOfBytesWritten , LPVOID lpOverlapped ) ; <nl> + int ReadFile ( HANDLE hFile , LPVOID lpBuffer , DWORD nNumberOfBytesToRead , LPDWORD lpNumberOfBytesRead , void * unsupportedlpOverlapped ) ; <nl> <nl> - DWORD SetFilePointer ( HANDLE hFile , int32_t lDistanceToMove , <nl> + uint32_t SetFilePointer ( HANDLE hFile , int32_t lDistanceToMove , <nl> int32_t * lpDistanceToMoveHigh , DWORD dwMoveMethod ) ; <nl> - BOOL SetFilePointerEx ( HANDLE hFile , LARGE_INTEGER liDistanceToMove , PLARGE_INTEGER lpNewFilePointer , DWORD dwMoveMethod ) ; <nl> + int SetFilePointerEx ( HANDLE hFile , LARGE_INTEGER liDistanceToMove , PLARGE_INTEGER lpNewFilePointer , DWORD dwMoveMethod ) ; <nl> <nl> - DWORD GetTimeZoneInformation ( LPTIME_ZONE_INFORMATION lpTimeZoneInformation ) ; <nl> - int _stat64 ( const char * path , struct __stat64 * buffer ) ; <nl> + uint32_t GetTimeZoneInformation ( LPTIME_ZONE_INFORMATION lpTimeZoneInformation ) ; <nl> + int _stat64 ( const char * path , struct __stat64 * buffer ) ; <nl> int _fstat64 ( int fd , struct __stat64 * buffer ) ; <nl> <nl> / / uses statfs <nl> - BOOL GetDiskFreeSpaceEx ( <nl> + int GetDiskFreeSpaceEx ( <nl> LPCTSTR lpDirectoryName , <nl> PULARGE_INTEGER lpFreeBytesAvailable , <nl> PULARGE_INTEGER lpTotalNumberOfBytes , <nl> PULARGE_INTEGER lpTotalNumberOfFreeBytes <nl> ) ; <nl> - <nl> mmm a / xbmc / linux / XHandle . cpp <nl> ppp b / xbmc / linux / XHandle . cpp <nl> bool CloseHandle ( HANDLE hObject ) { <nl> return true ; <nl> } <nl> <nl> - BOOL WINAPI DuplicateHandle ( <nl> - HANDLE hSourceProcessHandle , <nl> - HANDLE hSourceHandle , <nl> - HANDLE hTargetProcessHandle , <nl> - LPHANDLE lpTargetHandle , <nl> - DWORD dwDesiredAccess , <nl> - BOOL bInheritHandle , <nl> - DWORD dwOptions <nl> - ) <nl> - { <nl> - / * only a simple version of this is supported * / <nl> - assert ( hSourceProcessHandle = = GetCurrentProcess ( ) <nl> - & & hTargetProcessHandle = = GetCurrentProcess ( ) <nl> - & & dwOptions = = DUPLICATE_SAME_ACCESS ) ; <nl> - <nl> - if ( hSourceHandle = = INVALID_HANDLE_VALUE ) <nl> - return FALSE ; <nl> - <nl> - { <nl> - CSingleLock lock ( * ( hSourceHandle - > m_internalLock ) ) ; <nl> - hSourceHandle - > m_nRefCount + + ; <nl> - } <nl> - <nl> - if ( lpTargetHandle ) <nl> - * lpTargetHandle = hSourceHandle ; <nl> - <nl> - return TRUE ; <nl> - } <nl> <nl> mmm a / xbmc / linux / XHandlePublic . h <nl> ppp b / xbmc / linux / XHandlePublic . h <nl> bool CloseHandle ( HANDLE hObject ) ; <nl> # define DUPLICATE_CLOSE_SOURCE 0x00000001 <nl> # define DUPLICATE_SAME_ACCESS 0x00000002 <nl> <nl> - BOOL WINAPI DuplicateHandle ( <nl> - HANDLE hSourceProcessHandle , <nl> - HANDLE hSourceHandle , <nl> - HANDLE hTargetProcessHandle , <nl> - LPHANDLE lpTargetHandle , <nl> - DWORD dwDesiredAccess , <nl> - BOOL bInheritHandle , <nl> - DWORD dwOptions <nl> - ) ; <nl> <nl> # endif <nl> mmm a / xbmc / linux / XTimeUtils . cpp <nl> ppp b / xbmc / linux / XTimeUtils . cpp <nl> <nl> <nl> # ifdef TARGET_POSIX <nl> <nl> - void WINAPI Sleep ( DWORD dwMilliSeconds ) <nl> + void WINAPI Sleep ( uint32_t dwMilliSeconds ) <nl> { <nl> # if _POSIX_PRIORITY_SCHEDULING <nl> if ( dwMilliSeconds = = 0 ) <nl> void WINAPI Sleep ( DWORD dwMilliSeconds ) <nl> usleep ( dwMilliSeconds * 1000 ) ; <nl> } <nl> <nl> - VOID GetLocalTime ( LPSYSTEMTIME sysTime ) <nl> + void GetLocalTime ( LPSYSTEMTIME sysTime ) <nl> { <nl> const time_t t = time ( NULL ) ; <nl> struct tm now ; <nl> VOID GetLocalTime ( LPSYSTEMTIME sysTime ) <nl> g_timezone . m_IsDST = now . tm_isdst ; <nl> } <nl> <nl> - BOOL FileTimeToLocalFileTime ( const FILETIME * lpFileTime , LPFILETIME lpLocalFileTime ) <nl> + int FileTimeToLocalFileTime ( const FILETIME * lpFileTime , LPFILETIME lpLocalFileTime ) <nl> { <nl> ULARGE_INTEGER l ; <nl> l . u . LowPart = lpFileTime - > dwLowDateTime ; <nl> BOOL FileTimeToLocalFileTime ( const FILETIME * lpFileTime , LPFILETIME lpLocalFileT <nl> <nl> lpLocalFileTime - > dwLowDateTime = l . u . LowPart ; <nl> lpLocalFileTime - > dwHighDateTime = l . u . HighPart ; <nl> - return true ; <nl> + return 1 ; <nl> } <nl> <nl> - BOOL SystemTimeToFileTime ( const SYSTEMTIME * lpSystemTime , LPFILETIME lpFileTime ) <nl> + int SystemTimeToFileTime ( const SYSTEMTIME * lpSystemTime , LPFILETIME lpFileTime ) <nl> { <nl> static const int dayoffset [ 12 ] = { 0 , 31 , 59 , 90 , 120 , 151 , 182 , 212 , 243 , 273 , 304 , 334 } ; <nl> # if defined ( TARGET_DARWIN ) <nl> BOOL SystemTimeToFileTime ( const SYSTEMTIME * lpSystemTime , LPFILETIME lpFileTi <nl> return 1 ; <nl> } <nl> <nl> - LONG CompareFileTime ( const FILETIME * lpFileTime1 , const FILETIME * lpFileTime2 ) <nl> + long CompareFileTime ( const FILETIME * lpFileTime1 , const FILETIME * lpFileTime2 ) <nl> { <nl> ULARGE_INTEGER t1 ; <nl> t1 . u . LowPart = lpFileTime1 - > dwLowDateTime ; <nl> LONG CompareFileTime ( const FILETIME * lpFileTime1 , const FILETIME * lpFileTime2 ) <nl> return 1 ; <nl> } <nl> <nl> - BOOL FileTimeToSystemTime ( const FILETIME * lpFileTime , LPSYSTEMTIME lpSystemTime ) <nl> + int FileTimeToSystemTime ( const FILETIME * lpFileTime , LPSYSTEMTIME lpSystemTime ) <nl> { <nl> LARGE_INTEGER fileTime ; <nl> fileTime . u . LowPart = lpFileTime - > dwLowDateTime ; <nl> BOOL FileTimeToSystemTime ( const FILETIME * lpFileTime , LPSYSTEMTIME lpSystemTi <nl> return 1 ; <nl> } <nl> <nl> - BOOL LocalFileTimeToFileTime ( const FILETIME * lpLocalFileTime , LPFILETIME lpFileTime ) <nl> + int LocalFileTimeToFileTime ( const FILETIME * lpLocalFileTime , LPFILETIME lpFileTime ) <nl> { <nl> ULARGE_INTEGER l ; <nl> l . u . LowPart = lpLocalFileTime - > dwLowDateTime ; <nl> BOOL LocalFileTimeToFileTime ( const FILETIME * lpLocalFileTime , LPFILETIME lpFi <nl> return 1 ; <nl> } <nl> <nl> - BOOL FileTimeToTimeT ( const FILETIME * lpLocalFileTime , time_t * pTimeT ) { <nl> + int FileTimeToTimeT ( const FILETIME * lpLocalFileTime , time_t * pTimeT ) { <nl> <nl> if ( lpLocalFileTime = = NULL | | pTimeT = = NULL ) <nl> return false ; <nl> BOOL FileTimeToTimeT ( const FILETIME * lpLocalFileTime , time_t * pTimeT ) { <nl> localtime_r ( & ft , & tm_ft ) ; <nl> <nl> * pTimeT = mktime ( & tm_ft ) ; <nl> - return true ; <nl> + return 1 ; <nl> } <nl> <nl> - BOOL TimeTToFileTime ( time_t timeT , FILETIME * lpLocalFileTime ) { <nl> + int TimeTToFileTime ( time_t timeT , FILETIME * lpLocalFileTime ) { <nl> <nl> if ( lpLocalFileTime = = NULL ) <nl> return false ; <nl> BOOL TimeTToFileTime ( time_t timeT , FILETIME * lpLocalFileTime ) { <nl> lpLocalFileTime - > dwLowDateTime = result . u . LowPart ; <nl> lpLocalFileTime - > dwHighDateTime = result . u . HighPart ; <nl> <nl> - return true ; <nl> + return 1 ; <nl> } <nl> <nl> void GetSystemTimeAsFileTime ( LPFILETIME lpSystemTimeAsFileTime ) <nl> void GetSystemTimeAsFileTime ( LPFILETIME lpSystemTimeAsFileTime ) <nl> } <nl> <nl> # endif <nl> - <nl> mmm a / xbmc / linux / XTimeUtils . h <nl> ppp b / xbmc / linux / XTimeUtils . h <nl> <nl> <nl> # include " PlatformDefs . h " <nl> <nl> - VOID GetLocalTime ( LPSYSTEMTIME ) ; <nl> + void GetLocalTime ( LPSYSTEMTIME ) ; <nl> <nl> - void WINAPI Sleep ( DWORD dwMilliSeconds ) ; <nl> + void WINAPI Sleep ( uint32_t dwMilliSeconds ) ; <nl> <nl> - BOOL FileTimeToLocalFileTime ( const FILETIME * lpFileTime , LPFILETIME lpLocalFileTime ) ; <nl> - BOOL SystemTimeToFileTime ( const SYSTEMTIME * lpSystemTime , LPFILETIME lpFileTime ) ; <nl> - LONG CompareFileTime ( const FILETIME * lpFileTime1 , const FILETIME * lpFileTime2 ) ; <nl> - BOOL FileTimeToSystemTime ( const FILETIME * lpFileTime , LPSYSTEMTIME lpSystemTime ) ; <nl> - BOOL LocalFileTimeToFileTime ( const FILETIME * lpLocalFileTime , LPFILETIME lpFileTime ) ; <nl> - VOID GetSystemTimeAsFileTime ( LPFILETIME lpSystemTimeAsFileTime ) ; <nl> - <nl> - BOOL FileTimeToTimeT ( const FILETIME * lpLocalFileTime , time_t * pTimeT ) ; <nl> - BOOL TimeTToFileTime ( time_t timeT , FILETIME * lpLocalFileTime ) ; <nl> + int FileTimeToLocalFileTime ( const FILETIME * lpFileTime , LPFILETIME lpLocalFileTime ) ; <nl> + int SystemTimeToFileTime ( const SYSTEMTIME * lpSystemTime , LPFILETIME lpFileTime ) ; <nl> + long CompareFileTime ( const FILETIME * lpFileTime1 , const FILETIME * lpFileTime2 ) ; <nl> + int FileTimeToSystemTime ( const FILETIME * lpFileTime , LPSYSTEMTIME lpSystemTime ) ; <nl> + int LocalFileTimeToFileTime ( const FILETIME * lpLocalFileTime , LPFILETIME lpFileTime ) ; <nl> + void GetSystemTimeAsFileTime ( LPFILETIME lpSystemTimeAsFileTime ) ; <nl> <nl> + int FileTimeToTimeT ( const FILETIME * lpLocalFileTime , time_t * pTimeT ) ; <nl> + int TimeTToFileTime ( time_t timeT , FILETIME * lpLocalFileTime ) ; <nl> mmm a / xbmc / platform / darwin / DarwinUtils . mm <nl> ppp b / xbmc / platform / darwin / DarwinUtils . mm <nl> <nl> * <nl> * / <nl> <nl> - # define BOOL XBMC_BOOL <nl> # include " system . h " <nl> # include " Application . h " <nl> # include " DllPaths . h " <nl> <nl> # include " utils / URIUtils . h " <nl> # include " CompileInfo . h " <nl> <nl> - # undef BOOL <nl> - <nl> # if defined ( TARGET_DARWIN ) <nl> # if defined ( TARGET_DARWIN_IOS ) <nl> # import < Foundation / Foundation . h > <nl> mmm a / xbmc / platform / darwin / ios - common / AnnounceReceiver . mm <nl> ppp b / xbmc / platform / darwin / ios - common / AnnounceReceiver . mm <nl> <nl> <nl> # import < UIKit / UIKit . h > <nl> <nl> - / / hack around problem with xbmc ' s typedef int BOOL <nl> - / / and obj - c ' s typedef unsigned char BOOL <nl> - # define BOOL XBMC_BOOL <nl> # import " system . h " <nl> <nl> # import " Application . h " <nl> <nl> # import " platform / darwin / ios / XBMCController . h " <nl> # endif <nl> # import " utils / Variant . h " <nl> - # undef BOOL <nl> - <nl> <nl> id objectFromVariant ( const CVariant & data ) ; <nl> <nl> mmm a / xbmc / platform / darwin / ios / IOSEAGLView . mm <nl> ppp b / xbmc / platform / darwin / ios / IOSEAGLView . mm <nl> <nl> * <nl> * / <nl> <nl> - / / hack around problem with xbmc ' s typedef int BOOL <nl> - / / and obj - c ' s typedef unsigned char BOOL <nl> - # define BOOL XBMC_BOOL <nl> # include < sys / resource . h > <nl> # include < signal . h > <nl> # include < stdio . h > <nl> <nl> # include " utils / TimeUtils . h " <nl> # include " Util . h " <nl> # include " platform / XbmcContext . h " <nl> - # undef BOOL <nl> <nl> # import < QuartzCore / QuartzCore . h > <nl> <nl> mmm a / xbmc / platform / darwin / ios / IOSExternalTouchController . mm <nl> ppp b / xbmc / platform / darwin / ios / IOSExternalTouchController . mm <nl> <nl> * <nl> * / <nl> <nl> - / / hack around problem with xbmc ' s typedef int BOOL <nl> - / / and obj - c ' s typedef unsigned char BOOL <nl> - # define BOOL XBMC_BOOL <nl> # include " input / MouseStat . h " <nl> # include " windowing / WindowingFactory . h " <nl> # include " filesystem / SpecialProtocol . h " <nl> # include " guilib / LocalizeStrings . h " <nl> - # undef BOOL <nl> <nl> # import " IOSExternalTouchController . h " <nl> # import " XBMCController . h " <nl> mmm a / xbmc / platform / darwin / ios / IOSScreenManager . mm <nl> ppp b / xbmc / platform / darwin / ios / IOSScreenManager . mm <nl> <nl> * <nl> * / <nl> <nl> - / / hack around problem with xbmc ' s typedef int BOOL <nl> - / / and obj - c ' s typedef unsigned char BOOL <nl> - # define BOOL XBMC_BOOL <nl> # include < sys / resource . h > <nl> # include < signal . h > <nl> # include " utils / log . h " <nl> <nl> # include " ServiceBroker . h " <nl> # include " cores / AudioEngine / Interfaces / AE . h " <nl> # include " platform / darwin / DarwinUtils . h " <nl> - # undef BOOL <nl> <nl> # import < Foundation / Foundation . h > <nl> # include < objc / runtime . h > <nl> mmm a / xbmc / platform / darwin / ios / XBMCController . mm <nl> ppp b / xbmc / platform / darwin / ios / XBMCController . mm <nl> <nl> * <nl> * / <nl> <nl> - / / hack around problem with xbmc ' s typedef int BOOL <nl> - / / and obj - c ' s typedef unsigned char BOOL <nl> - # define BOOL XBMC_BOOL <nl> # include < sys / resource . h > <nl> # include < signal . h > <nl> <nl> <nl> # endif <nl> # define RADIANS_TO_DEGREES ( radians ) ( ( radians ) * ( 180 . 0 / M_PI ) ) <nl> <nl> - # undef BOOL <nl> - <nl> # import < AVFoundation / AVAudioSession . h > <nl> # import < MediaPlayer / MPMediaItem . h > <nl> # ifdef __IPHONE_5_0 <nl> mmm a / xbmc / platform / darwin / osx / SDLMain . mm <nl> ppp b / xbmc / platform / darwin / osx / SDLMain . mm <nl> <nl> # import < unistd . h > <nl> <nl> # import " platform / darwin / osx / CocoaInterface . h " <nl> - / / hack around problem with xbmc ' s typedef int BOOL <nl> - / / and obj - c ' s typedef unsigned char BOOL <nl> - # define BOOL XBMC_BOOL <nl> # import " PlatformDefs . h " <nl> # import " messaging / ApplicationMessenger . h " <nl> # import " storage / osx / DarwinStorageProvider . h " <nl> - # undef BOOL <nl> <nl> # import " platform / darwin / osx / HotKeyController . h " <nl> # import " platform / darwin / DarwinUtils . h " <nl> mmm a / xbmc / windowing / osx / WinEventsOSX . mm <nl> ppp b / xbmc / windowing / osx / WinEventsOSX . mm <nl> <nl> * <nl> * / <nl> <nl> - # define BOOL XBMC_BOOL <nl> # include " windowing / osx / WinEventsOSX . h " <nl> - # undef BOOL <nl> <nl> / / place holder for future native osx event handler <nl> <nl> mmm a / xbmc / windowing / osx / WinSystemOSX . mm <nl> ppp b / xbmc / windowing / osx / WinSystemOSX . mm <nl> <nl> * <nl> * / <nl> <nl> - / / hack around problem with xbmc ' s typedef int BOOL <nl> - / / and obj - c ' s typedef unsigned char BOOL <nl> - # define BOOL XBMC_BOOL <nl> # include " WinSystemOSX . h " <nl> # include " WinEventsOSX . h " <nl> # include " VideoSyncOsx . h " <nl> <nl> # include " platform / darwin / osx / CocoaInterface . h " <nl> # include " platform / darwin / DictionaryUtils . h " <nl> # include " platform / darwin / DarwinUtils . h " <nl> - # undef BOOL <nl> <nl> # import < SDL / SDL_video . h > <nl> # import < SDL / SDL_events . h > <nl> mmm a / xbmc / windowing / osx / WinSystemOSXGL . mm <nl> ppp b / xbmc / windowing / osx / WinSystemOSXGL . mm <nl> <nl> <nl> # if defined ( TARGET_DARWIN_OSX ) <nl> <nl> - / / hack around problem with xbmc ' s typedef int BOOL <nl> - / / and obj - c ' s typedef unsigned char BOOL <nl> - # define BOOL XBMC_BOOL <nl> # include " guilib / Texture . h " <nl> # include " WinSystemOSXGL . h " <nl> # include " rendering / gl / RenderSystemGL . h " <nl> - # undef BOOL <nl> <nl> <nl> CWinSystemOSXGL : : CWinSystemOSXGL ( ) <nl>
|
Merge pull request from FernetMenta / screensaver
|
xbmc/xbmc
|
83a11b35f170069c8f0372f8d6feb4c96f5b809a
|
2017-06-26T18:00:05Z
|
mmm a / src / wasm / baseline / liftoff - register . h <nl> ppp b / src / wasm / baseline / liftoff - register . h <nl> static inline constexpr bool needs_reg_pair ( ValueType type ) { <nl> return kNeedI64RegPair & & type = = kWasmI64 ; <nl> } <nl> <nl> - / / TODO ( clemensh ) : Use a switch once we require C + + 14 support . <nl> static inline constexpr RegClass reg_class_for ( ValueType type ) { <nl> - return needs_reg_pair ( type ) / / i64 on 32 bit <nl> - ? kGpRegPair <nl> - : type = = kWasmI32 | | type = = kWasmI64 / / int types <nl> - ? kGpReg <nl> - : type = = kWasmF32 | | type = = kWasmF64 / / float types <nl> - ? kFpReg <nl> - : kNoReg ; / / other ( unsupported ) types <nl> + switch ( type ) { <nl> + case kWasmF32 : <nl> + case kWasmF64 : <nl> + return kFpReg ; <nl> + case kWasmI32 : <nl> + return kGpReg ; <nl> + case kWasmI64 : <nl> + return kNeedI64RegPair ? kGpRegPair : kGpReg ; <nl> + default : <nl> + return kNoReg ; / / unsupported type <nl> + } <nl> } <nl> <nl> / / Maximum code of a gp cache register . <nl>
|
[ liftoff ] Use C + + 14 constexpr switch
|
v8/v8
|
9667b17b055f16fc227068934556520b9a158151
|
2019-09-06T11:23:22Z
|
mmm a / include / swift / AST / GenericSignatureBuilder . h <nl> ppp b / include / swift / AST / GenericSignatureBuilder . h <nl> class GenericSignatureBuilder { <nl> TypeArrayView < GenericTypeParamType > genericParams , <nl> EquivalenceClass * equivClass ) ; <nl> <nl> - / / / Realize a potential archetype for the given type . <nl> - / / / <nl> - / / / The resolved archetype will be written back into the unresolved type , <nl> - / / / to make the next resolution more efficient . <nl> - PotentialArchetype * realizePotentialArchetype ( UnresolvedType & type ) ; <nl> - <nl> public : <nl> / / / Try to resolve the equivalence class of the given type . <nl> / / / <nl> mmm a / lib / AST / GenericSignatureBuilder . cpp <nl> ppp b / lib / AST / GenericSignatureBuilder . cpp <nl> const RequirementSource * GenericSignatureBuilder : : resolveSuperConformance ( <nl> return superclassSource ; <nl> } <nl> <nl> - / / / Realize a potential archetype for this type parameter . <nl> - PotentialArchetype * ResolvedType : : realizePotentialArchetype ( <nl> - GenericSignatureBuilder & builder ) { <nl> - / / Realize and cache the potential archetype . <nl> - return builder . realizePotentialArchetype ( type ) ; <nl> - } <nl> - <nl> Type ResolvedType : : getDependentType ( GenericSignatureBuilder & builder ) const { <nl> - / / Already - resolved potential archetype . <nl> - if ( auto pa = type . dyn_cast < PotentialArchetype * > ( ) ) <nl> - return pa - > getDependentType ( builder . getGenericParams ( ) ) ; <nl> - <nl> - Type result = type . get < Type > ( ) ; <nl> - return result - > isTypeParameter ( ) ? result : Type ( ) ; <nl> + return storage . get < PotentialArchetype * > ( ) <nl> + - > getDependentType ( builder . getGenericParams ( ) ) ; <nl> } <nl> <nl> auto PotentialArchetype : : getOrCreateEquivalenceClass ( <nl> static Type resolveDependentMemberTypes ( <nl> } ) ; <nl> } <nl> <nl> - PotentialArchetype * GenericSignatureBuilder : : realizePotentialArchetype ( <nl> - UnresolvedType & type ) { <nl> - if ( auto pa = type . dyn_cast < PotentialArchetype * > ( ) ) <nl> - return pa ; <nl> - <nl> - auto pa = maybeResolveEquivalenceClass ( type . get < Type > ( ) , <nl> - ArchetypeResolutionKind : : WellFormed , <nl> - / * wantExactPotentialArchetype = * / true ) <nl> - . getPotentialArchetypeIfKnown ( ) ; <nl> - if ( pa ) type = pa ; <nl> - <nl> - return pa ; <nl> - } <nl> - <nl> static Type getStructuralType ( TypeDecl * typeDecl , bool keepSugar ) { <nl> if ( auto typealias = dyn_cast < TypeAliasDecl > ( typeDecl ) ) { <nl> if ( typealias - > getUnderlyingTypeRepr ( ) ! = nullptr ) { <nl> ResolvedType GenericSignatureBuilder : : maybeResolveEquivalenceClass ( <nl> if ( ! nestedPA ) <nl> return ResolvedType : : forUnresolved ( baseEquivClass ) ; <nl> <nl> - / / If base resolved to the anchor , then the nested potential archetype <nl> - / / we found is the resolved potential archetype . Return it directly , <nl> - / / so it doesn ' t need to be resolved again . <nl> - if ( basePA = = resolvedBase . getPotentialArchetypeIfKnown ( ) ) <nl> - return ResolvedType ( nestedPA ) ; <nl> - <nl> - / / Compute the resolved dependent type to return . <nl> - Type resolvedBaseType = resolvedBase . getDependentType ( * this ) ; <nl> - Type resolvedMemberType = <nl> - DependentMemberType : : get ( resolvedBaseType , assocType ) ; <nl> - <nl> - return ResolvedType ( resolvedMemberType , <nl> - nestedPA - > getOrCreateEquivalenceClass ( * this ) ) ; <nl> + return ResolvedType ( nestedPA ) ; <nl> } else { <nl> auto * concreteDecl = <nl> baseEquivClass - > lookupNestedType ( * this , depMemTy - > getName ( ) ) ; <nl> GenericSignatureBuilder : : addSameTypeRequirementBetweenTypeParameters ( <nl> if ( equivClass2 ) { <nl> equivClass = equivClass2 ; <nl> } else { <nl> - auto pa1 = type1 . realizePotentialArchetype ( * this ) ; <nl> - equivClass = pa1 - > getOrCreateEquivalenceClass ( * this ) ; <nl> + equivClass = type1 . getEquivalenceClass ( * this ) ; <nl> } <nl> } <nl> <nl> GenericSignatureBuilder : : addSameTypeRequirementBetweenTypeParameters ( <nl> <nl> / / Both sides are type parameters ; equate them . <nl> / / FIXME : Realizes potential archetypes far too early . <nl> - auto OrigT1 = type1 . realizePotentialArchetype ( * this ) ; <nl> - auto OrigT2 = type2 . realizePotentialArchetype ( * this ) ; <nl> + auto OrigT1 = type1 . getPotentialArchetypeIfKnown ( ) ; <nl> + auto OrigT2 = type2 . getPotentialArchetypeIfKnown ( ) ; <nl> <nl> / / Operate on the representatives <nl> auto T1 = OrigT1 - > getRepresentative ( ) ; <nl> mmm a / lib / AST / GenericSignatureBuilderImpl . h <nl> ppp b / lib / AST / GenericSignatureBuilderImpl . h <nl> <nl> namespace swift { <nl> <nl> class GenericSignatureBuilder : : ResolvedType { <nl> - llvm : : PointerUnion < PotentialArchetype * , Type > type ; <nl> - EquivalenceClass * equivClass ; <nl> + llvm : : PointerUnion < PotentialArchetype * , Type , EquivalenceClass * > storage ; <nl> <nl> / / / For a type that could not be resolved further unless the given <nl> / / / equivalence class changes . <nl> - ResolvedType ( EquivalenceClass * equivClass ) <nl> - : type ( ) , equivClass ( equivClass ) { } <nl> + ResolvedType ( EquivalenceClass * equivClass ) : storage ( equivClass ) { } <nl> + <nl> + / / / A concrete resolved type . <nl> + ResolvedType ( Type type ) : storage ( type ) { <nl> + assert ( ! type - > isTypeParameter ( ) ) ; <nl> + } <nl> <nl> public : <nl> / / / A specific resolved potential archetype . <nl> - ResolvedType ( PotentialArchetype * pa ) <nl> - : type ( pa ) , equivClass ( pa - > getEquivalenceClassIfPresent ( ) ) { } <nl> - <nl> - / / / A resolved type within the given equivalence class . <nl> - ResolvedType ( Type type , EquivalenceClass * equivClass ) <nl> - : type ( type ) , equivClass ( equivClass ) { <nl> - assert ( type - > isTypeParameter ( ) = = static_cast < bool > ( equivClass ) & & <nl> - " type parameters must have equivalence classes " ) ; <nl> - } <nl> + ResolvedType ( PotentialArchetype * pa ) : storage ( pa ) { } <nl> <nl> / / / Return an unresolved result , which could be resolved when we <nl> / / / learn more information about the given equivalence class . <nl> class GenericSignatureBuilder : : ResolvedType { <nl> <nl> / / / Return a result for a concrete type . <nl> static ResolvedType forConcrete ( Type concreteType ) { <nl> - return ResolvedType ( concreteType , nullptr ) ; <nl> + return ResolvedType ( concreteType ) ; <nl> } <nl> <nl> / / / Determine whether this result was resolved . <nl> - explicit operator bool ( ) const { return ! type . isNull ( ) ; } <nl> + explicit operator bool ( ) const { <nl> + return storage . is < PotentialArchetype * > ( ) | | storage . is < Type > ( ) ; <nl> + } <nl> <nl> / / / Retrieve the dependent type . <nl> Type getDependentType ( GenericSignatureBuilder & builder ) const ; <nl> class GenericSignatureBuilder : : ResolvedType { <nl> / / / a concrete type . <nl> Type getAsConcreteType ( ) const { <nl> assert ( * this & & " Doesn ' t contain any result " ) ; <nl> - if ( equivClass ) return Type ( ) ; <nl> - return type . dyn_cast < Type > ( ) ; <nl> + return storage . dyn_cast < Type > ( ) ; <nl> } <nl> <nl> - / / / Realize a potential archetype for this type parameter . <nl> - PotentialArchetype * realizePotentialArchetype ( <nl> - GenericSignatureBuilder & builder ) ; <nl> - <nl> / / / Retrieve the potential archetype , if already known . <nl> PotentialArchetype * getPotentialArchetypeIfKnown ( ) const { <nl> - return type . dyn_cast < PotentialArchetype * > ( ) ; <nl> + return storage . dyn_cast < PotentialArchetype * > ( ) ; <nl> } <nl> <nl> / / / Retrieve the equivalence class into which a resolved type refers . <nl> EquivalenceClass * getEquivalenceClass ( <nl> GenericSignatureBuilder & builder ) const { <nl> - assert ( * this & & " Only for resolved types " ) ; <nl> - if ( equivClass ) return equivClass ; <nl> - <nl> - / / Create the equivalence class now . <nl> - return type . get < PotentialArchetype * > ( ) <nl> + return storage . get < PotentialArchetype * > ( ) <nl> - > getOrCreateEquivalenceClass ( builder ) ; <nl> } <nl> <nl> / / / Retrieve the equivalence class into which a resolved type refers . <nl> EquivalenceClass * getEquivalenceClassIfPresent ( ) const { <nl> - assert ( * this & & " Only for resolved types " ) ; <nl> - if ( equivClass ) return equivClass ; <nl> - <nl> - / / Create the equivalence class now . <nl> - return type . get < PotentialArchetype * > ( ) - > getEquivalenceClassIfPresent ( ) ; <nl> + return storage . get < PotentialArchetype * > ( ) <nl> + - > getEquivalenceClassIfPresent ( ) ; <nl> } <nl> <nl> / / / Retrieve the unresolved result . <nl> EquivalenceClass * getUnresolvedEquivClass ( ) const { <nl> - assert ( ! * this ) ; <nl> - return equivClass ; <nl> + return storage . dyn_cast < EquivalenceClass * > ( ) ; <nl> } <nl> <nl> / / / Return an unresolved type . <nl> - / / / <nl> - / / / This loses equivalence - class information that could be useful , which <nl> - / / / is unfortunate . <nl> UnresolvedType getUnresolvedType ( ) const { <nl> - return type ; <nl> + assert ( ! storage . is < EquivalenceClass * > ( ) ) ; <nl> + if ( storage . is < PotentialArchetype * > ( ) ) <nl> + return storage . get < PotentialArchetype * > ( ) ; <nl> + return storage . get < Type > ( ) ; <nl> } <nl> } ; <nl> <nl> new file mode 100644 <nl> index 000000000000 . . a2e3903b9b04 <nl> mmm / dev / null <nl> ppp b / validation - test / compiler_crashers_2_fixed / rdar65040635 . swift <nl> <nl> + / / RUN : % target - swift - frontend - emit - ir % s <nl> + <nl> + public protocol P1 { <nl> + associatedtype Value <nl> + } <nl> + <nl> + public protocol P2 { <nl> + associatedtype Value <nl> + } <nl> + <nl> + public class Class2 < V > : P2 { <nl> + public typealias Value = V <nl> + } <nl> + <nl> + public class Superclass < T1 , T2 > where T1 : P1 , T2 : P2 , T2 . Value = = T1 . Value { <nl> + } <nl> + <nl> + public class Subclass < T1 , T2 > : Superclass < T1 , T2 > where T1 : P1 , T2 : Class2 < T1 . Value > { <nl> + } <nl> new file mode 100644 <nl> index 000000000000 . . ea5cf584fab5 <nl> mmm / dev / null <nl> ppp b / validation - test / compiler_crashers_2_fixed / sr12812 . swift <nl> <nl> + / / RUN : % target - swift - frontend - emit - ir % s <nl> + <nl> + public protocol DefaultInitializable { <nl> + init ( ) <nl> + } <nl> + <nl> + public protocol AdjacencyEdge_ { <nl> + associatedtype VertexID : Equatable <nl> + associatedtype Properties <nl> + <nl> + var destination : VertexID { get set } <nl> + var properties : Properties { get set } <nl> + } <nl> + <nl> + public struct AdjacencyEdge < VertexID : Equatable , Properties > : AdjacencyEdge_ { <nl> + public var destination : VertexID <nl> + public var properties : Properties <nl> + } <nl> + <nl> + public protocol AdjacencyVertex_ { <nl> + associatedtype Edges : Collection where Edges . Element : AdjacencyEdge_ <nl> + associatedtype Properties <nl> + <nl> + var edges : Edges { get set } <nl> + var properties : Properties { get set } <nl> + } <nl> + <nl> + public struct AdjacencyVertex < Edges : Collection , Properties > : AdjacencyVertex_ <nl> + where Edges . Element : AdjacencyEdge_ <nl> + { <nl> + public var edges : Edges <nl> + public var properties : Properties <nl> + } <nl> + <nl> + public protocol BinaryFunction { <nl> + associatedtype Parameter0 <nl> + associatedtype Parameter1 <nl> + associatedtype Result <nl> + <nl> + func callAsFunction ( _ : Parameter0 , _ : Parameter1 ) - > Result <nl> + } <nl> + <nl> + public struct GeneralAdjacencyList < <nl> + Spine : Collection , VertexIDToIndex : BinaryFunction <nl> + > <nl> + where Spine . Element : AdjacencyVertex_ , <nl> + VertexIDToIndex . Parameter0 = = Spine , <nl> + VertexIDToIndex . Parameter1 = = Spine . Element . Edges . Element . VertexID , <nl> + VertexIDToIndex . Result = = Spine . Index <nl> + { <nl> + public let vertexIDToIndex : VertexIDToIndex <nl> + public var spine : Spine <nl> + } <nl> + <nl> + public struct IdentityVertexIDToIndex < Spine : Collection > : BinaryFunction <nl> + where Spine . Element : AdjacencyVertex_ , <nl> + Spine . Element . Edges . Element . VertexID = = Spine . Index <nl> + { <nl> + public func callAsFunction ( _ : Spine , _ id : Spine . Index ) - > Spine . Index { <nl> + return id <nl> + } <nl> + } <nl> + <nl> + public extension GeneralAdjacencyList { <nl> + typealias VertexID = VertexIDToIndex . Parameter1 <nl> + typealias VertexProperties = Spine . Element . Properties <nl> + typealias EdgeProperties = Spine . Element . Edges . Element . Properties <nl> + <nl> + struct EdgeID : Equatable { <nl> + / / / The source vertex . <nl> + let source : VertexIDToIndex . Parameter1 <nl> + / / / The position of the edge in ` source ` ' s list of edges . <nl> + let targetIndex : Spine . Index <nl> + } <nl> + } <nl> + <nl> + public extension GeneralAdjacencyList <nl> + where VertexIDToIndex = = IdentityVertexIDToIndex < Spine > , <nl> + Spine : RangeReplaceableCollection , <nl> + Spine . Element . Edges : RangeReplaceableCollection <nl> + & BidirectionalCollection / / Because https : / / bugs . swift . org / browse / SR - 12810 <nl> + { <nl> + func addVertex ( storing properties : VertexProperties ) - > VertexID { <nl> + return spine . indices . first ! <nl> + } <nl> + } <nl> + <nl>
|
Merge pull request from slavapestov / fix - same - type - concrete - crash
|
apple/swift
|
61e77bd70190c85a0458e09f1d97ca80de82f4a5
|
2020-07-17T15:45:12Z
|
mmm a / CMakeLists . txt <nl> ppp b / CMakeLists . txt <nl> set ( CXX_STANDARD_REQUIRED ON ) <nl> <nl> set ( VERSION_MAJOR 3 ) <nl> set ( VERSION_MINOR 0 ) <nl> - set ( VERSION_PATCH 1 ) <nl> + set ( VERSION_PATCH 0 ) <nl> <nl> set ( CLI_CLIENT_EXECUTABLE_NAME cleos ) <nl> set ( GUI_CLIENT_EXECUTABLE_NAME eosio ) <nl> new file mode 100644 <nl> index 0000000000 . . b454a3a1ba <nl> mmm / dev / null <nl> ppp b / docs / _2convert__ctor_8pass_8cpp . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / libc + + / upstream / test / std / utilities / smartptr / unique . ptr / unique . ptr . dltr / unique . ptr . dltr . dflt1 / convert_ctor . pass . cpp File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_acf7646062c2dda4cc5d3e08c5ded00b . html " > libc + + < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_7d236047367a2957b6fc9c22a3c49af8 . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_52576429c2ea572b538c7b817f3a6ed0 . html " > test < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_8fe919a9d5a89b0babe3bba35f42248d . html " > std < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_bb74c89a194ffb402300fbe7c6882bc3 . html " > utilities < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_ce00ea94fb185ee5789914e8e92104aa . html " > smartptr < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_d38a87433389f8ccd3cb2ef108b2c371 . html " > unique . ptr < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b25506d9309c63de423b51a9d4998f5b . html " > unique . ptr . dltr < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_c0641e877bf35ee394dfccfe41335c40 . html " > unique . ptr . dltr . dflt1 < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > convert_ctor . pass . cpp File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; memory & gt ; < / code > < br / > <nl> + < code > # include & lt ; cassert & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : ae66f6b31b5ad750f1fe042a706a4e3d4 " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " _2convert__ctor_8pass_8cpp . html # ae66f6b31b5ad750f1fe042a706a4e3d4 " > main < / a > ( ) < / td > < / tr > <nl> + < tr class = " separator : ae66f6b31b5ad750f1fe042a706a4e3d4 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " ae66f6b31b5ad750f1fe042a706a4e3d4 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ae66f6b31b5ad750f1fe042a706a4e3d4 " > & # 9670 ; & nbsp ; < / a > < / span > main ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int main < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > void & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . f62595b4b0 <nl> mmm / dev / null <nl> ppp b / docs / _2incomplete_8fail_8cpp . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / libc + + / upstream / test / std / utilities / smartptr / unique . ptr / unique . ptr . dltr / unique . ptr . dltr . dflt1 / incomplete . fail . cpp File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_acf7646062c2dda4cc5d3e08c5ded00b . html " > libc + + < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_7d236047367a2957b6fc9c22a3c49af8 . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_52576429c2ea572b538c7b817f3a6ed0 . html " > test < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_8fe919a9d5a89b0babe3bba35f42248d . html " > std < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_bb74c89a194ffb402300fbe7c6882bc3 . html " > utilities < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_ce00ea94fb185ee5789914e8e92104aa . html " > smartptr < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_d38a87433389f8ccd3cb2ef108b2c371 . html " > unique . ptr < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b25506d9309c63de423b51a9d4998f5b . html " > unique . ptr . dltr < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_c0641e877bf35ee394dfccfe41335c40 . html " > unique . ptr . dltr . dflt1 < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > incomplete . fail . cpp File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; memory & gt ; < / code > < br / > <nl> + < code > # include & lt ; cassert & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : ae66f6b31b5ad750f1fe042a706a4e3d4 " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " _2incomplete_8fail_8cpp . html # ae66f6b31b5ad750f1fe042a706a4e3d4 " > main < / a > ( ) < / td > < / tr > <nl> + < tr class = " separator : ae66f6b31b5ad750f1fe042a706a4e3d4 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " ae66f6b31b5ad750f1fe042a706a4e3d4 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ae66f6b31b5ad750f1fe042a706a4e3d4 " > & # 9670 ; & nbsp ; < / a > < / span > main ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int main < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > void & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 61f39c69ab <nl> mmm / dev / null <nl> ppp b / docs / ____asctime_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / time / __asctime . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_2d9de06388c8caee3cc676f784613c7d . html " > time < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __asctime . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; < a class = " el " href = " time_8h_source . html " > time . h < / a > & gt ; < / code > < br / > <nl> + < code > # include & lt ; stdio . h & gt ; < / code > < br / > <nl> + < code > # include & lt ; < a class = " el " href = " langinfo_8h_source . html " > langinfo . h < / a > & gt ; < / code > < br / > <nl> + < code > # include & quot ; < a class = " el " href = " locale__impl_8h_source . html " > locale_impl . h < / a > & quot ; < / code > < br / > <nl> + < code > # include & quot ; < a class = " el " href = " atomic_8h_source . html " > atomic . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : ac37d87bb2d5bae5b7e76a107a3826bd2 " > < td class = " memItemLeft " align = " right " valign = " top " > const char * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____asctime_8c . html # ac37d87bb2d5bae5b7e76a107a3826bd2 " > __nl_langinfo_l < / a > ( < a class = " el " href = " nl__types_8h . html # a3e837d7c96871f164e3c8b28159f01bc " > nl_item < / a > , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > ) < / td > < / tr > <nl> + < tr class = " separator : ac37d87bb2d5bae5b7e76a107a3826bd2 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : ad472b3ee09c1f97d141885a3b35dc74d " > < td class = " memItemLeft " align = " right " valign = " top " > char * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____asctime_8c . html # ad472b3ee09c1f97d141885a3b35dc74d " > __asctime < / a > ( const struct < a class = " el " href = " structtm . html " > tm < / a > * restrict < a class = " el " href = " structtm . html " > tm < / a > , char * restrict buf ) < / td > < / tr > <nl> + < tr class = " separator : ad472b3ee09c1f97d141885a3b35dc74d " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " ad472b3ee09c1f97d141885a3b35dc74d " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ad472b3ee09c1f97d141885a3b35dc74d " > & # 9670 ; & nbsp ; < / a > < / span > __asctime ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > char * __asctime < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > const struct < a class = " el " href = " structtm . html " > tm < / a > * restrict & # 160 ; < / td > <nl> + < td class = " paramname " > < em > tm < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > char * restrict & # 160 ; < / td > <nl> + < td class = " paramname " > < em > buf < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " ac37d87bb2d5bae5b7e76a107a3826bd2 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ac37d87bb2d5bae5b7e76a107a3826bd2 " > & # 9670 ; & nbsp ; < / a > < / span > __nl_langinfo_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > const char * __nl_langinfo_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " nl__types_8h . html # a3e837d7c96871f164e3c8b28159f01bc " > nl_item < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . f5b8335079 <nl> mmm / dev / null <nl> ppp b / docs / ____bsd__locale__defaults_8h . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / libc + + / upstream / include / __bsd_locale_defaults . h File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_acf7646062c2dda4cc5d3e08c5ded00b . html " > libc + + < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_7d236047367a2957b6fc9c22a3c49af8 . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_ca1ce14850e834a53ed1933b63fac721 . html " > include < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # define - members " > Macros < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __bsd_locale_defaults . h File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + <nl> + < p > < a href = " ____bsd__locale__defaults_8h_source . html " > Go to the source code of this file . < / a > < / p > <nl> + < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " define - members " > < / a > <nl> + Macros < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : adf6e694d8dcb01927f35771e7654852f " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # adf6e694d8dcb01927f35771e7654852f " > __libcpp_mb_cur_max_l < / a > ( loc ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a1fa91b6e2500a511bf9f2fab063dae9b " > MB_CUR_MAX_L < / a > ( loc ) < / td > < / tr > <nl> + < tr class = " separator : adf6e694d8dcb01927f35771e7654852f " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a72c941bb0a157491b50f682dc21ea02e " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # a72c941bb0a157491b50f682dc21ea02e " > __libcpp_btowc_l < / a > ( ch , loc ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # ae741ac4e9f74707822f751537879619c " > btowc_l < / a > ( ch , loc ) < / td > < / tr > <nl> + < tr class = " separator : a72c941bb0a157491b50f682dc21ea02e " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a74d438645bb3884a9e4188f8a8d48e7a " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # a74d438645bb3884a9e4188f8a8d48e7a " > __libcpp_wctob_l < / a > ( wch , loc ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # abcc78ef1cd03d56898886911436c026d " > wctob_l < / a > ( wch , loc ) < / td > < / tr > <nl> + < tr class = " separator : a74d438645bb3884a9e4188f8a8d48e7a " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : adcf0c93d1a8444c8bdc7d9c0de68e022 " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # adcf0c93d1a8444c8bdc7d9c0de68e022 " > __libcpp_wcsnrtombs_l < / a > ( dst , src , nwc , < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , ps , loc ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a3d4f48d650f4cee5a91a34fa88da4643 " > wcsnrtombs_l < / a > ( dst , src , nwc , < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , ps , loc ) < / td > < / tr > <nl> + < tr class = " separator : adcf0c93d1a8444c8bdc7d9c0de68e022 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a32cfb1d4be660e2fac5713563fe11ca1 " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # a32cfb1d4be660e2fac5713563fe11ca1 " > __libcpp_wcrtomb_l < / a > ( src , wc , ps , loc ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # afa774207f6feb08324b34f12235dfc71 " > wcrtomb_l < / a > ( src , wc , ps , loc ) < / td > < / tr > <nl> + < tr class = " separator : a32cfb1d4be660e2fac5713563fe11ca1 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a6bc0177feb85719faa2603b44f645fc9 " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # a6bc0177feb85719faa2603b44f645fc9 " > __libcpp_mbsnrtowcs_l < / a > ( dst , src , nms , < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , ps , loc ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # ae695abfd9469057be3b8321daee014b6 " > mbsnrtowcs_l < / a > ( dst , src , nms , < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , ps , loc ) < / td > < / tr > <nl> + < tr class = " separator : a6bc0177feb85719faa2603b44f645fc9 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : acfb93c1d6a73584f8cc88b4ac539cae7 " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # acfb93c1d6a73584f8cc88b4ac539cae7 " > __libcpp_mbrtowc_l < / a > ( pwc , < a class = " el " href = " strings_2basic_8string_2string_8cons_2dtor__noexcept_8pass_8cpp . html # aa8270a1ba8295884567e0a0c93135f05 " > s < / a > , n , ps , l ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a90e6ff733323d1990a6ab5e69bd9c860 " > mbrtowc_l < / a > ( pwc , < a class = " el " href = " strings_2basic_8string_2string_8cons_2dtor__noexcept_8pass_8cpp . html # aa8270a1ba8295884567e0a0c93135f05 " > s < / a > , n , ps , l ) < / td > < / tr > <nl> + < tr class = " separator : acfb93c1d6a73584f8cc88b4ac539cae7 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a6d6ab7be26e857b9da70c8ad0a88fb3b " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # a6d6ab7be26e857b9da70c8ad0a88fb3b " > __libcpp_mbtowc_l < / a > ( pwc , pmb , < a class = " el " href = " min__max__macros_8sh_8cpp . html # a3822fd92a2c96b61250ad68b9b262f70 " > max < / a > , l ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # af1283220faae9ad5e527dcd1dca3b17f " > mbtowc_l < / a > ( pwc , pmb , < a class = " el " href = " min__max__macros_8sh_8cpp . html # a3822fd92a2c96b61250ad68b9b262f70 " > max < / a > , l ) < / td > < / tr > <nl> + < tr class = " separator : a6d6ab7be26e857b9da70c8ad0a88fb3b " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : ae68930dc524b4f768857a7bcd1bdea98 " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # ae68930dc524b4f768857a7bcd1bdea98 " > __libcpp_mbrlen_l < / a > ( < a class = " el " href = " strings_2basic_8string_2string_8cons_2dtor__noexcept_8pass_8cpp . html # aa8270a1ba8295884567e0a0c93135f05 " > s < / a > , n , ps , l ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # aa8083945472c9e2a6bafbd929f02efee " > mbrlen_l < / a > ( < a class = " el " href = " strings_2basic_8string_2string_8cons_2dtor__noexcept_8pass_8cpp . html # aa8270a1ba8295884567e0a0c93135f05 " > s < / a > , n , ps , l ) < / td > < / tr > <nl> + < tr class = " separator : ae68930dc524b4f768857a7bcd1bdea98 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : ab8064fb673edbb8764f6b327377009ea " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # ab8064fb673edbb8764f6b327377009ea " > __libcpp_localeconv_l < / a > ( l ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a680e983cb055eacd794bdd69b8872563 " > localeconv_l < / a > ( l ) < / td > < / tr > <nl> + < tr class = " separator : ab8064fb673edbb8764f6b327377009ea " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a578dbb16b7d46876e237661a7e0ddfe9 " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # a578dbb16b7d46876e237661a7e0ddfe9 " > __libcpp_mbsrtowcs_l < / a > ( dest , src , < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , ps , l ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a4b8456f69c44ee24c5e42f1bc9cbb85b " > mbsrtowcs_l < / a > ( dest , src , < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , ps , l ) < / td > < / tr > <nl> + < tr class = " separator : a578dbb16b7d46876e237661a7e0ddfe9 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a57203b2e6ddd8268efe188aa851be75b " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # a57203b2e6ddd8268efe188aa851be75b " > __libcpp_snprintf_l < / a > ( . . . ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a172d13a92d7e589d228e17cedd415e8a " > snprintf_l < / a > ( __VA_ARGS__ ) < / td > < / tr > <nl> + < tr class = " separator : a57203b2e6ddd8268efe188aa851be75b " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a836e875aa2ab90a2d804e38c1ad578b0 " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # a836e875aa2ab90a2d804e38c1ad578b0 " > __libcpp_asprintf_l < / a > ( . . . ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a66aab7c0dcac2b83966007cdd667bfcb " > asprintf_l < / a > ( __VA_ARGS__ ) < / td > < / tr > <nl> + < tr class = " separator : a836e875aa2ab90a2d804e38c1ad578b0 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a2826ab8669ceea2131acd5501672f86f " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__defaults_8h . html # a2826ab8669ceea2131acd5501672f86f " > __libcpp_sscanf_l < / a > ( . . . ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # aa2bc0b1173df3ab6b4a3b2a8eef22f09 " > sscanf_l < / a > ( __VA_ARGS__ ) < / td > < / tr > <nl> + < tr class = " separator : a2826ab8669ceea2131acd5501672f86f " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Macro Definition Documentation < / h2 > <nl> + < a id = " a836e875aa2ab90a2d804e38c1ad578b0 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a836e875aa2ab90a2d804e38c1ad578b0 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_asprintf_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_asprintf_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > . . . < / em > < / td > < td > ) < / td > <nl> + < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a66aab7c0dcac2b83966007cdd667bfcb " > asprintf_l < / a > ( __VA_ARGS__ ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a72c941bb0a157491b50f682dc21ea02e " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a72c941bb0a157491b50f682dc21ea02e " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_btowc_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_btowc_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > ch , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > loc & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # ae741ac4e9f74707822f751537879619c " > btowc_l < / a > ( ch , loc ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " ab8064fb673edbb8764f6b327377009ea " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ab8064fb673edbb8764f6b327377009ea " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_localeconv_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_localeconv_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > l < / td > < td > ) < / td > <nl> + < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a680e983cb055eacd794bdd69b8872563 " > localeconv_l < / a > ( l ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " adf6e694d8dcb01927f35771e7654852f " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # adf6e694d8dcb01927f35771e7654852f " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mb_cur_max_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_mb_cur_max_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > loc < / td > < td > ) < / td > <nl> + < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a1fa91b6e2500a511bf9f2fab063dae9b " > MB_CUR_MAX_L < / a > ( loc ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " ae68930dc524b4f768857a7bcd1bdea98 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ae68930dc524b4f768857a7bcd1bdea98 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mbrlen_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_mbrlen_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < a class = " el " href = " strings_2basic_8string_2string_8cons_2dtor__noexcept_8pass_8cpp . html # aa8270a1ba8295884567e0a0c93135f05 " > s < / a > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > n , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > ps , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > l & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # aa8083945472c9e2a6bafbd929f02efee " > mbrlen_l < / a > ( < a class = " el " href = " strings_2basic_8string_2string_8cons_2dtor__noexcept_8pass_8cpp . html # aa8270a1ba8295884567e0a0c93135f05 " > s < / a > , n , ps , l ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " acfb93c1d6a73584f8cc88b4ac539cae7 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # acfb93c1d6a73584f8cc88b4ac539cae7 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mbrtowc_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_mbrtowc_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > pwc , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < a class = " el " href = " strings_2basic_8string_2string_8cons_2dtor__noexcept_8pass_8cpp . html # aa8270a1ba8295884567e0a0c93135f05 " > s < / a > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > n , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > ps , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > l & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a90e6ff733323d1990a6ab5e69bd9c860 " > mbrtowc_l < / a > ( pwc , < a class = " el " href = " strings_2basic_8string_2string_8cons_2dtor__noexcept_8pass_8cpp . html # aa8270a1ba8295884567e0a0c93135f05 " > s < / a > , n , ps , l ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a6bc0177feb85719faa2603b44f645fc9 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a6bc0177feb85719faa2603b44f645fc9 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mbsnrtowcs_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_mbsnrtowcs_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > dst , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > src , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > nms , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > ps , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > loc & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # ae695abfd9469057be3b8321daee014b6 " > mbsnrtowcs_l < / a > ( dst , src , nms , < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , ps , loc ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a578dbb16b7d46876e237661a7e0ddfe9 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a578dbb16b7d46876e237661a7e0ddfe9 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mbsrtowcs_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_mbsrtowcs_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > dest , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > src , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > ps , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > l & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a4b8456f69c44ee24c5e42f1bc9cbb85b " > mbsrtowcs_l < / a > ( dest , src , < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , ps , l ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a6d6ab7be26e857b9da70c8ad0a88fb3b " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a6d6ab7be26e857b9da70c8ad0a88fb3b " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mbtowc_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_mbtowc_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > pwc , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > pmb , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < a class = " el " href = " min__max__macros_8sh_8cpp . html # a3822fd92a2c96b61250ad68b9b262f70 " > max < / a > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > l & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # af1283220faae9ad5e527dcd1dca3b17f " > mbtowc_l < / a > ( pwc , pmb , < a class = " el " href = " min__max__macros_8sh_8cpp . html # a3822fd92a2c96b61250ad68b9b262f70 " > max < / a > , l ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a57203b2e6ddd8268efe188aa851be75b " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a57203b2e6ddd8268efe188aa851be75b " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_snprintf_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_snprintf_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > . . . < / em > < / td > < td > ) < / td > <nl> + < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a172d13a92d7e589d228e17cedd415e8a " > snprintf_l < / a > ( __VA_ARGS__ ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a2826ab8669ceea2131acd5501672f86f " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a2826ab8669ceea2131acd5501672f86f " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_sscanf_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_sscanf_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > . . . < / em > < / td > < td > ) < / td > <nl> + < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # aa2bc0b1173df3ab6b4a3b2a8eef22f09 " > sscanf_l < / a > ( __VA_ARGS__ ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a32cfb1d4be660e2fac5713563fe11ca1 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a32cfb1d4be660e2fac5713563fe11ca1 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_wcrtomb_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_wcrtomb_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > src , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > wc , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > ps , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > loc & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # afa774207f6feb08324b34f12235dfc71 " > wcrtomb_l < / a > ( src , wc , ps , loc ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " adcf0c93d1a8444c8bdc7d9c0de68e022 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # adcf0c93d1a8444c8bdc7d9c0de68e022 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_wcsnrtombs_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_wcsnrtombs_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > dst , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > src , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > nwc , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > ps , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > loc & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # a3d4f48d650f4cee5a91a34fa88da4643 " > wcsnrtombs_l < / a > ( dst , src , nwc , < a class = " el " href = " towctrans_8c . html # a8bb3e1dd5fd30402c69fd8a9f7dd0950 " > len < / a > , ps , loc ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a74d438645bb3884a9e4188f8a8d48e7a " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a74d438645bb3884a9e4188f8a8d48e7a " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_wctob_l < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define __libcpp_wctob_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > wch , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > loc & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " locale__win32_8h . html # abcc78ef1cd03d56898886911436c026d " > wctob_l < / a > ( wch , loc ) < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . ab978b70e3 <nl> mmm / dev / null <nl> ppp b / docs / ____bsd__locale__defaults_8h_source . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / libc + + / upstream / include / __bsd_locale_defaults . h Source File < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_acf7646062c2dda4cc5d3e08c5ded00b . html " > libc + + < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_7d236047367a2957b6fc9c22a3c49af8 . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_ca1ce14850e834a53ed1933b63fac721 . html " > include < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __bsd_locale_defaults . h < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < a href = " ____bsd__locale__defaults_8h . html " > Go to the documentation of this file . < / a > < div class = " fragment " > < div class = " line " > < a name = " l00001 " > < / a > < span class = " lineno " > 1 < / span > & # 160 ; < span class = " comment " > / / - * - C + + - * - < / span > < / div > < div class = " line " > < a name = " l00002 " > < / a > < span class = " lineno " > 2 < / span > & # 160 ; < span class = " comment " > / / = = = mmmmmmmmmmmmmmmmmmmmm - __bsd_locale_defaults . h mmmmmmmmmmmmmmmmmmmmm - - = = = / / < / span > < / div > < div class = " line " > < a name = " l00003 " > < / a > < span class = " lineno " > 3 < / span > & # 160 ; < span class = " comment " > / / < / span > < / div > < div class = " line " > < a name = " l00004 " > < / a > < span class = " lineno " > 4 < / span > & # 160 ; < span class = " comment " > / / The LLVM Compiler Infrastructure < / span > < / div > < div class = " line " > < a name = " l00005 " > < / a > < span class = " lineno " > 5 < / span > & # 160 ; < span class = " comment " > / / < / span > < / div > < div class = " line " > < a name = " l00006 " > < / a > < span class = " lineno " > 6 < / span > & # 160 ; < span class = " comment " > / / This file is dual licensed under the MIT and the University of Illinois Open < / span > < / div > < div class = " line " > < a name = " l00007 " > < / a > < span class = " lineno " > 7 < / span > & # 160 ; < span class = " comment " > / / Source Licenses . See LICENSE . TXT for details . < / span > < / div > < div class = " line " > < a name = " l00008 " > < / a > < span class = " lineno " > 8 < / span > & # 160 ; < span class = " comment " > / / < / span > < / div > < div class = " line " > < a name = " l00009 " > < / a > < span class = " lineno " > 9 < / span > & # 160 ; < span class = " comment " > / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / < / span > < / div > < div class = " line " > < a name = " l00010 " > < / a > < span class = " lineno " > 10 < / span > & # 160 ; < span class = " comment " > / / The BSDs have lots of * _l functions . We don & # 39 ; t want to define those symbols < / span > < / div > < div class = " line " > < a name = " l00011 " > < / a > < span class = " lineno " > 11 < / span > & # 160 ; < span class = " comment " > / / on other platforms though , for fear of conflicts with user code . So here , < / span > < / div > < div class = " line " > < a name = " l00012 " > < / a > < span class = " lineno " > 12 < / span > & # 160 ; < span class = " comment " > / / we will define the mapping from an internal macro to the real BSD symbol . < / span > < / div > < div class = " line " > < a name = " l00013 " > < / a > < span class = " lineno " > 13 < / span > & # 160 ; < span class = " comment " > / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / < / span > < / div > < div class = " line " > < a name = " l00014 " > < / a > < span class = " lineno " > 14 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00015 " > < / a > < span class = " lineno " > 15 < / span > & # 160 ; < span class = " preprocessor " > # ifndef _LIBCPP_BSD_LOCALE_DEFAULTS_H < / span > < / div > < div class = " line " > < a name = " l00016 " > < / a > < span class = " lineno " > 16 < / span > & # 160 ; < span class = " preprocessor " > # define _LIBCPP_BSD_LOCALE_DEFAULTS_H < / span > < / div > < div class = " line " > < a name = " l00017 " > < / a > < span class = " lineno " > 17 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00018 " > < / a > < span class = " lineno " > 18 < / span > & # 160 ; < span class = " preprocessor " > # if ! defined ( _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER ) < / span > < / div > < div class = " line " > < a name = " l00019 " > < / a > < span class = " lineno " > 19 < / span > & # 160 ; < span class = " preprocessor " > # pragma GCC system_header < / span > < / div > < div class = " line " > < a name = " l00020 " > < / a > < span class = " lineno " > 20 < / span > & # 160 ; < span class = " preprocessor " > # endif < / span > < / div > < div class = " line " > < a name = " l00021 " > < / a > < span class = " lineno " > 21 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00022 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # adf6e694d8dcb01927f35771e7654852f " > 22 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_mb_cur_max_l ( loc ) MB_CUR_MAX_L ( loc ) < / span > < / div > < div class = " line " > < a name = " l00023 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # a72c941bb0a157491b50f682dc21ea02e " > 23 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_btowc_l ( ch , loc ) btowc_l ( ch , loc ) < / span > < / div > < div class = " line " > < a name = " l00024 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # a74d438645bb3884a9e4188f8a8d48e7a " > 24 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_wctob_l ( wch , loc ) wctob_l ( wch , loc ) < / span > < / div > < div class = " line " > < a name = " l00025 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # adcf0c93d1a8444c8bdc7d9c0de68e022 " > 25 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_wcsnrtombs_l ( dst , src , nwc , len , ps , loc ) wcsnrtombs_l ( dst , src , nwc , len , ps , loc ) < / span > < / div > < div class = " line " > < a name = " l00026 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # a32cfb1d4be660e2fac5713563fe11ca1 " > 26 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_wcrtomb_l ( src , wc , ps , loc ) wcrtomb_l ( src , wc , ps , loc ) < / span > < / div > < div class = " line " > < a name = " l00027 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # a6bc0177feb85719faa2603b44f645fc9 " > 27 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_mbsnrtowcs_l ( dst , src , nms , len , ps , loc ) mbsnrtowcs_l ( dst , src , nms , len , ps , loc ) < / span > < / div > < div class = " line " > < a name = " l00028 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # acfb93c1d6a73584f8cc88b4ac539cae7 " > 28 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_mbrtowc_l ( pwc , s , n , ps , l ) mbrtowc_l ( pwc , s , n , ps , l ) < / span > < / div > < div class = " line " > < a name = " l00029 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # a6d6ab7be26e857b9da70c8ad0a88fb3b " > 29 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_mbtowc_l ( pwc , pmb , max , l ) mbtowc_l ( pwc , pmb , max , l ) < / span > < / div > < div class = " line " > < a name = " l00030 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # ae68930dc524b4f768857a7bcd1bdea98 " > 30 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_mbrlen_l ( s , n , ps , l ) mbrlen_l ( s , n , ps , l ) < / span > < / div > < div class = " line " > < a name = " l00031 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # ab8064fb673edbb8764f6b327377009ea " > 31 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_localeconv_l ( l ) localeconv_l ( l ) < / span > < / div > < div class = " line " > < a name = " l00032 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # a578dbb16b7d46876e237661a7e0ddfe9 " > 32 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_mbsrtowcs_l ( dest , src , len , ps , l ) mbsrtowcs_l ( dest , src , len , ps , l ) < / span > < / div > < div class = " line " > < a name = " l00033 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # a57203b2e6ddd8268efe188aa851be75b " > 33 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_snprintf_l ( . . . ) snprintf_l ( __VA_ARGS__ ) < / span > < / div > < div class = " line " > < a name = " l00034 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # a836e875aa2ab90a2d804e38c1ad578b0 " > 34 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_asprintf_l ( . . . ) asprintf_l ( __VA_ARGS__ ) < / span > < / div > < div class = " line " > < a name = " l00035 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__defaults_8h . html # a2826ab8669ceea2131acd5501672f86f " > 35 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define __libcpp_sscanf_l ( . . . ) sscanf_l ( __VA_ARGS__ ) < / span > < / div > < div class = " line " > < a name = " l00036 " > < / a > < span class = " lineno " > 36 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00037 " > < / a > < span class = " lineno " > 37 < / span > & # 160 ; < span class = " preprocessor " > # endif / / _LIBCPP_BSD_LOCALE_DEFAULTS_H < / span > < / div > < / div > < ! - - fragment - - > < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . bf484a6725 <nl> mmm / dev / null <nl> ppp b / docs / ____bsd__locale__fallbacks_8h . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / libc + + / upstream / include / __bsd_locale_fallbacks . h File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_acf7646062c2dda4cc5d3e08c5ded00b . html " > libc + + < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_7d236047367a2957b6fc9c22a3c49af8 . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_ca1ce14850e834a53ed1933b63fac721 . html " > include < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __bsd_locale_fallbacks . h File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; < a class = " el " href = " libc_09_09_2upstream_2include_2stdlib_8h_source . html " > stdlib . h < / a > & gt ; < / code > < br / > <nl> + < code > # include & lt ; < a class = " el " href = " stdarg_8h_source . html " > stdarg . h < / a > & gt ; < / code > < br / > <nl> + < code > # include & lt ; memory & gt ; < / code > < br / > <nl> + < / div > <nl> + < p > < a href = " ____bsd__locale__fallbacks_8h_source . html " > Go to the source code of this file . < / a > < / p > <nl> + < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a93d9a28b9ab5e281fb84eaa9f0db446b " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_BEGIN_NAMESPACE_STDdecltype ( < a class = " el " href = " locale__impl_8h . html # a5455b7a60d7e3087ec55dfe37a088bd1 " > MB_CUR_MAX < / a > ) _LIBCPP_ALWAYS_INLINE & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # a93d9a28b9ab5e281fb84eaa9f0db446b " > __libcpp_mb_cur_max_l < / a > ( < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : a93d9a28b9ab5e281fb84eaa9f0db446b " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a1db668b9b18f41c766598cfa923410af " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # afd307bf4f6f216075c93f524a7d4c739 " > wint_t < / a > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # a1db668b9b18f41c766598cfa923410af " > __libcpp_btowc_l < / a > ( int __c , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : a1db668b9b18f41c766598cfa923410af " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a9b4d4f51a6594fda2020a30fa2e8b1d8 " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_ALWAYS_INLINE int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # a9b4d4f51a6594fda2020a30fa2e8b1d8 " > __libcpp_wctob_l < / a > ( < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # afd307bf4f6f216075c93f524a7d4c739 " > wint_t < / a > __c , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : a9b4d4f51a6594fda2020a30fa2e8b1d8 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a193281939bdb1f125afb0b09f4b66c90 " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # a193281939bdb1f125afb0b09f4b66c90 " > __libcpp_wcsnrtombs_l < / a > ( char * __dest , const < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > * * __src , < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __nwc , < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __len , < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * __ps , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : a193281939bdb1f125afb0b09f4b66c90 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : ac7af7cfcae28ff8708458e560c36e65b " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # ac7af7cfcae28ff8708458e560c36e65b " > __libcpp_wcrtomb_l < / a > ( char * __s , < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > __wc , < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * __ps , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : ac7af7cfcae28ff8708458e560c36e65b " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a5fadc4159799f95222f2b1ca1189d2a4 " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # a5fadc4159799f95222f2b1ca1189d2a4 " > __libcpp_mbsnrtowcs_l < / a > ( < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > * __dest , const char * * __src , < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __nms , < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __len , < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * __ps , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : a5fadc4159799f95222f2b1ca1189d2a4 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : af0fa188876631bf8f11e202eb14b604d " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # af0fa188876631bf8f11e202eb14b604d " > __libcpp_mbrtowc_l < / a > ( < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > * __pwc , const char * __s , < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __n , < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * __ps , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : af0fa188876631bf8f11e202eb14b604d " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : ad4703e5ce052cdcf2ce1c41ce121c760 " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_ALWAYS_INLINE int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # ad4703e5ce052cdcf2ce1c41ce121c760 " > __libcpp_mbtowc_l < / a > ( < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > * __pwc , const char * __pmb , < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __max , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : ad4703e5ce052cdcf2ce1c41ce121c760 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : ad3b9dd25053413ef386891a1c2b42db3 " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # ad3b9dd25053413ef386891a1c2b42db3 " > __libcpp_mbrlen_l < / a > ( const char * __s , < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __n , < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * __ps , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : ad3b9dd25053413ef386891a1c2b42db3 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a5d425f8eea945613f934efeb6f4ab3cb " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " structlconv . html " > lconv < / a > * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # a5d425f8eea945613f934efeb6f4ab3cb " > __libcpp_localeconv_l < / a > ( < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : a5d425f8eea945613f934efeb6f4ab3cb " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a1fb270a79574bfbfb54ae99c94ef1a80 " > < td class = " memItemLeft " align = " right " valign = " top " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # a1fb270a79574bfbfb54ae99c94ef1a80 " > __libcpp_mbsrtowcs_l < / a > ( < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > * __dest , const char * * __src , < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __len , < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * __ps , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / td > < / tr > <nl> + < tr class = " separator : a1fb270a79574bfbfb54ae99c94ef1a80 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : ada8c08a70e6b19c6f983cf9c8aaade1b " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # ada8c08a70e6b19c6f983cf9c8aaade1b " > __libcpp_snprintf_l < / a > ( char * __s , < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __n , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l , const char * __format , . . . ) < / td > < / tr > <nl> + < tr class = " separator : ada8c08a70e6b19c6f983cf9c8aaade1b " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a657660135cfd29cc2a649f2bdbf316c8 " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # a657660135cfd29cc2a649f2bdbf316c8 " > __libcpp_asprintf_l < / a > ( char * * __s , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l , const char * __format , . . . ) < / td > < / tr > <nl> + < tr class = " separator : a657660135cfd29cc2a649f2bdbf316c8 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a1908098924cf4e7f30fbca6c8c8464b4 " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____bsd__locale__fallbacks_8h . html # a1908098924cf4e7f30fbca6c8c8464b4 " > __libcpp_sscanf_l < / a > ( const char * __s , < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l , const char * __format , . . . ) < / td > < / tr > <nl> + < tr class = " separator : a1908098924cf4e7f30fbca6c8c8464b4 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a657660135cfd29cc2a649f2bdbf316c8 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a657660135cfd29cc2a649f2bdbf316c8 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_asprintf_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int __libcpp_asprintf_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > char * * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __s < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > const char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __format < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > . . . < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a1db668b9b18f41c766598cfa923410af " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a1db668b9b18f41c766598cfa923410af " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_btowc_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # afd307bf4f6f216075c93f524a7d4c739 " > wint_t < / a > __libcpp_btowc_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > int & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __c < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a5d425f8eea945613f934efeb6f4ab3cb " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a5d425f8eea945613f934efeb6f4ab3cb " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_localeconv_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " structlconv . html " > lconv < / a > * __libcpp_localeconv_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a93d9a28b9ab5e281fb84eaa9f0db446b " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a93d9a28b9ab5e281fb84eaa9f0db446b " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mb_cur_max_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_BEGIN_NAMESPACE_STDdecltype ( < a class = " el " href = " locale__impl_8h . html # a5455b7a60d7e3087ec55dfe37a088bd1 " > MB_CUR_MAX < / a > ) _LIBCPP_ALWAYS_INLINE __libcpp_mb_cur_max_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " ad3b9dd25053413ef386891a1c2b42db3 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ad3b9dd25053413ef386891a1c2b42db3 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mbrlen_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __libcpp_mbrlen_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > const char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __s < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __n < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __ps < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " af0fa188876631bf8f11e202eb14b604d " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # af0fa188876631bf8f11e202eb14b604d " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mbrtowc_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __libcpp_mbrtowc_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __pwc < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > const char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __s < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __n < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __ps < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a5fadc4159799f95222f2b1ca1189d2a4 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a5fadc4159799f95222f2b1ca1189d2a4 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mbsnrtowcs_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __libcpp_mbsnrtowcs_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __dest < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > const char * * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __src < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __nms < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __len < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __ps < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a1fb270a79574bfbfb54ae99c94ef1a80 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a1fb270a79574bfbfb54ae99c94ef1a80 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mbsrtowcs_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __libcpp_mbsrtowcs_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __dest < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > const char * * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __src < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __len < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __ps < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " ad4703e5ce052cdcf2ce1c41ce121c760 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ad4703e5ce052cdcf2ce1c41ce121c760 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_mbtowc_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_ALWAYS_INLINE int __libcpp_mbtowc_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __pwc < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > const char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __pmb < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __max < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " ada8c08a70e6b19c6f983cf9c8aaade1b " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ada8c08a70e6b19c6f983cf9c8aaade1b " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_snprintf_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int __libcpp_snprintf_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __s < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __n < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > const char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __format < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > . . . < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a1908098924cf4e7f30fbca6c8c8464b4 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a1908098924cf4e7f30fbca6c8c8464b4 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_sscanf_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int __libcpp_sscanf_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > const char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __s < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > const char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __format < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > . . . < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " ac7af7cfcae28ff8708458e560c36e65b " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ac7af7cfcae28ff8708458e560c36e65b " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_wcrtomb_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __libcpp_wcrtomb_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __s < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __wc < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __ps < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a193281939bdb1f125afb0b09f4b66c90 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a193281939bdb1f125afb0b09f4b66c90 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_wcsnrtombs_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_ALWAYS_INLINE < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __libcpp_wcsnrtombs_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __dest < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > const < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # a15db26eb22a71ba9df074b5c8f868d63 " > wchar_t < / a > * * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __src < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __nwc < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __len < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " alltypes_8h . html # ae17ba7caad0d90f7f7130fa662a6e98a " > mbstate_t < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __ps < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a9b4d4f51a6594fda2020a30fa2e8b1d8 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a9b4d4f51a6594fda2020a30fa2e8b1d8 " > & # 9670 ; & nbsp ; < / a > < / span > __libcpp_wctob_l ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " mlabels " > <nl> + < tr > <nl> + < td class = " mlabels - left " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > _LIBCPP_ALWAYS_INLINE int __libcpp_wctob_l < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2wchar_8h . html # afd307bf4f6f216075c93f524a7d4c739 " > wint_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __c < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > __l < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / td > <nl> + < td class = " mlabels - right " > <nl> + < span class = " mlabels " > < span class = " mlabel " > inline < / span > < / span > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . eb14215452 <nl> mmm / dev / null <nl> ppp b / docs / ____bsd__locale__fallbacks_8h_source . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / libc + + / upstream / include / __bsd_locale_fallbacks . h Source File < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_acf7646062c2dda4cc5d3e08c5ded00b . html " > libc + + < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_7d236047367a2957b6fc9c22a3c49af8 . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_ca1ce14850e834a53ed1933b63fac721 . html " > include < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __bsd_locale_fallbacks . h < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < a href = " ____bsd__locale__fallbacks_8h . html " > Go to the documentation of this file . < / a > < div class = " fragment " > < div class = " line " > < a name = " l00001 " > < / a > < span class = " lineno " > 1 < / span > & # 160 ; < span class = " comment " > / / - * - C + + - * - < / span > < / div > < div class = " line " > < a name = " l00002 " > < / a > < span class = " lineno " > 2 < / span > & # 160 ; < span class = " comment " > / / = = = mmmmmmmmmmmmmmmmmmmmm - __bsd_locale_fallbacks . h mmmmmmmmmmmmmmmmmmmmm - = = = / / < / span > < / div > < div class = " line " > < a name = " l00003 " > < / a > < span class = " lineno " > 3 < / span > & # 160 ; < span class = " comment " > / / < / span > < / div > < div class = " line " > < a name = " l00004 " > < / a > < span class = " lineno " > 4 < / span > & # 160 ; < span class = " comment " > / / The LLVM Compiler Infrastructure < / span > < / div > < div class = " line " > < a name = " l00005 " > < / a > < span class = " lineno " > 5 < / span > & # 160 ; < span class = " comment " > / / < / span > < / div > < div class = " line " > < a name = " l00006 " > < / a > < span class = " lineno " > 6 < / span > & # 160 ; < span class = " comment " > / / This file is dual licensed under the MIT and the University of Illinois Open < / span > < / div > < div class = " line " > < a name = " l00007 " > < / a > < span class = " lineno " > 7 < / span > & # 160 ; < span class = " comment " > / / Source Licenses . See LICENSE . TXT for details . < / span > < / div > < div class = " line " > < a name = " l00008 " > < / a > < span class = " lineno " > 8 < / span > & # 160 ; < span class = " comment " > / / < / span > < / div > < div class = " line " > < a name = " l00009 " > < / a > < span class = " lineno " > 9 < / span > & # 160 ; < span class = " comment " > / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / < / span > < / div > < div class = " line " > < a name = " l00010 " > < / a > < span class = " lineno " > 10 < / span > & # 160 ; < span class = " comment " > / / The BSDs have lots of * _l functions . This file provides reimplementations < / span > < / div > < div class = " line " > < a name = " l00011 " > < / a > < span class = " lineno " > 11 < / span > & # 160 ; < span class = " comment " > / / of those functions for non - BSD platforms . < / span > < / div > < div class = " line " > < a name = " l00012 " > < / a > < span class = " lineno " > 12 < / span > & # 160 ; < span class = " comment " > / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / < / span > < / div > < div class = " line " > < a name = " l00013 " > < / a > < span class = " lineno " > 13 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00014 " > < / a > < span class = " lineno " > 14 < / span > & # 160 ; < span class = " preprocessor " > # ifndef _LIBCPP_BSD_LOCALE_FALLBACKS_DEFAULTS_H < / span > < / div > < div class = " line " > < a name = " l00015 " > < / a > < span class = " lineno " > 15 < / span > & # 160 ; < span class = " preprocessor " > # define _LIBCPP_BSD_LOCALE_FALLBACKS_DEFAULTS_H < / span > < / div > < div class = " line " > < a name = " l00016 " > < / a > < span class = " lineno " > 16 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00017 " > < / a > < span class = " lineno " > 17 < / span > & # 160 ; < span class = " preprocessor " > # include & lt ; < a class = " code " href = " libc_09_09_2upstream_2include_2stdlib_8h . html " > stdlib . h < / a > & gt ; < / span > < / div > < div class = " line " > < a name = " l00018 " > < / a > < span class = " lineno " > 18 < / span > & # 160 ; < span class = " preprocessor " > # include & lt ; < a class = " code " href = " stdarg_8h . html " > stdarg . h < / a > & gt ; < / span > < / div > < div class = " line " > < a name = " l00019 " > < / a > < span class = " lineno " > 19 < / span > & # 160 ; < span class = " preprocessor " > # include & lt ; memory & gt ; < / span > < / div > < div class = " line " > < a name = " l00020 " > < / a > < span class = " lineno " > 20 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00021 " > < / a > < span class = " lineno " > 21 < / span > & # 160 ; < span class = " preprocessor " > # if ! defined ( _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER ) < / span > < / div > < div class = " line " > < a name = " l00022 " > < / a > < span class = " lineno " > 22 < / span > & # 160 ; < span class = " preprocessor " > # pragma GCC system_header < / span > < / div > < div class = " line " > < a name = " l00023 " > < / a > < span class = " lineno " > 23 < / span > & # 160 ; < span class = " preprocessor " > # endif < / span > < / div > < div class = " line " > < a name = " l00024 " > < / a > < span class = " lineno " > 24 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00025 " > < / a > < span class = " lineno " > 25 < / span > & # 160 ; < a class = " code " href = " namespace___l_i_b_c_p_p___b_e_g_i_n___n_a_m_e_s_p_a_c_e___s_t_d . html " > _LIBCPP_BEGIN_NAMESPACE_STD < / a > < / div > < div class = " line " > < a name = " l00026 " > < / a > < span class = " lineno " > 26 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00027 " > < / a > < span class = " lineno " > 27 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00028 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # a93d9a28b9ab5e281fb84eaa9f0db446b " > 28 < / a > < / span > & # 160 ; decltype ( < a class = " code " href = " musl_2upstream_2include_2stdlib_8h . html # a5455b7a60d7e3087ec55dfe37a088bd1 " > MB_CUR_MAX < / a > ) < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # a93d9a28b9ab5e281fb84eaa9f0db446b " > __libcpp_mb_cur_max_l < / a > ( < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00029 " > < / a > < span class = " lineno " > 29 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00030 " > < / a > < span class = " lineno " > 30 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00031 " > < / a > < span class = " lineno " > 31 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2stdlib_8h . html # a5455b7a60d7e3087ec55dfe37a088bd1 " > MB_CUR_MAX < / a > ; < / div > < div class = " line " > < a name = " l00032 " > < / a > < span class = " lineno " > 32 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00033 " > < / a > < span class = " lineno " > 33 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00034 " > < / a > < span class = " lineno " > 34 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00035 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # a1db668b9b18f41c766598cfa923410af " > 35 < / a > < / span > & # 160 ; < a class = " code " href = " musl_2upstream_2include_2bits_2wchar_8h . html # afd307bf4f6f216075c93f524a7d4c739 " > wint_t < / a > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # a1db668b9b18f41c766598cfa923410af " > __libcpp_btowc_l < / a > ( < span class = " keywordtype " > int < / span > __c , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00036 " > < / a > < span class = " lineno " > 36 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00037 " > < / a > < span class = " lineno " > 37 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00038 " > < / a > < span class = " lineno " > 38 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2wchar_8h . html # a53ce051f02001b5aa39d3ff641d4f27c " > btowc < / a > ( __c ) ; < / div > < div class = " line " > < a name = " l00039 " > < / a > < span class = " lineno " > 39 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00040 " > < / a > < span class = " lineno " > 40 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00041 " > < / a > < span class = " lineno " > 41 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00042 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # a9b4d4f51a6594fda2020a30fa2e8b1d8 " > 42 < / a > < / span > & # 160 ; < span class = " keywordtype " > int < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # a9b4d4f51a6594fda2020a30fa2e8b1d8 " > __libcpp_wctob_l < / a > ( < a class = " code " href = " musl_2upstream_2include_2bits_2wchar_8h . html # afd307bf4f6f216075c93f524a7d4c739 " > wint_t < / a > __c , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00043 " > < / a > < span class = " lineno " > 43 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00044 " > < / a > < span class = " lineno " > 44 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00045 " > < / a > < span class = " lineno " > 45 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2wchar_8h . html # a470d7a5ce8177e40bb7fca92a447775b " > wctob < / a > ( __c ) ; < / div > < div class = " line " > < a name = " l00046 " > < / a > < span class = " lineno " > 46 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00047 " > < / a > < span class = " lineno " > 47 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00048 " > < / a > < span class = " lineno " > 48 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00049 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # a193281939bdb1f125afb0b09f4b66c90 " > 49 < / a > < / span > & # 160 ; < span class = " keywordtype " > size_t < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # a193281939bdb1f125afb0b09f4b66c90 " > __libcpp_wcsnrtombs_l < / a > ( < span class = " keywordtype " > char < / span > * __dest , < span class = " keyword " > const < / span > < span class = " keywordtype " > wchar_t < / span > * * __src , < span class = " keywordtype " > size_t < / span > __nwc , < / div > < div class = " line " > < a name = " l00050 " > < / a > < span class = " lineno " > 50 < / span > & # 160 ; < span class = " keywordtype " > size_t < / span > __len , < a class = " code " href = " struct____mbstate__t . html " > mbstate_t < / a > * __ps , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00051 " > < / a > < span class = " lineno " > 51 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00052 " > < / a > < span class = " lineno " > 52 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00053 " > < / a > < span class = " lineno " > 53 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2wchar_8h . html # a930c94cc2ad1e740db4517e546ad4495 " > wcsnrtombs < / a > ( __dest , __src , __nwc , __len , __ps ) ; < / div > < div class = " line " > < a name = " l00054 " > < / a > < span class = " lineno " > 54 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00055 " > < / a > < span class = " lineno " > 55 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00056 " > < / a > < span class = " lineno " > 56 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00057 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # ac7af7cfcae28ff8708458e560c36e65b " > 57 < / a > < / span > & # 160 ; < span class = " keywordtype " > size_t < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # ac7af7cfcae28ff8708458e560c36e65b " > __libcpp_wcrtomb_l < / a > ( < span class = " keywordtype " > char < / span > * __s , < span class = " keywordtype " > wchar_t < / span > __wc , < a class = " code " href = " struct____mbstate__t . html " > mbstate_t < / a > * __ps , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00058 " > < / a > < span class = " lineno " > 58 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00059 " > < / a > < span class = " lineno " > 59 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00060 " > < / a > < span class = " lineno " > 60 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2wchar_8h . html # a88416151367e6c60e7efdab8ed1ed8e0 " > wcrtomb < / a > ( __s , __wc , __ps ) ; < / div > < div class = " line " > < a name = " l00061 " > < / a > < span class = " lineno " > 61 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00062 " > < / a > < span class = " lineno " > 62 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00063 " > < / a > < span class = " lineno " > 63 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00064 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # a5fadc4159799f95222f2b1ca1189d2a4 " > 64 < / a > < / span > & # 160 ; < span class = " keywordtype " > size_t < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # a5fadc4159799f95222f2b1ca1189d2a4 " > __libcpp_mbsnrtowcs_l < / a > ( < span class = " keywordtype " > wchar_t < / span > * __dest , < span class = " keyword " > const < / span > < span class = " keywordtype " > char < / span > * * __src , < span class = " keywordtype " > size_t < / span > __nms , < / div > < div class = " line " > < a name = " l00065 " > < / a > < span class = " lineno " > 65 < / span > & # 160 ; < span class = " keywordtype " > size_t < / span > __len , < a class = " code " href = " struct____mbstate__t . html " > mbstate_t < / a > * __ps , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00066 " > < / a > < span class = " lineno " > 66 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00067 " > < / a > < span class = " lineno " > 67 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00068 " > < / a > < span class = " lineno " > 68 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2wchar_8h . html # a0a036e761b18c6bddf5e94e7c03b7eee " > mbsnrtowcs < / a > ( __dest , __src , __nms , __len , __ps ) ; < / div > < div class = " line " > < a name = " l00069 " > < / a > < span class = " lineno " > 69 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00070 " > < / a > < span class = " lineno " > 70 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00071 " > < / a > < span class = " lineno " > 71 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00072 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # af0fa188876631bf8f11e202eb14b604d " > 72 < / a > < / span > & # 160 ; < span class = " keywordtype " > size_t < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # af0fa188876631bf8f11e202eb14b604d " > __libcpp_mbrtowc_l < / a > ( < span class = " keywordtype " > wchar_t < / span > * __pwc , < span class = " keyword " > const < / span > < span class = " keywordtype " > char < / span > * __s , < span class = " keywordtype " > size_t < / span > __n , < / div > < div class = " line " > < a name = " l00073 " > < / a > < span class = " lineno " > 73 < / span > & # 160 ; < a class = " code " href = " struct____mbstate__t . html " > mbstate_t < / a > * __ps , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00074 " > < / a > < span class = " lineno " > 74 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00075 " > < / a > < span class = " lineno " > 75 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00076 " > < / a > < span class = " lineno " > 76 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2wchar_8h . html # afebbea8ad4d692c1e3723e902e8274dd " > mbrtowc < / a > ( __pwc , __s , __n , __ps ) ; < / div > < div class = " line " > < a name = " l00077 " > < / a > < span class = " lineno " > 77 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00078 " > < / a > < span class = " lineno " > 78 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00079 " > < / a > < span class = " lineno " > 79 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00080 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # ad4703e5ce052cdcf2ce1c41ce121c760 " > 80 < / a > < / span > & # 160 ; < span class = " keywordtype " > int < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # ad4703e5ce052cdcf2ce1c41ce121c760 " > __libcpp_mbtowc_l < / a > ( < span class = " keywordtype " > wchar_t < / span > * __pwc , < span class = " keyword " > const < / span > < span class = " keywordtype " > char < / span > * __pmb , < span class = " keywordtype " > size_t < / span > __max , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00081 " > < / a > < span class = " lineno " > 81 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00082 " > < / a > < span class = " lineno " > 82 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00083 " > < / a > < span class = " lineno " > 83 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2stdlib_8h . html # a3ba78fe8b2c8751cf1701980f046a52b " > mbtowc < / a > ( __pwc , __pmb , __max ) ; < / div > < div class = " line " > < a name = " l00084 " > < / a > < span class = " lineno " > 84 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00085 " > < / a > < span class = " lineno " > 85 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00086 " > < / a > < span class = " lineno " > 86 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00087 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # ad3b9dd25053413ef386891a1c2b42db3 " > 87 < / a > < / span > & # 160 ; < span class = " keywordtype " > size_t < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # ad3b9dd25053413ef386891a1c2b42db3 " > __libcpp_mbrlen_l < / a > ( < span class = " keyword " > const < / span > < span class = " keywordtype " > char < / span > * __s , < span class = " keywordtype " > size_t < / span > __n , < a class = " code " href = " struct____mbstate__t . html " > mbstate_t < / a > * __ps , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00088 " > < / a > < span class = " lineno " > 88 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00089 " > < / a > < span class = " lineno " > 89 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00090 " > < / a > < span class = " lineno " > 90 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2wchar_8h . html # a6bd329ff3121078a28f3f45fac85dd50 " > mbrlen < / a > ( __s , __n , __ps ) ; < / div > < div class = " line " > < a name = " l00091 " > < / a > < span class = " lineno " > 91 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00092 " > < / a > < span class = " lineno " > 92 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00093 " > < / a > < span class = " lineno " > 93 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00094 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # a5d425f8eea945613f934efeb6f4ab3cb " > 94 < / a > < / span > & # 160 ; < a class = " code " href = " structlconv . html " > lconv < / a > * < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # a5d425f8eea945613f934efeb6f4ab3cb " > __libcpp_localeconv_l < / a > ( < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00095 " > < / a > < span class = " lineno " > 95 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00096 " > < / a > < span class = " lineno " > 96 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00097 " > < / a > < span class = " lineno " > 97 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2locale_8h . html # a69b40f71a20a7c8bd67b9eeeae7f40c9 " > localeconv < / a > ( ) ; < / div > < div class = " line " > < a name = " l00098 " > < / a > < span class = " lineno " > 98 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00099 " > < / a > < span class = " lineno " > 99 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00100 " > < / a > < span class = " lineno " > 100 < / span > & # 160 ; < span class = " keyword " > inline < / span > _LIBCPP_ALWAYS_INLINE < / div > < div class = " line " > < a name = " l00101 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # a1fb270a79574bfbfb54ae99c94ef1a80 " > 101 < / a > < / span > & # 160 ; < span class = " keywordtype " > size_t < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # a1fb270a79574bfbfb54ae99c94ef1a80 " > __libcpp_mbsrtowcs_l < / a > ( < span class = " keywordtype " > wchar_t < / span > * __dest , < span class = " keyword " > const < / span > < span class = " keywordtype " > char < / span > * * __src , < span class = " keywordtype " > size_t < / span > __len , < / div > < div class = " line " > < a name = " l00102 " > < / a > < span class = " lineno " > 102 < / span > & # 160 ; < a class = " code " href = " struct____mbstate__t . html " > mbstate_t < / a > * __ps , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l ) < / div > < div class = " line " > < a name = " l00103 " > < / a > < span class = " lineno " > 103 < / span > & # 160 ; { < / div > < div class = " line " > < a name = " l00104 " > < / a > < span class = " lineno " > 104 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00105 " > < / a > < span class = " lineno " > 105 < / span > & # 160 ; < span class = " keywordflow " > return < / span > < a class = " code " href = " musl_2upstream_2include_2wchar_8h . html # acfa0f1436951581c4cee1c7674b340c8 " > mbsrtowcs < / a > ( __dest , __src , __len , __ps ) ; < / div > < div class = " line " > < a name = " l00106 " > < / a > < span class = " lineno " > 106 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00107 " > < / a > < span class = " lineno " > 107 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00108 " > < / a > < span class = " lineno " > 108 < / span > & # 160 ; < span class = " keyword " > inline < / span > < / div > < div class = " line " > < a name = " l00109 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # ada8c08a70e6b19c6f983cf9c8aaade1b " > 109 < / a > < / span > & # 160 ; < span class = " keywordtype " > int < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # ada8c08a70e6b19c6f983cf9c8aaade1b " > __libcpp_snprintf_l < / a > ( < span class = " keywordtype " > char < / span > * __s , < span class = " keywordtype " > size_t < / span > __n , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l , < span class = " keyword " > const < / span > < span class = " keywordtype " > char < / span > * __format , . . . ) { < / div > < div class = " line " > < a name = " l00110 " > < / a > < span class = " lineno " > 110 < / span > & # 160 ; < a class = " code " href = " alltypes_8h . html # af53f622e3b6c080daeb167c1955d7ec1 " > va_list < / a > __va ; < / div > < div class = " line " > < a name = " l00111 " > < / a > < span class = " lineno " > 111 < / span > & # 160 ; < a class = " code " href = " stdarg_8h . html # aa0628ab596c3d7e78f5e08c2d98e24da " > va_start < / a > ( __va , __format ) ; < / div > < div class = " line " > < a name = " l00112 " > < / a > < span class = " lineno " > 112 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00113 " > < / a > < span class = " lineno " > 113 < / span > & # 160 ; < span class = " keywordtype " > int < / span > __res = < a class = " code " href = " musl_2upstream_2include_2stdio_8h . html # a40a8e54735545fc1b9d1c7a89db07ed9 " > vsnprintf < / a > ( __s , __n , __format , __va ) ; < / div > < div class = " line " > < a name = " l00114 " > < / a > < span class = " lineno " > 114 < / span > & # 160 ; < a class = " code " href = " stdarg_8h . html # a823b205416e9129825841b74c3bf8484 " > va_end < / a > ( __va ) ; < / div > < div class = " line " > < a name = " l00115 " > < / a > < span class = " lineno " > 115 < / span > & # 160 ; < span class = " keywordflow " > return < / span > __res ; < / div > < div class = " line " > < a name = " l00116 " > < / a > < span class = " lineno " > 116 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00117 " > < / a > < span class = " lineno " > 117 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00118 " > < / a > < span class = " lineno " > 118 < / span > & # 160 ; < span class = " keyword " > inline < / span > < / div > < div class = " line " > < a name = " l00119 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # a657660135cfd29cc2a649f2bdbf316c8 " > 119 < / a > < / span > & # 160 ; < span class = " keywordtype " > int < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # a657660135cfd29cc2a649f2bdbf316c8 " > __libcpp_asprintf_l < / a > ( < span class = " keywordtype " > char < / span > * * __s , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l , < span class = " keyword " > const < / span > < span class = " keywordtype " > char < / span > * __format , . . . ) { < / div > < div class = " line " > < a name = " l00120 " > < / a > < span class = " lineno " > 120 < / span > & # 160 ; < a class = " code " href = " alltypes_8h . html # af53f622e3b6c080daeb167c1955d7ec1 " > va_list < / a > __va ; < / div > < div class = " line " > < a name = " l00121 " > < / a > < span class = " lineno " > 121 < / span > & # 160 ; < a class = " code " href = " stdarg_8h . html # aa0628ab596c3d7e78f5e08c2d98e24da " > va_start < / a > ( __va , __format ) ; < / div > < div class = " line " > < a name = " l00122 " > < / a > < span class = " lineno " > 122 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00123 " > < / a > < span class = " lineno " > 123 < / span > & # 160 ; < span class = " keywordtype " > int < / span > __res = < a class = " code " href = " musl_2upstream_2include_2stdio_8h . html # ada2e0d1a4d3a5373205460ed95e7bccf " > vasprintf < / a > ( __s , __format , __va ) ; < / div > < div class = " line " > < a name = " l00124 " > < / a > < span class = " lineno " > 124 < / span > & # 160 ; < a class = " code " href = " stdarg_8h . html # a823b205416e9129825841b74c3bf8484 " > va_end < / a > ( __va ) ; < / div > < div class = " line " > < a name = " l00125 " > < / a > < span class = " lineno " > 125 < / span > & # 160 ; < span class = " keywordflow " > return < / span > __res ; < / div > < div class = " line " > < a name = " l00126 " > < / a > < span class = " lineno " > 126 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00127 " > < / a > < span class = " lineno " > 127 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00128 " > < / a > < span class = " lineno " > 128 < / span > & # 160 ; < span class = " keyword " > inline < / span > < / div > < div class = " line " > < a name = " l00129 " > < / a > < span class = " lineno " > < a class = " line " href = " ____bsd__locale__fallbacks_8h . html # a1908098924cf4e7f30fbca6c8c8464b4 " > 129 < / a > < / span > & # 160 ; < span class = " keywordtype " > int < / span > < a class = " code " href = " ____bsd__locale__fallbacks_8h . html # a1908098924cf4e7f30fbca6c8c8464b4 " > __libcpp_sscanf_l < / a > ( < span class = " keyword " > const < / span > < span class = " keywordtype " > char < / span > * __s , < a class = " code " href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > __l , < span class = " keyword " > const < / span > < span class = " keywordtype " > char < / span > * __format , . . . ) { < / div > < div class = " line " > < a name = " l00130 " > < / a > < span class = " lineno " > 130 < / span > & # 160 ; < a class = " code " href = " alltypes_8h . html # af53f622e3b6c080daeb167c1955d7ec1 " > va_list < / a > __va ; < / div > < div class = " line " > < a name = " l00131 " > < / a > < span class = " lineno " > 131 < / span > & # 160 ; < a class = " code " href = " stdarg_8h . html # aa0628ab596c3d7e78f5e08c2d98e24da " > va_start < / a > ( __va , __format ) ; < / div > < div class = " line " > < a name = " l00132 " > < / a > < span class = " lineno " > 132 < / span > & # 160 ; __libcpp_locale_guard __current ( __l ) ; < / div > < div class = " line " > < a name = " l00133 " > < / a > < span class = " lineno " > 133 < / span > & # 160 ; < span class = " keywordtype " > int < / span > __res = < a class = " code " href = " musl_2upstream_2include_2stdio_8h . html # a1b626562ab5b7765794fd75d0bb72b88 " > vsscanf < / a > ( __s , __format , __va ) ; < / div > < div class = " line " > < a name = " l00134 " > < / a > < span class = " lineno " > 134 < / span > & # 160 ; < a class = " code " href = " stdarg_8h . html # a823b205416e9129825841b74c3bf8484 " > va_end < / a > ( __va ) ; < / div > < div class = " line " > < a name = " l00135 " > < / a > < span class = " lineno " > 135 < / span > & # 160 ; < span class = " keywordflow " > return < / span > __res ; < / div > < div class = " line " > < a name = " l00136 " > < / a > < span class = " lineno " > 136 < / span > & # 160 ; } < / div > < div class = " line " > < a name = " l00137 " > < / a > < span class = " lineno " > 137 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00138 " > < / a > < span class = " lineno " > 138 < / span > & # 160 ; _LIBCPP_END_NAMESPACE_STD < / div > < div class = " line " > < a name = " l00139 " > < / a > < span class = " lineno " > 139 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00140 " > < / a > < span class = " lineno " > 140 < / span > & # 160 ; < span class = " preprocessor " > # endif / / _LIBCPP_BSD_LOCALE_FALLBACKS_DEFAULTS_H < / span > < / div > < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_a1fb270a79574bfbfb54ae99c94ef1a80 " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # a1fb270a79574bfbfb54ae99c94ef1a80 " > __libcpp_mbsrtowcs_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_ALWAYS_INLINE size_t __libcpp_mbsrtowcs_l ( wchar_t * __dest , const char * * __src , size_t __len , mbstate_t * __ps , locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 101 < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_af0fa188876631bf8f11e202eb14b604d " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # af0fa188876631bf8f11e202eb14b604d " > __libcpp_mbrtowc_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_ALWAYS_INLINE size_t __libcpp_mbrtowc_l ( wchar_t * __pwc , const char * __s , size_t __n , mbstate_t * __ps , locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 72 < / div > < / div > <nl> + < div class = " ttc " id = " namespace___l_i_b_c_p_p___b_e_g_i_n___n_a_m_e_s_p_a_c_e___s_t_d_html " > < div class = " ttname " > < a href = " namespace___l_i_b_c_p_p___b_e_g_i_n___n_a_m_e_s_p_a_c_e___s_t_d . html " > _LIBCPP_BEGIN_NAMESPACE_STD < / a > < / div > < div class = " ttdef " > < b > Definition : < / b > hash . cpp : 21 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2stdlib_8h_html_a3ba78fe8b2c8751cf1701980f046a52b " > < div class = " ttname " > < a href = " musl_2upstream_2include_2stdlib_8h . html # a3ba78fe8b2c8751cf1701980f046a52b " > mbtowc < / a > < / div > < div class = " ttdeci " > int mbtowc ( wchar_t * __restrict , const char * __restrict , size_t ) < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2stdio_8h_html_ada2e0d1a4d3a5373205460ed95e7bccf " > < div class = " ttname " > < a href = " musl_2upstream_2include_2stdio_8h . html # ada2e0d1a4d3a5373205460ed95e7bccf " > vasprintf < / a > < / div > < div class = " ttdeci " > int vasprintf ( char * * , const char * , __isoc_va_list ) < / div > < div class = " ttdef " > < b > Definition : < / b > vasprintf . c : 6 < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_a1908098924cf4e7f30fbca6c8c8464b4 " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # a1908098924cf4e7f30fbca6c8c8464b4 " > __libcpp_sscanf_l < / a > < / div > < div class = " ttdeci " > int __libcpp_sscanf_l ( const char * __s , locale_t __l , const char * __format , . . . ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 129 < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_a93d9a28b9ab5e281fb84eaa9f0db446b " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # a93d9a28b9ab5e281fb84eaa9f0db446b " > __libcpp_mb_cur_max_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_BEGIN_NAMESPACE_STDdecltype ( MB_CUR_MAX ) _LIBCPP_ALWAYS_INLINE __libcpp_mb_cur_max_l ( locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 28 < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_a193281939bdb1f125afb0b09f4b66c90 " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # a193281939bdb1f125afb0b09f4b66c90 " > __libcpp_wcsnrtombs_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_ALWAYS_INLINE size_t __libcpp_wcsnrtombs_l ( char * __dest , const wchar_t * * __src , size_t __nwc , size_t __len , mbstate_t * __ps , locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 49 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2locale_8h_html_a69b40f71a20a7c8bd67b9eeeae7f40c9 " > < div class = " ttname " > < a href = " musl_2upstream_2include_2locale_8h . html # a69b40f71a20a7c8bd67b9eeeae7f40c9 " > localeconv < / a > < / div > < div class = " ttdeci " > struct lconv * localeconv ( void ) < / div > < div class = " ttdef " > < b > Definition : < / b > localeconv . c : 31 < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_a5fadc4159799f95222f2b1ca1189d2a4 " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # a5fadc4159799f95222f2b1ca1189d2a4 " > __libcpp_mbsnrtowcs_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_ALWAYS_INLINE size_t __libcpp_mbsnrtowcs_l ( wchar_t * __dest , const char * * __src , size_t __nms , size_t __len , mbstate_t * __ps , locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 64 < / div > < / div > <nl> + < div class = " ttc " id = " stdarg_8h_html_a823b205416e9129825841b74c3bf8484 " > < div class = " ttname " > < a href = " stdarg_8h . html # a823b205416e9129825841b74c3bf8484 " > va_end < / a > < / div > < div class = " ttdeci " > # define va_end ( v ) < / div > < div class = " ttdef " > < b > Definition : < / b > stdarg . h : 13 < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_ad3b9dd25053413ef386891a1c2b42db3 " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # ad3b9dd25053413ef386891a1c2b42db3 " > __libcpp_mbrlen_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_ALWAYS_INLINE size_t __libcpp_mbrlen_l ( const char * __s , size_t __n , mbstate_t * __ps , locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 87 < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_a657660135cfd29cc2a649f2bdbf316c8 " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # a657660135cfd29cc2a649f2bdbf316c8 " > __libcpp_asprintf_l < / a > < / div > < div class = " ttdeci " > int __libcpp_asprintf_l ( char * * __s , locale_t __l , const char * __format , . . . ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 119 < / div > < / div > <nl> + < div class = " ttc " id = " structlconv_html " > < div class = " ttname " > < a href = " structlconv . html " > lconv < / a > < / div > < div class = " ttdef " > < b > Definition : < / b > locale . h : 24 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2wchar_8h_html_a470d7a5ce8177e40bb7fca92a447775b " > < div class = " ttname " > < a href = " musl_2upstream_2include_2wchar_8h . html # a470d7a5ce8177e40bb7fca92a447775b " > wctob < / a > < / div > < div class = " ttdeci " > int wctob ( wint_t ) < / div > < div class = " ttdef " > < b > Definition : < / b > wctob . c : 6 < / div > < / div > <nl> + < div class = " ttc " id = " stdarg_8h_html_aa0628ab596c3d7e78f5e08c2d98e24da " > < div class = " ttname " > < a href = " stdarg_8h . html # aa0628ab596c3d7e78f5e08c2d98e24da " > va_start < / a > < / div > < div class = " ttdeci " > # define va_start ( v , l ) < / div > < div class = " ttdef " > < b > Definition : < / b > stdarg . h : 12 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2wchar_8h_html_a88416151367e6c60e7efdab8ed1ed8e0 " > < div class = " ttname " > < a href = " musl_2upstream_2include_2wchar_8h . html # a88416151367e6c60e7efdab8ed1ed8e0 " > wcrtomb < / a > < / div > < div class = " ttdeci " > size_t wcrtomb ( char * __restrict , wchar_t , mbstate_t * __restrict ) < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2wchar_8h_html_a0a036e761b18c6bddf5e94e7c03b7eee " > < div class = " ttname " > < a href = " musl_2upstream_2include_2wchar_8h . html # a0a036e761b18c6bddf5e94e7c03b7eee " > mbsnrtowcs < / a > < / div > < div class = " ttdeci " > size_t mbsnrtowcs ( wchar_t * __restrict , const char * * __restrict , size_t , size_t , mbstate_t * __restrict ) < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2wchar_8h_html_a6bd329ff3121078a28f3f45fac85dd50 " > < div class = " ttname " > < a href = " musl_2upstream_2include_2wchar_8h . html # a6bd329ff3121078a28f3f45fac85dd50 " > mbrlen < / a > < / div > < div class = " ttdeci " > size_t mbrlen ( const char * __restrict , size_t , mbstate_t * __restrict ) < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2bits_2wchar_8h_html_afd307bf4f6f216075c93f524a7d4c739 " > < div class = " ttname " > < a href = " musl_2upstream_2include_2bits_2wchar_8h . html # afd307bf4f6f216075c93f524a7d4c739 " > wint_t < / a > < / div > < div class = " ttdeci " > wchar_t wint_t < / div > < div class = " ttdef " > < b > Definition : < / b > wchar . h : 11 < / div > < / div > <nl> + < div class = " ttc " id = " libc_09_09_2upstream_2include_2stdlib_8h_html " > < div class = " ttname " > < a href = " libc_09_09_2upstream_2include_2stdlib_8h . html " > stdlib . h < / a > < / div > < / div > <nl> + < div class = " ttc " id = " ____nop__locale__mgmt_8h_html_aa1f5af873d05619cbcf7901e194b292c " > < div class = " ttname " > < a href = " ____nop__locale__mgmt_8h . html # aa1f5af873d05619cbcf7901e194b292c " > locale_t < / a > < / div > < div class = " ttdeci " > void * locale_t < / div > < div class = " ttdef " > < b > Definition : < / b > __nop_locale_mgmt . h : 19 < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_ad4703e5ce052cdcf2ce1c41ce121c760 " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # ad4703e5ce052cdcf2ce1c41ce121c760 " > __libcpp_mbtowc_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_ALWAYS_INLINE int __libcpp_mbtowc_l ( wchar_t * __pwc , const char * __pmb , size_t __max , locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 80 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2stdio_8h_html_a1b626562ab5b7765794fd75d0bb72b88 " > < div class = " ttname " > < a href = " musl_2upstream_2include_2stdio_8h . html # a1b626562ab5b7765794fd75d0bb72b88 " > vsscanf < / a > < / div > < div class = " ttdeci " > int vsscanf ( const char * __restrict , const char * __restrict , __isoc_va_list ) < / div > < / div > <nl> + < div class = " ttc " id = " stdarg_8h_html " > < div class = " ttname " > < a href = " stdarg_8h . html " > stdarg . h < / a > < / div > < / div > <nl> + < div class = " ttc " id = " struct____mbstate__t_html " > < div class = " ttname " > < a href = " struct____mbstate__t . html " > __mbstate_t < / a > < / div > < div class = " ttdef " > < b > Definition : < / b > alltypes . h : 13 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2stdlib_8h_html_a5455b7a60d7e3087ec55dfe37a088bd1 " > < div class = " ttname " > < a href = " musl_2upstream_2include_2stdlib_8h . html # a5455b7a60d7e3087ec55dfe37a088bd1 " > MB_CUR_MAX < / a > < / div > < div class = " ttdeci " > # define MB_CUR_MAX < / div > < div class = " ttdef " > < b > Definition : < / b > stdlib . h : 77 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2wchar_8h_html_afebbea8ad4d692c1e3723e902e8274dd " > < div class = " ttname " > < a href = " musl_2upstream_2include_2wchar_8h . html # afebbea8ad4d692c1e3723e902e8274dd " > mbrtowc < / a > < / div > < div class = " ttdeci " > size_t mbrtowc ( wchar_t * __restrict , const char * __restrict , size_t , mbstate_t * __restrict ) < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_a1db668b9b18f41c766598cfa923410af " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # a1db668b9b18f41c766598cfa923410af " > __libcpp_btowc_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_ALWAYS_INLINE wint_t __libcpp_btowc_l ( int __c , locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 35 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2stdio_8h_html_a40a8e54735545fc1b9d1c7a89db07ed9 " > < div class = " ttname " > < a href = " musl_2upstream_2include_2stdio_8h . html # a40a8e54735545fc1b9d1c7a89db07ed9 " > vsnprintf < / a > < / div > < div class = " ttdeci " > int vsnprintf ( char * __restrict , size_t , const char * __restrict , __isoc_va_list ) < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_a5d425f8eea945613f934efeb6f4ab3cb " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # a5d425f8eea945613f934efeb6f4ab3cb " > __libcpp_localeconv_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_ALWAYS_INLINE lconv * __libcpp_localeconv_l ( locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 94 < / div > < / div > <nl> + < div class = " ttc " id = " alltypes_8h_html_af53f622e3b6c080daeb167c1955d7ec1 " > < div class = " ttname " > < a href = " alltypes_8h . html # af53f622e3b6c080daeb167c1955d7ec1 " > va_list < / a > < / div > < div class = " ttdeci " > __builtin_va_list va_list < / div > < div class = " ttdef " > < b > Definition : < / b > alltypes . h : 8 < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_a9b4d4f51a6594fda2020a30fa2e8b1d8 " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # a9b4d4f51a6594fda2020a30fa2e8b1d8 " > __libcpp_wctob_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_ALWAYS_INLINE int __libcpp_wctob_l ( wint_t __c , locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 42 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2wchar_8h_html_a930c94cc2ad1e740db4517e546ad4495 " > < div class = " ttname " > < a href = " musl_2upstream_2include_2wchar_8h . html # a930c94cc2ad1e740db4517e546ad4495 " > wcsnrtombs < / a > < / div > < div class = " ttdeci " > size_t wcsnrtombs ( char * __restrict , const wchar_t * * __restrict , size_t , size_t , mbstate_t * __restrict ) < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_ada8c08a70e6b19c6f983cf9c8aaade1b " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # ada8c08a70e6b19c6f983cf9c8aaade1b " > __libcpp_snprintf_l < / a > < / div > < div class = " ttdeci " > int __libcpp_snprintf_l ( char * __s , size_t __n , locale_t __l , const char * __format , . . . ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 109 < / div > < / div > <nl> + < div class = " ttc " id = " ____bsd__locale__fallbacks_8h_html_ac7af7cfcae28ff8708458e560c36e65b " > < div class = " ttname " > < a href = " ____bsd__locale__fallbacks_8h . html # ac7af7cfcae28ff8708458e560c36e65b " > __libcpp_wcrtomb_l < / a > < / div > < div class = " ttdeci " > _LIBCPP_ALWAYS_INLINE size_t __libcpp_wcrtomb_l ( char * __s , wchar_t __wc , mbstate_t * __ps , locale_t __l ) < / div > < div class = " ttdef " > < b > Definition : < / b > __bsd_locale_fallbacks . h : 57 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2wchar_8h_html_a53ce051f02001b5aa39d3ff641d4f27c " > < div class = " ttname " > < a href = " musl_2upstream_2include_2wchar_8h . html # a53ce051f02001b5aa39d3ff641d4f27c " > btowc < / a > < / div > < div class = " ttdeci " > wint_t btowc ( int ) < / div > < div class = " ttdef " > < b > Definition : < / b > btowc . c : 6 < / div > < / div > <nl> + < div class = " ttc " id = " musl_2upstream_2include_2wchar_8h_html_acfa0f1436951581c4cee1c7674b340c8 " > < div class = " ttname " > < a href = " musl_2upstream_2include_2wchar_8h . html # acfa0f1436951581c4cee1c7674b340c8 " > mbsrtowcs < / a > < / div > < div class = " ttdeci " > size_t mbsrtowcs ( wchar_t * __restrict , const char * * __restrict , size_t , mbstate_t * __restrict ) < / div > < / div > <nl> + < / div > < ! - - fragment - - > < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 91e3307556 <nl> mmm / dev / null <nl> ppp b / docs / ____cos_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __cos . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __cos . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " libm_8h_source . html " > libm . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a2d00fbef46c6ae2bdd76580333737de6 " > < td class = " memItemLeft " align = " right " valign = " top " > double & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____cos_8c . html # a2d00fbef46c6ae2bdd76580333737de6 " > __cos < / a > ( double < a class = " el " href = " std_2utilities_2utility_2forward_2move_8pass_8cpp . html # a6150e0515f7202e2fb518f7206ed97dc " > x < / a > , double < a class = " el " href = " numerics_2numeric_8ops_2numeric_8ops_8lcm_2lcm_8pass_8cpp . html # a0a2f84ed7838f07779ae24c5a9086d33 " > y < / a > ) < / td > < / tr > <nl> + < tr class = " separator : a2d00fbef46c6ae2bdd76580333737de6 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a2d00fbef46c6ae2bdd76580333737de6 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a2d00fbef46c6ae2bdd76580333737de6 " > & # 9670 ; & nbsp ; < / a > < / span > __cos ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > double __cos < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > double & # 160 ; < / td > <nl> + < td class = " paramname " > < em > x < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > double & # 160 ; < / td > <nl> + < td class = " paramname " > < em > y < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 8a2037af35 <nl> mmm / dev / null <nl> ppp b / docs / ____cosdf_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __cosdf . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __cosdf . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " libm_8h_source . html " > libm . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a7010459f0c8532ed5188fe2dc81dea85 " > < td class = " memItemLeft " align = " right " valign = " top " > float & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____cosdf_8c . html # a7010459f0c8532ed5188fe2dc81dea85 " > __cosdf < / a > ( double < a class = " el " href = " std_2utilities_2utility_2forward_2move_8pass_8cpp . html # a6150e0515f7202e2fb518f7206ed97dc " > x < / a > ) < / td > < / tr > <nl> + < tr class = " separator : a7010459f0c8532ed5188fe2dc81dea85 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a7010459f0c8532ed5188fe2dc81dea85 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a7010459f0c8532ed5188fe2dc81dea85 " > & # 9670 ; & nbsp ; < / a > < / span > __cosdf ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > float __cosdf < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > double & # 160 ; < / td > <nl> + < td class = " paramname " > < em > x < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 7612b78123 <nl> mmm / dev / null <nl> ppp b / docs / ____cosl_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __cosl . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __cosl . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " libm_8h_source . html " > libm . h < / a > & quot ; < / code > < br / > <nl> + < / div > < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . c6bd683e5d <nl> mmm / dev / null <nl> ppp b / docs / ____ctype__b__loc_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / ctype / __ctype_b_loc . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_fa9327e29524ded4f1a44bedf32aecfc . html " > ctype < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # define - members " > Macros < / a > & # 124 ; <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __ctype_b_loc . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; < a class = " el " href = " endian_8h_source . html " > endian . h < / a > & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " define - members " > < / a > <nl> + Macros < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a618c2e7d70c13a7d7f980ce67333f0ee " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____ctype__b__loc_8c . html # a618c2e7d70c13a7d7f980ce67333f0ee " > X < / a > ( < a class = " el " href = " std_2utilities_2utility_2forward_2move_8pass_8cpp . html # a6150e0515f7202e2fb518f7206ed97dc " > x < / a > ) & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " std_2utilities_2utility_2forward_2move_8pass_8cpp . html # a6150e0515f7202e2fb518f7206ed97dc " > x < / a > < / td > < / tr > <nl> + < tr class = " separator : a618c2e7d70c13a7d7f980ce67333f0ee " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : ab9defe9717c79e55af6a95e6ce7addb2 " > < td class = " memItemLeft " align = " right " valign = " top " > const unsigned short * * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____ctype__b__loc_8c . html # ab9defe9717c79e55af6a95e6ce7addb2 " > __ctype_b_loc < / a > ( void ) < / td > < / tr > <nl> + < tr class = " separator : ab9defe9717c79e55af6a95e6ce7addb2 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Macro Definition Documentation < / h2 > <nl> + < a id = " a618c2e7d70c13a7d7f980ce67333f0ee " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a618c2e7d70c13a7d7f980ce67333f0ee " > & # 9670 ; & nbsp ; < / a > < / span > X < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define < a class = " el " href = " class_x . html " > X < / a > < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > & # 160 ; < / td > <nl> + < td class = " paramname " > < a class = " el " href = " std_2utilities_2utility_2forward_2move_8pass_8cpp . html # a6150e0515f7202e2fb518f7206ed97dc " > x < / a > < / td > < td > ) < / td > <nl> + < td > & # 160 ; & # 160 ; & # 160 ; < a class = " el " href = " std_2utilities_2utility_2forward_2move_8pass_8cpp . html # a6150e0515f7202e2fb518f7206ed97dc " > x < / a > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " ab9defe9717c79e55af6a95e6ce7addb2 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ab9defe9717c79e55af6a95e6ce7addb2 " > & # 9670 ; & nbsp ; < / a > < / span > __ctype_b_loc ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > const unsigned short * * __ctype_b_loc < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > void & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . b45e64ced9 <nl> mmm / dev / null <nl> ppp b / docs / ____ctype__get__mb__cur__max_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / ctype / __ctype_get_mb_cur_max . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_fa9327e29524ded4f1a44bedf32aecfc . html " > ctype < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __ctype_get_mb_cur_max . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; stdlib . h & gt ; < / code > < br / > <nl> + < code > # include & quot ; < a class = " el " href = " locale__impl_8h_source . html " > locale_impl . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a14b988866db91379687c635a339eb192 " > < td class = " memItemLeft " align = " right " valign = " top " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____ctype__get__mb__cur__max_8c . html # a14b988866db91379687c635a339eb192 " > __ctype_get_mb_cur_max < / a > ( ) < / td > < / tr > <nl> + < tr class = " separator : a14b988866db91379687c635a339eb192 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a14b988866db91379687c635a339eb192 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a14b988866db91379687c635a339eb192 " > & # 9670 ; & nbsp ; < / a > < / span > __ctype_get_mb_cur_max ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > __ctype_get_mb_cur_max < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > void & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . c174062ede <nl> mmm / dev / null <nl> ppp b / docs / ____ctype__tolower__loc_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / ctype / __ctype_tolower_loc . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_fa9327e29524ded4f1a44bedf32aecfc . html " > ctype < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __ctype_tolower_loc . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; stdint . h & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a6d858d4d79e739f674817e66b6a04c7d " > < td class = " memItemLeft " align = " right " valign = " top " > const < a class = " el " href = " musl_2upstream_2include_2bits_2stdint_8h . html # a0d2e949ab6a1bb62f1b295cc79bc1f60 " > int32_t < / a > * * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____ctype__tolower__loc_8c . html # a6d858d4d79e739f674817e66b6a04c7d " > __ctype_tolower_loc < / a > ( void ) < / td > < / tr > <nl> + < tr class = " separator : a6d858d4d79e739f674817e66b6a04c7d " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a6d858d4d79e739f674817e66b6a04c7d " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a6d858d4d79e739f674817e66b6a04c7d " > & # 9670 ; & nbsp ; < / a > < / span > __ctype_tolower_loc ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > const < a class = " el " href = " musl_2upstream_2include_2bits_2stdint_8h . html # a0d2e949ab6a1bb62f1b295cc79bc1f60 " > int32_t < / a > * * __ctype_tolower_loc < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > void & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 7728c94c6c <nl> mmm / dev / null <nl> ppp b / docs / ____ctype__toupper__loc_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / ctype / __ctype_toupper_loc . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_fa9327e29524ded4f1a44bedf32aecfc . html " > ctype < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __ctype_toupper_loc . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; stdint . h & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a04ab8a088f7741fb1b9c1710ce085cb1 " > < td class = " memItemLeft " align = " right " valign = " top " > const < a class = " el " href = " musl_2upstream_2include_2bits_2stdint_8h . html # a0d2e949ab6a1bb62f1b295cc79bc1f60 " > int32_t < / a > * * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____ctype__toupper__loc_8c . html # a04ab8a088f7741fb1b9c1710ce085cb1 " > __ctype_toupper_loc < / a > ( void ) < / td > < / tr > <nl> + < tr class = " separator : a04ab8a088f7741fb1b9c1710ce085cb1 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a04ab8a088f7741fb1b9c1710ce085cb1 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a04ab8a088f7741fb1b9c1710ce085cb1 " > & # 9670 ; & nbsp ; < / a > < / span > __ctype_toupper_loc ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > const < a class = " el " href = " musl_2upstream_2include_2bits_2stdint_8h . html # a0d2e949ab6a1bb62f1b295cc79bc1f60 " > int32_t < / a > * * __ctype_toupper_loc < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > void & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 9226974d73 <nl> mmm / dev / null <nl> ppp b / docs / ____environ_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / env / __environ . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_a5b3d6aa39e52ec68d52e8d2d0beaddf . html " > env < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > & # 124 ; <nl> + < a href = " # var - members " > Variables < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __environ . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " libc_8h_source . html " > libc . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : aab879c1156898d1fae3809f470f76f30 " > < td class = " memItemLeft " align = " right " valign = " top " > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____environ_8c . html # aab879c1156898d1fae3809f470f76f30 " > weak_alias < / a > ( < a class = " el " href = " vis_8h . html # a95b6220d61a976577ab6be0c30fe449a " > __environ < / a > , ___environ ) < / td > < / tr > <nl> + < tr class = " separator : aab879c1156898d1fae3809f470f76f30 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a57975400e2968eb85436e5520b029a65 " > < td class = " memItemLeft " align = " right " valign = " top " > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____environ_8c . html # a57975400e2968eb85436e5520b029a65 " > weak_alias < / a > ( < a class = " el " href = " vis_8h . html # a95b6220d61a976577ab6be0c30fe449a " > __environ < / a > , _environ ) < / td > < / tr > <nl> + < tr class = " separator : a57975400e2968eb85436e5520b029a65 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : aa1eef3a03b01c7ef8fb1d9115573dd58 " > < td class = " memItemLeft " align = " right " valign = " top " > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____environ_8c . html # aa1eef3a03b01c7ef8fb1d9115573dd58 " > weak_alias < / a > ( < a class = " el " href = " vis_8h . html # a95b6220d61a976577ab6be0c30fe449a " > __environ < / a > , < a class = " el " href = " vis_8h . html # abb6ebe787bea156751c985729dfe5147 " > environ < / a > ) < / td > < / tr > <nl> + < tr class = " separator : aa1eef3a03b01c7ef8fb1d9115573dd58 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " var - members " > < / a > <nl> + Variables < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a09fe4c716afd8b742c14d504555cf564 " > < td class = " memItemLeft " align = " right " valign = " top " > char * * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____environ_8c . html # a09fe4c716afd8b742c14d504555cf564 " > __environ < / a > = 0 < / td > < / tr > <nl> + < tr class = " separator : a09fe4c716afd8b742c14d504555cf564 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " aab879c1156898d1fae3809f470f76f30 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # aab879c1156898d1fae3809f470f76f30 " > & # 9670 ; & nbsp ; < / a > < / span > weak_alias ( ) < span class = " overload " > [ 1 / 3 ] < / span > < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > weak_alias < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " vis_8h . html # a95b6220d61a976577ab6be0c30fe449a " > __environ < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > ___environ & # 160 ; < / td > <nl> + < td class = " paramname " > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a57975400e2968eb85436e5520b029a65 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a57975400e2968eb85436e5520b029a65 " > & # 9670 ; & nbsp ; < / a > < / span > weak_alias ( ) < span class = " overload " > [ 2 / 3 ] < / span > < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > weak_alias < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " vis_8h . html # a95b6220d61a976577ab6be0c30fe449a " > __environ < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > _environ & # 160 ; < / td > <nl> + < td class = " paramname " > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " aa1eef3a03b01c7ef8fb1d9115573dd58 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # aa1eef3a03b01c7ef8fb1d9115573dd58 " > & # 9670 ; & nbsp ; < / a > < / span > weak_alias ( ) < span class = " overload " > [ 3 / 3 ] < / span > < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > weak_alias < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " vis_8h . html # a95b6220d61a976577ab6be0c30fe449a " > __environ < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " vis_8h . html # abb6ebe787bea156751c985729dfe5147 " > environ < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < h2 class = " groupheader " > Variable Documentation < / h2 > <nl> + < a id = " a09fe4c716afd8b742c14d504555cf564 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a09fe4c716afd8b742c14d504555cf564 " > & # 9670 ; & nbsp ; < / a > < / span > __environ < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > char * * __environ = 0 < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . eb149ba714 <nl> mmm / dev / null <nl> ppp b / docs / ____errno__location_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / errno / __errno_location . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_04741b631f2e9c9b50e0ec1eaa57bc64 . html " > errno < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __errno_location . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " pthread__impl_8h_source . html " > pthread_impl . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : af7421234b15b89062853a783279b7885 " > < td class = " memItemLeft " align = " right " valign = " top " > int * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____errno__location_8c . html # af7421234b15b89062853a783279b7885 " > __errno_location < / a > ( void ) < / td > < / tr > <nl> + < tr class = " separator : af7421234b15b89062853a783279b7885 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " af7421234b15b89062853a783279b7885 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # af7421234b15b89062853a783279b7885 " > & # 9670 ; & nbsp ; < / a > < / span > __errno_location ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int * __errno_location < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > void & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . a7a782b2cd <nl> mmm / dev / null <nl> ppp b / docs / ____expo2_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __expo2 . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __expo2 . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " libm_8h_source . html " > libm . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a4aef934f55dd2b7989db30ae90d0e88f " > < td class = " memItemLeft " align = " right " valign = " top " > double & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____expo2_8c . html # a4aef934f55dd2b7989db30ae90d0e88f " > __expo2 < / a > ( double < a class = " el " href = " std_2utilities_2utility_2forward_2move_8pass_8cpp . html # a6150e0515f7202e2fb518f7206ed97dc " > x < / a > ) < / td > < / tr > <nl> + < tr class = " separator : a4aef934f55dd2b7989db30ae90d0e88f " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a4aef934f55dd2b7989db30ae90d0e88f " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a4aef934f55dd2b7989db30ae90d0e88f " > & # 9670 ; & nbsp ; < / a > < / span > __expo2 ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > double __expo2 < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > double & # 160 ; < / td > <nl> + < td class = " paramname " > < em > x < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 3673ae819f <nl> mmm / dev / null <nl> ppp b / docs / ____expo2f_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __expo2f . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __expo2f . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " libm_8h_source . html " > libm . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : ab042f7186cf114373330cf392967f0aa " > < td class = " memItemLeft " align = " right " valign = " top " > float & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____expo2f_8c . html # ab042f7186cf114373330cf392967f0aa " > __expo2f < / a > ( float < a class = " el " href = " std_2utilities_2utility_2forward_2move_8pass_8cpp . html # a6150e0515f7202e2fb518f7206ed97dc " > x < / a > ) < / td > < / tr > <nl> + < tr class = " separator : ab042f7186cf114373330cf392967f0aa " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " ab042f7186cf114373330cf392967f0aa " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ab042f7186cf114373330cf392967f0aa " > & # 9670 ; & nbsp ; < / a > < / span > __expo2f ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > float __expo2f < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > float & # 160 ; < / td > <nl> + < td class = " paramname " > < em > x < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . adbb6681fd <nl> mmm / dev / null <nl> ppp b / docs / ____fclose__ca_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / stdio / __fclose_ca . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_d63b7ae2f0c61f2896dc2d65574bc279 . html " > stdio < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __fclose_ca . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " stdio__impl_8h_source . html " > stdio_impl . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : afbb534564e44d3a0eea4b91aaf222ccf " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____fclose__ca_8c . html # afbb534564e44d3a0eea4b91aaf222ccf " > __fclose_ca < / a > ( < a class = " el " href = " alltypes_8h . html # a912af5ab9f8a52ddd387b7defc0b49f1 " > FILE < / a > * < a class = " el " href = " convert__overflow_8pass_8cpp . html # afbab6dcbf18d50d32b5caab7a8840192 " > f < / a > ) < / td > < / tr > <nl> + < tr class = " separator : afbb534564e44d3a0eea4b91aaf222ccf " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " afbb534564e44d3a0eea4b91aaf222ccf " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # afbb534564e44d3a0eea4b91aaf222ccf " > & # 9670 ; & nbsp ; < / a > < / span > __fclose_ca ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int __fclose_ca < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " alltypes_8h . html # a912af5ab9f8a52ddd387b7defc0b49f1 " > FILE < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > f < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 73a5e40770 <nl> mmm / dev / null <nl> ppp b / docs / ____fpclassify_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __fpclassify . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __fpclassify . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; math . h & gt ; < / code > < br / > <nl> + < code > # include & lt ; stdint . h & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a927f119657988215fd351b5eb16742fc " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____fpclassify_8c . html # a927f119657988215fd351b5eb16742fc " > __fpclassify < / a > ( double < a class = " el " href = " std_2utilities_2utility_2forward_2move_8pass_8cpp . html # a6150e0515f7202e2fb518f7206ed97dc " > x < / a > ) < / td > < / tr > <nl> + < tr class = " separator : a927f119657988215fd351b5eb16742fc " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a927f119657988215fd351b5eb16742fc " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a927f119657988215fd351b5eb16742fc " > & # 9670 ; & nbsp ; < / a > < / span > __fpclassify ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int __fpclassify < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > double & # 160 ; < / td > <nl> + < td class = " paramname " > < em > x < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 8d0519486b <nl> mmm / dev / null <nl> ppp b / docs / ____fpclassifyf_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __fpclassifyf . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __fpclassifyf . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; math . h & gt ; < / code > < br / > <nl> + < code > # include & lt ; stdint . h & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a7a7f707121f0637041a2eca2e1dc23d7 " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____fpclassifyf_8c . html # a7a7f707121f0637041a2eca2e1dc23d7 " > __fpclassifyf < / a > ( float < a class = " el " href = " std_2utilities_2utility_2forward_2move_8pass_8cpp . html # a6150e0515f7202e2fb518f7206ed97dc " > x < / a > ) < / td > < / tr > <nl> + < tr class = " separator : a7a7f707121f0637041a2eca2e1dc23d7 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a7a7f707121f0637041a2eca2e1dc23d7 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a7a7f707121f0637041a2eca2e1dc23d7 " > & # 9670 ; & nbsp ; < / a > < / span > __fpclassifyf ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int __fpclassifyf < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > float & # 160 ; < / td > <nl> + < td class = " paramname " > < em > x < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 91e6eff354 <nl> mmm / dev / null <nl> ppp b / docs / ____fpclassifyl_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __fpclassifyl . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __fpclassifyl . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " libm_8h_source . html " > libm . h < / a > & quot ; < / code > < br / > <nl> + < / div > < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 3f531f947a <nl> mmm / dev / null <nl> ppp b / docs / ____has__operator__addressof_8pass_8cpp . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / libc + + / upstream / test / libcxx / utilities / meta / meta . unary / meta . unary . prop / __has_operator_addressof . pass . cpp File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_acf7646062c2dda4cc5d3e08c5ded00b . html " > libc + + < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_7d236047367a2957b6fc9c22a3c49af8 . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_52576429c2ea572b538c7b817f3a6ed0 . html " > test < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_536f03b9e9cf220dccdad3844d06204c . html " > libcxx < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_917da26559671c1a4e3918a0342a89f4 . html " > utilities < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_d09586ffb5c3c5bbaeb46a5af953c6ea . html " > meta < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_f65067888f56c427651e5b31c2b3f6bc . html " > meta . unary < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_6fc02ba86c84cebb649a96031d670142 . html " > meta . unary . prop < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # nested - classes " > Classes < / a > & # 124 ; <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __has_operator_addressof . pass . cpp File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; type_traits & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " nested - classes " > < / a > <nl> + Classes < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : " > < td class = " memItemLeft " align = " right " valign = " top " > struct & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " struct_a . html " > A & lt ; T & gt ; < / a > < / td > < / tr > <nl> + < tr class = " separator : " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : " > < td class = " memItemLeft " align = " right " valign = " top " > struct & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " struct_b . html " > B & lt ; T & gt ; < / a > < / td > < / tr > <nl> + < tr class = " separator : " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : " > < td class = " memItemLeft " align = " right " valign = " top " > struct & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " struct_c . html " > C & lt ; T & gt ; < / a > < / td > < / tr > <nl> + < tr class = " separator : " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : " > < td class = " memItemLeft " align = " right " valign = " top " > struct & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " struct_e . html " > E & lt ; T & gt ; < / a > < / td > < / tr > <nl> + < tr class = " separator : " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : " > < td class = " memItemLeft " align = " right " valign = " top " > struct & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " struct_f . html " > F & lt ; CharT & gt ; < / a > < / td > < / tr > <nl> + < tr class = " separator : " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : " > < td class = " memItemLeft " align = " right " valign = " top " > struct & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " class_g . html " > G & lt ; T & gt ; < / a > < / td > < / tr > <nl> + < tr class = " separator : " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : " > < td class = " memItemLeft " align = " right " valign = " top " > struct & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " struct_h . html " > H < / a > < / td > < / tr > <nl> + < tr class = " separator : " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : " > < td class = " memItemLeft " align = " right " valign = " top " > struct & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " struct_j . html " > J < / a > < / td > < / tr > <nl> + < tr class = " separator : " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : ac4cedff8c02cc70863d3d8d0ee74f79e " > < td class = " memItemLeft " align = " right " valign = " top " > constexpr < a class = " el " href = " struct_f . html " > F < / a > * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____has__operator__addressof_8pass_8cpp . html # ac4cedff8c02cc70863d3d8d0ee74f79e " > operator & amp ; < / a > ( < a class = " el " href = " struct_f . html " > F < / a > const & amp ; ) < / td > < / tr > <nl> + < tr class = " separator : ac4cedff8c02cc70863d3d8d0ee74f79e " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : af015bd5d99cd8bc69222442f9af1217c " > < td class = " memItemLeft " align = " right " valign = " top " > constexpr < a class = " el " href = " class_g . html " > G < / a > * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____has__operator__addressof_8pass_8cpp . html # af015bd5d99cd8bc69222442f9af1217c " > operator & amp ; < / a > ( < a class = " el " href = " class_g . html " > G < / a > & amp ; & amp ; ) < / td > < / tr > <nl> + < tr class = " separator : af015bd5d99cd8bc69222442f9af1217c " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a7e5ea3e1f24710abc09888d3c3e68278 " > < td class = " memItemLeft " align = " right " valign = " top " > constexpr < a class = " el " href = " struct_h . html " > H < / a > * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____has__operator__addressof_8pass_8cpp . html # a7e5ea3e1f24710abc09888d3c3e68278 " > operator & amp ; < / a > ( < a class = " el " href = " struct_h . html " > H < / a > const & amp ; & amp ; ) < / td > < / tr > <nl> + < tr class = " separator : a7e5ea3e1f24710abc09888d3c3e68278 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : ae66f6b31b5ad750f1fe042a706a4e3d4 " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____has__operator__addressof_8pass_8cpp . html # ae66f6b31b5ad750f1fe042a706a4e3d4 " > main < / a > ( ) < / td > < / tr > <nl> + < tr class = " separator : ae66f6b31b5ad750f1fe042a706a4e3d4 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " ae66f6b31b5ad750f1fe042a706a4e3d4 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ae66f6b31b5ad750f1fe042a706a4e3d4 " > & # 9670 ; & nbsp ; < / a > < / span > main ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int main < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > void & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " ac4cedff8c02cc70863d3d8d0ee74f79e " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ac4cedff8c02cc70863d3d8d0ee74f79e " > & # 9670 ; & nbsp ; < / a > < / span > operator & ( ) < span class = " overload " > [ 1 / 3 ] < / span > < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > constexpr < a class = " el " href = " struct_f . html " > F < / a > * operator & amp ; < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " struct_f . html " > F < / a > const & amp ; & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " af015bd5d99cd8bc69222442f9af1217c " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # af015bd5d99cd8bc69222442f9af1217c " > & # 9670 ; & nbsp ; < / a > < / span > operator & ( ) < span class = " overload " > [ 2 / 3 ] < / span > < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > constexpr < a class = " el " href = " class_g . html " > G < / a > * operator & amp ; < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " class_g . html " > G < / a > & amp ; & amp ; & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a7e5ea3e1f24710abc09888d3c3e68278 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a7e5ea3e1f24710abc09888d3c3e68278 " > & # 9670 ; & nbsp ; < / a > < / span > operator & ( ) < span class = " overload " > [ 3 / 3 ] < / span > < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > constexpr < a class = " el " href = " struct_h . html " > H < / a > * operator & amp ; < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " struct_h . html " > H < / a > const & amp ; & amp ; & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 79145c4286 <nl> mmm / dev / null <nl> ppp b / docs / ____invtrigl_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __invtrigl . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __invtrigl . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; < a class = " el " href = " float_8h_source . html " > float . h < / a > & gt ; < / code > < br / > <nl> + < code > # include & quot ; < a class = " el " href = " ____invtrigl_8h_source . html " > __invtrigl . h < / a > & quot ; < / code > < br / > <nl> + < / div > < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 1f688158c0 <nl> mmm / dev / null <nl> ppp b / docs / ____invtrigl_8h . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __invtrigl . h File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # define - members " > Macros < / a > & # 124 ; <nl> + < a href = " # func - members " > Functions < / a > & # 124 ; <nl> + < a href = " # var - members " > Variables < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __invtrigl . h File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + <nl> + < p > < a href = " ____invtrigl_8h_source . html " > Go to the source code of this file . < / a > < / p > <nl> + < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " define - members " > < / a > <nl> + Macros < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : aa9811db1476dc87d1eff43ae1fb17306 " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____invtrigl_8h . html # aa9811db1476dc87d1eff43ae1fb17306 " > pio2_hi < / a > & # 160 ; & # 160 ; & # 160 ; __pio2_hi < / td > < / tr > <nl> + < tr class = " separator : aa9811db1476dc87d1eff43ae1fb17306 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a5111dee80ab29a3e4d81738da8f53ddc " > < td class = " memItemLeft " align = " right " valign = " top " > # define & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____invtrigl_8h . html # a5111dee80ab29a3e4d81738da8f53ddc " > pio2_lo < / a > & # 160 ; & # 160 ; & # 160 ; __pio2_lo < / td > < / tr > <nl> + < tr class = " separator : a5111dee80ab29a3e4d81738da8f53ddc " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a08cd846e8be3cbf1b5c15a50cfbdd6d5 " > < td class = " memItemLeft " align = " right " valign = " top " > long double & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____invtrigl_8h . html # a08cd846e8be3cbf1b5c15a50cfbdd6d5 " > __invtrigl_R < / a > ( long double z ) < / td > < / tr > <nl> + < tr class = " separator : a08cd846e8be3cbf1b5c15a50cfbdd6d5 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " var - members " > < / a > <nl> + Variables < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a53f1eb160560e1ddbebfb9aeac16c57a " > < td class = " memItemLeft " align = " right " valign = " top " > const long double & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____invtrigl_8h . html # a53f1eb160560e1ddbebfb9aeac16c57a " > pio2_hi < / a > < / td > < / tr > <nl> + < tr class = " separator : a53f1eb160560e1ddbebfb9aeac16c57a " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a0899e6420914326d4974b4218bb7d232 " > < td class = " memItemLeft " align = " right " valign = " top " > const long double & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____invtrigl_8h . html # a0899e6420914326d4974b4218bb7d232 " > pio2_lo < / a > < / td > < / tr > <nl> + < tr class = " separator : a0899e6420914326d4974b4218bb7d232 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Macro Definition Documentation < / h2 > <nl> + < a id = " aa9811db1476dc87d1eff43ae1fb17306 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # aa9811db1476dc87d1eff43ae1fb17306 " > & # 9670 ; & nbsp ; < / a > < / span > pio2_hi < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define pio2_hi & # 160 ; & # 160 ; & # 160 ; __pio2_hi < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a5111dee80ab29a3e4d81738da8f53ddc " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a5111dee80ab29a3e4d81738da8f53ddc " > & # 9670 ; & nbsp ; < / a > < / span > pio2_lo < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > # define pio2_lo & # 160 ; & # 160 ; & # 160 ; __pio2_lo < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a08cd846e8be3cbf1b5c15a50cfbdd6d5 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a08cd846e8be3cbf1b5c15a50cfbdd6d5 " > & # 9670 ; & nbsp ; < / a > < / span > __invtrigl_R ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > long double __invtrigl_R < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > long double & # 160 ; < / td > <nl> + < td class = " paramname " > < em > z < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < h2 class = " groupheader " > Variable Documentation < / h2 > <nl> + < a id = " a53f1eb160560e1ddbebfb9aeac16c57a " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a53f1eb160560e1ddbebfb9aeac16c57a " > & # 9670 ; & nbsp ; < / a > < / span > pio2_hi < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > const long double pio2_hi < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a0899e6420914326d4974b4218bb7d232 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a0899e6420914326d4974b4218bb7d232 " > & # 9670 ; & nbsp ; < / a > < / span > pio2_lo < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > const long double pio2_lo < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 6f660f35d4 <nl> mmm / dev / null <nl> ppp b / docs / ____invtrigl_8h_source . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / math / __invtrigl . h Source File < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_b73f34565a90087c6989d35456ebacc6 . html " > math < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __invtrigl . h < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < a href = " ____invtrigl_8h . html " > Go to the documentation of this file . < / a > < div class = " fragment " > < div class = " line " > < a name = " l00001 " > < / a > < span class = " lineno " > 1 < / span > & # 160 ; < span class = " comment " > / * shared by acosl , asinl and atan2l * / < / span > < / div > < div class = " line " > < a name = " l00002 " > < / a > < span class = " lineno " > < a class = " line " href = " ____invtrigl_8h . html # aa9811db1476dc87d1eff43ae1fb17306 " > 2 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define pio2_hi __pio2_hi < / span > < / div > < div class = " line " > < a name = " l00003 " > < / a > < span class = " lineno " > < a class = " line " href = " ____invtrigl_8h . html # a5111dee80ab29a3e4d81738da8f53ddc " > 3 < / a > < / span > & # 160 ; < span class = " preprocessor " > # define pio2_lo __pio2_lo < / span > < / div > < div class = " line " > < a name = " l00004 " > < / a > < span class = " lineno " > 4 < / span > & # 160 ; < span class = " keyword " > extern < / span > < span class = " keyword " > const < / span > < span class = " keywordtype " > long < / span > < span class = " keywordtype " > double < / span > < a class = " code " href = " ____invtrigl_8h . html # aa9811db1476dc87d1eff43ae1fb17306 " > pio2_hi < / a > , < a class = " code " href = " ____invtrigl_8h . html # a5111dee80ab29a3e4d81738da8f53ddc " > pio2_lo < / a > ; < / div > < div class = " line " > < a name = " l00005 " > < / a > < span class = " lineno " > 5 < / span > & # 160 ; < / div > < div class = " line " > < a name = " l00006 " > < / a > < span class = " lineno " > 6 < / span > & # 160 ; < span class = " keywordtype " > long < / span > < span class = " keywordtype " > double < / span > < a class = " code " href = " ____invtrigl_8h . html # a08cd846e8be3cbf1b5c15a50cfbdd6d5 " > __invtrigl_R < / a > ( < span class = " keywordtype " > long < / span > < span class = " keywordtype " > double < / span > z ) ; < / div > < div class = " ttc " id = " ____invtrigl_8h_html_a5111dee80ab29a3e4d81738da8f53ddc " > < div class = " ttname " > < a href = " ____invtrigl_8h . html # a5111dee80ab29a3e4d81738da8f53ddc " > pio2_lo < / a > < / div > < div class = " ttdeci " > # define pio2_lo < / div > < div class = " ttdef " > < b > Definition : < / b > __invtrigl . h : 3 < / div > < / div > <nl> + < div class = " ttc " id = " ____invtrigl_8h_html_aa9811db1476dc87d1eff43ae1fb17306 " > < div class = " ttname " > < a href = " ____invtrigl_8h . html # aa9811db1476dc87d1eff43ae1fb17306 " > pio2_hi < / a > < / div > < div class = " ttdeci " > # define pio2_hi < / div > < div class = " ttdef " > < b > Definition : < / b > __invtrigl . h : 2 < / div > < / div > <nl> + < div class = " ttc " id = " ____invtrigl_8h_html_a08cd846e8be3cbf1b5c15a50cfbdd6d5 " > < div class = " ttname " > < a href = " ____invtrigl_8h . html # a08cd846e8be3cbf1b5c15a50cfbdd6d5 " > __invtrigl_R < / a > < / div > < div class = " ttdeci " > long double __invtrigl_R ( long double z ) < / div > < / div > <nl> + < / div > < ! - - fragment - - > < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 46a99b32dd <nl> mmm / dev / null <nl> ppp b / docs / ____is__inplace__index_8pass_8cpp . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / libc + + / upstream / test / libcxx / utilities / utility / __is_inplace_index . pass . cpp File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_acf7646062c2dda4cc5d3e08c5ded00b . html " > libc + + < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_7d236047367a2957b6fc9c22a3c49af8 . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_52576429c2ea572b538c7b817f3a6ed0 . html " > test < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_536f03b9e9cf220dccdad3844d06204c . html " > libcxx < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_917da26559671c1a4e3918a0342a89f4 . html " > utilities < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_0d64873eac212af629a6f7d1d9cecb74 . html " > utility < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # nested - classes " > Classes < / a > & # 124 ; <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __is_inplace_index . pass . cpp File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; utility & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " nested - classes " > < / a > <nl> + Classes < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : " > < td class = " memItemLeft " align = " right " valign = " top " > struct & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " struct_s . html " > S & lt ; T & gt ; < / a > < / td > < / tr > <nl> + < tr class = " separator : " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : ae66f6b31b5ad750f1fe042a706a4e3d4 " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____is__inplace__index_8pass_8cpp . html # ae66f6b31b5ad750f1fe042a706a4e3d4 " > main < / a > ( ) < / td > < / tr > <nl> + < tr class = " separator : ae66f6b31b5ad750f1fe042a706a4e3d4 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " ae66f6b31b5ad750f1fe042a706a4e3d4 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ae66f6b31b5ad750f1fe042a706a4e3d4 " > & # 9670 ; & nbsp ; < / a > < / span > main ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int main < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > void & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 39f7544258 <nl> mmm / dev / null <nl> ppp b / docs / ____is__inplace__type_8pass_8cpp . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / libc + + / upstream / test / libcxx / utilities / utility / __is_inplace_type . pass . cpp File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_acf7646062c2dda4cc5d3e08c5ded00b . html " > libc + + < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_7d236047367a2957b6fc9c22a3c49af8 . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_52576429c2ea572b538c7b817f3a6ed0 . html " > test < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_536f03b9e9cf220dccdad3844d06204c . html " > libcxx < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_917da26559671c1a4e3918a0342a89f4 . html " > utilities < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_0d64873eac212af629a6f7d1d9cecb74 . html " > utility < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # nested - classes " > Classes < / a > & # 124 ; <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __is_inplace_type . pass . cpp File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; utility & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " nested - classes " > < / a > <nl> + Classes < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : " > < td class = " memItemLeft " align = " right " valign = " top " > struct & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " struct_s . html " > S & lt ; T & gt ; < / a > < / td > < / tr > <nl> + < tr class = " separator : " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : ae66f6b31b5ad750f1fe042a706a4e3d4 " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____is__inplace__type_8pass_8cpp . html # ae66f6b31b5ad750f1fe042a706a4e3d4 " > main < / a > ( ) < / td > < / tr > <nl> + < tr class = " separator : ae66f6b31b5ad750f1fe042a706a4e3d4 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " ae66f6b31b5ad750f1fe042a706a4e3d4 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ae66f6b31b5ad750f1fe042a706a4e3d4 " > & # 9670 ; & nbsp ; < / a > < / span > main ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int main < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > void & # 160 ; < / td > <nl> + < td class = " paramname " > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . fde35c04f5 <nl> mmm / dev / null <nl> ppp b / docs / ____lctrans_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / locale / __lctrans . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_0e1b03e2600e364342c2b3b0ecc2b5e5 . html " > locale < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __lctrans . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; locale . h & gt ; < / code > < br / > <nl> + < code > # include & quot ; < a class = " el " href = " locale__impl_8h_source . html " > locale_impl . h < / a > & quot ; < / code > < br / > <nl> + < code > # include & quot ; < a class = " el " href = " libc_8h_source . html " > libc . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a8792189ea0d6d42fc7a12e4c3dc2908a " > < td class = " memItemLeft " align = " right " valign = " top " > & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____lctrans_8c . html # a8792189ea0d6d42fc7a12e4c3dc2908a " > weak_alias < / a > ( < a class = " el " href = " _p_r28469__undefined__behavior__segfault_8sh_8cpp . html # a100d09f9a57d44745299c28c63c98745 " > dummy < / a > , < a class = " el " href = " locale__map_8c . html # a7af1758ae02316680d4b60bdc401203d " > __lctrans_impl < / a > ) < / td > < / tr > <nl> + < tr class = " separator : a8792189ea0d6d42fc7a12e4c3dc2908a " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : af5cf50ffc37646349d4dc952c8205a63 " > < td class = " memItemLeft " align = " right " valign = " top " > const char * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____lctrans_8c . html # af5cf50ffc37646349d4dc952c8205a63 " > __lctrans < / a > ( const char * msg , const struct < a class = " el " href = " struct____locale__map . html " > __locale_map < / a > * lm ) < / td > < / tr > <nl> + < tr class = " separator : af5cf50ffc37646349d4dc952c8205a63 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a9439d13635f660e6cece96fb23db5555 " > < td class = " memItemLeft " align = " right " valign = " top " > const char * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____lctrans_8c . html # a9439d13635f660e6cece96fb23db5555 " > __lctrans_cur < / a > ( const char * msg ) < / td > < / tr > <nl> + < tr class = " separator : a9439d13635f660e6cece96fb23db5555 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " af5cf50ffc37646349d4dc952c8205a63 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # af5cf50ffc37646349d4dc952c8205a63 " > & # 9670 ; & nbsp ; < / a > < / span > __lctrans ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > const char * __lctrans < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > const char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > msg < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > const struct < a class = " el " href = " struct____locale__map . html " > __locale_map < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > lm < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a9439d13635f660e6cece96fb23db5555 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a9439d13635f660e6cece96fb23db5555 " > & # 9670 ; & nbsp ; < / a > < / span > __lctrans_cur ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > const char * __lctrans_cur < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > const char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > msg < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a8792189ea0d6d42fc7a12e4c3dc2908a " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a8792189ea0d6d42fc7a12e4c3dc2908a " > & # 9670 ; & nbsp ; < / a > < / span > weak_alias ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > weak_alias < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " _p_r28469__undefined__behavior__segfault_8sh_8cpp . html # a100d09f9a57d44745299c28c63c98745 " > dummy < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " locale__map_8c . html # a7af1758ae02316680d4b60bdc401203d " > __lctrans_impl < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . f7cae8ace1 <nl> mmm / dev / null <nl> ppp b / docs / ____lock_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / thread / __lock . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e0de68179818a5956308f5940c171c6a . html " > thread < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __lock . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " pthread__impl_8h_source . html " > pthread_impl . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : aeb04e32307b2f62752f0f906ecff4428 " > < td class = " memItemLeft " align = " right " valign = " top " > void & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____lock_8c . html # aeb04e32307b2f62752f0f906ecff4428 " > __lock < / a > ( volatile int * l ) < / td > < / tr > <nl> + < tr class = " separator : aeb04e32307b2f62752f0f906ecff4428 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : a8b38d0851e84b1b4c4a9879dffd30396 " > < td class = " memItemLeft " align = " right " valign = " top " > void & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____lock_8c . html # a8b38d0851e84b1b4c4a9879dffd30396 " > __unlock < / a > ( volatile int * l ) < / td > < / tr > <nl> + < tr class = " separator : a8b38d0851e84b1b4c4a9879dffd30396 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " aeb04e32307b2f62752f0f906ecff4428 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # aeb04e32307b2f62752f0f906ecff4428 " > & # 9670 ; & nbsp ; < / a > < / span > __lock ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > void __lock < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > volatile int * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > l < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " a8b38d0851e84b1b4c4a9879dffd30396 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a8b38d0851e84b1b4c4a9879dffd30396 " > & # 9670 ; & nbsp ; < / a > < / span > __unlock ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > void __unlock < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > volatile int * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > l < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 8cbcdc9fc2 <nl> mmm / dev / null <nl> ppp b / docs / ____lockfile_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / stdio / __lockfile . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_d63b7ae2f0c61f2896dc2d65574bc279 . html " > stdio < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __lockfile . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & quot ; < a class = " el " href = " stdio__impl_8h_source . html " > stdio_impl . h < / a > & quot ; < / code > < br / > <nl> + < code > # include & quot ; < a class = " el " href = " pthread__impl_8h_source . html " > pthread_impl . h < / a > & quot ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : ac19d16600c4de0c441bb8cae79d5b284 " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____lockfile_8c . html # ac19d16600c4de0c441bb8cae79d5b284 " > __lockfile < / a > ( < a class = " el " href = " alltypes_8h . html # a912af5ab9f8a52ddd387b7defc0b49f1 " > FILE < / a > * < a class = " el " href = " convert__overflow_8pass_8cpp . html # afbab6dcbf18d50d32b5caab7a8840192 " > f < / a > ) < / td > < / tr > <nl> + < tr class = " separator : ac19d16600c4de0c441bb8cae79d5b284 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < tr class = " memitem : aba7dd318e8ce769472a3f71f543d1bca " > < td class = " memItemLeft " align = " right " valign = " top " > void & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____lockfile_8c . html # aba7dd318e8ce769472a3f71f543d1bca " > __unlockfile < / a > ( < a class = " el " href = " alltypes_8h . html # a912af5ab9f8a52ddd387b7defc0b49f1 " > FILE < / a > * < a class = " el " href = " convert__overflow_8pass_8cpp . html # afbab6dcbf18d50d32b5caab7a8840192 " > f < / a > ) < / td > < / tr > <nl> + < tr class = " separator : aba7dd318e8ce769472a3f71f543d1bca " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " ac19d16600c4de0c441bb8cae79d5b284 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # ac19d16600c4de0c441bb8cae79d5b284 " > & # 9670 ; & nbsp ; < / a > < / span > __lockfile ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int __lockfile < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " alltypes_8h . html # a912af5ab9f8a52ddd387b7defc0b49f1 " > FILE < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > f < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < a id = " aba7dd318e8ce769472a3f71f543d1bca " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # aba7dd318e8ce769472a3f71f543d1bca " > & # 9670 ; & nbsp ; < / a > < / span > __unlockfile ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > void __unlockfile < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " alltypes_8h . html # a912af5ab9f8a52ddd387b7defc0b49f1 " > FILE < / a > * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > f < / em > < / td > < td > ) < / td > <nl> + < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . 35d9258992 <nl> mmm / dev / null <nl> ppp b / docs / ____mo__lookup_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / locale / __mo_lookup . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_0e1b03e2600e364342c2b3b0ecc2b5e5 . html " > locale < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __mo_lookup . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < div class = " textblock " > < code > # include & lt ; stdint . h & gt ; < / code > < br / > <nl> + < code > # include & lt ; string . h & gt ; < / code > < br / > <nl> + < / div > < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : a4710b469c5673a951a3303eeee6fad90 " > < td class = " memItemLeft " align = " right " valign = " top " > const char * & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____mo__lookup_8c . html # a4710b469c5673a951a3303eeee6fad90 " > __mo_lookup < / a > ( const void * < a class = " el " href = " propagate__const_8observers_2operator__element__type__ptr_8pass_8cpp . html # a9c89965b0a4173f10deca0bdbd5ed4e2 " > p < / a > , < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > size , const char * < a class = " el " href = " strings_2basic_8string_2string_8cons_2dtor__noexcept_8pass_8cpp . html # aa8270a1ba8295884567e0a0c93135f05 " > s < / a > ) < / td > < / tr > <nl> + < tr class = " separator : a4710b469c5673a951a3303eeee6fad90 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " a4710b469c5673a951a3303eeee6fad90 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # a4710b469c5673a951a3303eeee6fad90 " > & # 9670 ; & nbsp ; < / a > < / span > __mo_lookup ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > const char * __mo_lookup < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > const void * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > p < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > < a class = " el " href = " musl_2upstream_2include_2bits_2stddef_8h . html # a7c94ea6f8948649f8d181ae55911eeaf " > size_t < / a > & # 160 ; < / td > <nl> + < td class = " paramname " > < em > size < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > const char * & # 160 ; < / td > <nl> + < td class = " paramname " > < em > s < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . b92140a059 <nl> mmm / dev / null <nl> ppp b / docs / ____month__to__secs_8c . html <nl> <nl> + < ! DOCTYPE html PUBLIC " - / / W3C / / DTD XHTML 1 . 0 Transitional / / EN " " http : / / www . w3 . org / TR / xhtml1 / DTD / xhtml1 - transitional . dtd " > <nl> + < html xmlns = " http : / / www . w3 . org / 1999 / xhtml " > <nl> + < head > <nl> + < meta http - equiv = " Content - Type " content = " text / xhtml ; charset = UTF - 8 " / > <nl> + < meta http - equiv = " X - UA - Compatible " content = " IE = 9 " / > <nl> + < meta name = " generator " content = " Doxygen 1 . 8 . 13 " / > <nl> + < meta name = " viewport " content = " width = device - width , initial - scale = 1 " / > <nl> + < title > EOS . IO : contracts / musl / upstream / src / time / __month_to_secs . c File Reference < / title > <nl> + < link href = " tabs . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " jquery . js " > < / script > <nl> + < script type = " text / javascript " src = " dynsections . js " > < / script > <nl> + < link href = " search / search . css " rel = " stylesheet " type = " text / css " / > <nl> + < script type = " text / javascript " src = " search / searchdata . js " > < / script > <nl> + < script type = " text / javascript " src = " search / search . js " > < / script > <nl> + < link href = " doxygen . css " rel = " stylesheet " type = " text / css " / > <nl> + < / head > <nl> + < body > <nl> + < div id = " top " > < ! - - do not remove this div , it is closed by doxygen ! - - > <nl> + < div id = " titlearea " > <nl> + < table cellspacing = " 0 " cellpadding = " 0 " > <nl> + < tbody > <nl> + < tr style = " height : 56px ; " > <nl> + < td id = " projectlogo " > < img alt = " Logo " src = " eos - logo . png " / > < / td > <nl> + < td id = " projectalign " style = " padding - left : 0 . 5em ; " > <nl> + < div id = " projectname " > EOS . IO <nl> + & # 160 ; < span id = " projectnumber " > DAWN 3 . 0 < / span > <nl> + < / div > <nl> + < / td > <nl> + < / tr > <nl> + < / tbody > <nl> + < / table > <nl> + < / div > <nl> + < ! - - end header part - - > <nl> + < ! - - Generated by Doxygen 1 . 8 . 13 - - > <nl> + < script type = " text / javascript " > <nl> + var searchBox = new SearchBox ( " searchBox " , " search " , false , ' Search ' ) ; <nl> + < / script > <nl> + < script type = " text / javascript " src = " menudata . js " > < / script > <nl> + < script type = " text / javascript " src = " menu . js " > < / script > <nl> + < script type = " text / javascript " > <nl> + $ ( function ( ) { <nl> + initMenu ( ' ' , true , false , ' search . php ' , ' Search ' ) ; <nl> + $ ( document ) . ready ( function ( ) { init_search ( ) ; } ) ; <nl> + } ) ; <nl> + < / script > <nl> + < div id = " main - nav " > < / div > <nl> + < ! - - window showing the filter options - - > <nl> + < div id = " MSearchSelectWindow " <nl> + onmouseover = " return searchBox . OnSearchSelectShow ( ) " <nl> + onmouseout = " return searchBox . OnSearchSelectHide ( ) " <nl> + onkeydown = " return searchBox . OnSearchSelectKey ( event ) " > <nl> + < / div > <nl> + <nl> + < ! - - iframe showing the search results ( closed by default ) - - > <nl> + < div id = " MSearchResultsWindow " > <nl> + < iframe src = " javascript : void ( 0 ) " frameborder = " 0 " <nl> + name = " MSearchResults " id = " MSearchResults " > <nl> + < / iframe > <nl> + < / div > <nl> + <nl> + < div id = " nav - path " class = " navpath " > <nl> + < ul > <nl> + < li class = " navelem " > < a class = " el " href = " dir_ae9b15dd87e066e1908bbd90e8f38627 . html " > contracts < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_50d7137a7301a66ec452987911b28b88 . html " > musl < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_e7119fa5fcee776f341ae23037d13ccb . html " > upstream < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_910a592f73c20873499475ae75e6472c . html " > src < / a > < / li > < li class = " navelem " > < a class = " el " href = " dir_2d9de06388c8caee3cc676f784613c7d . html " > time < / a > < / li > < / ul > <nl> + < / div > <nl> + < / div > < ! - - top - - > <nl> + < div class = " header " > <nl> + < div class = " summary " > <nl> + < a href = " # func - members " > Functions < / a > < / div > <nl> + < div class = " headertitle " > <nl> + < div class = " title " > __month_to_secs . c File Reference < / div > < / div > <nl> + < / div > < ! - - header - - > <nl> + < div class = " contents " > <nl> + < table class = " memberdecls " > <nl> + < tr class = " heading " > < td colspan = " 2 " > < h2 class = " groupheader " > < a name = " func - members " > < / a > <nl> + Functions < / h2 > < / td > < / tr > <nl> + < tr class = " memitem : af9e5814debed817a168efa446310de61 " > < td class = " memItemLeft " align = " right " valign = " top " > int & # 160 ; < / td > < td class = " memItemRight " valign = " bottom " > < a class = " el " href = " ____month__to__secs_8c . html # af9e5814debed817a168efa446310de61 " > __month_to_secs < / a > ( int month , int is_leap ) < / td > < / tr > <nl> + < tr class = " separator : af9e5814debed817a168efa446310de61 " > < td class = " memSeparator " colspan = " 2 " > & # 160 ; < / td > < / tr > <nl> + < / table > <nl> + < h2 class = " groupheader " > Function Documentation < / h2 > <nl> + < a id = " af9e5814debed817a168efa446310de61 " > < / a > <nl> + < h2 class = " memtitle " > < span class = " permalink " > < a href = " # af9e5814debed817a168efa446310de61 " > & # 9670 ; & nbsp ; < / a > < / span > __month_to_secs ( ) < / h2 > <nl> + <nl> + < div class = " memitem " > <nl> + < div class = " memproto " > <nl> + < table class = " memname " > <nl> + < tr > <nl> + < td class = " memname " > int __month_to_secs < / td > <nl> + < td > ( < / td > <nl> + < td class = " paramtype " > int & # 160 ; < / td > <nl> + < td class = " paramname " > < em > month < / em > , < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td class = " paramkey " > < / td > <nl> + < td > < / td > <nl> + < td class = " paramtype " > int & # 160 ; < / td > <nl> + < td class = " paramname " > < em > is_leap < / em > & # 160 ; < / td > <nl> + < / tr > <nl> + < tr > <nl> + < td > < / td > <nl> + < td > ) < / td > <nl> + < td > < / td > < td > < / td > <nl> + < / tr > <nl> + < / table > <nl> + < / div > < div class = " memdoc " > <nl> + <nl> + < / div > <nl> + < / div > <nl> + < / div > < ! - - contents - - > <nl> + < ! - - start footer part - - > <nl> + < hr class = " footer " / > < address class = " footer " > < small > <nl> + Generated by & # 160 ; < a href = " http : / / www . doxygen . org / index . html " > <nl> + < img class = " footer " src = " doxygen . png " alt = " doxygen " / > <nl> + < / a > 1 . 8 . 13 <nl> + < / small > < / address > <nl> + < / body > <nl> + < / html > <nl> new file mode 100644 <nl> index 0000000000 . . b58fb1ca77
|
Change patch level to 0
|
EOSIO/eos
|
23d0204f4ce075e370492c2cf7c6793ce04e8328
|
2018-04-05T17:47:13Z
|
mmm a / . cicd / generate - pipeline . sh <nl> ppp b / . cicd / generate - pipeline . sh <nl> export BUILD_SOURCE = $ { BUILD_SOURCE : mmmbuild \ $ BUILDKITE_BUILD_ID } <nl> if [ [ ! $ BUILDKITE_PIPELINE_SLUG = ~ ' lrt ' ] ] & & [ [ $ BUILDKITE_BRANCH = ~ ^ release / [ 0 - 9 ] + \ . [ 0 - 9 ] + \ . x $ | | $ BUILDKITE_BRANCH = ~ ^ master $ | | $ BUILDKITE_BRANCH = ~ ^ develop $ ] ] ; then <nl> [ [ $ BUILDKITE_SOURCE ! = ' schedule ' ] ] & & export TRIGGER_JOB = true <nl> fi <nl> + # run LRTs synchronously when running full test suite <nl> + if [ [ " $ RUN_ALL_TESTS " = = ' true ' ] ] ; then <nl> + [ [ " $ SKIP_LONG_RUNNING_TESTS " ! = ' true ' ] ] & & export SKIP_LONG_RUNNING_TESTS = ' false ' & & export TRIGGER_JOB = ' false ' <nl> + fi <nl> oIFS = " $ IFS " <nl> IFS = $ ' ' <nl> nIFS = $ IFS # fix array splitting ( \ n won ' t work ) <nl>
|
Run long - running tests synchronously when RUN_ALL_TESTS is set to ' true '
|
EOSIO/eos
|
79425585b63dcccd8e86e9ce6902977c193669a5
|
2020-04-17T15:36:45Z
|
new file mode 100644 <nl> index 00000000000 . . 76ee6e15c09 <nl> mmm / dev / null <nl> ppp b / ports / lua / CMakeLists . txt <nl> <nl> + PROJECT ( lua ) <nl> + <nl> + IF ( NOT WIN32 ) <nl> + message ( FATAL_ERROR " Written for window only " ) <nl> + ENDIF ( ) <nl> + <nl> + CMAKE_MINIMUM_REQUIRED ( VERSION 2 . 8 ) <nl> + <nl> + SET ( HDR_LIBLUA <nl> + src / lapi . h src / lauxlib . h src / lcode . h src / lctype . h src / ldebug . h src / ldo . h src / lfunc . h <nl> + src / lgc . h src / llex . h src / llimits . h src / lmem . h src / lobject . h src / lopcodes . h src / lparser . h <nl> + src / lstate . h src / lstring . h src / ltable . h src / ltm . h src / lua . h src / luaconf . h src / lualib . h <nl> + src / lundump . h src / lvm . h src / lzio . h <nl> + ) <nl> + <nl> + # Build Libraries <nl> + SET ( SRC_LIBLUA <nl> + src / lapi . c src / lauxlib . c src / lbaselib . c src / lbitlib . c src / lcode . c src / lcorolib . c <nl> + src / lctype . c src / ldblib . c src / ldebug . c src / ldo . c src / ldump . c src / lfunc . c src / lgc . c <nl> + src / linit . c src / liolib . c src / llex . c src / lmathlib . c src / lmem . c src / loadlib . c src / lobject . c <nl> + src / lopcodes . c src / loslib . c src / lparser . c src / lstate . c src / lstring . c src / lstrlib . c <nl> + src / ltable . c src / ltablib . c src / ltm . c src / lundump . c src / lutf8lib . c src / lvm . c src / lzio . c <nl> + ) <nl> + <nl> + # append headers to sources to make them show up in MSVC GUI <nl> + LIST ( APPEND SRC_LIBLUA $ { HDR_LIBLUA } ) <nl> + <nl> + IF ( BUILD_SHARED_LIBS ) <nl> + ADD_DEFINITIONS ( - DLUA_BUILD_AS_DLL ) <nl> + ENDIF ( ) <nl> + <nl> + # remove warnings <nl> + ADD_DEFINITIONS ( - D_CRT_SECURE_NO_WARNINGS ) <nl> + <nl> + # DLL <nl> + ADD_LIBRARY ( lua $ { SRC_LIBLUA } ) <nl> + <nl> + INSTALL ( TARGETS lua <nl> + RUNTIME DESTINATION $ { CMAKE_INSTALL_PREFIX } / bin <nl> + LIBRARY DESTINATION $ { CMAKE_INSTALL_PREFIX } / lib <nl> + ARCHIVE DESTINATION $ { CMAKE_INSTALL_PREFIX } / lib <nl> + ) <nl> + <nl> + IF ( NOT DEFINED SKIP_INSTALL_HEADERS ) <nl> + INSTALL ( <nl> + FILES <nl> + src / lualib . h <nl> + src / lua . h <nl> + src / luaconf . h <nl> + src / lua . hpp <nl> + src / lauxlib . h <nl> + DESTINATION include <nl> + ) <nl> + ENDIF ( ) <nl> \ No newline at end of file <nl> new file mode 100644 <nl> index 00000000000 . . ae661f3f613 <nl> mmm / dev / null <nl> ppp b / ports / lua / CONTROL <nl> <nl> + Source : lua <nl> + Version : 5 . 3 . 3 <nl> + Description : a powerful , fast , lightweight , embeddable scripting language <nl> new file mode 100644 <nl> index 00000000000 . . 729a2ccd5c1 <nl> mmm / dev / null <nl> ppp b / ports / lua / COPYRIGHT <nl> <nl> + Copyright © 1994 – 2016 Lua . org , PUC - Rio . <nl> + 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 : <nl> + <nl> + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software . <nl> + <nl> + 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 . <nl> new file mode 100644 <nl> index 00000000000 . . f8c1071f7d2 <nl> mmm / dev / null <nl> ppp b / ports / lua / portfile . cmake <nl> <nl> + # Common Ambient Variables : <nl> + # VCPKG_ROOT_DIR = < C : \ path \ to \ current \ vcpkg > <nl> + # TARGET_TRIPLET is the current triplet ( x86 - windows , etc ) <nl> + # PORT is the current port name ( zlib , etc ) <nl> + # CURRENT_BUILDTREES_DIR = $ { VCPKG_ROOT_DIR } \ buildtrees \ $ { PORT } <nl> + # CURRENT_PACKAGES_DIR = $ { VCPKG_ROOT_DIR } \ packages \ $ { PORT } _ $ { TARGET_TRIPLET } <nl> + # <nl> + <nl> + include ( $ { CMAKE_TRIPLET_FILE } ) <nl> + include ( vcpkg_common_functions ) <nl> + set ( SOURCE_PATH $ { CURRENT_BUILDTREES_DIR } / src / lua - 5 . 3 . 3 ) <nl> + vcpkg_download_distfile ( ARCHIVE <nl> + URLS " http : / / www . lua . org / ftp / lua - 5 . 3 . 3 . tar . gz " <nl> + FILENAME " lua - 5 . 3 . 3 . tar . gz " <nl> + SHA512 7b8122ed48ea2a9faa47d1b69b4a5b1523bb7be67e78f252bb4339bf75e957a88c5405156e22b4b63ccf607a5407bf017a4cee1ce12b1aa5262047655960a3cc <nl> + ) <nl> + vcpkg_extract_source_archive ( $ { ARCHIVE } ) <nl> + <nl> + file ( COPY $ { CMAKE_CURRENT_LIST_DIR } / CMakeLists . txt DESTINATION $ { SOURCE_PATH } ) <nl> + <nl> + vcpkg_configure_cmake ( <nl> + SOURCE_PATH $ { SOURCE_PATH } <nl> + OPTIONS_DEBUG <nl> + - DSKIP_INSTALL_HEADERS = ON <nl> + ) <nl> + <nl> + vcpkg_install_cmake ( ) <nl> + <nl> + # Handle copyright <nl> + file ( COPY $ { CMAKE_CURRENT_LIST_DIR } / COPYRIGHT DESTINATION $ { CURRENT_PACKAGES_DIR } / share / lua ) <nl> + vcpkg_copy_pdbs ( ) <nl>
|
Merge pull request from adam4813 / lua
|
microsoft/vcpkg
|
1a95b4a0eca0afe7cb3084ba02dc65931cdd65a0
|
2016-10-07T21:51:06Z
|
mmm a / docs / CHANGELOG . txt <nl> ppp b / docs / CHANGELOG . txt <nl> HOW TO UPDATE ? <nl> Breaking Changes : <nl> - IO : changed AddInputCharacter ( unsigned short c ) signature to AddInputCharacter ( unsigned int c ) . <nl> - Renamed SetNextTreeNodeOpen ( ) to SetNextItemOpen ( ) . Kept inline redirection function ( will obsolete ) . <nl> + - Changed syntax for ( very rarely used ) IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT mechanism , instead you only <nl> + need to ' # define ImDrawVert MyDrawVert ' to use this feature , avoiding the need to declare the entire <nl> + structure within an awkward macro . Using the old macro will now error with a message pointing you <nl> + to the new method . ( # 38 , # 103 , # 1172 , # 1231 , # 2489 ) <nl> <nl> Other Changes : <nl> - Window : clarified behavior of SetNextWindowContentSize ( ) . Content size is defined as the size available <nl> mmm a / examples / imgui_impl_dx9 . cpp <nl> ppp b / examples / imgui_impl_dx9 . cpp <nl> void ImGui_ImplDX9_RenderDrawData ( ImDrawData * draw_data ) <nl> <nl> / / Copy and convert all vertices into a single contiguous buffer , convert colors to DX9 default format . <nl> / / FIXME - OPT : This is a waste of resource , the ideal is to use imconfig . h and <nl> - / / 1 ) to avoid repacking colors : # define IMGUI_USE_BGRA_PACKED_COLOR <nl> - / / 2 ) to avoid repacking vertices : # define IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT struct ImDrawVert { ImVec2 pos ; float z ; ImU32 col ; ImVec2 uv ; } <nl> + / / 1 ) to avoid repacking colors : use ' # define IMGUI_USE_BGRA_PACKED_COLOR ' <nl> + / / 2 ) to avoid repacking vertices : use ' struct ImDrawVertDx9 { ImVec2 pos ; float z ; ImU32 col ; ImVec2 uv ; } ' + ' # define ImDrawVert ImDrawVertDx9 ' <nl> CUSTOMVERTEX * vtx_dst ; <nl> ImDrawIdx * idx_dst ; <nl> if ( g_pVB - > Lock ( 0 , ( UINT ) ( draw_data - > TotalVtxCount * sizeof ( CUSTOMVERTEX ) ) , ( void * * ) & vtx_dst , D3DLOCK_DISCARD ) < 0 ) <nl> mmm a / imconfig . h <nl> ppp b / imconfig . h <nl> <nl> / / Read about ImGuiBackendFlags_RendererHasVtxOffset for details . <nl> / / # define ImDrawIdx unsigned int <nl> <nl> + / / mmm - Override ImDrawVert layout ( see comments near ImDrawVert declaration ) <nl> + / / # define ImDrawVert MyDrawVert <nl> + <nl> / / mmm - Tip : You can add extra functions within the ImGui : : namespace , here or in your own headers files . <nl> / * <nl> namespace ImGui <nl> mmm a / imgui . cpp <nl> ppp b / imgui . cpp <nl> CODE <nl> When you are not sure about a old symbol or function name , try using the Search / Find function of your IDE to look for comments or references in all imgui files . <nl> You can read releases logs https : / / github . com / ocornut / imgui / releases for more details . <nl> <nl> + - 2019 / 06 / 05 ( 1 . 71 ) - changed syntax for ( very rarely used ) IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT mechanism . instead you only need to ' # define ImDrawVert MyDrawVert ' to use this feature , <nl> + avoiding the need to declare the entire structure within an awkward macro . Using the old macro will now error and show a message pointing you to the you method . <nl> - 2019 / 05 / 13 ( 1 . 71 ) - renamed SetNextTreeNodeOpen ( ) to SetNextItemOpen ( ) . Kept inline redirection function ( will obsolete ) . <nl> - 2019 / 05 / 11 ( 1 . 71 ) - changed io . AddInputCharacter ( unsigned short c ) signature to io . AddInputCharacter ( unsigned int c ) . <nl> - 2019 / 04 / 29 ( 1 . 70 ) - improved ImDrawList thick strokes ( > 1 . 0f ) preserving correct thickness up to 90 degrees angles ( e . g . rectangles ) . If you have custom rendering using thick lines , they will appear thicker now . <nl> mmm a / imgui . h <nl> ppp b / imgui . h <nl> struct ImDrawData ; / / All draw command lists required to render <nl> struct ImDrawList ; / / A single draw command list ( generally one per window , conceptually you may see this as a dynamic " mesh " builder ) <nl> struct ImDrawListSharedData ; / / Data shared among multiple draw lists ( typically owned by parent ImGui context , but you may create one yourself ) <nl> struct ImDrawListSplitter ; / / Helper to split a draw list into different layers which can be drawn into out of order , then flattened back . <nl> - struct ImDrawVert ; / / A single vertex ( pos + uv + col = 20 bytes by default . Override layout with IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT ) <nl> + struct ImDrawVert ; / / A single vertex ( pos + uv + col = 20 bytes by default . You may override layout with a # define . <nl> struct ImFont ; / / Runtime data for a single font within a parent ImFontAtlas <nl> struct ImFontAtlas ; / / Runtime data for multiple fonts , bake multiple fonts into a single texture , TTF / OTF font loader <nl> struct ImFontConfig ; / / Configuration data when adding a font or merging fonts <nl> typedef unsigned short ImDrawIdx ; <nl> # endif <nl> <nl> / / Vertex layout <nl> - # ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT <nl> + / / ( You can override the vertex format layout by using e . g . # define ImDrawVert MyDrawVert in imconfig . h <nl> + / / The code expect ImVec2 pos ( 8 bytes ) , ImVec2 uv ( 8 bytes ) , ImU32 col ( 4 bytes ) , but you can re - order them or add other fields <nl> + / / as needed to simplify integration in your engine . IMPORTANT : dear imgui DOES NOT CLEAR THE STRUCTURE AND DOESN " T CALL ITS CONSTRUCTOR , <nl> + / / so any field other than pos / uv / col will be uninitialized . If you add extra fields ( such as a Z coordinate ) you will need to either <nl> + / / ignore them , either set them up yourself . ) <nl> + # ifndef ImDrawVert <nl> struct ImDrawVert <nl> { <nl> ImVec2 pos ; <nl> ImVec2 uv ; <nl> ImU32 col ; <nl> } ; <nl> - # else <nl> - / / You can override the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig . h <nl> - / / The code expect ImVec2 pos ( 8 bytes ) , ImVec2 uv ( 8 bytes ) , ImU32 col ( 4 bytes ) , but you can re - order them or add other fields as needed to simplify integration in your engine . <nl> - / / The type has to be described within the macro ( you can either declare the struct or use a typedef ) <nl> - / / NOTE : IMGUI DOESN ' T CLEAR THE STRUCTURE AND DOESN ' T CALL A CONSTRUCTOR SO ANY CUSTOM FIELD WILL BE UNINITIALIZED . IF YOU ADD EXTRA FIELDS ( SUCH AS A ' Z ' COORDINATES ) YOU WILL NEED TO CLEAR THEM DURING RENDER OR TO IGNORE THEM . <nl> - IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT ; <nl> + # endif <nl> + <nl> + / / We previously used IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT that was expanded in this file . Instead please use ' # define ImDrawVert MyDrawVert ' [ OBSOLETED in 1 . 71 ] <nl> + # if defined ( IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT ) <nl> + # error Please use ' # define ImDrawVert MyDrawVert ' instead ! <nl> # endif <nl> <nl> / / For use by ImDrawListSplitter . <nl>
|
Changed syntax for ( very rarely used ) IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT mechanism , instead you only need to ' # define ImDrawVert MyDrawVert ' to use this feature , avoiding the need to declare the entire structure within an awkward macro . Using the old macro will now error with a message pointing you to the new method . ( , , , , )
|
ocornut/imgui
|
597c024904d76ec3ac182a36ecfdff1aa99c21f0
|
2019-06-05T22:42:27Z
|
mmm a / xbmc / cdrip / CDDARipJob . cpp <nl> ppp b / xbmc / cdrip / CDDARipJob . cpp <nl> <nl> # include " guilib / LocalizeStrings . h " <nl> # include " settings / AdvancedSettings . h " <nl> # include " utils / StringUtils . h " <nl> - # include " storage / IoSupport . h " <nl> # include " settings / GUISettings . h " <nl> + # include " storage / MediaManager . h " <nl> <nl> using namespace MUSIC_INFO ; <nl> using namespace XFILE ; <nl> bool CCDDARipJob : : DoWork ( ) <nl> if ( m_eject ) <nl> { <nl> CLog : : Log ( LOGINFO , " Ejecting CD " ) ; <nl> - CIoSupport : : EjectTray ( ) ; <nl> + g_mediaManager . EjectTray ( ) ; <nl> } <nl> } <nl> <nl> mmm a / xbmc / dialogs / GUIDialogContextMenu . cpp <nl> ppp b / xbmc / dialogs / GUIDialogContextMenu . cpp <nl> bool CGUIDialogContextMenu : : OnContextButton ( const CStdString & type , const CFileI <nl> return MEDIA_DETECT : : CAutorun : : PlayDisc ( item - > GetPath ( ) , true , false ) ; / / resume <nl> <nl> case CONTEXT_BUTTON_EJECT_DISC : <nl> - # ifdef _WIN32 <nl> - CWIN32Util : : ToggleTray ( g_mediaManager . TranslateDevicePath ( item - > GetPath ( ) ) [ 0 ] ) ; <nl> - # else <nl> - CIoSupport : : ToggleTray ( ) ; <nl> - # endif <nl> + g_mediaManager . ToggleTray ( g_mediaManager . TranslateDevicePath ( item - > GetPath ( ) ) [ 0 ] ) ; <nl> # endif <nl> return true ; <nl> default : <nl> mmm a / xbmc / dialogs / GUIDialogPlayEject . cpp <nl> ppp b / xbmc / dialogs / GUIDialogPlayEject . cpp <nl> <nl> # include " GUIDialogPlayEject . h " <nl> # include " guilib / GUIWindowManager . h " <nl> # include " storage / MediaManager . h " <nl> - # include " storage / IoSupport . h " <nl> # include " utils / log . h " <nl> # include " utils / URIUtils . h " <nl> # include " utils / XMLUtils . h " <nl> bool CGUIDialogPlayEject : : OnMessage ( CGUIMessage & message ) <nl> } <nl> if ( iControl = = ID_BUTTON_EJECT ) <nl> { <nl> - CIoSupport : : ToggleTray ( ) ; <nl> + g_mediaManager . ToggleTray ( ) ; <nl> return true ; <nl> } <nl> } <nl> mmm a / xbmc / filesystem / HDDirectory . cpp <nl> ppp b / xbmc / filesystem / HDDirectory . cpp <nl> <nl> <nl> # include " HDDirectory . h " <nl> # include " Util . h " <nl> - # include " storage / IoSupport . h " <nl> # include " iso9660 . h " <nl> # include " URL . h " <nl> # include " FileItem . h " <nl> mmm a / xbmc / interfaces / Builtins . cpp <nl> ppp b / xbmc / interfaces / Builtins . cpp <nl> int CBuiltins : : Execute ( const CStdString & execString ) <nl> # ifdef HAS_DVD_DRIVE <nl> else if ( execute . Equals ( " ejecttray " ) ) <nl> { <nl> - CIoSupport : : ToggleTray ( ) ; <nl> + g_mediaManager . ToggleTray ( ) ; <nl> } <nl> # endif <nl> else if ( execute . Equals ( " alarmclock " ) & & params . size ( ) > 1 ) <nl> mmm a / xbmc / interfaces / python / xbmcmodule / xbmcmodule . cpp <nl> ppp b / xbmc / interfaces / python / xbmcmodule / xbmcmodule . cpp <nl> <nl> # include " player . h " <nl> # include " pyplaylist . h " <nl> # include " keyboard . h " <nl> - # include " storage / IoSupport . h " <nl> # ifndef _LINUX <nl> # include < ConIo . h > <nl> # endif <nl> <nl> # include " monitor . h " <nl> # include " URL . h " <nl> # include " cores / AudioEngine / AEFactory . h " <nl> + # include " storage / MediaManager . h " <nl> <nl> / / include for constants <nl> # include " pyutil . h " <nl> namespace PYXBMC <nl> <nl> PyObject * XBMC_GetDVDState ( PyObject * self , PyObject * args ) <nl> { <nl> - return PyInt_FromLong ( CIoSupport : : GetTrayState ( ) ) ; <nl> + return PyInt_FromLong ( g_mediaManager . GetDriveStatus ( ) ) ; <nl> } <nl> <nl> / / getFreeMem ( ) method <nl> mmm a / xbmc / storage / DetectDVDType . cpp <nl> ppp b / xbmc / storage / DetectDVDType . cpp <nl> <nl> # include " Application . h " <nl> # include " IoSupport . h " <nl> # include " cdioSupport . h " <nl> + # include " storage / MediaManager . h " <nl> <nl> <nl> using namespace XFILE ; <nl> mmm a / xbmc / storage / IStorageProvider . h <nl> ppp b / xbmc / storage / IStorageProvider . h <nl> <nl> * / <nl> # include " system . h " <nl> # include " MediaSource . h " <nl> + # ifdef HAS_DVD_DRIVE <nl> + # include " cdioSupport . h " <nl> + # endif <nl> <nl> class IStorageEventsCallback <nl> { <nl> class IStorageProvider <nl> <nl> virtual void GetLocalDrives ( VECSOURCES & localDrives ) = 0 ; <nl> virtual void GetRemovableDrives ( VECSOURCES & removableDrives ) = 0 ; <nl> + virtual std : : string GetFirstOpticalDeviceFileName ( ) <nl> + { <nl> + # ifdef HAS_DVD_DRIVE <nl> + return std : : string ( MEDIA_DETECT : : CLibcdio : : GetInstance ( ) - > GetDeviceFileName ( ) ) ; <nl> + # else <nl> + return " " ; <nl> + # endif <nl> + } <nl> <nl> virtual bool Eject ( CStdString mountpath ) = 0 ; <nl> <nl> mmm a / xbmc / storage / IoSupport . cpp <nl> ppp b / xbmc / storage / IoSupport . cpp <nl> <nl> <nl> PVOID CIoSupport : : m_rawXferBuffer ; <nl> <nl> - HRESULT CIoSupport : : EjectTray ( const bool bEject , const char cDriveLetter ) <nl> - { <nl> - # ifdef HAS_DVD_DRIVE <nl> - # ifdef _WIN32 <nl> - return CWIN32Util : : EjectTray ( cDriveLetter ) ; <nl> - # else <nl> - CLibcdio * c_cdio = CLibcdio : : GetInstance ( ) ; <nl> - char * dvdDevice = c_cdio - > GetDeviceFileName ( ) ; <nl> - m_isoReader . Reset ( ) ; <nl> - int nRetries = 2 ; <nl> - while ( nRetries - - > 0 ) <nl> - { <nl> - CdIo_t * cdio = c_cdio - > cdio_open ( dvdDevice , DRIVER_UNKNOWN ) ; <nl> - if ( cdio ) <nl> - { <nl> - c_cdio - > cdio_eject_media ( & cdio ) ; <nl> - c_cdio - > cdio_destroy ( cdio ) ; <nl> - } <nl> - else <nl> - break ; <nl> - } <nl> - # endif <nl> - # endif <nl> - return S_OK ; <nl> - } <nl> - <nl> - HRESULT CIoSupport : : CloseTray ( ) <nl> - { <nl> - # ifdef HAS_DVD_DRIVE <nl> - # if defined ( TARGET_DARWIN ) <nl> - / / FIXME . . . <nl> - # elif defined ( __FreeBSD__ ) <nl> - / / NYI <nl> - # elif defined ( _LINUX ) <nl> - char * dvdDevice = CLibcdio : : GetInstance ( ) - > GetDeviceFileName ( ) ; <nl> - if ( strlen ( dvdDevice ) ! = 0 ) <nl> - { <nl> - int fd = open ( dvdDevice , O_RDONLY | O_NONBLOCK ) ; <nl> - if ( fd > = 0 ) <nl> - { <nl> - ioctl ( fd , CDROMCLOSETRAY , 0 ) ; <nl> - close ( fd ) ; <nl> - } <nl> - } <nl> - # elif defined ( _WIN32 ) <nl> - return CWIN32Util : : CloseTray ( ) ; <nl> - # endif <nl> - # endif <nl> - return S_OK ; <nl> - } <nl> - <nl> - DWORD CIoSupport : : GetTrayState ( ) <nl> - { <nl> - # if defined ( _LINUX ) | | defined ( _WIN32 ) <nl> - return g_mediaManager . GetDriveStatus ( ) ; <nl> - # else <nl> - return DRIVE_NOT_READY ; <nl> - # endif <nl> - } <nl> - <nl> - HRESULT CIoSupport : : ToggleTray ( ) <nl> - { <nl> - # if defined ( TARGET_WINDOWS ) <nl> - return CWIN32Util : : ToggleTray ( ) ; <nl> - # else <nl> - if ( GetTrayState ( ) = = TRAY_OPEN | | GetTrayState ( ) = = DRIVE_OPEN ) <nl> - return CloseTray ( ) ; <nl> - else <nl> - return EjectTray ( ) ; <nl> - # endif <nl> - } <nl> - <nl> HANDLE CIoSupport : : OpenCDROM ( ) <nl> { <nl> HANDLE hDevice = 0 ; <nl> mmm a / xbmc / storage / IoSupport . h <nl> ppp b / xbmc / storage / IoSupport . h <nl> <nl> # pragma once <nl> # endif / / _MSC_VER > 1000 <nl> <nl> - # define TRAY_OPEN 16 <nl> - # define TRAY_CLOSED_NO_MEDIA 64 <nl> - # define TRAY_CLOSED_MEDIA_PRESENT 96 <nl> - <nl> - # define DRIVE_OPEN 0 / / Open . . . <nl> - # define DRIVE_NOT_READY 1 / / Opening . . Closing . . . <nl> - # define DRIVE_READY 2 <nl> - # define DRIVE_CLOSED_NO_MEDIA 3 / / CLOSED . . . but no media in drive <nl> - # define DRIVE_CLOSED_MEDIA_PRESENT 4 / / Will be send once when the drive just have closed <nl> - # define DRIVE_NONE 5 / / system doesn ' t have an optical drive <nl> - <nl> # define MODE1_DATA_SIZE 2048 / / Mode1 sector has 2048 bytes of data <nl> <nl> # define MODE2_DATA_START 24 / / Mode2 raw sector has 24 bytes before the data payload <nl> <nl> class CIoSupport <nl> { <nl> public : <nl> - static DWORD GetTrayState ( ) ; <nl> - static HRESULT EjectTray ( const bool bEject = true , const char cDriveLetter = ' \ 0 ' ) ; <nl> - static HRESULT CloseTray ( ) ; <nl> - static HRESULT ToggleTray ( ) ; <nl> - <nl> static void AllocReadBuffer ( ) ; <nl> static void FreeReadBuffer ( ) ; <nl> <nl> mmm a / xbmc / storage / MediaManager . cpp <nl> ppp b / xbmc / storage / MediaManager . cpp <nl> <nl> # include " system . h " <nl> # include " MediaManager . h " <nl> # include " guilib / LocalizeStrings . h " <nl> - # include " IoSupport . h " <nl> # include " URL . h " <nl> # include " utils / URIUtils . h " <nl> # ifdef _WIN32 <nl> <nl> # endif <nl> # include " guilib / GUIWindowManager . h " <nl> # ifdef HAS_DVD_DRIVE <nl> - # include " cdioSupport . h " <nl> # ifndef _WIN32 <nl> / / TODO : switch all ports to use auto sources <nl> # include " DetectDVDType . h " <nl> + # include " filesystem / iso9660 . h " <nl> # endif <nl> # endif <nl> # include " Autorun . h " <nl> <nl> # include " android / AndroidStorageProvider . h " <nl> # elif defined ( _LINUX ) <nl> # include " linux / LinuxStorageProvider . h " <nl> + # include < sys / ioctl . h > <nl> + # include < linux / cdrom . h > <nl> # elif _WIN32 <nl> # include " windows / Win32StorageProvider . h " <nl> # endif <nl> void CMediaManager : : Initialize ( ) <nl> # endif <nl> } <nl> # ifdef HAS_DVD_DRIVE <nl> - # if defined ( TARGET_WINDOWS ) <nl> - m_strFirstAvailDrive = CWIN32Util : : GetFirstOpticalDrive ( ) ; <nl> - # else <nl> - m_strFirstAvailDrive = MEDIA_DETECT : : CLibcdio : : GetInstance ( ) - > GetDeviceFileName ( ) ; <nl> - # endif <nl> + m_strFirstAvailDrive = m_platformStorage - > GetFirstOpticalDeviceFileName ( ) ; <nl> # endif <nl> m_platformStorage - > Initialize ( ) ; <nl> } <nl> bool CMediaManager : : Eject ( CStdString mountpath ) <nl> return m_platformStorage - > Eject ( mountpath ) ; <nl> } <nl> <nl> + void CMediaManager : : EjectTray ( const bool bEject , const char cDriveLetter ) <nl> + { <nl> + # ifdef HAS_DVD_DRIVE <nl> + # ifdef TARGET_WINDOWS <nl> + CWIN32Util : : EjectTray ( cDriveLetter ) ; <nl> + # else <nl> + CLibcdio * c_cdio = CLibcdio : : GetInstance ( ) ; <nl> + char * dvdDevice = c_cdio - > GetDeviceFileName ( ) ; <nl> + m_isoReader . Reset ( ) ; <nl> + int nRetries = 2 ; <nl> + while ( nRetries - - > 0 ) <nl> + { <nl> + CdIo_t * cdio = c_cdio - > cdio_open ( dvdDevice , DRIVER_UNKNOWN ) ; <nl> + if ( cdio ) <nl> + { <nl> + c_cdio - > cdio_eject_media ( & cdio ) ; <nl> + c_cdio - > cdio_destroy ( cdio ) ; <nl> + } <nl> + else <nl> + break ; <nl> + } <nl> + # endif <nl> + # endif <nl> + } <nl> + <nl> + void CMediaManager : : CloseTray ( const char cDriveLetter ) <nl> + { <nl> + # ifdef HAS_DVD_DRIVE <nl> + # if defined ( TARGET_DARWIN ) <nl> + / / FIXME . . . <nl> + # elif defined ( __FreeBSD__ ) <nl> + / / NYI <nl> + # elif defined ( _LINUX ) <nl> + char * dvdDevice = CLibcdio : : GetInstance ( ) - > GetDeviceFileName ( ) ; <nl> + if ( strlen ( dvdDevice ) ! = 0 ) <nl> + { <nl> + int fd = open ( dvdDevice , O_RDONLY | O_NONBLOCK ) ; <nl> + if ( fd > = 0 ) <nl> + { <nl> + ioctl ( fd , CDROMCLOSETRAY , 0 ) ; <nl> + close ( fd ) ; <nl> + } <nl> + } <nl> + # elif defined ( TARGET_WINDOWS ) <nl> + CWIN32Util : : CloseTray ( cDriveLetter ) ; <nl> + # endif <nl> + # endif <nl> + } <nl> + <nl> + void CMediaManager : : ToggleTray ( const char cDriveLetter ) <nl> + { <nl> + # ifdef HAS_DVD_DRIVE <nl> + # if defined ( TARGET_WINDOWS ) <nl> + CWIN32Util : : ToggleTray ( cDriveLetter ) ; <nl> + # else <nl> + if ( GetDriveStatus ( ) = = TRAY_OPEN | | GetDriveStatus ( ) = = DRIVE_OPEN ) <nl> + CloseTray ( ) ; <nl> + else <nl> + EjectTray ( ) ; <nl> + # endif <nl> + # endif <nl> + } <nl> + <nl> void CMediaManager : : ProcessEvents ( ) <nl> { <nl> CSingleLock lock ( m_CritSecStorageProvider ) ; <nl> mmm a / xbmc / storage / MediaManager . h <nl> ppp b / xbmc / storage / MediaManager . h <nl> <nl> <nl> # include " MediaSource . h " / / for VECSOURCES <nl> # include < map > <nl> - # ifdef HAS_DVD_DRIVE <nl> - # include " cdioSupport . h " <nl> - # endif <nl> # include " utils / Job . h " <nl> # include " IStorageProvider . h " <nl> # include " threads / CriticalSection . h " <nl> <nl> using namespace MEDIA_DETECT ; <nl> # endif <nl> <nl> + # define TRAY_OPEN 16 <nl> + # define TRAY_CLOSED_NO_MEDIA 64 <nl> + # define TRAY_CLOSED_MEDIA_PRESENT 96 <nl> + <nl> + # define DRIVE_OPEN 0 / / Open . . . <nl> + # define DRIVE_NOT_READY 1 / / Opening . . Closing . . . <nl> + # define DRIVE_READY 2 <nl> + # define DRIVE_CLOSED_NO_MEDIA 3 / / CLOSED . . . but no media in drive <nl> + # define DRIVE_CLOSED_MEDIA_PRESENT 4 / / Will be send once when the drive just have closed <nl> + # define DRIVE_NONE 5 / / system doesn ' t have an optical drive <nl> + <nl> class CNetworkLocation <nl> { <nl> public : <nl> class CMediaManager : public IStorageEventsCallback , public IJobCallback <nl> void SetHasOpticalDrive ( bool bstatus ) ; <nl> <nl> bool Eject ( CStdString mountpath ) ; <nl> + void EjectTray ( const bool bEject = true , const char cDriveLetter = ' \ 0 ' ) ; <nl> + void CloseTray ( const char cDriveLetter = ' \ 0 ' ) ; <nl> + void ToggleTray ( const char cDriveLetter = ' \ 0 ' ) ; <nl> <nl> void ProcessEvents ( ) ; <nl> <nl> mmm a / xbmc / storage / cdioSupport . h <nl> ppp b / xbmc / storage / cdioSupport . h <nl> <nl> <nl> # ifdef HAS_DVD_DRIVE <nl> <nl> - # include " storage / IoSupport . h " <nl> - <nl> # include < cdio / cdio . h > <nl> # include " threads / CriticalSection . h " <nl> # include " utils / StdString . h " <nl> mmm a / xbmc / storage / windows / Win32StorageProvider . cpp <nl> ppp b / xbmc / storage / windows / Win32StorageProvider . cpp <nl> void CWin32StorageProvider : : GetRemovableDrives ( VECSOURCES & removableDrives ) <nl> CWIN32Util : : GetDrivesByType ( removableDrives , REMOVABLE_DRIVES , true ) ; <nl> } <nl> <nl> + std : : string CWin32StorageProvider : : GetFirstOpticalDeviceFileName ( ) <nl> + { <nl> + return CWIN32Util : : GetFirstOpticalDrive ( ) ; <nl> + } <nl> + <nl> bool CWin32StorageProvider : : Eject ( CStdString mountpath ) <nl> { <nl> if ( ! mountpath . IsEmpty ( ) ) <nl> mmm a / xbmc / storage / windows / Win32StorageProvider . h <nl> ppp b / xbmc / storage / windows / Win32StorageProvider . h <nl> class CWin32StorageProvider : public IStorageProvider <nl> <nl> virtual void GetLocalDrives ( VECSOURCES & localDrives ) ; <nl> virtual void GetRemovableDrives ( VECSOURCES & removableDrives ) ; <nl> + virtual std : : string GetFirstOpticalDeviceFileName ( ) ; <nl> <nl> virtual bool Eject ( CStdString mountpath ) ; <nl> <nl>
|
moved GetTrayState ( ) , CloseTray ( ) , EjectTray and ToggleTray ( ) to the
|
xbmc/xbmc
|
2d3c4690e17d5b5549f7a02f40815838375c033a
|
2012-09-08T12:42:41Z
|
mmm a / modules / dreamview / backend / BUILD <nl> ppp b / modules / dreamview / backend / BUILD <nl> cc_library ( <nl> <nl> cc_test ( <nl> name = " map_service_test " , <nl> + size = " small " , <nl> srcs = [ <nl> " map_service_test . cc " , <nl> ] , <nl> mmm a / modules / dreamview / backend / map_service . h <nl> ppp b / modules / dreamview / backend / map_service . h <nl> class MapService { <nl> / / javascript clients . <nl> : : apollo : : hdmap : : Map RetrieveMapElements ( const MapElementIds & ids ) const ; <nl> <nl> - const : : apollo : : hdmap : : HDMapImpl & hdmap ( ) { <nl> + const : : apollo : : hdmap : : HDMap & hdmap ( ) { <nl> return hdmap_ ; <nl> } <nl> <nl> private : <nl> - / / TODO ( siyangy ) : Switch to HDMap when it can be used ? <nl> - : : apollo : : hdmap : : HDMapImpl hdmap_ ; <nl> + : : apollo : : hdmap : : HDMap hdmap_ ; <nl> } ; <nl> <nl> } / / namespace dreamview <nl> mmm a / modules / map / hdmap / hdmap . cc <nl> ppp b / modules / map / hdmap / hdmap . cc <nl> int HDMap : : load_map_from_file ( const std : : string & map_filename ) { <nl> return _impl . load_map_from_file ( map_filename ) ; <nl> } <nl> <nl> - LaneInfoConstPtr HDMap : : get_lane_by_id ( const apollo : : hdmap : : Id & id ) { <nl> + LaneInfoConstPtr HDMap : : get_lane_by_id ( const apollo : : hdmap : : Id & id ) const { <nl> return _impl . get_lane_by_id ( id ) ; <nl> } <nl> <nl> - JunctionInfoConstPtr HDMap : : get_junction_by_id ( const apollo : : hdmap : : Id & id ) { <nl> + JunctionInfoConstPtr HDMap : : get_junction_by_id ( const apollo : : hdmap : : Id & id ) const { <nl> return _impl . get_junction_by_id ( id ) ; <nl> } <nl> <nl> - SignalInfoConstPtr HDMap : : get_signal_by_id ( const apollo : : hdmap : : Id & id ) { <nl> + SignalInfoConstPtr HDMap : : get_signal_by_id ( const apollo : : hdmap : : Id & id ) const { <nl> return _impl . get_signal_by_id ( id ) ; <nl> } <nl> <nl> - CrosswalkInfoConstPtr HDMap : : get_crosswalk_by_id ( const apollo : : hdmap : : Id & id ) { <nl> + CrosswalkInfoConstPtr HDMap : : get_crosswalk_by_id ( const apollo : : hdmap : : Id & id ) const { <nl> return _impl . get_crosswalk_by_id ( id ) ; <nl> } <nl> <nl> - StopSignInfoConstPtr HDMap : : get_stop_sign_by_id ( const apollo : : hdmap : : Id & id ) { <nl> + StopSignInfoConstPtr HDMap : : get_stop_sign_by_id ( const apollo : : hdmap : : Id & id ) const { <nl> return _impl . get_stop_sign_by_id ( id ) ; <nl> } <nl> <nl> - YieldSignInfoConstPtr HDMap : : get_yield_sign_by_id ( const apollo : : hdmap : : Id & id ) { <nl> + YieldSignInfoConstPtr HDMap : : get_yield_sign_by_id ( const apollo : : hdmap : : Id & id ) const { <nl> return _impl . get_yield_sign_by_id ( id ) ; <nl> } <nl> <nl> - OverlapInfoConstPtr HDMap : : get_overlap_by_id ( const apollo : : hdmap : : Id & id ) { <nl> + OverlapInfoConstPtr HDMap : : get_overlap_by_id ( const apollo : : hdmap : : Id & id ) const { <nl> return _impl . get_overlap_by_id ( id ) ; <nl> } <nl> <nl> int HDMap : : get_lanes ( const apollo : : hdmap : : Point & point , <nl> double distance , <nl> - std : : vector < LaneInfoConstPtr > * lanes ) { <nl> + std : : vector < LaneInfoConstPtr > * lanes ) const { <nl> return _impl . get_lanes ( point , distance , lanes ) ; <nl> } <nl> <nl> int HDMap : : get_junctions ( const apollo : : hdmap : : Point & point , <nl> double distance , <nl> - std : : vector < JunctionInfoConstPtr > * junctions ) { <nl> + std : : vector < JunctionInfoConstPtr > * junctions ) const { <nl> return _impl . get_junctions ( point , distance , junctions ) ; <nl> } <nl> <nl> int HDMap : : get_signals ( const apollo : : hdmap : : Point & point , <nl> double distance , <nl> - std : : vector < SignalInfoConstPtr > * signals ) { <nl> + std : : vector < SignalInfoConstPtr > * signals ) const { <nl> return _impl . get_signals ( point , distance , signals ) ; <nl> } <nl> <nl> int HDMap : : get_crosswalks ( const apollo : : hdmap : : Point & point , <nl> double distance , <nl> - std : : vector < CrosswalkInfoConstPtr > * crosswalks ) { <nl> + std : : vector < CrosswalkInfoConstPtr > * crosswalks ) const { <nl> return _impl . get_crosswalks ( point , distance , crosswalks ) ; <nl> } <nl> <nl> int HDMap : : get_stop_signs ( const apollo : : hdmap : : Point & point , <nl> double distance , <nl> - std : : vector < StopSignInfoConstPtr > * stop_signs ) { <nl> + std : : vector < StopSignInfoConstPtr > * stop_signs ) const { <nl> return _impl . get_stop_signs ( point , distance , stop_signs ) ; <nl> } <nl> <nl> int HDMap : : get_yield_signs ( const apollo : : hdmap : : Point & point , <nl> double distance , <nl> - std : : vector < YieldSignInfoConstPtr > * yield_signs ) { <nl> + std : : vector < YieldSignInfoConstPtr > * yield_signs ) const { <nl> return _impl . get_yield_signs ( point , distance , yield_signs ) ; <nl> } <nl> <nl> int HDMap : : get_nearest_lane ( const : : apollo : : hdmap : : Point & point , <nl> LaneInfoConstPtr * nearest_lane , <nl> double * nearest_s , <nl> - double * nearest_l ) { <nl> + double * nearest_l ) const { <nl> return _impl . get_nearest_lane ( point , nearest_lane , nearest_s , nearest_l ) ; <nl> } <nl> <nl> mmm a / modules / map / hdmap / hdmap . h <nl> ppp b / modules / map / hdmap / hdmap . h <nl> class HDMap { <nl> public : <nl> int load_map_from_file ( const std : : string & map_filename ) ; <nl> <nl> - LaneInfoConstPtr get_lane_by_id ( const apollo : : hdmap : : Id & id ) ; <nl> - JunctionInfoConstPtr get_junction_by_id ( const apollo : : hdmap : : Id & id ) ; <nl> - SignalInfoConstPtr get_signal_by_id ( const apollo : : hdmap : : Id & id ) ; <nl> - CrosswalkInfoConstPtr get_crosswalk_by_id ( const apollo : : hdmap : : Id & id ) ; <nl> - StopSignInfoConstPtr get_stop_sign_by_id ( const apollo : : hdmap : : Id & id ) ; <nl> - YieldSignInfoConstPtr get_yield_sign_by_id ( const apollo : : hdmap : : Id & id ) ; <nl> - OverlapInfoConstPtr get_overlap_by_id ( const apollo : : hdmap : : Id & id ) ; <nl> + LaneInfoConstPtr get_lane_by_id ( const apollo : : hdmap : : Id & id ) const ; <nl> + JunctionInfoConstPtr get_junction_by_id ( const apollo : : hdmap : : Id & id ) const ; <nl> + SignalInfoConstPtr get_signal_by_id ( const apollo : : hdmap : : Id & id ) const ; <nl> + CrosswalkInfoConstPtr get_crosswalk_by_id ( const apollo : : hdmap : : Id & id ) const ; <nl> + StopSignInfoConstPtr get_stop_sign_by_id ( const apollo : : hdmap : : Id & id ) const ; <nl> + YieldSignInfoConstPtr get_yield_sign_by_id ( const apollo : : hdmap : : Id & id ) const ; <nl> + OverlapInfoConstPtr get_overlap_by_id ( const apollo : : hdmap : : Id & id ) const ; <nl> <nl> int get_lanes ( const apollo : : hdmap : : Point & point , double distance , <nl> - std : : vector < LaneInfoConstPtr > * lanes ) ; <nl> + std : : vector < LaneInfoConstPtr > * lanes ) const ; <nl> int get_junctions ( const apollo : : hdmap : : Point & point , double distance , <nl> - std : : vector < JunctionInfoConstPtr > * junctions ) ; <nl> + std : : vector < JunctionInfoConstPtr > * junctions ) const ; <nl> int get_signals ( const apollo : : hdmap : : Point & point , double distance , <nl> - std : : vector < SignalInfoConstPtr > * signals ) ; <nl> + std : : vector < SignalInfoConstPtr > * signals ) const ; <nl> int get_crosswalks ( const apollo : : hdmap : : Point & point , double distance , <nl> - std : : vector < CrosswalkInfoConstPtr > * crosswalks ) ; <nl> + std : : vector < CrosswalkInfoConstPtr > * crosswalks ) const ; <nl> int get_stop_signs ( const apollo : : hdmap : : Point & point , double distance , <nl> - std : : vector < StopSignInfoConstPtr > * stop_signs ) ; <nl> + std : : vector < StopSignInfoConstPtr > * stop_signs ) const ; <nl> int get_yield_signs ( const apollo : : hdmap : : Point & point , double distance , <nl> - std : : vector < YieldSignInfoConstPtr > * yield_signs ) ; <nl> + std : : vector < YieldSignInfoConstPtr > * yield_signs ) const ; <nl> <nl> int get_nearest_lane ( const apollo : : hdmap : : Point & point , <nl> LaneInfoConstPtr * nearest_lane , double * nearest_s , <nl> - double * nearest_l ) ; <nl> + double * nearest_l ) const ; <nl> <nl> private : <nl> HDMapImpl _impl ; <nl> - <nl> - DISALLOW_COPY_AND_ASSIGN ( HDMap ) ; <nl> } ; <nl> <nl> } / / namespace hdmap <nl> mmm a / modules / map / hdmap / hdmap_impl . cc <nl> ppp b / modules / map / hdmap / hdmap_impl . cc <nl> int HDMapImpl : : search_objects ( const apollo : : common : : math : : Vec2d & center , <nl> int HDMapImpl : : get_nearest_lane ( const apollo : : hdmap : : Point & point , <nl> LaneInfoConstPtr * nearest_lane , <nl> double * nearest_s , <nl> - double * nearest_l ) { <nl> + double * nearest_l ) const { <nl> return get_nearest_lane ( apollo : : common : : math : : Vec2d ( point . x ( ) , point . y ( ) ) , <nl> nearest_lane , nearest_s , nearest_l ) ; <nl> } <nl> mmm a / modules / map / hdmap / hdmap_impl . h <nl> ppp b / modules / map / hdmap / hdmap_impl . h <nl> class HDMapImpl { <nl> int get_nearest_lane ( const apollo : : hdmap : : Point & point , <nl> LaneInfoConstPtr * nearest_lane , <nl> double * nearest_s , <nl> - double * nearest_l ) ; <nl> + double * nearest_l ) const ; <nl> <nl> private : <nl> int get_lanes ( const apollo : : common : : math : : Vec2d & point , <nl> mmm a / modules / prediction / common / prediction_map . cc <nl> ppp b / modules / prediction / common / prediction_map . cc <nl> PredictionMap : : ~ PredictionMap ( ) { <nl> } <nl> <nl> void PredictionMap : : LoadMap ( ) { <nl> - hdmap_ . reset ( new apollo : : hdmap : : HDMapImpl ( ) ) ; <nl> + hdmap_ . reset ( new apollo : : hdmap : : HDMap ( ) ) ; <nl> CHECK ( hdmap_ ! = nullptr ) ; <nl> hdmap_ - > load_map_from_file ( FLAGS_map_file ) ; <nl> ADEBUG < < " Load map file : " < < FLAGS_map_file ; <nl> mmm a / modules / prediction / common / prediction_map . h <nl> ppp b / modules / prediction / common / prediction_map . h <nl> class PredictionMap { <nl> } <nl> <nl> private : <nl> - std : : unique_ptr < apollo : : hdmap : : HDMapImpl > hdmap_ ; <nl> + std : : unique_ptr < apollo : : hdmap : : HDMap > hdmap_ ; <nl> DECLARE_SINGLETON ( PredictionMap ) ; <nl> } ; <nl> <nl> mmm a / modules / tools / map_tool / map_xysl . cc <nl> ppp b / modules / tools / map_tool / map_xysl . cc <nl> namespace tools { <nl> class MapUtil { <nl> public : <nl> explicit MapUtil ( const std : : string & map_filename ) : _map_client ( nullptr ) { <nl> - _map_client . reset ( new apollo : : hdmap : : HDMapImpl ( ) ) ; <nl> + _map_client . reset ( new apollo : : hdmap : : HDMap ( ) ) ; <nl> _map_client - > load_map_from_file ( map_filename ) ; <nl> } <nl> <nl> class MapUtil { <nl> vec2d . x ( ) , vec2d . y ( ) ) ; <nl> return 0 ; <nl> } <nl> - const : : apollo : : hdmap : : HDMapImpl * get_map_client ( ) const { <nl> + const : : apollo : : hdmap : : HDMap * get_map_client ( ) const { <nl> return _map_client . get ( ) ; <nl> } <nl> <nl> private : <nl> - std : : unique_ptr < apollo : : hdmap : : HDMapImpl > _map_client ; <nl> + std : : unique_ptr < apollo : : hdmap : : HDMap > _map_client ; <nl> } ; <nl> <nl> } / / namespace tools <nl>
|
HDMapImpl - > HDMap
|
ApolloAuto/apollo
|
a2677489bc9ffd4cf5c08897c70074f6a7a4640f
|
2017-07-22T00:25:59Z
|
new file mode 100644 <nl> index 000000000000 . . 04fba0eeed4d <nl> mmm / dev / null <nl> ppp b / test / api - digester / Inputs / mock - sdk - baseline . sdk / System / Library / Frameworks / SwiftFoo . framework / Modules / SwiftFoo . swiftmodule / arm64 - apple - macos . swiftinterface <nl> <nl> + / / swift - interface - format - version : 1 . 0 <nl> + / / swift - tools - version : Apple Swift version 5 . 1 ( swiftlang - 1100 . 0 . 38 clang - 1100 . 0 . 20 . 14 ) <nl> + / / swift - module - flags : - target arm64 - apple - macos10 . 14 - enable - objc - interop - enable - library - evolution - swift - version 5 - enforce - exclusivity = checked - O - module - name SwiftFoo <nl> + import Swift <nl> + public class RemovedClass { <nl> + @ objc deinit <nl> + } <nl> new file mode 100644 <nl> index 000000000000 . . 606b8bd22242 <nl> mmm / dev / null <nl> ppp b / test / api - digester / Inputs / mock - sdk . sdk / System / Library / Frameworks / SwiftFoo . framework / Modules / SwiftFoo . swiftmodule / arm64 - apple - macos . swiftinterface <nl> <nl> + / / swift - interface - format - version : 1 . 0 <nl> + / / swift - tools - version : Apple Swift version 5 . 1 ( swiftlang - 1100 . 0 . 38 clang - 1100 . 0 . 20 . 14 ) <nl> + / / swift - module - flags : - target arm64 - apple - macos10 . 14 - enable - objc - interop - enable - library - evolution - swift - version 5 - enforce - exclusivity = checked - O - module - name SwiftFoo <nl> + import Swift <nl> + public class AddedClass { <nl> + @ objc deinit <nl> + } <nl> new file mode 100644 <nl> index 000000000000 . . 902afdfd72c1 <nl> mmm / dev / null <nl> ppp b / test / api - digester / Outputs / stability - stdlib - source - arm64 . swift . expected <nl> <nl> + Constructor BinaryFloatingPoint . init ( _ : ) has been removed <nl> + Constructor Double . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Double . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Float . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Float . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Int . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Int . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Int16 . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Int16 . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Int32 . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Int32 . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Int64 . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Int64 . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Int8 . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor Int8 . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor UInt . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor UInt . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor UInt16 . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor UInt16 . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor UInt32 . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor UInt32 . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor UInt64 . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor UInt64 . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor UInt8 . init ( _ : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Constructor UInt8 . init ( exactly : ) has parameter 0 type change from Swift . Float80 to Swift . Float16 <nl> + Struct Float80 has been removed <nl> + TypeAlias CLongDouble has underlying type change from Swift . Float80 to Swift . Double <nl> similarity index 100 % <nl> rename from test / api - digester / Outputs / stability - stdlib - source . swift . expected <nl> rename to test / api - digester / Outputs / stability - stdlib - source - x86_64 . swift . expected <nl> mmm a / test / api - digester / stability - stdlib - source . swift <nl> ppp b / test / api - digester / stability - stdlib - source . swift <nl> <nl> / / RUN : % empty - directory ( % t . tmp ) <nl> / / mkdir % t . tmp / module - cache & & mkdir % t . tmp / dummy . sdk <nl> / / RUN : % api - digester - diagnose - sdk - module Swift - o % t . tmp / changes . txt - module - cache - path % t . tmp / module - cache - sdk % t . tmp / dummy . sdk - avoid - location <nl> - / / RUN : % clang - E - P - x c % S / Outputs / stability - stdlib - source . swift . expected - o - | sed ' / ^ \ s * $ / d ' | sort > % t . tmp / stability - stdlib - source . swift . expected <nl> + / / RUN : % clang - E - P - x c % S / Outputs / stability - stdlib - source - % target - cpu . swift . expected - o - | sed ' / ^ \ s * $ / d ' | sort > % t . tmp / stability - stdlib - source . swift . expected <nl> / / RUN : % clang - E - P - x c % t . tmp / changes . txt - o - | sed ' / ^ \ s * $ / d ' | sort > % t . tmp / changes . txt . tmp <nl> / / RUN : diff - u % t . tmp / stability - stdlib - source . swift . expected % t . tmp / changes . txt . tmp <nl>
|
[ Apple Silicon ] [ Test ] Generalize api - digester tests for Apple Silicon macOS .
|
apple/swift
|
02b740378f5884a05608b267b6c67c6b70901b95
|
2020-07-03T00:57:59Z
|
mmm a / hphp / system / php / lang / Exception . php <nl> ppp b / hphp / system / php / lang / Exception . php <nl> final function getTraceAsString ( ) { <nl> $ s = " " ; <nl> foreach ( $ this - > getTrace ( ) as $ frame ) { <nl> if ( ! is_array ( $ frame ) ) continue ; <nl> - <nl> - $ args = array ( ) ; <nl> - foreach ( $ frame [ ' args ' ] as $ arg ) { <nl> - if ( is_null ( $ arg ) ) $ args [ ] = ' NULL ' ; <nl> - elseif ( is_array ( $ arg ) ) $ args [ ] = ' Array ' ; <nl> - elseif ( is_object ( $ arg ) ) $ args [ ] = ' Object ( ' . get_class ( $ arg ) . ' ) ' ; <nl> - elseif ( is_bool ( $ arg ) ) $ args [ ] = $ arg ? ' true ' : ' false ' ; <nl> - elseif ( is_int ( $ arg ) | | is_double ( $ arg ) ) $ args [ ] = $ arg ; <nl> - else { <nl> - $ str = ( string ) $ arg ; <nl> - $ args [ ] = " ' " . $ str . " ' " ; <nl> - } <nl> - } <nl> - <nl> $ s . = " # $ i " . <nl> ( isset ( $ frame [ ' file ' ] ) ? $ frame [ ' file ' ] : " " ) . " ( " . <nl> ( isset ( $ frame [ ' line ' ] ) ? $ frame [ ' line ' ] : " " ) . " ) : " . <nl> ( isset ( $ frame [ ' class ' ] ) ? $ frame [ ' class ' ] . $ frame [ ' type ' ] : " " ) . <nl> - $ frame [ ' function ' ] . " ( " . implode ( ' , ' , $ args ) . " ) \ n " ; <nl> + $ frame [ ' function ' ] . " ( ) \ n " ; <nl> $ i + + ; <nl> } <nl> $ s . = " # $ i { main } " ; <nl> mmm a / hphp / test / quick / debugger / eval2 . php . expectf <nl> ppp b / hphp / test / quick / debugger / eval2 . php . expectf <nl> $ _ = " don ' t want to see this " <nl> Hit a php exception : exception ' Exception ' with message ' don ' t want to see this ' in % s / eval2 . php : 8 <nl> Stack trace : <nl> # 0 ( 1 ) : throwSomething ( ) <nl> - # 1 ( 1 ) : include ( ' ' ) <nl> + # 1 ( 1 ) : include ( ) <nl> # 2 { main } <nl> p $ _ <nl> " don ' t want to see this " <nl> don ' t want to see this <nl> " also returned something " <nl> <nl> <nl> - quit <nl> \ No newline at end of file <nl> + quit <nl> mmm a / hphp / test / quick / debugger / exception1 . php . expectf <nl> ppp b / hphp / test / quick / debugger / exception1 . php . expectf <nl> continue <nl> Hit a php exception : exception ' Exception ' with message ' ' in % s / exception1 . php : 11 <nl> Stack trace : <nl> # 0 ( 1 ) : throw_exception ( ) <nl> - # 1 ( 1 ) : include ( ' ' ) <nl> + # 1 ( 1 ) : include ( ) <nl> # 2 { main } <nl> exception MyException <nl> Breakpoint 1 set right before throwing MyException <nl> continue <nl> Hit a php exception : exception ' MyException ' with message ' ' in % s / exception1 . php : 15 <nl> Stack trace : <nl> # 0 ( 1 ) : throw_myexception ( ) <nl> - # 1 ( 1 ) : include ( ' ' ) <nl> + # 1 ( 1 ) : include ( ) <nl> # 2 { main } <nl> exception error <nl> Breakpoint 1 set right after an error <nl> continue <nl> Hit a php exception : exception ' Exception ' with message ' ' in % s / exception1 . php : 29 <nl> Stack trace : <nl> # 0 ( 1 ) : Outer \ throw_exception ( ) <nl> - # 1 ( 1 ) : include ( ' ' ) <nl> + # 1 ( 1 ) : include ( ) <nl> # 2 { main } <nl> exception \ Outer \ MyException <nl> Breakpoint 1 set right before throwing Outer \ MyException <nl> continue <nl> Hit a php exception : exception ' Outer \ MyException ' with message ' ' in % s / exception1 . php : 33 <nl> Stack trace : <nl> # 0 ( 1 ) : Outer \ throw_myexception ( ) <nl> - # 1 ( 1 ) : include ( ' ' ) <nl> + # 1 ( 1 ) : include ( ) <nl> # 2 { main } <nl> exception error <nl> Breakpoint 1 set right after an error <nl> continue <nl> Hit a php exception : exception ' Exception ' with message ' ' in % s / exception1 . php : 47 <nl> Stack trace : <nl> # 0 ( 1 ) : Outer \ Inner \ throw_exception ( ) <nl> - # 1 ( 1 ) : include ( ' ' ) <nl> + # 1 ( 1 ) : include ( ) <nl> # 2 { main } <nl> exception Outer \ Inner \ MyException <nl> Breakpoint 1 set right before throwing Outer \ Inner \ MyException <nl> continue <nl> Hit a php exception : exception ' Outer \ Inner \ MyException ' with message ' ' in % s / exception1 . php : 51 <nl> Stack trace : <nl> # 0 ( 1 ) : Outer \ Inner \ throw_myexception ( ) <nl> - # 1 ( 1 ) : include ( ' ' ) <nl> + # 1 ( 1 ) : include ( ) <nl> # 2 { main } <nl> exception error <nl> Breakpoint 1 set right after an error <nl> Hit fatal : Class undefined : Outer \ Inner \ NoSuchClass <nl> # 1 Outer \ Inner \ error_undefined_class ( ) , called at [ : 1 ] <nl> # 2 include ( ) , called at [ : 1 ] <nl> <nl> - quit <nl> \ No newline at end of file <nl> + quit <nl> mmm a / hphp / test / quick / exception_handler . php . expectf <nl> ppp b / hphp / test / quick / exception_handler . php . expectf <nl> <nl> + <nl> Fatal error : Uncaught exception ' Exception ' with message ' throwing first ' in % s / test / quick / exception_handler . php : 9 <nl> Stack trace : <nl> # 0 % s / test / quick / exception_handler . php ( 11 ) : main ( ) <nl> # 1 { main } <nl> Exception handler threw an object exception : exception ' Exception ' with message ' throwing second ' in % s / test / quick / exception_handler . php : 4 <nl> Stack trace : <nl> - # 0 ( ) : exn_throw ( Object ( Exception ) ) <nl> - # 1 { main } <nl> \ No newline at end of file <nl> + # 0 ( ) : exn_throw ( ) <nl> + # 1 { main } <nl> mmm a / hphp / test / quick / exceptions . php . expectf <nl> ppp b / hphp / test / quick / exceptions . php . expectf <nl> caught 3 <nl> <nl> Fatal error : Uncaught exception ' Ex3 ' with message ' ' in % s / test / quick / exceptions . php : 21 <nl> Stack trace : <nl> - # 0 % s / test / quick / exceptions . php ( 28 ) : bar ( 3 ) <nl> - # 1 % s / test / quick / exceptions . php ( 35 ) : foo2 ( 3 ) <nl> - # 2 % s / test / quick / exceptions . php ( 39 ) : foo1 ( 3 ) <nl> - # 3 ( ) : foo ( 3 ) <nl> - # 4 % s / test / quick / exceptions . php ( 105 ) : array_map ( ' foo ' , Array ) <nl> + # 0 % s / test / quick / exceptions . php ( 28 ) : bar ( ) <nl> + # 1 % s / test / quick / exceptions . php ( 35 ) : foo2 ( ) <nl> + # 2 % s / test / quick / exceptions . php ( 39 ) : foo1 ( ) <nl> + # 3 ( ) : foo ( ) <nl> + # 4 % s / test / quick / exceptions . php ( 105 ) : array_map ( ) <nl> # 5 % s / test / quick / exceptions . php ( 111 ) : main3 ( ) <nl> - # 6 { main } <nl> \ No newline at end of file <nl> + # 6 { main } <nl> mmm a / hphp / test / quick / not - enough - args . php . expectf <nl> ppp b / hphp / test / quick / not - enough - args . php . expectf <nl> one <nl> <nl> Fatal error : Uncaught exception ' Exception ' with message ' 2 , two ( ) expects exactly 2 parameters , 1 given ' in % s / test / quick / not - enough - args . php : 8 <nl> Stack trace : <nl> - # 0 % s / test / quick / not - enough - args . php ( 4 ) : error_handler ( 2 , ' two ( ) expects exactly 2 parameters , 1 given ' ) <nl> - # 1 % s / test / quick / not - enough - args . php ( 17 ) : two ( 1 ) <nl> + # 0 % s / test / quick / not - enough - args . php ( 4 ) : error_handler ( ) <nl> + # 1 % s / test / quick / not - enough - args . php ( 17 ) : two ( ) <nl> # 2 % s / test / quick / not - enough - args . php ( 20 ) : main ( ) <nl> - # 3 { main } <nl> \ No newline at end of file <nl> + # 3 { main } <nl> mmm a / hphp / test / quick / raise_array_index_notice . php . expectf <nl> ppp b / hphp / test / quick / raise_array_index_notice . php . expectf <nl> Caught the rain <nl> 2 <nl> 3 <nl> <nl> - Fatal error : Uncaught exception ' Exception ' with message ' ' in % s / test / quick / raise_array_index_notice . php : 5 <nl> + Fatal error : Uncaught exception ' Exception ' with message ' ' in % s / raise_array_index_notice . php : 5 <nl> Stack trace : <nl> - # 0 % s / test / quick / raise_array_index_notice . php ( 16 ) : errorHandler ( 8 , ' Undefined index : 4 ' , ' % s / test / quick / raise_array_index_notice . php ' , 16 ) <nl> - # 1 % s / test / quick / raise_array_index_notice . php ( 26 ) : rain ( ) <nl> - # 2 % s / test / quick / raise_array_index_notice . php ( 30 ) : main ( ) <nl> - # 3 { main } <nl> \ No newline at end of file <nl> + # 0 % s / raise_array_index_notice . php ( 16 ) : errorHandler ( ) <nl> + # 1 % s / raise_array_index_notice . php ( 26 ) : rain ( ) <nl> + # 2 % s / raise_array_index_notice . php ( 30 ) : main ( ) <nl> + # 3 { main } <nl> deleted file mode 100644 <nl> index f109a9d2424 . . 00000000000 <nl> mmm a / hphp / test / slow / ext_phar / corrupt . php . expect <nl> ppp / dev / null <nl> <nl> - Fatal error : Uncaught exception ' PharException ' with message ' phar has a broken signature ' in : <nl> - Stack trace : <nl> - # 0 ( ) : Phar - > parsePhar ( ' # ! / usr / bin / env php <nl> - < ? php <nl> - / * <nl> - * This file is part of Composer . <nl> - * <nl> - * ( c ) Nils Adermann < naderman @ naderman . de > <nl> - * Jordi Boggiano < j . boggiano @ seld . be > <nl> - * <nl> - * For the full copyright and license information , please view <nl> - * the license that is located at the bottom of this file . <nl> - * / <nl> - <nl> - Phar : : mapPhar ( ' composer . phar ' ) ; <nl> - define ( ' COMPOSER_DEV_WARNING_TIME ' , 1383971945 ) ; <nl> - require ' phar : / / composer . phar / bin / composer ' ; <nl> - <nl> - __HALT_COMPILER ( ) ; ? > <nl> - 6e <nl> \ No newline at end of file <nl> new file mode 100644 <nl> index 00000000000 . . a2ecdd9239c <nl> mmm / dev / null <nl> ppp b / hphp / test / slow / ext_phar / corrupt . php . expectf <nl> <nl> + <nl> + Fatal error : Uncaught exception ' PharException ' with message ' phar has a broken signature ' in : <nl> + Stack trace : <nl> + # 0 ( ) : Phar - > parsePhar ( ) <nl> + # 1 ( ) : Phar - > __construct ( ) <nl> + # 2 % s / composer - corrupt % s ( 13 ) : Phar : : mapPhar ( ) <nl> + # 3 % s / test / slow / ext_phar / corrupt . php ( 16 ) : include ( ) <nl> + # 4 { main } <nl> mmm a / hphp / test / slow / ext_spl_datastructures / queue_iteration . php . expectf <nl> ppp b / hphp / test / slow / ext_spl_datastructures / queue_iteration . php . expectf <nl> int ( 0 ) <nl> <nl> Fatal error : Uncaught exception ' RuntimeException ' with message ' Iterators ' LIFO / FIFO modes for SplStack / SplQueue objects are frozen ' in : <nl> Stack trace : <nl> - # 0 % s / test / slow / ext_spl_datastructures / queue_iteration . php ( 5 ) : SplQueue - > setIteratorMode ( 2 ) <nl> - # 1 % s / test / slow / ext_spl_datastructures / queue_iteration . php ( 21 ) : iterate_queue_with_mode ( 2 ) <nl> + # 0 % s / test / slow / ext_spl_datastructures / queue_iteration . php ( 5 ) : SplQueue - > setIteratorMode ( ) <nl> + # 1 % s / test / slow / ext_spl_datastructures / queue_iteration . php ( 21 ) : iterate_queue_with_mode ( ) <nl> # 2 % s / test / slow / ext_spl_datastructures / queue_iteration . php ( 24 ) : main ( ) <nl> - # 3 { main } <nl> \ No newline at end of file <nl> + # 3 { main } <nl> deleted file mode 100644 <nl> index 1c63168d078 . . 00000000000 <nl> mmm a / hphp / test / slow / ext_standard_errorfunc / debug_backtrace . php <nl> ppp / dev / null <nl> <nl> - < ? php <nl> - <nl> - function foo ( $ a , $ b , $ c , $ d , $ e , $ f , $ g ) { <nl> - var_dump ( debug_backtrace ( ) ) ; <nl> - throw new Exception ; <nl> - } <nl> - class A { <nl> - public function __toString ( ) { <nl> - return ' a ' ; <nl> - } <nl> - } <nl> - foo ( 10 , ' a ' , new stdclass , new A , [ 20 ] , 30 , null ) ; <nl> deleted file mode 100644 <nl> index 7d4ead6abfd . . 00000000000 <nl> mmm a / hphp / test / slow / ext_standard_errorfunc / debug_backtrace . php . expectf <nl> ppp / dev / null <nl> <nl> - array ( 1 ) { <nl> - [ 0 ] = > <nl> - array ( 4 ) { <nl> - [ " file " ] = > <nl> - string ( % d ) " % s / test / slow / ext_standard_errorfunc / debug_backtrace . php " <nl> - [ " line " ] = > <nl> - int ( 12 ) <nl> - [ " function " ] = > <nl> - string ( 3 ) " foo " <nl> - [ " args " ] = > <nl> - array ( 7 ) { <nl> - [ 0 ] = > <nl> - int ( 10 ) <nl> - [ 1 ] = > <nl> - string ( 1 ) " a " <nl> - [ 2 ] = > <nl> - object ( stdClass ) # 1 ( 0 ) { <nl> - } <nl> - [ 3 ] = > <nl> - object ( A ) # 2 ( 0 ) { <nl> - } <nl> - [ 4 ] = > <nl> - array ( 1 ) { <nl> - [ 0 ] = > <nl> - int ( 20 ) <nl> - } <nl> - [ 5 ] = > <nl> - int ( 30 ) <nl> - [ 6 ] = > <nl> - NULL <nl> - } <nl> - } <nl> - } <nl> - <nl> - Fatal error : Uncaught exception ' Exception ' with message ' ' in % s / test / slow / ext_standard_errorfunc / debug_backtrace . php : 5 <nl> - Stack trace : <nl> - # 0 % s / test / slow / ext_standard_errorfunc / debug_backtrace . php ( 12 ) : foo ( 10 , ' a ' , Object ( stdClass ) , Object ( A ) , Array , 30 , NULL ) <nl> - # 1 { main } <nl> mmm a / hphp / test / slow / finally / try_finally_001 . php . expectf <nl> ppp b / hphp / test / slow / finally / try_finally_001 . php . expectf <nl> <nl> string ( 7 ) " finally " <nl> <nl> - Fatal error : Uncaught exception ' Exception ' with message ' ex ' in % s / test / slow / finally / try_finally_001 . php : 4 <nl> + Fatal error : % s <nl> Stack trace : <nl> - # 0 % s / test / slow / finally / try_finally_001 . php ( 10 ) : foo ( ' finally ' ) <nl> - # 1 { main } <nl> \ No newline at end of file <nl> + # 0 % stry_finally_001 . php ( % d ) : foo ( ) <nl> + # 1 { main } <nl> mmm a / hphp / test / slow / lang / invariant . php . expectf <nl> ppp b / hphp / test / slow / lang / invariant . php . expectf <nl> <nl> Fatal error : Uncaught exception ' HH \ InvariantException ' with message ' nope ' in : <nl> Stack trace : <nl> - # 0 ( ) : HH \ invariant_violation ( ' nope ' ) <nl> - # 1 % s / test / slow / lang / invariant . php ( 8 ) : HH \ invariant ( false , ' nope ' ) <nl> + # 0 ( ) : HH \ invariant_violation ( ) <nl> + # 1 % s / test / slow / lang / invariant . php ( 8 ) : HH \ invariant ( ) <nl> # 2 { main } <nl> \ No newline at end of file <nl> mmm a / hphp / test / slow / lang / invariant_cb . php . expectf <nl> ppp b / hphp / test / slow / lang / invariant_cb . php . expectf <nl> array ( 2 ) { <nl> <nl> Fatal error : Uncaught exception ' HH \ InvariantException ' with message ' a ' in : <nl> Stack trace : <nl> - # 0 ( ) : HH \ invariant_violation ( ' a ' , ' b ' ) <nl> - # 1 % s / test / slow / lang / invariant_cb . php ( 6 ) : HH \ invariant ( false , ' a ' , ' b ' ) <nl> + # 0 ( ) : HH \ invariant_violation ( ) <nl> + # 1 % s / test / slow / lang / invariant_cb . php ( 6 ) : HH \ invariant ( ) <nl> # 2 { main } <nl> \ No newline at end of file <nl> mmm a / hphp / test / slow / lang / invariant_cb_two . php . expectf <nl> ppp b / hphp / test / slow / lang / invariant_cb_two . php . expectf <nl> <nl> Fatal error : Uncaught exception ' HH \ InvariantException ' with message ' Callback already registered : a ' in : <nl> Stack trace : <nl> - # 0 ( ) : HH \ invariant_violation ( ' Callback already registered : % s ' , ' a ' ) <nl> - # 1 ( ) : HH \ invariant ( false , ' Callback already registered : % s ' , ' a ' ) <nl> - # 2 % s / test / slow / lang / invariant_cb_two . php ( 5 ) : HH \ invariant_callback_register ( ' a ' ) <nl> + # 0 ( ) : HH \ invariant_violation ( ) <nl> + # 1 ( ) : HH \ invariant ( ) <nl> + # 2 % s / test / slow / lang / invariant_cb_two . php ( 5 ) : HH \ invariant_callback_register ( ) <nl> # 3 { main } <nl> \ No newline at end of file <nl> mmm a / hphp / test / slow / lang / invariant_vsprintf . php . expectf <nl> ppp b / hphp / test / slow / lang / invariant_vsprintf . php . expectf <nl> <nl> Fatal error : Uncaught exception ' HH \ InvariantException ' with message ' nope - 42 ' in : <nl> Stack trace : <nl> - # 0 ( ) : HH \ invariant_violation ( ' % s - % s ' , ' nope ' , 42 ) <nl> - # 1 % s / test / slow / lang / invariant_vsprintf . php ( 3 ) : HH \ invariant ( false , ' % s - % s ' , ' nope ' , 42 ) <nl> - # 2 { main } <nl> + # 0 ( ) : HH \ invariant_violation ( ) <nl> + # 1 % s / test / slow / lang / invariant_vsprintf . php ( 3 ) : HH \ invariant ( ) <nl> + # 2 { main } <nl> \ No newline at end of file <nl> mmm a / hphp / test / slow / lang / meth_caller_bad . php . expectf <nl> ppp b / hphp / test / slow / lang / meth_caller_bad . php . expectf <nl> <nl> Fatal error : Uncaught exception ' HH \ InvariantException ' with message ' object must be an instance of ( B ) instead it is ( A ) ' in : <nl> Stack trace : <nl> - # 0 ( ) : HH \ invariant_violation ( ' object must be an instance of ( B ) instead it is ( A ) ' ) <nl> - # 1 ( ) : HH \ invariant ( false , ' object must be an instance of ( B ) instead it is ( A ) ' ) <nl> - # 2 % s / test / slow / lang / meth_caller_bad . php ( 5 ) : __SystemLib \ MethCallerHelper - > __invoke ( Object ( A ) ) <nl> + # 0 ( ) : HH \ invariant_violation ( ) <nl> + # 1 ( ) : HH \ invariant ( ) <nl> + # 2 % s / test / slow / lang / meth_caller_bad . php ( 5 ) : __SystemLib \ MethCallerHelper - > __invoke ( ) <nl> # 3 { main } <nl> \ No newline at end of file <nl> mmm a / hphp / test / slow / object_method / bad - inlining . php . expectf <nl> ppp b / hphp / test / slow / object_method / bad - inlining . php . expectf <nl> <nl> int ( 1 ) <nl> <nl> - Notice : Undefined variable : x in % s / test / slow / object_method / bad - inlining . php on line 26 <nl> + Notice : Undefined variable : x in % s / slow / object_method / bad - inlining . php on line 26 <nl> <nl> - Fatal error : Uncaught exception ' BadMethodCallException ' with message ' Call to a member function foo ( ) on a non - object ( NULL ) ' in % s / test / slow / object_method / bad - inlining . php : 15 <nl> + Fatal error : Uncaught exception ' BadMethodCallException ' with message ' Call to a member function foo ( ) on a non - object ( NULL ) ' in % s / slow / object_method / bad - inlining . php : 15 <nl> Stack trace : <nl> - # 0 % s / test / slow / object_method / bad - inlining . php ( 19 ) : foo ( false , ' a ' ) <nl> - # 1 { main } <nl> \ No newline at end of file <nl> + # 0 % s / slow / object_method / bad - inlining . php ( 19 ) : foo ( ) <nl> + # 1 { main } <nl> mmm a / hphp / test / slow / reflection / scalar_param_types / php - noforcehh . php . expectf <nl> ppp b / hphp / test / slow / reflection / scalar_param_types / php - noforcehh . php . expectf <nl> <nl> string ( % d ) " exception ' ReflectionException ' with message ' Class int does not exist ' in : <nl> Stack trace : <nl> - # 0 ( ) : ReflectionClass - > __construct ( ' int ' ) <nl> + # 0 ( ) : ReflectionClass - > __construct ( ) <nl> # 1 % s / test / slow / reflection / scalar_param_types / php - noforcehh . php ( 8 ) : ReflectionParameter - > getClass ( ) <nl> # 2 { main } " <nl> string ( 3 ) " int " <nl> mmm a / hphp / tools / out2expectf . py <nl> ppp b / hphp / tools / out2expectf . py <nl> <nl> <nl> for test in sys . argv [ 1 : ] : <nl> if not test . endswith ( ' . php ' ) : <nl> - print ( " % s doesn \ ' t end in . php . Pass the . php file to this script . " % <nl> - test ) <nl> + print ( " % s doesn \ ' t end in . php . Pass the . php file to this script . " % test ) <nl> sys . exit ( 1 ) <nl> <nl> try : <nl> <nl> continue <nl> <nl> try : <nl> - # the first match has to be in a try incase there is bad unicode <nl> - re . sub ( ' a ' , r ' a ' , data ) <nl> + data = re . sub ( ' string \ ( \ d + \ ) " / data [ ^ ] * / hphp ' , ' string ( % d ) " % s ' , data ) <nl> + data = re . sub ( ' / data [ ^ ] * / hphp ' , ' % s ' , data ) <nl> except UnicodeDecodeError : <nl> print ( " % s has invalid unicode , skipping " % test ) <nl> continue <nl> <nl> - # try to do relative paths <nl> - data = re . sub ( ' string \ ( \ d + \ ) " ( # \ d + ) / [ ^ ] * / hphp ' , r ' string ( % d ) " \ 1 % s ' , <nl> - data ) <nl> - data = re . sub ( ' string \ ( \ d + \ ) " / [ ^ ] * / hphp ' , r ' string ( % d ) " % s ' , data ) <nl> - data = re . sub ( ' / [ ^ ] * / hphp ' , ' % s ' , data ) <nl> - <nl> # The debugger prints the path given on the command line , which is often <nl> # relative . All such debugger tests live under something / debugger / foo . php . <nl> data = re . sub ( ' [ ^ ] * / debugger ( / [ ^ ] * . php ) ' , r ' % s \ 1 ' , data ) <nl> <nl> <nl> # Closure names change <nl> data = re . sub ( ' Closure \ $ \ $ [ 0 - 9a - f ] + \ $ ' , ' Closure $ $ % s $ ' , data ) <nl> - if ' % ' in data : <nl> - name = test + ' . expectf ' <nl> - else : <nl> - name = test + ' . expect ' <nl> + file ( test + ' . expectf ' , ' w ' ) . write ( data ) <nl> <nl> - file ( name , ' w ' ) . write ( data ) <nl> - print ( ' Copied % s . out to % s ' % ( test , name ) ) <nl> + print ( ' Copied % s . out to % s . expectf ' % ( test , test ) ) <nl>
|
Revert " put args in backtrace "
|
facebook/hhvm
|
64e15dbd77b9a62d46bbeacb2c8fa4436833b025
|
2014-07-01T20:30:21Z
|
mmm a / src / ImageViewer . cpp <nl> ppp b / src / ImageViewer . cpp <nl> void ImageViewer : : setImage ( const QImage & image ) <nl> { <nl> ui - > labelView - > setPixmap ( QPixmap : : fromImage ( image ) ) ; <nl> <nl> - / / Reset the scaling to show the image in its original size <nl> - scaleImage ( 100 ) ; <nl> + / / If the image is larger than the viewport scale it to fit the viewport . <nl> + / / If the image is smaller than the viewport show it in its original size . <nl> + if ( image . size ( ) . width ( ) > ui - > labelView - > size ( ) . width ( ) | | image . size ( ) . height ( ) > ui - > labelView - > size ( ) . height ( ) ) <nl> + ui - > buttonFitToWindow - > setChecked ( true ) ; <nl> + else <nl> + scaleImage ( 100 ) ; <nl> } <nl> <nl> void ImageViewer : : openPrintImageDialog ( ) <nl>
|
Scale large images in ImageViewer to fit the viewport by default
|
sqlitebrowser/sqlitebrowser
|
23b1021d340fa9a41e60e43e23559232df31d8c6
|
2020-06-08T18:28:46Z
|
mmm a / test / unittests / compiler - dispatcher / compiler - dispatcher - unittest . cc <nl> ppp b / test / unittests / compiler - dispatcher / compiler - dispatcher - unittest . cc <nl> class MockPlatform : public v8 : : Platform { <nl> <nl> size_t NumberOfAvailableBackgroundThreads ( ) override { return 1 ; } <nl> <nl> + std : : shared_ptr < TaskRunner > GetForegroundTaskRunner ( <nl> + v8 : : Isolate * isolate ) override { <nl> + constexpr bool is_foreground_task_runner = true ; <nl> + return std : : make_shared < MockTaskRunner > ( this , is_foreground_task_runner ) ; <nl> + } <nl> + <nl> + std : : shared_ptr < TaskRunner > GetBackgroundTaskRunner ( <nl> + v8 : : Isolate * isolate ) override { <nl> + constexpr bool is_foreground_task_runner = false ; <nl> + return std : : make_shared < MockTaskRunner > ( this , is_foreground_task_runner ) ; <nl> + } <nl> + <nl> void CallOnBackgroundThread ( Task * task , <nl> ExpectedRuntime expected_runtime ) override { <nl> base : : LockGuard < base : : Mutex > lock ( & mutex_ ) ; <nl> class MockPlatform : public v8 : : Platform { <nl> DISALLOW_COPY_AND_ASSIGN ( TaskWrapper ) ; <nl> } ; <nl> <nl> + class MockTaskRunner final : public TaskRunner { <nl> + public : <nl> + MockTaskRunner ( MockPlatform * platform , bool is_foreground_task_runner ) <nl> + : platform_ ( platform ) , <nl> + is_foreground_task_runner_ ( is_foreground_task_runner ) { } <nl> + <nl> + void PostTask ( std : : unique_ptr < v8 : : Task > task ) override { <nl> + base : : LockGuard < base : : Mutex > lock ( & platform_ - > mutex_ ) ; <nl> + if ( is_foreground_task_runner_ ) { <nl> + platform_ - > foreground_tasks_ . push_back ( task . release ( ) ) ; <nl> + } else { <nl> + platform_ - > background_tasks_ . push_back ( task . release ( ) ) ; <nl> + } <nl> + } <nl> + <nl> + void PostDelayedTask ( std : : unique_ptr < Task > task , <nl> + double delay_in_seconds ) override { <nl> + UNREACHABLE ( ) ; <nl> + } ; <nl> + <nl> + void PostIdleTask ( std : : unique_ptr < IdleTask > task ) override { <nl> + DCHECK ( IdleTasksEnabled ( ) ) ; <nl> + base : : LockGuard < base : : Mutex > lock ( & platform_ - > mutex_ ) ; <nl> + ASSERT_TRUE ( platform_ - > idle_task_ = = nullptr ) ; <nl> + platform_ - > idle_task_ = task . release ( ) ; <nl> + } <nl> + <nl> + bool IdleTasksEnabled ( ) override { <nl> + / / Idle tasks are enabled only in the foreground task runner . <nl> + return is_foreground_task_runner_ ; <nl> + } ; <nl> + <nl> + private : <nl> + MockPlatform * platform_ ; <nl> + bool is_foreground_task_runner_ ; <nl> + } ; <nl> + <nl> double time_ ; <nl> double time_step_ ; <nl> <nl>
|
[ test ] Add TaskRunners to the platform in the compiler dispatcher tests
|
v8/v8
|
3896e61775e7f2355b35f42d9d75d723529590cc
|
2017-11-20T15:54:11Z
|
mmm a / documentation / sphinx / source / downloads . rst <nl> ppp b / documentation / sphinx / source / downloads . rst <nl> macOS <nl> <nl> The macOS installation package is supported on macOS 10 . 7 + . It includes the client and ( optionally ) the server . <nl> <nl> - * ` FoundationDB - 6 . 1 . 11 . pkg < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / macOS / installers / FoundationDB - 6 . 1 . 11 . pkg > ` _ <nl> + * ` FoundationDB - 6 . 1 . 12 . pkg < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / macOS / installers / FoundationDB - 6 . 1 . 12 . pkg > ` _ <nl> <nl> Ubuntu <nl> mmmmmm <nl> <nl> The Ubuntu packages are supported on 64 - bit Ubuntu 12 . 04 + , but beware of the Linux kernel bug in Ubuntu 12 . x . <nl> <nl> - * ` foundationdb - clients - 6 . 1 . 11 - 1_amd64 . deb < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / ubuntu / installers / foundationdb - clients_6 . 1 . 11 - 1_amd64 . deb > ` _ <nl> - * ` foundationdb - server - 6 . 1 . 11 - 1_amd64 . deb < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / ubuntu / installers / foundationdb - server_6 . 1 . 11 - 1_amd64 . deb > ` _ ( depends on the clients package ) <nl> + * ` foundationdb - clients - 6 . 1 . 12 - 1_amd64 . deb < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / ubuntu / installers / foundationdb - clients_6 . 1 . 12 - 1_amd64 . deb > ` _ <nl> + * ` foundationdb - server - 6 . 1 . 12 - 1_amd64 . deb < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / ubuntu / installers / foundationdb - server_6 . 1 . 12 - 1_amd64 . deb > ` _ ( depends on the clients package ) <nl> <nl> RHEL / CentOS EL6 <nl> mmmmmmmmmmmmmmm <nl> <nl> The RHEL / CentOS EL6 packages are supported on 64 - bit RHEL / CentOS 6 . x . <nl> <nl> - * ` foundationdb - clients - 6 . 1 . 11 - 1 . el6 . x86_64 . rpm < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / rhel6 / installers / foundationdb - clients - 6 . 1 . 11 - 1 . el6 . x86_64 . rpm > ` _ <nl> - * ` foundationdb - server - 6 . 1 . 11 - 1 . el6 . x86_64 . rpm < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / rhel6 / installers / foundationdb - server - 6 . 1 . 11 - 1 . el6 . x86_64 . rpm > ` _ ( depends on the clients package ) <nl> + * ` foundationdb - clients - 6 . 1 . 12 - 1 . el6 . x86_64 . rpm < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / rhel6 / installers / foundationdb - clients - 6 . 1 . 12 - 1 . el6 . x86_64 . rpm > ` _ <nl> + * ` foundationdb - server - 6 . 1 . 12 - 1 . el6 . x86_64 . rpm < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / rhel6 / installers / foundationdb - server - 6 . 1 . 12 - 1 . el6 . x86_64 . rpm > ` _ ( depends on the clients package ) <nl> <nl> RHEL / CentOS EL7 <nl> mmmmmmmmmmmmmmm <nl> <nl> The RHEL / CentOS EL7 packages are supported on 64 - bit RHEL / CentOS 7 . x . <nl> <nl> - * ` foundationdb - clients - 6 . 1 . 11 - 1 . el7 . x86_64 . rpm < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / rhel7 / installers / foundationdb - clients - 6 . 1 . 11 - 1 . el7 . x86_64 . rpm > ` _ <nl> - * ` foundationdb - server - 6 . 1 . 11 - 1 . el7 . x86_64 . rpm < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / rhel7 / installers / foundationdb - server - 6 . 1 . 11 - 1 . el7 . x86_64 . rpm > ` _ ( depends on the clients package ) <nl> + * ` foundationdb - clients - 6 . 1 . 12 - 1 . el7 . x86_64 . rpm < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / rhel7 / installers / foundationdb - clients - 6 . 1 . 12 - 1 . el7 . x86_64 . rpm > ` _ <nl> + * ` foundationdb - server - 6 . 1 . 12 - 1 . el7 . x86_64 . rpm < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / rhel7 / installers / foundationdb - server - 6 . 1 . 12 - 1 . el7 . x86_64 . rpm > ` _ ( depends on the clients package ) <nl> <nl> Windows <nl> mmmmmm - <nl> <nl> The Windows installer is supported on 64 - bit Windows XP and later . It includes the client and ( optionally ) the server . <nl> <nl> - * ` foundationdb - 6 . 1 . 11 - x64 . msi < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / windows / installers / foundationdb - 6 . 1 . 11 - x64 . msi > ` _ <nl> + * ` foundationdb - 6 . 1 . 12 - x64 . msi < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / windows / installers / foundationdb - 6 . 1 . 12 - x64 . msi > ` _ <nl> <nl> API Language Bindings <nl> = = = = = = = = = = = = = = = = = = = = = <nl> On macOS and Windows , the FoundationDB Python API bindings are installed as part <nl> <nl> If you need to use the FoundationDB Python API from other Python installations or paths , download the Python package : <nl> <nl> - * ` foundationdb - 6 . 1 . 11 . tar . gz < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / bindings / python / foundationdb - 6 . 1 . 11 . tar . gz > ` _ <nl> + * ` foundationdb - 6 . 1 . 12 . tar . gz < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / bindings / python / foundationdb - 6 . 1 . 12 . tar . gz > ` _ <nl> <nl> Ruby 1 . 9 . 3 / 2 . 0 . 0 + <nl> mmmmmmmmmmmmmmm - - <nl> <nl> - * ` fdb - 6 . 1 . 11 . gem < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / bindings / ruby / fdb - 6 . 1 . 11 . gem > ` _ <nl> + * ` fdb - 6 . 1 . 12 . gem < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / bindings / ruby / fdb - 6 . 1 . 12 . gem > ` _ <nl> <nl> Java 8 + <nl> mmmmmm - <nl> <nl> - * ` fdb - java - 6 . 1 . 11 . jar < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / bindings / java / fdb - java - 6 . 1 . 11 . jar > ` _ <nl> - * ` fdb - java - 6 . 1 . 11 - javadoc . jar < https : / / www . foundationdb . org / downloads / 6 . 1 . 11 / bindings / java / fdb - java - 6 . 1 . 11 - javadoc . jar > ` _ <nl> + * ` fdb - java - 6 . 1 . 12 . jar < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / bindings / java / fdb - java - 6 . 1 . 12 . jar > ` _ <nl> + * ` fdb - java - 6 . 1 . 12 - javadoc . jar < https : / / www . foundationdb . org / downloads / 6 . 1 . 12 / bindings / java / fdb - java - 6 . 1 . 12 - javadoc . jar > ` _ <nl> <nl> Go 1 . 1 + <nl> mmmmmm - <nl> mmm a / documentation / sphinx / source / release - notes . rst <nl> ppp b / documentation / sphinx / source / release - notes . rst <nl> Release Notes <nl> Fixes <nl> mmm - - <nl> <nl> - * Fixed thread safety issue while writing large keys or values . ` ( Issue # 1846 ) < https : / / github . com / apple / foundationdb / issues / 1846 > ` _ <nl> + * Fixed a thread safety issue while writing large keys or values . ` ( Issue # 1846 ) < https : / / github . com / apple / foundationdb / issues / 1846 > ` _ <nl> * An untracked data distributor could prevent a newly recruited data distributor from being started . ` ( PR # 1849 ) < https : / / github . com / apple / foundationdb / pull / 1849 > ` _ <nl> <nl> 6 . 1 . 11 <nl>
|
updated documentation for 6 . 1 . 12
|
apple/foundationdb
|
bea8491667febd8f4e74db0ee1fae0fb3f5940cb
|
2019-07-24T02:29:39Z
|
mmm a / doc / build - osx . md <nl> ppp b / doc / build - osx . md <nl> Instructions : Homebrew <nl> <nl> # # # # Install dependencies using Homebrew <nl> <nl> - brew install autoconf automake berkeley - db4 libtool boost miniupnpc openssl pkg - config protobuf qt5 libevent <nl> + brew install autoconf automake berkeley - db4 libtool boost miniupnpc openssl pkg - config protobuf qt5 libevent <nl> <nl> NOTE : Building with Qt4 is still supported , however , could result in a broken UI . As such , building with Qt5 is recommended . <nl> <nl> mmm a / doc / build - unix . md <nl> ppp b / doc / build - unix . md <nl> Dependency Build Instructions : Ubuntu & Debian <nl> mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - <nl> Build requirements : <nl> <nl> - sudo apt - get install build - essential libtool autotools - dev autoconf pkg - config libssl - dev libevent - dev <nl> + sudo apt - get install build - essential libtool autotools - dev autoconf pkg - config libssl - dev libevent - dev <nl> <nl> On Ubuntu 15 . 10 + there are generic names for the individual boost development <nl> packages , so the following can be used to only install necessary parts of <nl> boost : <nl> <nl> - apt - get install libboost - system - dev libboost - filesystem - dev libboost - chrono - dev libboost - program - options - dev libboost - test - dev libboost - thread - dev libboost - base - dev <nl> + apt - get install libboost - system - dev libboost - filesystem - dev libboost - chrono - dev libboost - program - options - dev libboost - test - dev libboost - thread - dev libboost - base - dev <nl> <nl> For Ubuntu before 15 . 10 , or Debian 7 and later libboost - all - dev has to be installed : <nl> <nl> - sudo apt - get install libboost - all - dev <nl> + sudo apt - get install libboost - all - dev <nl> <nl> BerkeleyDB is required for the wallet . db4 . 8 packages are available [ here ] ( https : / / launchpad . net / ~ bitcoin / + archive / bitcoin ) . <nl> You can add the repository and install using the following commands : <nl> <nl> - sudo add - apt - repository ppa : bitcoin / bitcoin <nl> - sudo apt - get update <nl> - sudo apt - get install libdb4 . 8 - dev libdb4 . 8 + + - dev <nl> + sudo add - apt - repository ppa : bitcoin / bitcoin <nl> + sudo apt - get update <nl> + sudo apt - get install libdb4 . 8 - dev libdb4 . 8 + + - dev <nl> <nl> Ubuntu and Debian have their own libdb - dev and libdb + + - dev packages , but these will install <nl> BerkeleyDB 5 . 1 or later , which break binary wallet compatibility with the distributed executables which <nl> See the section " Disable - wallet mode " to build Bitcoin Core without wallet . <nl> <nl> Optional : <nl> <nl> - sudo apt - get install libminiupnpc - dev ( see - - with - miniupnpc and - - enable - upnp - default ) <nl> + sudo apt - get install libminiupnpc - dev ( see - - with - miniupnpc and - - enable - upnp - default ) <nl> <nl> ZMQ dependencies : <nl> <nl> - sudo apt - get install libzmq3 - dev ( provides ZMQ API 4 . x ) <nl> + sudo apt - get install libzmq3 - dev ( provides ZMQ API 4 . x ) <nl> <nl> Dependencies for the GUI : Ubuntu & Debian <nl> mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> Hardening enables the following features : <nl> scanelf - e . / bitcoin <nl> <nl> The output should contain : <nl> + <nl> TYPE <nl> ET_DYN <nl> <nl>
|
[ doc ] Remove excessive white space
|
bitcoin/bitcoin
|
e167af2acd0bfc428ed3c68303c42c996a8df435
|
2015-11-05T22:29:29Z
|
mmm a / test / quantization / test_quantize_fx . py <nl> ppp b / test / quantization / test_quantize_fx . py <nl> <nl> import unittest <nl> <nl> class TestQuantizeFx ( QuantizationTestCase ) : <nl> - " " " Unit tests for functionalities <nl> - " " " <nl> - @ skipIfNoFBGEMM <nl> - def test_functional ( self ) : <nl> - " " " Test quantizing functional conv and linear <nl> - " " " <nl> + def _get_conv_linear_test_cases ( self ) : <nl> + ' ' ' Returns a list of test cases , with format : <nl> + is_dynamic , ModuleClass , module_constructor_inputs , <nl> + inputs , quantized_node , weight_prepack_op <nl> + ' ' ' <nl> class Conv ( torch . nn . Module ) : <nl> - def __init__ ( self ) : <nl> + def __init__ ( self , weight ) : <nl> super ( ) . __init__ ( ) <nl> + self . weight = torch . nn . Parameter ( weight ) <nl> self . stride = ( 1 , 1 ) <nl> self . padding = ( 0 , 0 ) <nl> self . dilation = ( 1 , 1 ) <nl> self . groups = 1 <nl> <nl> - def forward ( self , x , weight ) : <nl> - return F . conv2d ( x , weight , None , self . stride , self . padding , self . dilation , self . groups ) <nl> + def forward ( self , x ) : <nl> + return F . conv2d ( x , self . weight , None , self . stride , self . padding , self . dilation , self . groups ) <nl> <nl> conv_input = torch . rand ( 1 , 3 , 224 , 224 ) <nl> conv_weight = torch . rand ( 3 , 3 , 3 , 3 ) <nl> <nl> class Linear ( torch . nn . Module ) : <nl> - def __init__ ( self ) : <nl> + def __init__ ( self , weight ) : <nl> super ( ) . __init__ ( ) <nl> + self . weight = torch . nn . Parameter ( weight ) <nl> <nl> - def forward ( self , x , weight ) : <nl> - return F . linear ( x , weight ) <nl> + def forward ( self , x ) : <nl> + return F . linear ( x , self . weight ) <nl> <nl> linear_input = torch . rand ( 8 , 5 ) <nl> linear_weight = torch . rand ( 10 , 5 ) <nl> def forward ( self , x ) : <nl> linear_module_input = torch . rand ( 8 , 5 ) <nl> <nl> tests = [ <nl> - ( False , Conv , ( conv_input , conv_weight ) , ns . call_function ( torch . ops . quantized . conv2d ) ) , <nl> - ( True , Linear , ( linear_input , linear_weight ) , ns . call_function ( torch . ops . quantized . linear_dynamic ) ) , <nl> - ( False , Linear , ( linear_input , linear_weight ) , ns . call_function ( torch . ops . quantized . linear ) ) , <nl> - ( True , LinearModule , ( linear_module_input , ) , ns . call_module ( nnqd . Linear ) ) , <nl> - ( False , LinearModule , ( linear_module_input , ) , ns . call_module ( nnq . Linear ) ) , <nl> + ( False , Conv , ( conv_weight , ) , ( conv_input , ) , <nl> + ns . call_function ( torch . ops . quantized . conv2d ) , <nl> + ns . call_function ( torch . ops . quantized . conv2d_prepack ) ) , <nl> + ( True , Linear , ( linear_weight , ) , ( linear_input , ) , <nl> + ns . call_function ( torch . ops . quantized . linear_dynamic ) , <nl> + ns . call_function ( torch . ops . quantized . linear_prepack ) ) , <nl> + ( False , Linear , ( linear_weight , ) , ( linear_input , ) , <nl> + ns . call_function ( torch . ops . quantized . linear ) , <nl> + ns . call_function ( torch . ops . quantized . linear_prepack ) ) , <nl> + ( True , LinearModule , ( ) , ( linear_module_input , ) , <nl> + ns . call_module ( nnqd . Linear ) , <nl> + None ) , <nl> + ( False , LinearModule , ( ) , ( linear_module_input , ) , <nl> + ns . call_module ( nnq . Linear ) , <nl> + None ) , <nl> ] <nl> + return tests <nl> <nl> - for is_dynamic , M , inputs , quantized_node in tests : <nl> + " " " <nl> + Unit tests for functionalities <nl> + " " " <nl> + @ skipIfNoFBGEMM <nl> + def test_functional_no_debug ( self ) : <nl> + " " " Test quantizing functional conv and linear <nl> + " " " <nl> + tests = self . _get_conv_linear_test_cases ( ) <nl> + for ( is_dynamic , ModuleClass , module_constructor_inputs , <nl> + inputs , quantized_node , weight_prepack_node ) in tests : <nl> + quant_type = QuantType . DYNAMIC if is_dynamic else QuantType . STATIC <nl> + node_occurrence = dict ( ) <nl> + if weight_prepack_node : <nl> + node_occurrence [ weight_prepack_node ] = 0 <nl> + self . checkGraphModeFxOp ( <nl> + ModuleClass ( * module_constructor_inputs ) , <nl> + inputs , quant_type , <nl> + expected_node = quantized_node , <nl> + expected_node_occurrence = node_occurrence , <nl> + debug = False ) <nl> + <nl> + @ skipIfNoFBGEMM <nl> + def test_functional_debug ( self ) : <nl> + " " " Test quantizing functional conv and linear with debug option <nl> + " " " <nl> + tests = self . _get_conv_linear_test_cases ( ) <nl> + for ( is_dynamic , ModuleClass , module_constructor_inputs , <nl> + inputs , quantized_node , weight_prepack_node ) in tests : <nl> quant_type = QuantType . DYNAMIC if is_dynamic else QuantType . STATIC <nl> + node_occurrence = dict ( ) <nl> + if weight_prepack_node : <nl> + node_occurrence [ weight_prepack_node ] = 1 <nl> self . checkGraphModeFxOp ( <nl> - M ( ) , inputs , quant_type , quantized_node ) <nl> + ModuleClass ( * module_constructor_inputs ) , <nl> + inputs , quant_type , <nl> + expected_node = quantized_node , <nl> + expected_node_occurrence = node_occurrence , <nl> + debug = True ) <nl> <nl> class TestQuantizeFxOps ( QuantizationTestCase ) : <nl> " " " Unit tests for individual ops <nl> mmm a / torch / quantization / fx / quantize . py <nl> ppp b / torch / quantization / fx / quantize . py <nl> def quantize_node ( node , activation_post_process ) : <nl> def quantize ( quantizer , node ) : <nl> quantize_node ( node , quantizer . activation_post_process_map [ node . name ] ) <nl> <nl> + # Returns a function that can get a new attribute name for module with given prefix <nl> + # for example , <nl> + # > > get_new_observer_name = get_new_attr_name_with_prefix ( ' _observer ' ) <nl> + # > > new_name = get_new_observer_name ( module ) <nl> + # new_name will be an unused attribute name on module , e . g . ` _observer_1 ` <nl> + def get_new_attr_name_with_prefix ( prefix ) : <nl> + def get_new_attr_name ( module ) : <nl> + def get_attr_name ( i ) : <nl> + return prefix + str ( i ) <nl> + i = 0 <nl> + attr_name = get_attr_name ( i ) <nl> + while hasattr ( module , attr_name ) : <nl> + i + = 1 <nl> + attr_name = get_attr_name ( i ) <nl> + return attr_name <nl> + return get_new_attr_name <nl> + <nl> # A dictionary for querying the weight index for a given op <nl> WEIGHT_INDEX_DICT = { <nl> torch . nn . functional . conv2d : [ 1 ] , <nl> def convert ( self , quantizer , node , load_arg , debug = False ) : <nl> # pack weight <nl> weight = load_arg ( quantized = True ) ( self . conv_node . args [ 1 ] ) <nl> other_args = load_arg ( quantized = False ) ( self . conv_node . args [ 2 : ] ) <nl> - prepack_args = [ weight ] + list ( other_args ) <nl> + prepack_args = tuple ( [ weight ] + list ( other_args ) ) <nl> packed_weight = quantizer . quantized_graph . create_node ( <nl> ' call_function ' , torch . ops . quantized . conv2d_prepack , prepack_args , { } ) <nl> # construct conv input <nl> conv_input = load_arg ( quantized = True ) ( self . conv_node . args [ 0 ] ) <nl> activation_post_process = quantizer . activation_post_process_map [ self . conv_node . name ] <nl> scale , zero_point , _ = get_qparams ( activation_post_process ) <nl> - qconv_args = [ conv_input , packed_weight , scale , zero_point ] <nl> + qconv_args = ( conv_input , packed_weight , scale , zero_point ) <nl> kwargs = load_arg ( quantized = False ) ( self . conv_node . kwargs ) <nl> return quantizer . quantized_graph . create_node ( <nl> ' call_function ' , torch . ops . quantized . conv2d , qconv_args , kwargs ) <nl> def convert ( self , quantizer , node , load_arg , debug = False ) : <nl> linear_out , <nl> quantizer . activation_post_process_map [ self . linear_node . name ] ) <nl> else : <nl> + # TODO : this code can be merged with dynamic linear code <nl> + # linear args <nl> + # ( x , weight , bias , . . . ) <nl> args = load_arg ( quantized = [ 0 , 1 ] ) ( self . linear_node . args ) <nl> kwargs = load_arg ( quantized = False ) ( self . linear_node . kwargs ) <nl> # pack weight <nl> weight = load_arg ( quantized = True ) ( self . linear_node . args [ 1 ] ) <nl> bias = None <nl> - other_args = load_arg ( quantized = False ) ( self . linear_node . args [ 1 : ] ) <nl> + # all args after bias , including bias <nl> + other_args = load_arg ( quantized = False ) ( self . linear_node . args [ 2 : ] ) <nl> if len ( self . linear_node . args ) > 2 : <nl> bias = load_arg ( quantized = False ) ( self . linear_node . args [ 2 ] ) <nl> other_args = other_args [ 1 : ] # remove the bias argument <nl> def convert ( self , quantizer , node , load_arg , debug = False ) : <nl> ' expect bias provided as a keyword argument when it is not a positional argument ' <nl> bias = kwargs [ ' bias ' ] <nl> kwargs . pop ( ' bias ' ) <nl> - prepack_args = [ weight , bias ] <nl> + prepack_args = ( weight , bias ) <nl> packed_weight = quantizer . quantized_graph . create_node ( <nl> ' call_function ' , torch . ops . quantized . linear_prepack , prepack_args , { } ) <nl> # construct linear input <nl> def convert ( self , quantizer , node , load_arg , debug = False ) : <nl> activation_post_process = \ <nl> quantizer . activation_post_process_map [ self . linear_node . name ] <nl> scale , zero_point , _ = get_qparams ( activation_post_process ) <nl> - qlinear_args = [ linear_input , packed_weight , scale , zero_point ] <nl> + qlinear_args = ( linear_input , packed_weight , scale , zero_point ) <nl> return quantizer . quantized_graph . create_node ( <nl> ' call_function ' , torch . ops . quantized . linear , qlinear_args , kwargs ) <nl> <nl> def convert ( self , quantizer , node , load_arg , debug = False ) : <nl> return quantizer . quantized_graph . create_node ( <nl> ' call_function ' , torch . nn . functional . linear , args , kwargs ) <nl> else : <nl> - # quantize and dequantize weight <nl> - args = load_arg ( quantized = [ 1 ] ) ( self . linear_node . args ) <nl> - kwargs = load_arg ( quantized = False ) ( self . linear_node . kwargs ) <nl> - # pack weight <nl> - weight = load_arg ( quantized = True ) ( self . linear_node . args [ 1 ] ) <nl> + # linear args : <nl> + # ( x , weight , bias ) <nl> + # quantize weight <nl> + quantized_weight = load_arg ( quantized = True ) ( self . linear_node . args [ 1 ] ) <nl> bias = None <nl> - other_args = load_arg ( quantized = False ) ( self . linear_node . args [ 1 : ] ) <nl> + # all args after bias , including bias <nl> + other_args = load_arg ( quantized = False ) ( self . linear_node . args [ 2 : ] ) <nl> + kwargs = load_arg ( quantized = False ) ( self . linear_node . kwargs ) <nl> if len ( self . linear_node . args ) > 2 : <nl> bias = load_arg ( quantized = False ) ( self . linear_node . args [ 2 ] ) <nl> other_args = other_args [ 1 : ] # remove the bias argument <nl> def convert ( self , quantizer , node , load_arg , debug = False ) : <nl> ' expect bias provided as a keyword argument when it is not a positional argument ' <nl> bias = kwargs [ ' bias ' ] <nl> kwargs . pop ( ' bias ' ) <nl> - prepack_args = [ weight , bias ] <nl> + prepack_args = ( quantized_weight , bias ) <nl> + # pack weight <nl> packed_weight = quantizer . quantized_graph . create_node ( <nl> ' call_function ' , torch . ops . quantized . linear_prepack , prepack_args , { } ) <nl> # construct dynamic linear input <nl> - linear_input = load_arg ( quantized = False ) ( self . linear_node . args [ 0 ] ) <nl> - qdynamic_linear_args = [ linear_input , packed_weight ] <nl> + non_quantized_input = load_arg ( quantized = False ) ( self . linear_node . args [ 0 ] ) <nl> + qdynamic_linear_args = ( non_quantized_input , packed_weight ) <nl> return quantizer . quantized_graph . create_node ( <nl> ' call_function ' , torch . ops . quantized . linear_dynamic , qdynamic_linear_args , kwargs ) <nl> <nl> + <nl> + # weight prepacking ops <nl> + WEIGHT_PREPACK_OPS = { <nl> + torch . _ops . ops . quantized . linear_prepack , <nl> + torch . _ops . ops . quantized . conv2d_prepack , <nl> + } <nl> + <nl> class Quantizer : <nl> def __init__ ( self ) : <nl> # mapping from matched node to activation_post_process <nl> def load_arg ( a ) : <nl> if node . name in observed : <nl> continue <nl> <nl> - def get_new_observer_name ( parent_module ) : <nl> - i = 0 <nl> - <nl> - def get_observer_name ( i ) : <nl> - return ' activation_post_process_ ' + str ( i ) <nl> - observer_name = get_observer_name ( i ) <nl> - while hasattr ( parent_module , observer_name ) : <nl> - i + = 1 <nl> - observer_name = get_observer_name ( i ) <nl> - return observer_name <nl> + get_new_observer_name = get_new_attr_name_with_prefix ( ' activation_post_process_ ' ) <nl> root_node , _ , obj , qconfig = matches . get ( node . name , ( None , None , None , None ) ) <nl> if root_node is None : <nl> env [ node . name ] = observed_graph . node_copy ( node , load_arg ) <nl> def prepare ( self , model , qconfig_dict , inplace = False ) : <nl> def prepare_dynamic ( self , model , qconfig_dict , inplace = False ) : <nl> return self . _prepare ( model , qconfig_dict , inplace , is_dynamic_quant = True ) <nl> <nl> - def convert ( self , observed , inplace = False , debug = False , is_dynamic_quant = False ) : <nl> + def _convert ( self , observed , inplace = False , debug = False , is_dynamic_quant = False ) : <nl> assert not inplace , ' inplace convert is not supported yet ' <nl> self . restore_state ( observed ) <nl> self . is_dynamic_quant = is_dynamic_quant <nl> def get_next_i ( module , qparams ) : <nl> if parent_name : <nl> qparam_full_path = parent_name + ' . ' + qparam_full_path <nl> inputs . append ( self . quantized_graph . create_node ( ' get_param ' , qparam_full_path ) ) <nl> - quant_env [ node . name ] = self . quantized_graph . create_node ( ' call_function ' , quantize_op , inputs , { } ) <nl> + quant_env [ node . name ] = self . quantized_graph . create_node ( ' call_function ' , quantize_op , tuple ( inputs ) , { } ) <nl> continue <nl> # dequantize inputs for the node that are not quantized <nl> env [ node . name ] = self . quantized_graph . node_copy ( node , load_non_quantized ) <nl> def get_next_i ( module , qparams ) : <nl> delattr ( observed_root , n ) <nl> return GraphModule ( observed_root , self . quantized_graph ) <nl> <nl> + # Trace back from the weight node util we hit getattr , reconstruct the graph module <nl> + # with the traced nodes and run the graph module to pack the weight . then replace <nl> + # the original chain of ops with the packed weight . <nl> + def _fold_weight ( self , quantized ) : <nl> + def collect_nodes_to_fold ( node ) : <nl> + nodes = [ node ] <nl> + frontier = [ node ] <nl> + while frontier : <nl> + node = frontier . pop ( ) <nl> + all_args = list ( node . args ) + list ( node . kwargs . values ( ) ) <nl> + for arg in all_args : <nl> + if not isinstance ( arg , Node ) : <nl> + continue <nl> + if arg . op = = ' placeholder ' : <nl> + # hit input , can ' t fold in this case <nl> + return None <nl> + nodes . append ( arg ) <nl> + if not ( arg . op = = ' call_function ' and arg . target = = getattr ) : <nl> + frontier . append ( arg ) <nl> + return nodes <nl> + <nl> + packed_weights = dict ( ) <nl> + # map from folded node name to the prepacked weight name <nl> + folded_nodes = dict ( ) <nl> + # get packed weights <nl> + for node in quantized . graph . nodes : <nl> + if node . op = = ' call_function ' and node . target in WEIGHT_PREPACK_OPS : <nl> + nodes_to_fold = collect_nodes_to_fold ( node ) <nl> + if nodes_to_fold is not None : <nl> + # since we traced back from weight node to getattrr <nl> + nodes_to_fold . reverse ( ) <nl> + prepacking_graph = Graph ( ) <nl> + env = { } <nl> + <nl> + def load_arg ( a ) : <nl> + return map_arg ( a , lambda node : env [ node . name ] ) <nl> + for node_to_fold in nodes_to_fold : <nl> + env [ node_to_fold . name ] = prepacking_graph . node_copy ( node_to_fold , load_arg ) <nl> + folded_nodes [ node_to_fold . name ] = node <nl> + prepacking_graph . output ( load_arg ( node . name ) ) <nl> + prepacking_module = GraphModule ( quantized . root , prepacking_graph ) <nl> + packed_weight = prepacking_module ( ) <nl> + packed_weights [ node . name ] = packed_weight <nl> + <nl> + # remove folded nodes and replace the prepacking node with getattr <nl> + folded_graph = Graph ( ) <nl> + env = { } <nl> + <nl> + def load_arg ( a ) : <nl> + return map_arg ( a , lambda node : env [ node . name ] ) <nl> + get_new_packed_weight_name = get_new_attr_name_with_prefix ( ' _fx_pass_packed_weight_ ' ) <nl> + quantized_root = quantized . root <nl> + quantized_graph = quantized . graph <nl> + for node in quantized_graph . nodes : <nl> + prepack_node = folded_nodes . get ( node . name , None ) <nl> + if prepack_node is node : <nl> + packed_weight = packed_weights [ node . name ] <nl> + # add a prepacked attribute to root <nl> + packed_weight_name = get_new_packed_weight_name ( quantized_root ) <nl> + setattr ( quantized_root , packed_weight_name , packed_weight ) <nl> + # replace prepack node with a getattr node <nl> + env [ node . name ] = folded_graph . create_node ( <nl> + ' get_param ' , packed_weight_name , ( ) , { } ) <nl> + elif prepack_node is not None : <nl> + # remove the foled node <nl> + continue <nl> + else : <nl> + # copy other nodes <nl> + env [ node . name ] = folded_graph . node_copy ( node , load_arg ) <nl> + folded_graph . output ( load_arg ( quantized_graph . result ) ) <nl> + return GraphModule ( quantized_root , folded_graph ) <nl> + <nl> + def convert ( self , observed , inplace = False , debug = False , is_dynamic = False ) : <nl> + quantized = self . _convert ( observed , inplace , debug , is_dynamic ) <nl> + if not debug : <nl> + quantized = self . _fold_weight ( quantized ) <nl> + return quantized <nl> + <nl> def _find_matches ( self , graph , modules , patterns ) : <nl> match_map = { } # node name - > ( root_node , match_value ? ) <nl> all_matched = set ( ) <nl> mmm a / torch / testing / _internal / common_quantization . py <nl> ppp b / torch / testing / _internal / common_quantization . py <nl> def __eq__ ( self , other ) : <nl> <nl> return self . op = = other . op and self . target = = other . target <nl> <nl> + def __repr__ ( self ) : <nl> + return repr ( self . op ) + " " + repr ( self . target ) <nl> + <nl> def test_only_eval_fn ( model , calib_data ) : <nl> r " " " <nl> Default evaluation function takes a torch . utils . data . Dataset or a list of <nl> def checkGraphModuleNodes ( <nl> <nl> if expected_node_occurrence is not None : <nl> for expected_node , occurrence in expected_node_occurrence . items ( ) : <nl> - self . assertTrue ( <nl> - expected_node in nodes_in_graph , <nl> - ' Check failed for node : ' + str ( expected_node ) + <nl> - ' not found ' ) <nl> - self . assertTrue ( <nl> - nodes_in_graph [ expected_node ] = = occurrence , <nl> - ' Check failed for node : ' + str ( expected_node ) + <nl> - ' Expected occurrence : ' + str ( occurrence ) + <nl> - ' Found occurrence : ' + str ( nodes_in_graph [ expected_node ] ) ) <nl> + if occurrence ! = 0 : <nl> + self . assertTrue ( <nl> + expected_node in nodes_in_graph , <nl> + ' Check failed for node : ' + str ( expected_node ) + <nl> + ' not found ' ) <nl> + self . assertTrue ( <nl> + nodes_in_graph [ expected_node ] = = occurrence , <nl> + ' Check failed for node : ' + str ( expected_node ) + <nl> + ' Expected occurrence : ' + str ( occurrence ) + <nl> + ' Found occurrence : ' + str ( nodes_in_graph [ expected_node ] ) ) <nl> + else : <nl> + self . assertTrue ( <nl> + expected_node not in nodes_in_graph , <nl> + ' Check failed for node : ' + str ( expected_node ) + <nl> + ' expected no occurrence but found ' ) <nl> <nl> if expected_node_list is not None : <nl> cur_index = 0 <nl> def checkGraphModeFxOp ( self , model , inputs , quant_type , <nl> expected_node = None , <nl> expected_node_occurrence = None , <nl> expected_node_list = None , <nl> - debug = False ) : <nl> + debug = False , <nl> + print_debug_info = False ) : <nl> " " " Quantizes model with graph mode quantization on fx and check if the <nl> quantized model contains the quantized_node <nl> <nl> def checkGraphModeFxOp ( self , model , inputs , quant_type , <nl> self . assertEqual ( ( result - result_debug ) . abs ( ) . max ( ) , 0 ) , \ <nl> ' Expecting debug and non - debug option to produce identical result ' <nl> <nl> - if debug : <nl> + if print_debug_info : <nl> print ( ) <nl> print ( ' quant type : ' , quant_type ) <nl> print ( ' origianl graph module : ' , type ( model ) ) <nl> def checkGraphModeFxOp ( self , model , inputs , quant_type , <nl> print ( ' quantized graph module : ' , type ( qgraph ) ) <nl> self . printGraphModule ( qgraph ) <nl> print ( ) <nl> + qgraph_to_check = qgraph_debug if debug else qgraph <nl> self . checkGraphModuleNodes ( <nl> - qgraph , expected_node , expected_node_occurrence , expected_node_list ) <nl> + qgraph_to_check , expected_node , expected_node_occurrence , expected_node_list ) <nl> <nl> # Below are a series of neural net models to use in testing quantization <nl> # Single layer models <nl>
|
[ reland ] [ quant ] [ graphmode ] [ fx ] Add support for weight prepack folding ( ) ( )
|
pytorch/pytorch
|
825c109eb74e83118e70b752f58e7ee49a3fa269
|
2020-09-01T07:26:19Z
|
deleted file mode 100644 <nl> index f80b7f3b7b95 . . 000000000000 <nl> mmm a / aten / src / ATen / native / MaxUnpooling . cpp <nl> ppp / dev / null <nl> <nl> - # include < ATen / ATen . h > <nl> - # include < ATen / NativeFunctions . h > <nl> - # include < tuple > <nl> - <nl> - namespace at { <nl> - namespace native { <nl> - <nl> - template < typename scalar_t > <nl> - Tensor max_unpooling2d_forward_out_cpu_frame ( <nl> - Tensor & output , <nl> - const Tensor & input , <nl> - const Tensor & indices , <nl> - int64_t oheight , <nl> - int64_t owidth ) { <nl> - int64_t numBatch = 1 ; <nl> - int64_t dimc = 0 ; <nl> - int64_t dimh = 1 ; <nl> - int64_t dimw = 2 ; <nl> - if ( input . ndimension ( ) = = 4 ) { <nl> - numBatch = input . size ( 0 ) ; <nl> - dimc + + ; <nl> - dimh + + ; <nl> - dimw + + ; <nl> - } <nl> - int64_t numChannels = input . size ( dimc ) ; <nl> - int64_t inputHeight = input . size ( dimh ) ; <nl> - int64_t inputWidth = input . size ( dimw ) ; <nl> - <nl> - auto * rawInput = input . data < scalar_t > ( ) ; <nl> - auto * rawIndices = indices . data < int64_t > ( ) ; <nl> - auto * rawOutput = output . data < scalar_t > ( ) ; <nl> - <nl> - for ( int64_t n = 0 ; n < numBatch ; n + + ) { <nl> - int64_t nOutputOffset = n * numChannels * owidth * oheight ; <nl> - int64_t nInputOffset = n * numChannels * inputWidth * inputHeight ; <nl> - int64_t k ; <nl> - bool has_error = false ; <nl> - int64_t error_index = 0 ; <nl> - # pragma omp parallel for private ( k ) <nl> - for ( k = 0 ; k < numChannels ; k + + ) { <nl> - int64_t finalOutputOffset = nOutputOffset + k * owidth * oheight ; <nl> - int64_t finalInputOffset = nInputOffset + k * inputWidth * inputHeight ; <nl> - scalar_t * output_p_k = rawOutput + finalOutputOffset ; <nl> - scalar_t * input_p_k = rawInput + finalInputOffset ; <nl> - int64_t * ind_p_k = rawIndices + finalInputOffset ; <nl> - <nl> - int64_t maxp ; <nl> - for ( int64_t i = 0 ; i < inputHeight ; i + + ) { <nl> - for ( int64_t j = 0 ; j < inputWidth ; j + + ) { <nl> - maxp = ind_p_k [ i * inputWidth + j ] ; <nl> - if ( maxp < 0 | | maxp > = owidth * oheight ) { <nl> - # pragma omp critical <nl> - { <nl> - has_error = true ; <nl> - error_index = maxp ; <nl> - } <nl> - } else { <nl> - output_p_k [ maxp ] = input_p_k [ i * inputWidth + j ] ; <nl> - } <nl> - } <nl> - } <nl> - } <nl> - if ( has_error ) { <nl> - AT_ERROR ( <nl> - " Found an invalid max index : " , <nl> - error_index , <nl> - " ( output volumes are of size " , <nl> - oheight , <nl> - " x " , <nl> - owidth ) ; <nl> - } <nl> - } <nl> - return output ; <nl> - } <nl> - <nl> - Tensor & max_unpooling2d_forward_out_cpu ( <nl> - Tensor & output , <nl> - const Tensor & self_ , <nl> - const Tensor & indices_ , <nl> - IntList output_size ) { <nl> - auto oheight = output_size [ 0 ] ; <nl> - auto owidth = output_size [ 1 ] ; <nl> - AT_CHECK ( output . is_contiguous ( ) , " output must be contiguous " ) ; <nl> - AT_CHECK ( <nl> - indices_ . scalar_type ( ) = = at : : ScalarType : : Long , <nl> - " elements in indices should be type int64 " ) ; <nl> - AT_CHECK ( <nl> - output_size . size ( ) = = 2 , <nl> - " There should be exactly two elements ( height , width ) in output_size " ) ; <nl> - AT_CHECK ( <nl> - ( self_ . ndimension ( ) = = 3 | | self_ . ndimension ( ) = = 4 ) , <nl> - " Input to max_unpooling2d should be a 3d or 4d Tensor " ) ; <nl> - AT_CHECK ( <nl> - self_ . sizes ( ) = = indices_ . sizes ( ) , <nl> - " Shape of indices should match shape of input " ) ; <nl> - <nl> - AT_CHECK ( self_ . numel ( ) > 0 , " Input must be non - empty " ) ; <nl> - <nl> - auto self = self_ . contiguous ( ) ; <nl> - auto indices = indices_ . contiguous ( ) ; <nl> - <nl> - if ( self . ndimension ( ) = = 3 ) { <nl> - int64_t numBatch = 1 ; <nl> - int64_t numChannels = self . size ( 0 ) ; <nl> - output . resize_ ( { numChannels , oheight , owidth } ) ; <nl> - } else { <nl> - int64_t numBatch = self . size ( 0 ) ; <nl> - int64_t numChannels = self . size ( 1 ) ; <nl> - output . resize_ ( { numBatch , numChannels , oheight , owidth } ) ; <nl> - } <nl> - output . zero_ ( ) ; <nl> - <nl> - AT_DISPATCH_FLOATING_TYPES ( <nl> - self . type ( ) , " max_unpooling2d_forward_out_cpu_frame " , ( [ & ] { <nl> - max_unpooling2d_forward_out_cpu_frame < scalar_t > ( <nl> - output , self , indices , oheight , owidth ) ; <nl> - } ) ) ; <nl> - return output ; <nl> - } ; <nl> - <nl> - Tensor max_unpooling2d_forward_cpu ( <nl> - const Tensor & self , <nl> - const Tensor & indices , <nl> - IntList output_size ) { <nl> - auto output = at : : empty ( { 0 } , self . options ( ) ) ; <nl> - max_unpooling2d_forward_out_cpu ( output , self , indices , output_size ) ; <nl> - return output ; <nl> - } <nl> - <nl> - template < typename scalar_t > <nl> - Tensor max_unpooling3d_forward_out_cpu_frame ( <nl> - Tensor & output , <nl> - const Tensor & input , <nl> - const Tensor & indices , <nl> - int64_t oT , <nl> - int64_t oH , <nl> - int64_t oW , <nl> - int64_t dT , <nl> - int64_t dH , <nl> - int64_t dW , <nl> - int64_t pT , <nl> - int64_t pH , <nl> - int64_t pW ) { <nl> - int64_t nBatch = 1 ; <nl> - int64_t dimw = 3 ; <nl> - int64_t dimh = 2 ; <nl> - int64_t dimt = 1 ; <nl> - <nl> - if ( input . ndimension ( ) = = 5 ) { <nl> - nBatch = input . size ( 0 ) ; <nl> - dimw + + ; <nl> - dimh + + ; <nl> - dimt + + ; <nl> - } <nl> - <nl> - int64_t nSlices = input . size ( dimt - 1 ) ; <nl> - int64_t iT = input . size ( dimt ) ; <nl> - int64_t iH = input . size ( dimh ) ; <nl> - int64_t iW = input . size ( dimw ) ; <nl> - <nl> - scalar_t * input_data = input . data < scalar_t > ( ) ; <nl> - scalar_t * output_data = output . data < scalar_t > ( ) ; <nl> - int64_t * indices_data = indices . data < int64_t > ( ) ; <nl> - <nl> - for ( int64_t p = 0 ; p < nBatch ; p + + ) { <nl> - int64_t inputOffset = p * nSlices * iT * iW * iH ; <nl> - int64_t outputOffset = p * nSlices * oT * oW * oH ; <nl> - int64_t k ; <nl> - bool has_error = false ; <nl> - int error_index = 0 ; <nl> - # pragma omp parallel for private ( k ) <nl> - for ( k = 0 ; k < nSlices ; k + + ) { <nl> - int64_t finalInputOffset = inputOffset + k * iT * iW * iH ; <nl> - int64_t finalOutputOffset = outputOffset + k * oT * oW * oH ; <nl> - <nl> - scalar_t * output_p_k = output_data + finalOutputOffset ; <nl> - scalar_t * input_p_k = input_data + finalInputOffset ; <nl> - int64_t * ind_p_k = indices_data + finalInputOffset ; <nl> - int maxp ; <nl> - for ( int64_t t = 0 ; t < iT ; t + + ) { <nl> - for ( int64_t i = 0 ; i < iH ; i + + ) { <nl> - for ( int64_t j = 0 ; j < iW ; j + + ) { <nl> - int64_t index = t * iH * iW + i * iW + j ; <nl> - maxp = ind_p_k [ index ] ; <nl> - if ( maxp < 0 | | maxp > = oT * oW * oH ) { <nl> - # pragma omp critical <nl> - { <nl> - has_error = true ; <nl> - error_index = maxp ; <nl> - } <nl> - } else { <nl> - output_p_k [ maxp ] = input_p_k [ index ] ; <nl> - } <nl> - } <nl> - } <nl> - } <nl> - if ( has_error ) { <nl> - AT_ERROR ( <nl> - " found an invalid max index " , <nl> - error_index , <nl> - " ( output volumes are of size " , <nl> - oT , <nl> - " x " , <nl> - oH , <nl> - " x " , <nl> - oW ) ; <nl> - } <nl> - } <nl> - } <nl> - return output ; <nl> - } <nl> - <nl> - void max_unpooling3d_shape_check ( <nl> - const Tensor & input , <nl> - const Tensor & gradOutput , <nl> - const Tensor & indices , <nl> - IntList output_size , <nl> - IntList stride , <nl> - IntList padding ) { <nl> - int64_t oT = output_size [ 0 ] ; <nl> - int64_t oH = output_size [ 1 ] ; <nl> - int64_t oW = output_size [ 2 ] ; <nl> - AT_CHECK ( <nl> - indices . scalar_type ( ) = = at : : ScalarType : : Long , <nl> - " elements in indices should be type int64 " ) ; <nl> - AT_CHECK ( <nl> - ( input . ndimension ( ) = = 4 | | input . ndimension ( ) = = 5 ) , <nl> - " Input to max_unpooling3d should be a 4d or 5d Tensor " , <nl> - input . sizes ( ) ) ; <nl> - AT_CHECK ( <nl> - output_size . size ( ) = = 3 , <nl> - " There should be exactly three elements ( depth , height , width ) in output_size " ) ; <nl> - AT_CHECK ( <nl> - stride . size ( ) = = 3 , <nl> - " There should be exactly three elements ( depth , height , width ) in stride " ) ; <nl> - AT_CHECK ( <nl> - padding . size ( ) = = 3 , <nl> - " There should be exactly three elements ( depth , height , width ) in padding " ) ; <nl> - AT_CHECK ( <nl> - input . sizes ( ) = = indices . sizes ( ) , <nl> - " Shape of indices should match shape of input " ) ; <nl> - <nl> - AT_CHECK ( input . numel ( ) > 0 , " Input must be non - empty " ) ; <nl> - <nl> - AT_CHECK ( <nl> - stride [ 0 ] > 0 & & stride [ 1 ] > 0 & & stride [ 2 ] > 0 , <nl> - " strides should be greater than zero , but got stride : " , <nl> - stride ) ; <nl> - <nl> - int dimw = 3 ; <nl> - int dimh = 2 ; <nl> - int dimt = 1 ; <nl> - int dimn = 0 ; <nl> - <nl> - if ( input . ndimension ( ) = = 5 ) { <nl> - dimw + + ; <nl> - dimh + + ; <nl> - dimt + + ; <nl> - dimn + + ; <nl> - } <nl> - <nl> - int nslices = input . size ( dimn ) ; <nl> - <nl> - if ( gradOutput . defined ( ) ) { <nl> - if ( oT ! = gradOutput . size ( dimt ) | | oH ! = gradOutput . size ( dimh ) | | <nl> - oW ! = gradOutput . size ( dimw ) ) { <nl> - AT_ERROR ( <nl> - " Inconsistent gradOutput size . oT = " , <nl> - oT , <nl> - " , oH = " , <nl> - oH , <nl> - " , oW = " , <nl> - oW , <nl> - " . gradOutput : " , <nl> - gradOutput . size ( dimt ) , <nl> - " x " , <nl> - gradOutput . size ( dimh ) , <nl> - " x " , <nl> - gradOutput . size ( dimw ) ) ; <nl> - } <nl> - AT_CHECK ( <nl> - gradOutput . ndimension ( ) = = input . ndimension ( ) & & <nl> - gradOutput . size ( dimn ) = = nslices , <nl> - " gradOutput and input Tensors should have same number of dimensions and also the same number of channels / slices " ) ; <nl> - } <nl> - } <nl> - <nl> - Tensor & max_unpooling3d_forward_out_cpu ( <nl> - Tensor & output , <nl> - const Tensor & self_ , <nl> - const Tensor & indices_ , <nl> - IntList output_size , <nl> - IntList stride , <nl> - IntList padding ) { <nl> - AT_CHECK ( output . is_contiguous ( ) , " output must be contiguous " ) ; <nl> - int64_t oT = output_size [ 0 ] ; <nl> - int64_t oH = output_size [ 1 ] ; <nl> - int64_t oW = output_size [ 2 ] ; <nl> - <nl> - auto self = self_ . contiguous ( ) ; <nl> - auto indices = indices_ . contiguous ( ) ; <nl> - <nl> - max_unpooling3d_shape_check ( <nl> - self_ , Tensor ( ) , indices_ , output_size , stride , padding ) ; <nl> - <nl> - if ( self_ . ndimension ( ) = = 5 ) { <nl> - output . resize_ ( { self . size ( 0 ) , self . size ( 1 ) , oT , oH , oW } ) ; <nl> - } else { <nl> - output . resize_ ( { self . size ( 0 ) , oT , oH , oW } ) ; <nl> - } <nl> - output . zero_ ( ) ; <nl> - <nl> - AT_DISPATCH_FLOATING_TYPES ( <nl> - self . type ( ) , " max_unpooling3d_forward_out_cpu_frame " , ( [ & ] { <nl> - max_unpooling3d_forward_out_cpu_frame < scalar_t > ( <nl> - output , <nl> - self , <nl> - indices , <nl> - oT , <nl> - oH , <nl> - oW , <nl> - stride [ 0 ] , <nl> - stride [ 1 ] , <nl> - stride [ 2 ] , <nl> - padding [ 0 ] , <nl> - padding [ 1 ] , <nl> - padding [ 2 ] ) ; <nl> - } ) ) ; <nl> - return output ; <nl> - } <nl> - <nl> - Tensor max_unpooling3d_forward_cpu ( <nl> - const Tensor & self , <nl> - const Tensor & indices , <nl> - IntList output_size , <nl> - IntList stride , <nl> - IntList padding ) { <nl> - auto output = at : : empty ( { 0 } , self . options ( ) ) ; <nl> - max_unpooling3d_forward_out_cpu ( <nl> - output , self , indices , output_size , stride , padding ) ; <nl> - return output ; <nl> - } <nl> - <nl> - template < typename scalar_t > <nl> - static void max_unpooling2d_backward_out_cpu_frame ( <nl> - scalar_t * gradInput_p , <nl> - scalar_t * gradOutput_p , <nl> - int64_t * ind_p , <nl> - int64_t nslices , <nl> - int64_t iheight , <nl> - int64_t iwidth , <nl> - int64_t oheight , <nl> - int64_t owidth ) { <nl> - bool has_error = false ; <nl> - int64_t error_index = 0 ; <nl> - int k ; <nl> - # pragma omp parallel for private ( k ) <nl> - for ( k = 0 ; k < nslices ; k + + ) { <nl> - scalar_t * gradInput_p_k = gradInput_p + k * iwidth * iheight ; <nl> - scalar_t * gradOutput_p_k = gradOutput_p + k * owidth * oheight ; <nl> - int64_t * ind_p_k = ind_p + k * iwidth * iheight ; <nl> - <nl> - int64_t i , j ; <nl> - int64_t maxp ; <nl> - <nl> - for ( i = 0 ; i < iheight ; i + + ) { <nl> - for ( j = 0 ; j < iwidth ; j + + ) { <nl> - maxp = ind_p_k [ i * iwidth + j ] ; / * retrieve position of max * / <nl> - if ( maxp < 0 | | maxp > = owidth * oheight ) { <nl> - # pragma omp critical <nl> - { <nl> - has_error = true ; <nl> - error_index = maxp ; <nl> - } <nl> - } <nl> - gradInput_p_k [ i * iwidth + j ] = <nl> - gradOutput_p_k [ maxp ] ; / * update gradient * / <nl> - } <nl> - } <nl> - } <nl> - if ( has_error ) { <nl> - AT_ERROR ( <nl> - " invalid max index " , <nl> - error_index , <nl> - " , owidth = " , <nl> - owidth , <nl> - " , oheight = " , <nl> - oheight ) ; <nl> - } <nl> - } <nl> - <nl> - Tensor & max_unpooling2d_backward_out_cpu ( <nl> - Tensor & grad_input , <nl> - const Tensor & grad_output_ , <nl> - const Tensor & self , <nl> - const Tensor & indices_ , <nl> - IntList output_size ) { <nl> - AT_CHECK ( grad_input . is_contiguous ( ) , " grad_input must be contiguous " ) ; <nl> - int64_t oheight = output_size [ 0 ] ; <nl> - int64_t owidth = output_size [ 1 ] ; <nl> - int dimw = 2 ; <nl> - int dimh = 1 ; <nl> - int nbatch = 1 ; <nl> - int nslices ; <nl> - int iheight ; <nl> - int iwidth ; <nl> - AT_CHECK ( <nl> - indices_ . scalar_type ( ) = = at : : ScalarType : : Long , <nl> - " elements in indices should be type int64 " ) ; <nl> - AT_CHECK ( <nl> - self . sizes ( ) = = indices_ . sizes ( ) , " Input shape must match indices shape " ) ; <nl> - <nl> - AT_CHECK ( output_size . size ( ) = = 2 , " Output size must be 2 " ) ; <nl> - <nl> - / * get contiguous gradOutput and indices * / <nl> - auto grad_output = grad_output_ . contiguous ( ) ; <nl> - auto indices = indices_ . contiguous ( ) ; <nl> - <nl> - / * resize * / <nl> - grad_input . resize_as_ ( self ) ; <nl> - grad_input . zero_ ( ) ; <nl> - <nl> - if ( self . ndimension ( ) = = 4 ) { <nl> - nbatch = self . size ( 0 ) ; <nl> - dimw + + ; <nl> - dimh + + ; <nl> - } <nl> - <nl> - / * sizes * / <nl> - nslices = self . size ( dimh - 1 ) ; <nl> - iheight = self . size ( dimh ) ; <nl> - iwidth = self . size ( dimw ) ; <nl> - <nl> - if ( owidth ! = grad_output . size ( dimw ) | | oheight ! = grad_output . size ( dimh ) ) { <nl> - AT_ERROR ( <nl> - " Inconsistent gradOutput size . output height = " , <nl> - oheight , <nl> - " , output width = " , <nl> - owidth , <nl> - " , gradOutput : " , <nl> - grad_output . size ( dimh ) , <nl> - " x " , <nl> - grad_output . size ( dimw ) ) ; <nl> - } <nl> - AT_DISPATCH_FLOATING_TYPES ( <nl> - self . type ( ) , " max_unpooling2d_backward_out_cpu_frame " , ( [ & ] { <nl> - int p ; <nl> - for ( p = 0 ; p < nbatch ; p + + ) { <nl> - auto inputOffset = p * nslices * iheight * iwidth ; <nl> - auto outputOffset = p * nslices * oheight * owidth ; <nl> - max_unpooling2d_backward_out_cpu_frame < scalar_t > ( <nl> - grad_input . data < scalar_t > ( ) + inputOffset , <nl> - grad_output . data < scalar_t > ( ) + outputOffset , <nl> - indices . data < int64_t > ( ) + inputOffset , <nl> - nslices , <nl> - iheight , <nl> - iwidth , <nl> - oheight , <nl> - owidth ) ; <nl> - } <nl> - } ) ) ; <nl> - return grad_input ; <nl> - } <nl> - <nl> - Tensor max_unpooling2d_backward_cpu ( <nl> - const Tensor & grad_output , <nl> - const Tensor & self , <nl> - const Tensor & indices , <nl> - IntList output_size ) { <nl> - auto grad_input = at : : empty_like ( self ) ; <nl> - max_unpooling2d_backward_out_cpu ( <nl> - grad_input , grad_output , self , indices , output_size ) ; <nl> - return grad_input ; <nl> - } <nl> - <nl> - template < typename scalar_t > <nl> - static void max_unpooling3d_backward_out_cpu_frame ( <nl> - scalar_t * gradInput_p , <nl> - scalar_t * gradOutput_p , <nl> - int64_t * ind_p , <nl> - int64_t nslices , <nl> - int64_t iT , <nl> - int64_t iH , <nl> - int64_t iW , <nl> - int64_t oT , <nl> - int64_t oH , <nl> - int64_t oW ) { <nl> - int k ; <nl> - bool has_error = false ; <nl> - int error_index = 0 ; <nl> - # pragma omp parallel for private ( k ) <nl> - for ( k = 0 ; k < nslices ; k + + ) { <nl> - scalar_t * gradInput_p_k = gradInput_p + k * iT * iH * iW ; <nl> - scalar_t * gradOutput_p_k = gradOutput_p + k * oT * oH * oW ; <nl> - int64_t * ind_p_k = ind_p + k * iT * iH * iW ; <nl> - <nl> - int t , i , j , index ; <nl> - int64_t maxp ; <nl> - for ( t = 0 ; t < iT ; t + + ) { <nl> - for ( i = 0 ; i < iH ; i + + ) { <nl> - for ( j = 0 ; j < iW ; j + + ) { <nl> - index = t * iH * iW + i * iW + j ; <nl> - maxp = ind_p_k [ index ] ; / * retrieve position of max * / <nl> - if ( maxp < 0 | | maxp > = oT * oH * oW ) { <nl> - # pragma omp critical <nl> - { <nl> - has_error = true ; <nl> - error_index = maxp ; <nl> - } <nl> - } <nl> - gradInput_p_k [ index ] = gradOutput_p_k [ maxp ] ; / * update gradient * / <nl> - } <nl> - } <nl> - } <nl> - } <nl> - if ( has_error ) { <nl> - AT_ERROR ( <nl> - " invalid max index " , <nl> - error_index , <nl> - " , oT = " , <nl> - oT , <nl> - " , oW = " , <nl> - oW , <nl> - " , oH = " , <nl> - oH ) ; <nl> - } <nl> - } <nl> - <nl> - Tensor & max_unpooling3d_backward_out_cpu ( <nl> - Tensor & grad_input , <nl> - const Tensor & grad_output_ , <nl> - const Tensor & self , <nl> - const Tensor & indices_ , <nl> - IntList output_size , <nl> - IntList stride , <nl> - IntList padding ) { <nl> - AT_CHECK ( grad_input . is_contiguous ( ) , " grad_input must be contiguous " ) ; <nl> - auto oT = output_size [ 0 ] ; <nl> - auto oH = output_size [ 1 ] ; <nl> - auto oW = output_size [ 2 ] ; <nl> - int dimw = 3 ; <nl> - int dimh = 2 ; <nl> - int dimt = 1 ; <nl> - int nbatch = 1 ; <nl> - int nslices ; <nl> - int iT ; <nl> - int iH ; <nl> - int iW ; <nl> - <nl> - max_unpooling3d_shape_check ( <nl> - self , grad_output_ , indices_ , output_size , stride , padding ) ; <nl> - <nl> - / / TODO ( from THNN ) : check gradOutput shape <nl> - / * get contiguous gradOutput * / <nl> - auto grad_output = grad_output_ . contiguous ( ) ; <nl> - auto indices = indices_ . contiguous ( ) ; <nl> - <nl> - / * resize * / <nl> - grad_input . resize_as_ ( self ) ; <nl> - grad_input . zero_ ( ) ; <nl> - if ( self . ndimension ( ) = = 5 ) { <nl> - nbatch = self . size ( 0 ) ; <nl> - dimt + + ; <nl> - dimw + + ; <nl> - dimh + + ; <nl> - } <nl> - <nl> - / * sizes * / <nl> - nslices = self . size ( dimt - 1 ) ; <nl> - iT = self . size ( dimt ) ; <nl> - iH = self . size ( dimh ) ; <nl> - iW = self . size ( dimw ) ; <nl> - <nl> - / * backprop * / <nl> - AT_DISPATCH_FLOATING_TYPES ( <nl> - self . type ( ) , " max_unpooling3d_backward_out_cpu_frame " , ( [ & ] { <nl> - int p ; <nl> - for ( p = 0 ; p < nbatch ; p + + ) { <nl> - int inputOffset = p * nslices * iT * iH * iW ; <nl> - int outputOffset = p * nslices * oT * oH * oW ; <nl> - max_unpooling3d_backward_out_cpu_frame < scalar_t > ( <nl> - grad_input . data < scalar_t > ( ) + inputOffset , <nl> - grad_output . data < scalar_t > ( ) + outputOffset , <nl> - indices . data < int64_t > ( ) + inputOffset , <nl> - nslices , <nl> - iT , <nl> - iH , <nl> - iW , <nl> - oT , <nl> - oH , <nl> - oW ) ; <nl> - } <nl> - } ) ) ; <nl> - return grad_input ; <nl> - } <nl> - <nl> - Tensor max_unpooling3d_backward_cpu ( <nl> - const Tensor & grad_output , <nl> - const Tensor & self , <nl> - const Tensor & indices , <nl> - IntList output_size , <nl> - IntList stride , <nl> - IntList padding ) { <nl> - auto grad_input = at : : empty_like ( self ) ; <nl> - max_unpooling3d_backward_out_cpu ( <nl> - grad_input , grad_output , self , indices , output_size , stride , padding ) ; <nl> - return grad_input ; <nl> - } <nl> - } / / namespace native <nl> - } / / namespace at <nl> mmm a / aten / src / ATen / native / cuda / Distributions . cu <nl> ppp b / aten / src / ATen / native / cuda / Distributions . cu <nl> <nl> * we are using curand distributions that utilize curand4 call . curand4 call doesn ' t have the <nl> * register spilling problem . <nl> * / <nl> - <nl> + <nl> THCGenerator * THCRandom_getGenerator ( THCState * state ) ; <nl> <nl> namespace { <nl> namespace { <nl> / / each thread . It is the user ' s responsibility to make sure that the increment for philox is never <nl> / / smaller than the number of curand ( ) calls . Increment value > the number of curand ( ) calls <nl> / / won ' t harm but anything less would mean that you would be reusing random values from <nl> - / / previous calls . <nl> + / / previous calls . <nl> / / e . g . In many kernels below , we use distributions that utilize curand4 call in the kernel . <nl> / / Hence , increment value should be at least 4 for those kernels . <nl> std : : pair < uint64_t , uint64_t > next_philox_seed ( at : : Generator * gen , uint64_t increment ) { <nl> const uint32_t curand4_engine_calls = 4 ; <nl> / / thread yielding one element per thread . For the edge of the grid - stride <nl> / / loop , if the tensor size is large , the unroll loop will kick in and the float4 <nl> / / from curand4 will start getting utilized ( for common tensor sizes , we end up <nl> - / / using rand . x from each thread ) . Hence , the philox_offset is <nl> + / / using rand . x from each thread ) . Hence , the philox_offset is <nl> / / ( number of elements per thread * number of engine calls ) , which makes <nl> / / sure that philox offset increment is not less than the number of randoms used <nl> / / in each thread . <nl> __global__ void distribution_elementwise_grid_stride_kernel ( int numel , <nl> transform_func ( li , static_cast < accscalar_t > ( ( & rand . x ) [ ii ] ) ) ; <nl> } <nl> } <nl> - __syncthreads ( ) ; <nl> + __syncthreads ( ) ; <nl> } <nl> } <nl> <nl> __global__ void distribution_elementwise_grid_stride_kernel ( int numel , <nl> * kernels ? Note that we need a grid - stride loop kernel because , we found by testing <nl> * that it achieves peak effective bandwidth . <nl> * / <nl> - template < typename scalar_t , <nl> + template < typename scalar_t , <nl> typename accscalar_t , <nl> int unroll_factor , <nl> typename dist_t , <nl> void distribution_nullary_kernel ( at : : TensorIterator & iter , <nl> if ( numel = = 0 ) { <nl> return ; <nl> } <nl> - <nl> + <nl> auto execution_policy = calc_execution_policy ( numel ) ; <nl> auto counter_offset = std : : get < 0 > ( execution_policy ) ; <nl> auto grid = std : : get < 1 > ( execution_policy ) ; <nl> Tensor & normal_out_cuda ( Tensor & output , double mean , const Tensor & std , Generato <nl> Tensor & normal_out_cuda ( Tensor & output , const Tensor & mean , const Tensor & std , Generator * gen ) { <nl> normal_cuda_ ( output , 0 , 1 , gen ) ; <nl> at : : native : : legacy : : cuda : : _th_addcmul_out ( output , mean , output , std , 1 ) ; <nl> - return output ; <nl> + return output ; <nl> } <nl> <nl> Tensor normal_cuda ( const Tensor & mean , double std , Generator * gen ) { <nl> deleted file mode 100644 <nl> index 2e2145e7a391 . . 000000000000 <nl> mmm a / aten / src / ATen / native / cuda / MaxUnpooling . cu <nl> ppp / dev / null <nl> <nl> - # include < ATen / ATen . h > <nl> - # include < ATen / NativeFunctions . h > <nl> - # include < ATen / TensorUtils . h > <nl> - <nl> - # include < ATen / cuda / CUDAContext . h > <nl> - # include < ATen / cuda / detail / KernelUtils . h > <nl> - # include < c10 / util / Exception . h > <nl> - <nl> - namespace at { <nl> - namespace native { <nl> - <nl> - using namespace at : : cuda : : detail ; <nl> - <nl> - template < typename T > <nl> - __host__ __device__ __forceinline__ T ceilDiv ( T a , T b ) { <nl> - return ( a + b - 1 ) / b ; <nl> - } <nl> - <nl> - template < typename T > <nl> - __global__ void max_unpooling2d_forward_kernel ( <nl> - const int64_t numInputElements , <nl> - const T * input , <nl> - const int64_t * indices , <nl> - const int64_t numChannels , <nl> - const int64_t inputHeight , <nl> - const int64_t inputWidth , <nl> - const int64_t outputHeight , <nl> - const int64_t outputWidth , <nl> - T * output ) { <nl> - CUDA_KERNEL_LOOP ( linearIndex , numInputElements ) { <nl> - int c = ( linearIndex / inputWidth / inputHeight ) % numChannels ; <nl> - int n = linearIndex / inputWidth / inputHeight / numChannels ; <nl> - output + = ( n * numChannels + c ) * outputHeight * outputWidth ; <nl> - int maxind = indices [ linearIndex ] ; <nl> - output [ maxind ] = input [ linearIndex ] ; <nl> - } <nl> - } <nl> - <nl> - template < typename T > <nl> - __global__ void max_unpooling3d_forward_kernel ( <nl> - PackedTensorAccessor < T , 4 > input , <nl> - PackedTensorAccessor < int64_t , 4 > indices , <nl> - T * output , <nl> - const int64_t oT , <nl> - const int64_t oH , <nl> - const int64_t oW , <nl> - const int64_t offsetZ ) { <nl> - int64_t iColumn = blockIdx . x * blockDim . x + threadIdx . x ; <nl> - int64_t iRow = blockIdx . y * blockDim . y + threadIdx . y ; <nl> - int64_t iFrame = ( blockIdx . z + offsetZ ) % input . size ( 1 ) ; / / input frame / time <nl> - int64_t slice = ( blockIdx . z + offsetZ ) / input . size ( 1 ) ; / / input slice / feature <nl> - if ( iRow < input . size ( 2 ) & & iColumn < input . size ( 3 ) ) { <nl> - T val = input [ slice ] [ iFrame ] [ iRow ] [ iColumn ] ; <nl> - int64_t index = indices [ slice ] [ iFrame ] [ iRow ] [ iColumn ] ; <nl> - output [ slice * oT * oH * oW + index ] = val ; <nl> - } <nl> - } <nl> - <nl> - template < typename T > <nl> - __global__ void max_unpooling2d_backward_kernel ( <nl> - const int64_t numInputElements , <nl> - const T * input , <nl> - const int64_t * indices , <nl> - const int64_t numChannels , <nl> - const int64_t inputHeight , <nl> - const int64_t inputWidth , <nl> - const int64_t outputHeight , <nl> - const int64_t outputWidth , <nl> - T * output ) { <nl> - CUDA_KERNEL_LOOP ( linearIndex , numInputElements ) { <nl> - int c = ( linearIndex / inputWidth / inputHeight ) % numChannels ; <nl> - int n = linearIndex / inputWidth / inputHeight / numChannels ; <nl> - input + = ( n * numChannels + c ) * outputHeight * outputWidth ; <nl> - int maxind = indices [ linearIndex ] ; <nl> - output [ linearIndex ] = input [ maxind ] ; <nl> - } <nl> - } <nl> - <nl> - template < typename T > <nl> - __global__ void max_unpooling3d_backward_kernel ( <nl> - T * gradOutputData , <nl> - int64_t oT , <nl> - int64_t oH , <nl> - int64_t oW , <nl> - PackedTensorAccessor < int64_t , 4 > indices , <nl> - PackedTensorAccessor < T , 4 > gradInput , <nl> - int offsetZ ) { <nl> - int iColumn = blockIdx . x * blockDim . x + threadIdx . x ; <nl> - int iRow = blockIdx . y * blockDim . y + threadIdx . y ; <nl> - int iFrame = ( blockIdx . z + offsetZ ) % gradInput . size ( 1 ) ; / / output frame / time <nl> - int slice = <nl> - ( blockIdx . z + offsetZ ) / gradInput . size ( 1 ) ; / / output slice / feature <nl> - <nl> - if ( iRow < gradInput . size ( 2 ) & & iColumn < gradInput . size ( 3 ) ) { <nl> - int64_t index = indices [ slice ] [ iFrame ] [ iRow ] [ iColumn ] ; <nl> - T grad_val = gradOutputData [ slice * oT * oH * oW + index ] ; <nl> - gradInput [ slice ] [ iFrame ] [ iRow ] [ iColumn ] = grad_val ; <nl> - } <nl> - } <nl> - <nl> - Tensor & max_unpooling2d_forward_out_cuda ( <nl> - Tensor & output , <nl> - const Tensor & self_ , <nl> - const Tensor & indices_ , <nl> - IntList output_size ) { <nl> - AT_CHECK ( output . is_contiguous ( ) , " output must be contiguous " ) ; <nl> - AT_CHECK ( <nl> - indices_ . scalar_type ( ) = = at : : ScalarType : : Long , <nl> - " elements in indices should be type int64 " ) ; <nl> - auto oheight = output_size [ 0 ] ; <nl> - auto owidth = output_size [ 1 ] ; <nl> - <nl> - TensorArg output_arg { output , " output " , 1 } , self_arg { self_ , " self_ " , 2 } , <nl> - indices_arg { indices_ , " indices_ " , 3 } ; <nl> - checkAllSameGPU ( <nl> - " max_unpooling2d_forward_out_cuda " , { output_arg , self_arg , indices_arg } ) ; <nl> - <nl> - AT_CHECK ( self_ . numel ( ) > 0 , " Input must be non - empty tensor " ) ; <nl> - <nl> - AT_CHECK ( <nl> - ( self_ . ndimension ( ) = = 3 | | self_ . ndimension ( ) = = 4 ) , <nl> - " Input to max_unpooling2d should be a 3d or 4d Tensor " , <nl> - self_ . sizes ( ) ) ; <nl> - AT_CHECK ( <nl> - self_ . sizes ( ) = = indices_ . sizes ( ) , <nl> - " Shape of input must match shape of indices " ) ; <nl> - AT_CHECK ( <nl> - output_size . size ( ) = = 2 , <nl> - " There should be exactly two elements ( width , height ) in output_size " ) ; <nl> - <nl> - int64_t dimw = 2 ; <nl> - int64_t dimh = 1 ; <nl> - int64_t numBatch = 1 ; <nl> - <nl> - int64_t numChannels ; <nl> - int64_t inputHeight ; <nl> - int64_t inputWidth ; <nl> - <nl> - auto self = self_ . contiguous ( ) ; <nl> - auto indices = indices_ . contiguous ( ) ; <nl> - <nl> - if ( self . ndimension ( ) = = 4 ) { <nl> - numBatch = self . size ( 0 ) ; <nl> - dimw + + ; <nl> - dimh + + ; <nl> - } <nl> - numChannels = self . size ( dimh - 1 ) ; <nl> - inputHeight = self . size ( dimh ) ; <nl> - inputWidth = self . size ( dimw ) ; <nl> - <nl> - output . resize_ ( { numBatch , numChannels , oheight , owidth } ) ; <nl> - <nl> - output . zero_ ( ) ; <nl> - <nl> - auto count = self . numel ( ) ; <nl> - AT_DISPATCH_ALL_TYPES_AND ( at : : ScalarType : : Half , <nl> - self . scalar_type ( ) , " max_unpooling2d_forward_kernel " , ( [ & ] { <nl> - max_unpooling2d_forward_kernel < < < <nl> - GET_BLOCKS ( count ) , <nl> - CUDA_NUM_THREADS , <nl> - 0 , <nl> - at : : cuda : : getCurrentCUDAStream ( ) > > > ( <nl> - self . numel ( ) , <nl> - self . data < scalar_t > ( ) , <nl> - indices . data < int64_t > ( ) , <nl> - numChannels , <nl> - inputHeight , <nl> - inputWidth , <nl> - oheight , <nl> - owidth , <nl> - output . data < scalar_t > ( ) ) ; <nl> - } ) ) ; <nl> - AT_CHECK ( <nl> - cudaGetLastError ( ) = = cudaSuccess , <nl> - " max_unpooling2d_forward_kernel failed with error code " , <nl> - cudaGetLastError ( ) ) ; <nl> - if ( self . ndimension ( ) = = 3 ) { <nl> - output . resize_ ( { numChannels , oheight , owidth } ) ; <nl> - } <nl> - return output ; <nl> - } <nl> - <nl> - Tensor max_unpooling2d_forward_cuda ( <nl> - const Tensor & self , <nl> - const Tensor & indices , <nl> - IntList output_size ) { <nl> - auto output = at : : empty ( { 0 } , self . options ( ) ) ; <nl> - max_unpooling2d_forward_out_cuda ( output , self , indices , output_size ) ; <nl> - return output ; <nl> - } <nl> - <nl> - void max_unpooling3d_shape_check ( <nl> - const Tensor & input , <nl> - const Tensor & gradOutput , <nl> - const Tensor & indices , <nl> - IntList output_size , <nl> - IntList stride , <nl> - IntList padding ) { <nl> - int64_t oT = output_size [ 0 ] ; <nl> - int64_t oH = output_size [ 1 ] ; <nl> - int64_t oW = output_size [ 2 ] ; <nl> - AT_CHECK ( <nl> - indices . scalar_type ( ) = = at : : ScalarType : : Long , <nl> - " elements in indices should be type int64 " ) ; <nl> - AT_CHECK ( <nl> - ( input . ndimension ( ) = = 4 | | input . ndimension ( ) = = 5 ) , <nl> - " Input to max_unpooling3d should be a 4d or 5d Tensor " , <nl> - input . sizes ( ) ) ; <nl> - AT_CHECK ( <nl> - output_size . size ( ) = = 3 , <nl> - " There should be exactly three elements ( depth , height , width ) in output_size " ) ; <nl> - AT_CHECK ( <nl> - stride . size ( ) = = 3 , <nl> - " There should be exactly three elements ( depth , height , width ) in stride " ) ; <nl> - AT_CHECK ( <nl> - padding . size ( ) = = 3 , <nl> - " There should be exactly three elements ( depth , height , width ) in padding " ) ; <nl> - AT_CHECK ( <nl> - input . sizes ( ) = = indices . sizes ( ) , <nl> - " Shape of indices should match shape of input " ) ; <nl> - <nl> - AT_CHECK ( input . numel ( ) > 0 , " Input must be non - empty " ) ; <nl> - <nl> - AT_CHECK ( <nl> - stride [ 0 ] > 0 & & stride [ 1 ] > 0 & & stride [ 2 ] > 0 , <nl> - " strides should be greater than zero , but got stride : " , <nl> - stride ) ; <nl> - <nl> - int dimw = 3 ; <nl> - int dimh = 2 ; <nl> - int dimt = 1 ; <nl> - int dimn = 0 ; <nl> - <nl> - if ( input . ndimension ( ) = = 5 ) { <nl> - dimw + + ; <nl> - dimh + + ; <nl> - dimt + + ; <nl> - dimn + + ; <nl> - } <nl> - <nl> - int nslices = input . size ( dimn ) ; <nl> - <nl> - if ( gradOutput . defined ( ) ) { <nl> - if ( oT ! = gradOutput . size ( dimt ) | | oH ! = gradOutput . size ( dimh ) | | <nl> - oW ! = gradOutput . size ( dimw ) ) { <nl> - AT_ERROR ( <nl> - " Inconsistent gradOutput size . oT = " , <nl> - oT , <nl> - " , oH = " , <nl> - oH , <nl> - " , oW = " , <nl> - oW , <nl> - " . gradOutput : " , <nl> - gradOutput . size ( dimt ) , <nl> - " x " , <nl> - gradOutput . size ( dimh ) , <nl> - " x " , <nl> - gradOutput . size ( dimw ) ) ; <nl> - } <nl> - AT_CHECK ( <nl> - gradOutput . ndimension ( ) = = input . ndimension ( ) & & <nl> - gradOutput . size ( dimn ) = = nslices , <nl> - " gradOutput and input Tensors should have same number of dimensions and also the same number of channels / slices " ) ; <nl> - } <nl> - } <nl> - <nl> - Tensor & max_unpooling3d_forward_out_cuda ( <nl> - Tensor & output , <nl> - const Tensor & self_ , <nl> - const Tensor & indices_ , <nl> - IntList output_size , <nl> - IntList stride , <nl> - IntList padding ) { <nl> - AT_CHECK ( output . is_contiguous ( ) , " output must be contiguous " ) ; <nl> - max_unpooling3d_shape_check ( <nl> - self_ , Tensor ( ) , indices_ , output_size , stride , padding ) ; <nl> - <nl> - int64_t oT = output_size [ 0 ] ; <nl> - int64_t oH = output_size [ 1 ] ; <nl> - int64_t oW = output_size [ 2 ] ; <nl> - <nl> - TensorArg output_arg { output , " output " , 1 } , self_arg { self_ , " self_ " , 2 } , <nl> - indices_arg { indices_ , " indices_ " , 3 } ; <nl> - checkAllSameGPU ( <nl> - " max_unpooling3d_forward_out_cuda " , { output_arg , self_arg , indices_arg } ) ; <nl> - <nl> - auto self = self_ . contiguous ( ) ; <nl> - auto indices = indices_ . contiguous ( ) ; <nl> - <nl> - int64_t batchSize ; <nl> - int64_t inputSlices ; <nl> - int64_t inputTime ; <nl> - int64_t inputHeight ; <nl> - int64_t inputWidth ; <nl> - <nl> - if ( self . ndimension ( ) = = 4 ) { <nl> - batchSize = 1 ; <nl> - inputSlices = self . size ( 0 ) ; <nl> - inputTime = self . size ( 1 ) ; <nl> - inputHeight = self . size ( 2 ) ; <nl> - inputWidth = self . size ( 3 ) ; <nl> - output . resize_ ( { inputSlices , oT , oH , oW } ) ; <nl> - } else { <nl> - batchSize = self . size ( 0 ) ; <nl> - inputSlices = self . size ( 1 ) ; <nl> - inputTime = self . size ( 2 ) ; <nl> - inputHeight = self . size ( 3 ) ; <nl> - inputWidth = self . size ( 4 ) ; <nl> - output . resize_ ( { batchSize , inputSlices , oT , oH , oW } ) ; <nl> - } <nl> - <nl> - output . zero_ ( ) ; <nl> - <nl> - / / Collapse batch and feature dimensions if needed <nl> - if ( self . ndimension ( ) = = 5 ) { <nl> - self = self . reshape ( { self . size ( 0 ) * self . size ( 1 ) , <nl> - self . size ( 2 ) , <nl> - self . size ( 3 ) , <nl> - self . size ( 4 ) } ) ; <nl> - indices = indices . reshape ( { indices . size ( 0 ) * indices . size ( 1 ) , <nl> - indices . size ( 2 ) , <nl> - indices . size ( 3 ) , <nl> - indices . size ( 4 ) } ) ; <nl> - } <nl> - <nl> - int totalZ = inputTime * inputSlices * batchSize ; <nl> - int offsetZ = 0 ; <nl> - dim3 block ( 32 , 8 ) ; <nl> - <nl> - AT_DISPATCH_ALL_TYPES_AND ( at : : ScalarType : : Half , <nl> - self . scalar_type ( ) , " max_unpooling3d_forward_kernel " , ( [ & ] { <nl> - while ( totalZ > 0 ) { <nl> - dim3 grid ( <nl> - ceilDiv ( inputWidth , static_cast < int64_t > ( block . x ) ) , <nl> - ceilDiv ( inputHeight , static_cast < int64_t > ( block . y ) ) , <nl> - totalZ > 65535 ? 65535 : totalZ ) ; <nl> - max_unpooling3d_forward_kernel < < < <nl> - grid , <nl> - block , <nl> - 0 , <nl> - at : : cuda : : getCurrentCUDAStream ( ) > > > ( <nl> - self . packed_accessor < scalar_t , 4 > ( ) , <nl> - indices . packed_accessor < int64_t , 4 > ( ) , <nl> - output . data < scalar_t > ( ) , <nl> - oT , <nl> - oH , <nl> - oW , <nl> - offsetZ ) ; <nl> - AT_CHECK ( <nl> - cudaGetLastError ( ) = = cudaSuccess , <nl> - " max_unpooling3d_forward_kernel failed with error code " , <nl> - cudaGetLastError ( ) ) ; <nl> - totalZ - = 65535 ; <nl> - offsetZ + = 65535 ; <nl> - } <nl> - } ) ) ; <nl> - return output ; <nl> - } <nl> - <nl> - Tensor max_unpooling3d_forward_cuda ( <nl> - const Tensor & self , <nl> - const Tensor & indices , <nl> - IntList output_size , <nl> - IntList stride , <nl> - IntList padding ) { <nl> - auto output = at : : empty ( { 0 } , self . options ( ) ) ; <nl> - max_unpooling3d_forward_out_cuda ( <nl> - output , self , indices , output_size , stride , padding ) ; <nl> - return output ; <nl> - } <nl> - <nl> - at : : Tensor & max_unpooling2d_backward_out_cuda ( <nl> - Tensor & grad_input , <nl> - const Tensor & grad_output_ , <nl> - const Tensor & self_ , <nl> - const Tensor & indices_ , <nl> - IntList output_size ) { <nl> - int64_t oheight = output_size [ 0 ] ; <nl> - int64_t owidth = output_size [ 1 ] ; <nl> - AT_CHECK ( grad_input . is_contiguous ( ) , " grad_input must be contiguous " ) ; <nl> - AT_CHECK ( <nl> - indices_ . scalar_type ( ) = = at : : ScalarType : : Long , <nl> - " elements in indices should be type int64 " ) ; <nl> - TensorArg grad_input_arg { grad_input , " grad_input " , 1 } , <nl> - grad_output_arg { grad_output_ , " grad_output_ " , 2 } , <nl> - self_arg { self_ , " self_ " , 3 } , indices_arg { indices_ , " indices_ " , 4 } ; <nl> - checkAllSameGPU ( <nl> - " max_unpooling2d_backward_out_cuda " , <nl> - { grad_input_arg , grad_output_arg , self_arg , indices_arg } ) ; <nl> - <nl> - AT_CHECK ( <nl> - ( self_ . ndimension ( ) = = 3 | | self_ . ndimension ( ) = = 4 ) , <nl> - " Input to max_unpooling2d should be a 3d or 4d Tensor , instead got : " , <nl> - self_ ) ; <nl> - <nl> - AT_CHECK ( <nl> - self_ . sizes ( ) = = indices_ . sizes ( ) , <nl> - " Input should have same shape as indices " ) ; <nl> - <nl> - AT_CHECK ( output_size . size ( ) = = 2 , " output_size must have two elements " ) ; <nl> - <nl> - int64_t nInputCols , nInputRows , nInputPlane , batchSize ; <nl> - <nl> - int dimw = 2 ; <nl> - int dimh = 1 ; <nl> - <nl> - auto self = self_ . contiguous ( ) ; <nl> - auto indices = indices_ . contiguous ( ) ; <nl> - auto grad_output = grad_output_ . contiguous ( ) ; <nl> - <nl> - if ( self . ndimension ( ) = = 3 ) { <nl> - nInputPlane = self . size ( 0 ) ; <nl> - batchSize = 1 ; <nl> - } else { <nl> - + + dimw ; <nl> - + + dimh ; <nl> - nInputPlane = self . size ( 1 ) ; <nl> - batchSize = self . size ( 0 ) ; <nl> - } <nl> - <nl> - nInputCols = self . size ( dimw ) ; <nl> - nInputRows = self . size ( dimh ) ; <nl> - <nl> - if ( oheight ! = grad_output . size ( dimh ) | | owidth ! = grad_output . size ( dimw ) ) { <nl> - AT_ERROR ( <nl> - " Inconsistent gradOutput size . output height : " , <nl> - oheight , <nl> - " , output width = " , <nl> - owidth , <nl> - " , gradOutput : " , <nl> - grad_output . size ( dimh ) , <nl> - " x " , <nl> - grad_output . size ( dimw ) ) ; <nl> - } <nl> - <nl> - grad_input . resize_as_ ( self ) ; <nl> - grad_input . zero_ ( ) ; <nl> - <nl> - int count = self . numel ( ) ; <nl> - <nl> - AT_DISPATCH_ALL_TYPES_AND ( at : : ScalarType : : Half , <nl> - self . scalar_type ( ) , " max_unpooling2d_backward_kernel " , ( [ & ] { <nl> - max_unpooling2d_backward_kernel < < < <nl> - GET_BLOCKS ( count ) , <nl> - CUDA_NUM_THREADS , <nl> - 0 , <nl> - at : : cuda : : getCurrentCUDAStream ( ) > > > ( <nl> - count , <nl> - grad_output . data < scalar_t > ( ) , <nl> - indices . data < int64_t > ( ) , <nl> - nInputPlane , <nl> - nInputRows , <nl> - nInputCols , <nl> - oheight , <nl> - owidth , <nl> - grad_input . data < scalar_t > ( ) ) ; <nl> - } ) ) ; <nl> - AT_CHECK ( <nl> - cudaGetLastError ( ) = = cudaSuccess , <nl> - " max_unpooling2d_backward_kernel failed with error code " , <nl> - cudaGetLastError ( ) ) ; <nl> - return grad_input ; <nl> - } <nl> - at : : Tensor max_unpooling2d_backward_cuda ( <nl> - const Tensor & grad_output , <nl> - const Tensor & self , <nl> - const Tensor & indices , <nl> - IntList output_size ) { <nl> - auto grad_input = at : : empty_like ( self ) ; <nl> - max_unpooling2d_backward_out_cuda ( <nl> - grad_input , grad_output , self , indices , output_size ) ; <nl> - return grad_input ; <nl> - } <nl> - <nl> - at : : Tensor & max_unpooling3d_backward_out_cuda ( <nl> - Tensor & grad_input , <nl> - const Tensor & grad_output_ , <nl> - const Tensor & self_ , <nl> - const Tensor & indices_ , <nl> - IntList output_size , <nl> - IntList stride , <nl> - IntList padding ) { <nl> - AT_CHECK ( grad_input . is_contiguous ( ) , " grad_input must be contiguous " ) ; <nl> - int64_t oT = output_size [ 0 ] ; <nl> - int64_t oH = output_size [ 1 ] ; <nl> - int64_t oW = output_size [ 2 ] ; <nl> - <nl> - max_unpooling3d_shape_check ( <nl> - self_ , grad_output_ , indices_ , output_size , stride , padding ) ; <nl> - <nl> - int batchSize = 0 ; <nl> - int inputSlices = 0 ; <nl> - int inputTime = 0 ; <nl> - int64_t inputHeight = 0 ; <nl> - int64_t inputWidth = 0 ; <nl> - <nl> - TensorArg self_arg { self_ , " self_ " , 1 } , indices_arg { indices_ , " indices_ " , 2 } , <nl> - grad_output_arg { grad_output_ , " grad_output_ " , 3 } , <nl> - grad_input_arg { grad_input , " grad_input " , 4 } ; <nl> - checkAllSameGPU ( <nl> - " max_unpooling3d_backward_out_cuda " , <nl> - { self_arg , indices_arg , grad_output_arg , grad_input_arg } ) ; <nl> - <nl> - auto self = self_ . contiguous ( ) ; <nl> - auto indices = indices_ . contiguous ( ) ; <nl> - auto grad_output = grad_output_ . contiguous ( ) ; <nl> - <nl> - if ( self . ndimension ( ) = = 4 ) { <nl> - batchSize = 1 ; <nl> - inputSlices = self . size ( 0 ) ; <nl> - inputTime = self . size ( 1 ) ; <nl> - inputHeight = self . size ( 2 ) ; <nl> - inputWidth = self . size ( 3 ) ; <nl> - } else { <nl> - batchSize = self . size ( 0 ) ; <nl> - inputSlices = self . size ( 1 ) ; <nl> - inputTime = self . size ( 2 ) ; <nl> - inputHeight = self . size ( 3 ) ; <nl> - inputWidth = self . size ( 4 ) ; <nl> - } <nl> - <nl> - grad_input . resize_as_ ( self ) ; <nl> - grad_input . zero_ ( ) ; <nl> - <nl> - / / Collapse batch and feature dimensions if needed <nl> - auto grad_input_reshaped = grad_input ; <nl> - if ( grad_input . ndimension ( ) = = 5 ) { <nl> - grad_input_reshaped = <nl> - grad_input . reshape ( { grad_input . size ( 0 ) * grad_input . size ( 1 ) , <nl> - grad_input . size ( 2 ) , <nl> - grad_input . size ( 3 ) , <nl> - grad_input . size ( 4 ) } ) ; <nl> - <nl> - indices = indices . reshape ( { indices . size ( 0 ) * indices . size ( 1 ) , <nl> - indices . size ( 2 ) , <nl> - indices . size ( 3 ) , <nl> - indices . size ( 4 ) } ) ; <nl> - } <nl> - <nl> - int totalZ = inputTime * inputSlices * batchSize ; <nl> - int offsetZ = 0 ; <nl> - <nl> - dim3 block ( 32 , 8 ) ; <nl> - <nl> - AT_DISPATCH_ALL_TYPES_AND ( at : : ScalarType : : Half , <nl> - self . scalar_type ( ) , " max_unpooling3d_backward_kernel " , ( [ & ] { <nl> - while ( totalZ > 0 ) { <nl> - dim3 grid ( <nl> - ceilDiv ( inputWidth , static_cast < int64_t > ( block . x ) ) , <nl> - ceilDiv ( inputHeight , static_cast < int64_t > ( block . y ) ) , <nl> - totalZ > 65535 ? 65535 : totalZ ) ; <nl> - max_unpooling3d_backward_kernel < < < <nl> - grid , <nl> - block , <nl> - 0 , <nl> - at : : cuda : : getCurrentCUDAStream ( ) > > > ( <nl> - grad_output . data < scalar_t > ( ) , <nl> - oT , <nl> - oH , <nl> - oW , <nl> - indices . packed_accessor < int64_t , 4 > ( ) , <nl> - grad_input_reshaped . packed_accessor < scalar_t , 4 > ( ) , <nl> - offsetZ ) ; <nl> - AT_CHECK ( <nl> - cudaGetLastError ( ) = = cudaSuccess , <nl> - " max_unpooling3d_backward_kernel failed with error code " , <nl> - cudaGetLastError ( ) ) ; <nl> - totalZ - = 65535 ; <nl> - offsetZ + = 65535 ; <nl> - } <nl> - } ) ) ; <nl> - return grad_input ; <nl> - } <nl> - <nl> - at : : Tensor max_unpooling3d_backward_cuda ( <nl> - const Tensor & grad_output , <nl> - const Tensor & self , <nl> - const Tensor & indices , <nl> - IntList output_size , <nl> - IntList stride , <nl> - IntList padding ) { <nl> - auto grad_input = at : : empty_like ( self ) ; <nl> - max_unpooling3d_backward_out_cuda ( <nl> - grad_input , grad_output , self , indices , output_size , stride , padding ) ; <nl> - return grad_input ; <nl> - } <nl> - <nl> - } / / namespace native <nl> - } / / namespace at <nl> mmm a / aten / src / ATen / native / native_functions . yaml <nl> ppp b / aten / src / ATen / native / native_functions . yaml <nl> <nl> - func : max_unpool2d ( Tensor self , Tensor indices , int [ 2 ] output_size , * , Tensor ( a ! ) out ) - > Tensor ( a ! ) <nl> python_module : nn <nl> dispatch : <nl> - CPU : max_unpooling2d_forward_out_cpu <nl> - CUDA : max_unpooling2d_forward_out_cuda <nl> + CPU : legacy : : cpu : : _thnn_max_unpool2d_forward_out <nl> + CUDA : legacy : : cuda : : _thnn_max_unpool2d_forward_out <nl> <nl> - func : max_unpool2d ( Tensor self , Tensor indices , int [ 2 ] output_size ) - > Tensor <nl> python_module : nn <nl> dispatch : <nl> - CPU : max_unpooling2d_forward_cpu <nl> - CUDA : max_unpooling2d_forward_cuda <nl> + CPU : legacy : : cpu : : _thnn_max_unpool2d_forward <nl> + CUDA : legacy : : cuda : : _thnn_max_unpool2d_forward <nl> <nl> - func : max_unpool2d_backward ( Tensor grad_output , Tensor self , Tensor indices , int [ 2 ] output_size , * , Tensor ( a ! ) grad_input ) - > Tensor ( a ! ) <nl> python_module : nn <nl> dispatch : <nl> - CPU : max_unpooling2d_backward_out_cpu <nl> - CUDA : max_unpooling2d_backward_out_cuda <nl> + CPU : legacy : : cpu : : _thnn_max_unpool2d_backward_out <nl> + CUDA : legacy : : cuda : : _thnn_max_unpool2d_backward_out <nl> <nl> - func : max_unpool2d_backward ( Tensor grad_output , Tensor self , Tensor indices , int [ 2 ] output_size ) - > Tensor <nl> python_module : nn <nl> dispatch : <nl> - CPU : max_unpooling2d_backward_cpu <nl> - CUDA : max_unpooling2d_backward_cuda <nl> + CPU : legacy : : cpu : : _thnn_max_unpool2d_backward <nl> + CUDA : legacy : : cuda : : _thnn_max_unpool2d_backward <nl> <nl> - func : max_unpool3d ( Tensor self , Tensor indices , int [ 3 ] output_size , int [ 3 ] stride , int [ 3 ] padding , * , Tensor ( a ! ) out ) - > Tensor ( a ! ) <nl> python_module : nn <nl> dispatch : <nl> - CPU : max_unpooling3d_forward_out_cpu <nl> - CUDA : max_unpooling3d_forward_out_cuda <nl> + CPU : legacy : : cpu : : _thnn_max_unpool3d_forward_out <nl> + CUDA : legacy : : cuda : : _thnn_max_unpool3d_forward_out <nl> <nl> - func : max_unpool3d ( Tensor self , Tensor indices , int [ 3 ] output_size , int [ 3 ] stride , int [ 3 ] padding ) - > Tensor <nl> python_module : nn <nl> dispatch : <nl> - CPU : max_unpooling3d_forward_cpu <nl> - CUDA : max_unpooling3d_forward_cuda <nl> + CPU : legacy : : cpu : : _thnn_max_unpool3d_forward <nl> + CUDA : legacy : : cuda : : _thnn_max_unpool3d_forward <nl> <nl> - func : max_unpool3d_backward ( Tensor grad_output , Tensor self , Tensor indices , int [ 3 ] output_size , int [ 3 ] stride , int [ 3 ] padding , * , Tensor ( a ! ) grad_input ) - > Tensor ( a ! ) <nl> python_module : nn <nl> dispatch : <nl> - CPU : max_unpooling3d_backward_out_cpu <nl> - CUDA : max_unpooling3d_backward_out_cuda <nl> + CPU : legacy : : cpu : : _thnn_max_unpool3d_backward_out <nl> + CUDA : legacy : : cuda : : _thnn_max_unpool3d_backward_out <nl> <nl> - func : max_unpool3d_backward ( Tensor grad_output , Tensor self , Tensor indices , int [ 3 ] output_size , int [ 3 ] stride , int [ 3 ] padding ) - > Tensor <nl> python_module : nn <nl> dispatch : <nl> - CPU : max_unpooling3d_backward_cpu <nl> - CUDA : max_unpooling3d_backward_cuda <nl> + CPU : legacy : : cpu : : _thnn_max_unpool3d_backward <nl> + CUDA : legacy : : cuda : : _thnn_max_unpool3d_backward <nl> <nl> - func : reflection_pad1d ( Tensor self , int [ 2 ] padding , * , Tensor ( a ! ) out ) - > Tensor ( a ! ) <nl> python_module : nn <nl> mmm a / aten / src / ATen / nn . yaml <nl> ppp b / aten / src / ATen / nn . yaml <nl> <nl> output : ' false ' <nl> grad_input : ' false ' <nl> <nl> + - name : _thnn_max_unpool2d ( Tensor self , LongTensor indices , IntArrayRef [ 2 ] output_size ) <nl> + cname : SpatialMaxUnpooling <nl> + scalar_check : <nl> + output : ' false ' <nl> + grad_input : ' false ' <nl> + <nl> + - name : _thnn_max_unpool3d ( Tensor self , LongTensor indices , IntArrayRef [ 3 ] output_size , IntArrayRef [ 3 ] stride , IntArrayRef [ 3 ] padding ) <nl> + cname : VolumetricMaxUnpooling <nl> + scalar_check : <nl> + output : ' false ' <nl> + grad_input : ' false ' <nl> + <nl> # Private functions . These also exist in TH , but we want the backwards functions <nl> # to implement derivatives . <nl> <nl> mmm a / aten / src / THCUNN / CMakeLists . txt <nl> ppp b / aten / src / THCUNN / CMakeLists . txt <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / SpatialDepthwiseConvolution . cu <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / SpatialDilatedConvolution . cu <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / SpatialFullConvolution . cu <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / SpatialFullDilatedConvolution . cu <nl> + $ { CMAKE_CURRENT_SOURCE_DIR } / SpatialMaxUnpooling . cu <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / SpatialSubSampling . cu <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / Sqrt . cu <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / Square . cu <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / VolumetricConvolution . cu <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / VolumetricDilatedConvolution . cu <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / VolumetricFullConvolution . cu <nl> $ { CMAKE_CURRENT_SOURCE_DIR } / VolumetricFullDilatedConvolution . cu <nl> + $ { CMAKE_CURRENT_SOURCE_DIR } / VolumetricMaxUnpooling . cu <nl> PARENT_SCOPE ) <nl> <nl> set ( ATen_CUDA_INCLUDE $ { ATen_CUDA_INCLUDE } <nl> new file mode 100644 <nl> index 000000000000 . . e24d7c850c40 <nl> mmm / dev / null <nl> ppp b / aten / src / THCUNN / SpatialMaxUnpooling . cu <nl> <nl> + # include < THCUNN / THCUNN . h > <nl> + # include < THC / THCTensor . hpp > <nl> + # include < THCUNN / common . h > <nl> + <nl> + template < typename Dtype > <nl> + __global__ void MaxUnpoolForward ( const int nthreads , const Dtype * bottom_data , const int64_t * bottom_mask , <nl> + const int num , const int channels , const int iheight , const int iwidth , const int oheight , const int owidth , Dtype * top_data ) { <nl> + CUDA_KERNEL_LOOP ( index , nthreads ) { / / index here indices the input pixels <nl> + int c = ( index / iwidth / iheight ) % channels ; <nl> + int n = index / iwidth / iheight / channels ; <nl> + top_data + = ( n * channels + c ) * oheight * owidth ; <nl> + int maxind = bottom_mask [ index ] ; <nl> + <nl> + top_data [ maxind ] = bottom_data [ index ] ; <nl> + } <nl> + } <nl> + <nl> + template < typename Dtype > <nl> + __global__ void MaxUnpoolBackward ( const int nthreads , const Dtype * top_diff , const int64_t * bottom_mask , <nl> + const int num , const int channels , const int iheight , const int iwidth , const int oheight , const int owidth , Dtype * bottom_diff ) { <nl> + CUDA_KERNEL_LOOP ( index , nthreads ) { <nl> + int c = ( index / iwidth / iheight ) % channels ; <nl> + int n = index / iwidth / iheight / channels ; <nl> + top_diff + = ( n * channels + c ) * oheight * owidth ; <nl> + int maxind = bottom_mask [ index ] ; <nl> + <nl> + bottom_diff [ index ] = top_diff [ maxind ] ; <nl> + } <nl> + } <nl> + <nl> + # include < THCUNN / generic / SpatialMaxUnpooling . cu > <nl> + # include < THC / THCGenerateFloatTypes . h > <nl> new file mode 100644 <nl> index 000000000000 . . 26de1945a41d <nl> mmm / dev / null <nl> ppp b / aten / src / THCUNN / VolumetricMaxUnpooling . cu <nl> <nl> + # include < THCUNN / THCUNN . h > <nl> + # include < THC / THCTensor . hpp > <nl> + # include < THCUNN / common . h > <nl> + # include < THC / THCDeviceTensor . cuh > <nl> + # include < THC / THCDeviceTensorUtils . cuh > <nl> + # include < THC / THCDeviceUtils . cuh > <nl> + # include < TH / THHalf . h > <nl> + # include < THCUNN / THCHalfAutoNumerics . cuh > <nl> + <nl> + # include < cfloat > <nl> + <nl> + template < typename Dtype > <nl> + __global__ void cuda_VolumetricMaxUnpooling_updateOutput ( <nl> + THCDeviceTensor < Dtype , 4 > input , <nl> + THCDeviceTensor < THCIndex_t , 4 > indices , <nl> + Dtype * outputData , <nl> + int oT , int oH , int oW , <nl> + int dT , int dH , int dW , <nl> + int padT , int padH , int padW , int offsetZ ) <nl> + { <nl> + int64_t iColumn = blockIdx . x * blockDim . x + threadIdx . x ; <nl> + int64_t iRow = blockIdx . y * blockDim . y + threadIdx . y ; <nl> + int64_t iFrame = ( blockIdx . z + offsetZ ) % input . getSize ( 1 ) ; / / intput frame / time <nl> + int64_t slice = ( blockIdx . z + offsetZ ) / input . getSize ( 1 ) ; / / intput slice / feature <nl> + <nl> + if ( iRow < input . getSize ( 2 ) & & iColumn < input . getSize ( 3 ) ) <nl> + { <nl> + Dtype val = input [ slice ] [ iFrame ] [ iRow ] [ iColumn ] ; <nl> + int64_t index = indices [ slice ] [ iFrame ] [ iRow ] [ iColumn ] ; <nl> + outputData [ slice * oT * oH * oW + index ] = val ; <nl> + } <nl> + } <nl> + <nl> + template < typename Dtype > <nl> + __global__ void cuda_VolumetricMaxUnpooling_updateGradInput ( <nl> + Dtype * gradOutputData , <nl> + int oT , int oH , int oW , <nl> + THCDeviceTensor < THCIndex_t , 4 > indices , <nl> + THCDeviceTensor < Dtype , 4 > gradInput , <nl> + int dT , int dH , int dW , <nl> + int padT , int padH , int padW , int offsetZ ) <nl> + { <nl> + int iColumn = blockIdx . x * blockDim . x + threadIdx . x ; <nl> + int iRow = blockIdx . y * blockDim . y + threadIdx . y ; <nl> + int iFrame = ( blockIdx . z + offsetZ ) % gradInput . getSize ( 1 ) ; / / output frame / time <nl> + int slice = ( blockIdx . z + offsetZ ) / gradInput . getSize ( 1 ) ; / / output slice / feature <nl> + <nl> + if ( iRow < gradInput . getSize ( 2 ) & & iColumn < gradInput . getSize ( 3 ) ) <nl> + { <nl> + int64_t index = indices [ slice ] [ iFrame ] [ iRow ] [ iColumn ] ; <nl> + Dtype grad_val = gradOutputData [ slice * oT * oH * oW + index ] ; <nl> + gradInput [ slice ] [ iFrame ] [ iRow ] [ iColumn ] = grad_val ; <nl> + } <nl> + } <nl> + <nl> + # include < THCUNN / generic / VolumetricMaxUnpooling . cu > <nl> + # include < THC / THCGenerateFloatTypes . h > <nl> new file mode 100644 <nl> index 000000000000 . . 627580a0ac79 <nl> mmm / dev / null <nl> ppp b / aten / src / THCUNN / generic / SpatialMaxUnpooling . cu <nl> <nl> + # ifndef THC_GENERIC_FILE <nl> + # define THC_GENERIC_FILE " THCUNN / generic / SpatialMaxUnpooling . cu " <nl> + # else <nl> + <nl> + void THNN_ ( SpatialMaxUnpooling_updateOutput ) ( <nl> + THCState * state , <nl> + THCTensor * input , <nl> + THCTensor * output , <nl> + THCIndexTensor * indices , <nl> + int owidth , int oheight ) <nl> + { <nl> + THCUNN_assertSameGPU ( state , 3 , input , output , indices ) ; <nl> + THCUNN_argCheck ( state , ! input - > is_empty ( ) & & ( input - > dim ( ) = = 3 | | input - > dim ( ) = = 4 ) , 2 , input , <nl> + " non - empty 3D or 4D ( batch mode ) tensor expected for input , but got : % s " ) ; <nl> + THCUNN_check_shape_indices ( state , indices , input ) ; <nl> + <nl> + int64_t nInputCols , nInputRows , nInputPlane , batchSize ; <nl> + <nl> + if ( input - > dim ( ) = = 3 ) { <nl> + nInputCols = input - > size ( 2 ) ; <nl> + nInputRows = input - > size ( 1 ) ; <nl> + nInputPlane = input - > size ( 0 ) ; <nl> + batchSize = 1 ; <nl> + } <nl> + else <nl> + { <nl> + nInputCols = input - > size ( 3 ) ; <nl> + nInputRows = input - > size ( 2 ) ; <nl> + nInputPlane = input - > size ( 1 ) ; <nl> + batchSize = input - > size ( 0 ) ; <nl> + } <nl> + <nl> + input = THCTensor_ ( newContiguous ) ( state , input ) ; <nl> + indices = THCIndexTensor_ ( newContiguous ) ( state , indices ) ; <nl> + THCTensor_ ( resize4d ) ( state , output , batchSize , nInputPlane , oheight , owidth ) ; <nl> + THCTensor_ ( zero ) ( state , output ) ; <nl> + <nl> + int count = THCTensor_ ( nElement ) ( state , input ) ; <nl> + <nl> + MaxUnpoolForward < < < GET_BLOCKS ( count ) , CUDA_NUM_THREADS , 0 , THCState_getCurrentStream ( state ) > > > <nl> + ( count , THCTensor_ ( data ) ( state , input ) , THCIndexTensor_ ( data ) ( state , indices ) , <nl> + batchSize , nInputPlane , nInputRows , nInputCols , oheight , owidth , THCTensor_ ( data ) ( state , output ) ) ; <nl> + THCudaCheck ( cudaGetLastError ( ) ) ; <nl> + <nl> + if ( input - > dim ( ) = = 3 ) <nl> + THCTensor_ ( resize3d ) ( state , output , nInputPlane , oheight , owidth ) ; <nl> + <nl> + THCTensor_ ( free ) ( state , input ) ; <nl> + THCIndexTensor_ ( free ) ( state , indices ) ; <nl> + } <nl> + <nl> + void THNN_ ( SpatialMaxUnpooling_updateGradInput ) ( <nl> + THCState * state , <nl> + THCTensor * input , <nl> + THCTensor * gradOutput , <nl> + THCTensor * gradInput , <nl> + THCIndexTensor * indices , <nl> + int owidth , int oheight ) <nl> + { <nl> + THCUNN_assertSameGPU ( state , 4 , input , gradOutput , indices , gradInput ) ; <nl> + THCUNN_check_shape_indices ( state , indices , input ) ; <nl> + <nl> + int64_t nInputCols , nInputRows , nInputPlane , batchSize ; <nl> + int dimw = 2 ; <nl> + int dimh = 1 ; <nl> + <nl> + if ( input - > dim ( ) = = 3 ) { <nl> + nInputPlane = input - > size ( 0 ) ; <nl> + batchSize = 1 ; <nl> + } <nl> + else <nl> + { <nl> + + + dimw ; <nl> + + + dimh ; <nl> + nInputPlane = input - > size ( 1 ) ; <nl> + batchSize = input - > size ( 0 ) ; <nl> + } <nl> + nInputCols = input - > size ( dimw ) ; <nl> + nInputRows = input - > size ( dimh ) ; <nl> + <nl> + if ( owidth ! = gradOutput - > size ( dimw ) | | oheight ! = gradOutput - > size ( dimh ) ) { <nl> + THError ( " Inconsistent gradOutput size . oheight = % d , owidth = % d , gradOutput : % dx % d " , <nl> + oheight , owidth , gradOutput - > size ( dimh ) , gradOutput - > size ( dimw ) ) ; <nl> + } <nl> + <nl> + input = THCTensor_ ( newContiguous ) ( state , input ) ; <nl> + indices = THCIndexTensor_ ( newContiguous ) ( state , indices ) ; <nl> + gradOutput = THCTensor_ ( newContiguous ) ( state , gradOutput ) ; <nl> + THCTensor_ ( resizeAs ) ( state , gradInput , input ) ; <nl> + <nl> + int count = THCTensor_ ( nElement ) ( state , input ) ; <nl> + <nl> + MaxUnpoolBackward < < < GET_BLOCKS ( count ) , CUDA_NUM_THREADS , 0 , THCState_getCurrentStream ( state ) > > > <nl> + ( count , THCTensor_ ( data ) ( state , gradOutput ) , THCIndexTensor_ ( data ) ( state , indices ) , <nl> + batchSize , nInputPlane , nInputRows , nInputCols , oheight , owidth , THCTensor_ ( data ) ( state , gradInput ) ) ; <nl> + THCudaCheck ( cudaGetLastError ( ) ) ; <nl> + <nl> + / / clean <nl> + THCTensor_ ( free ) ( state , input ) ; <nl> + THCIndexTensor_ ( free ) ( state , indices ) ; <nl> + THCTensor_ ( free ) ( state , gradOutput ) ; <nl> + } <nl> + <nl> + # endif <nl> mmm a / aten / src / THCUNN / generic / THCUNN . h <nl> ppp b / aten / src / THCUNN / generic / THCUNN . h <nl> THC_API void THNN_ ( SpatialFullConvolution_accGradParameters ) ( <nl> int adjW , int adjH , <nl> accreal scale ) ; <nl> <nl> + THC_API void THNN_ ( SpatialMaxUnpooling_updateOutput ) ( <nl> + THCState * state , <nl> + THCTensor * input , <nl> + THCTensor * output , <nl> + THCIndexTensor * indices , <nl> + int owidth , int oheight ) ; <nl> + <nl> + THC_API void THNN_ ( SpatialMaxUnpooling_updateGradInput ) ( <nl> + THCState * state , <nl> + THCTensor * input , <nl> + THCTensor * gradOutput , <nl> + THCTensor * gradInput , <nl> + THCIndexTensor * indices , <nl> + int owidth , int oheight ) ; <nl> + <nl> THC_API void THNN_ ( SpatialSubSampling_updateOutput ) ( <nl> THCState * state , <nl> THCTensor * input , <nl> THC_API void THNN_ ( VolumetricFullConvolution_accGradParameters ) ( <nl> int adjT , int adjW , int adjH , <nl> accreal scale ) ; <nl> <nl> + THC_API void THNN_ ( VolumetricMaxUnpooling_updateOutput ) ( <nl> + THCState * state , <nl> + THCTensor * input , <nl> + THCTensor * output , <nl> + THCIndexTensor * indices , <nl> + int outputTime , int outputWidth , int outputHeight , <nl> + int dT , int dW , int dH , <nl> + int padT , int padW , int padH ) ; <nl> + <nl> + THC_API void THNN_ ( VolumetricMaxUnpooling_updateGradInput ) ( <nl> + THCState * state , <nl> + THCTensor * input , <nl> + THCTensor * gradOutput , <nl> + THCTensor * gradInput , <nl> + THCIndexTensor * indices , <nl> + int outputTime , int outputWidth , int outputHeight , <nl> + int dT , int dW , int dH , <nl> + int padT , int padW , int padH ) ; <nl> + <nl> # endif <nl> new file mode 100644 <nl> index 000000000000 . . d8ab66711a67 <nl> mmm / dev / null <nl> ppp b / aten / src / THCUNN / generic / VolumetricMaxUnpooling . cu <nl> <nl> + # ifndef THC_GENERIC_FILE <nl> + # define THC_GENERIC_FILE " THCUNN / generic / VolumetricMaxUnpooling . cu " <nl> + # else <nl> + <nl> + static inline void THNN_ ( VolumetricMaxUnpooling_shapeCheck ) ( <nl> + THCState * state , <nl> + THCTensor * input , <nl> + THCTensor * gradOutput , <nl> + THCIndexTensor * indices , <nl> + int oT , <nl> + int oW , <nl> + int oH , <nl> + int dT , <nl> + int dW , <nl> + int dH , <nl> + int pT , <nl> + int pW , <nl> + int pH ) { <nl> + int inputSlices = 0 ; <nl> + <nl> + THCUNN_check_shape_indices ( state , indices , input ) ; <nl> + <nl> + THArgCheck ( dT > 0 & & dW > 0 & & dH > 0 , 10 , <nl> + " stride should be greater than zero , but got dT : % d dH : % d dW : % d " , <nl> + dT , dH , dW ) ; <nl> + <nl> + if ( THCTensor_ ( nDimensionLegacyNoScalars ) ( state , input ) = = 4 ) <nl> + { <nl> + inputSlices = THCTensor_ ( size ) ( state , input , 0 ) ; <nl> + } <nl> + else if ( THCTensor_ ( nDimensionLegacyNoScalars ) ( state , input ) = = 5 ) <nl> + { <nl> + inputSlices = THCTensor_ ( size ) ( state , input , 1 ) ; <nl> + } <nl> + else <nl> + { <nl> + AT_ERROR ( " non - empty 4D or 5D tensor expected , got size : " , <nl> + input - > sizes ( ) ) ; <nl> + } <nl> + <nl> + int dimw = 3 ; <nl> + int dimh = 2 ; <nl> + int dimt = 1 ; <nl> + int dimn = 0 ; <nl> + if ( input - > dim ( ) = = 5 ) <nl> + { <nl> + dimt + + ; <nl> + dimw + + ; <nl> + dimh + + ; <nl> + dimn + + ; <nl> + } <nl> + <nl> + if ( gradOutput ! = NULL ) { <nl> + if ( oT ! = gradOutput - > size ( dimt ) | | oW ! = gradOutput - > size ( dimw ) | | oH ! = gradOutput - > size ( dimh ) ) <nl> + { <nl> + THError ( <nl> + " Inconsistent gradOutput size . oT = % d , oH = % d , oW = % d , gradOutput : % dx % dx % d " , <nl> + oT , oH , oW , gradOutput - > size ( dimt ) , gradOutput - > size ( dimh ) , gradOutput - > size ( dimw ) ) ; <nl> + } <nl> + <nl> + THCUNN_check_dim_size ( state , gradOutput , input - > dim ( ) , dimn , inputSlices ) ; <nl> + } <nl> + } <nl> + <nl> + void THNN_ ( VolumetricMaxUnpooling_updateOutput ) ( <nl> + THCState * state , <nl> + THCTensor * input , <nl> + THCTensor * output , <nl> + THCIndexTensor * indices , <nl> + int outputTime , int outputWidth , int outputHeight , <nl> + int dT , int dW , int dH , <nl> + int padT , int padW , int padH ) <nl> + { <nl> + int batchSize = 0 ; <nl> + int inputSlices = 0 ; <nl> + int inputTime = 0 ; <nl> + int inputHeight = 0 ; <nl> + int inputWidth = 0 ; <nl> + <nl> + THNN_ ( VolumetricMaxUnpooling_shapeCheck ) ( <nl> + state , input , NULL , indices , <nl> + outputTime , outputWidth , outputHeight , <nl> + dT , dW , dH , padT , padW , padH ) ; <nl> + THCUNN_assertSameGPU ( state , 3 , input , indices , output ) ; <nl> + <nl> + int fiveDimensionalInput = THCTensor_ ( nDimensionLegacyNoScalars ) ( state , input ) = = 5 ; <nl> + if ( THCTensor_ ( nDimensionLegacyNoScalars ) ( state , input ) = = 4 ) <nl> + { <nl> + / * sizes * / <nl> + batchSize = 1 ; <nl> + inputSlices = THCTensor_ ( size ) ( state , input , 0 ) ; <nl> + inputTime = THCTensor_ ( size ) ( state , input , 1 ) ; <nl> + inputHeight = THCTensor_ ( size ) ( state , input , 2 ) ; <nl> + inputWidth = THCTensor_ ( size ) ( state , input , 3 ) ; <nl> + } <nl> + else if ( fiveDimensionalInput ) <nl> + { <nl> + / * sizes * / <nl> + batchSize = THCTensor_ ( size ) ( state , input , 0 ) ; <nl> + inputSlices = THCTensor_ ( size ) ( state , input , 1 ) ; <nl> + inputTime = THCTensor_ ( size ) ( state , input , 2 ) ; <nl> + inputHeight = THCTensor_ ( size ) ( state , input , 3 ) ; <nl> + inputWidth = THCTensor_ ( size ) ( state , input , 4 ) ; <nl> + } <nl> + <nl> + if ( ! fiveDimensionalInput ) / * 4D * / <nl> + { <nl> + / * resize output * / <nl> + THCTensor_ ( resize4d ) ( state , output , inputSlices , <nl> + outputTime , outputHeight , outputWidth ) ; <nl> + } <nl> + else <nl> + { / * 5D * / <nl> + THCTensor_ ( resize5d ) ( state , output , batchSize , inputSlices , <nl> + outputTime , outputHeight , outputWidth ) ; <nl> + } <nl> + <nl> + input = THCTensor_ ( newContiguous ) ( state , input ) ; <nl> + indices = THCIndexTensor_ ( newContiguous ) ( state , indices ) ; <nl> + output = THCTensor_ ( newContiguous ) ( state , output ) ; <nl> + THCTensor_ ( zero ) ( state , output ) ; <nl> + <nl> + if ( fiveDimensionalInput ) { <nl> + / / Collapse batch and feature dimensions <nl> + / / newFoldBatchDim assumes contiguity so the newContiguous calls must <nl> + / / preceed this <nl> + THCTensor * old_output = output ; <nl> + output = THCTensor_ ( newFoldBatchDim ) ( state , output ) ; <nl> + THCTensor_ ( free ) ( state , old_output ) ; <nl> + <nl> + THCTensor * old_input = input ; <nl> + input = THCTensor_ ( newFoldBatchDim ) ( state , input ) ; <nl> + THCTensor_ ( free ) ( state , old_input ) ; <nl> + <nl> + THCIndexTensor * old_indices = indices ; <nl> + indices = THCIndexTensor_ ( newFoldBatchDim ) ( state , indices ) ; <nl> + THCIndexTensor_ ( free ) ( state , old_indices ) ; <nl> + } <nl> + <nl> + scalar_t * outputData = THCTensor_ ( data ) ( state , output ) ; <nl> + <nl> + THCDeviceTensor < scalar_t , 4 > cudaInput ; <nl> + THCDeviceTensor < THCIndex_t , 4 > cudaIndices ; <nl> + <nl> + cudaInput = toDeviceTensor < scalar_t , 4 > ( state , input ) ; <nl> + cudaIndices = toDeviceTensor < THCIndex_t , 4 > ( state , indices ) ; <nl> + <nl> + int totalZ = inputTime * inputSlices * batchSize ; <nl> + int offsetZ = 0 ; <nl> + dim3 block ( 32 , 8 ) ; <nl> + <nl> + while ( totalZ > 0 ) { <nl> + dim3 grid ( THCCeilDiv ( inputWidth , static_cast < int > ( block . x ) ) , <nl> + THCCeilDiv ( inputHeight , static_cast < int > ( block . y ) ) , <nl> + totalZ > 65535 ? 65535 : totalZ ) ; <nl> + <nl> + cuda_VolumetricMaxUnpooling_updateOutput < < < grid , block , <nl> + 0 , THCState_getCurrentStream ( state ) > > > ( <nl> + cudaInput , cudaIndices , outputData , <nl> + outputTime , outputHeight , outputWidth , <nl> + dT , dH , dW , <nl> + padT , padH , padW , offsetZ ) ; <nl> + THCudaCheck ( cudaGetLastError ( ) ) ; <nl> + totalZ - = 65535 ; <nl> + offsetZ + = 65535 ; <nl> + } <nl> + <nl> + THCTensor_ ( free ) ( state , input ) ; <nl> + THCTensor_ ( free ) ( state , output ) ; <nl> + THCIndexTensor_ ( free ) ( state , indices ) ; <nl> + } <nl> + <nl> + void THNN_ ( VolumetricMaxUnpooling_updateGradInput ) ( <nl> + THCState * state , <nl> + THCTensor * input , <nl> + THCTensor * gradOutput , <nl> + THCTensor * gradInput , <nl> + THCIndexTensor * indices , <nl> + int outputTime , int outputWidth , int outputHeight , <nl> + int dT , int dW , int dH , <nl> + int padT , int padW , int padH ) <nl> + { <nl> + int batchSize = 0 ; <nl> + int inputSlices = 0 ; <nl> + int inputTime = 0 ; <nl> + int inputHeight = 0 ; <nl> + int inputWidth = 0 ; <nl> + <nl> + THNN_ ( VolumetricMaxUnpooling_shapeCheck ) ( <nl> + state , input , gradOutput , indices , <nl> + outputTime , outputWidth , outputHeight , <nl> + dT , dW , dH , padT , padW , padH ) ; <nl> + THCUNN_assertSameGPU ( state , 4 , input , indices , gradOutput , gradInput ) ; <nl> + <nl> + int fiveDimensionalInput = THCTensor_ ( nDimensionLegacyNoScalars ) ( state , input ) = = 5 ; <nl> + if ( ! fiveDimensionalInput ) / * 4D * / <nl> + { <nl> + batchSize = 1 ; <nl> + inputSlices = THCTensor_ ( size ) ( state , input , 0 ) ; <nl> + inputTime = THCTensor_ ( size ) ( state , input , 1 ) ; <nl> + inputHeight = THCTensor_ ( size ) ( state , input , 2 ) ; <nl> + inputWidth = THCTensor_ ( size ) ( state , input , 3 ) ; <nl> + } <nl> + else <nl> + { <nl> + batchSize = THCTensor_ ( size ) ( state , input , 0 ) ; <nl> + inputSlices = THCTensor_ ( size ) ( state , input , 1 ) ; <nl> + inputTime = THCTensor_ ( size ) ( state , input , 2 ) ; <nl> + inputHeight = THCTensor_ ( size ) ( state , input , 3 ) ; <nl> + inputWidth = THCTensor_ ( size ) ( state , input , 4 ) ; <nl> + } <nl> + <nl> + input = THCTensor_ ( newContiguous ) ( state , input ) ; <nl> + THCTensor_ ( resizeAs ) ( state , gradInput , input ) ; <nl> + THCTensor_ ( zero ) ( state , gradInput ) ; <nl> + indices = THCIndexTensor_ ( newContiguous ) ( state , indices ) ; <nl> + gradOutput = THCTensor_ ( newContiguous ) ( state , gradOutput ) ; <nl> + <nl> + / / Collapse batch and feature dimensions <nl> + if ( fiveDimensionalInput ) { <nl> + gradInput = THCTensor_ ( newFoldBatchDim ) ( state , gradInput ) ; <nl> + <nl> + THCIndexTensor * old_indices = indices ; <nl> + indices = THCIndexTensor_ ( newFoldBatchDim ) ( state , indices ) ; <nl> + THCIndexTensor_ ( free ) ( state , old_indices ) ; <nl> + <nl> + THCTensor * old_gradOutput = gradOutput ; <nl> + gradOutput = THCTensor_ ( newFoldBatchDim ) ( state , gradOutput ) ; <nl> + THCTensor_ ( free ) ( state , old_gradOutput ) ; <nl> + } else { <nl> + THCTensor_ ( retain ) ( state , gradInput ) ; <nl> + } <nl> + <nl> + scalar_t * gradOutputData = THCTensor_ ( data ) ( state , gradOutput ) ; <nl> + <nl> + THCDeviceTensor < scalar_t , 4 > cudaGradInput ; <nl> + THCDeviceTensor < THCIndex_t , 4 > cudaIndices ; <nl> + <nl> + cudaGradInput = toDeviceTensor < scalar_t , 4 > ( state , gradInput ) ; <nl> + cudaIndices = toDeviceTensor < THCIndex_t , 4 > ( state , indices ) ; <nl> + <nl> + int totalZ = inputTime * inputSlices * batchSize ; <nl> + int offsetZ = 0 ; <nl> + dim3 block ( 32 , 8 ) ; <nl> + <nl> + while ( totalZ > 0 ) { <nl> + dim3 grid ( THCCeilDiv ( inputWidth , static_cast < int > ( block . x ) ) , <nl> + THCCeilDiv ( inputHeight , static_cast < int > ( block . y ) ) , <nl> + totalZ > 65535 ? 65535 : totalZ ) ; <nl> + <nl> + cuda_VolumetricMaxUnpooling_updateGradInput < < < grid , block , <nl> + 0 , THCState_getCurrentStream ( state ) > > > ( <nl> + gradOutputData , <nl> + outputTime , outputHeight , outputWidth , <nl> + cudaIndices , <nl> + cudaGradInput , <nl> + dT , dH , dW , <nl> + padT , padH , padW , offsetZ ) ; <nl> + THCudaCheck ( cudaGetLastError ( ) ) ; <nl> + totalZ - = 65535 ; <nl> + offsetZ + = 65535 ; <nl> + } <nl> + <nl> + / / cleanup <nl> + THCTensor_ ( free ) ( state , gradOutput ) ; <nl> + THCTensor_ ( free ) ( state , gradInput ) ; <nl> + THCIndexTensor_ ( free ) ( state , indices ) ; <nl> + THCTensor_ ( free ) ( state , input ) ; <nl> + } <nl> + <nl> + # endif <nl> new file mode 100644 <nl> index 000000000000 . . d66164499dbf <nl> mmm / dev / null <nl> ppp b / aten / src / THNN / generic / SpatialMaxUnpooling . c <nl> <nl> + # ifndef TH_GENERIC_FILE <nl> + # define TH_GENERIC_FILE " THNN / generic / SpatialMaxUnpooling . c " <nl> + # else <nl> + <nl> + # include < ATen / Parallel . h > <nl> + # include < mutex > <nl> + <nl> + static void THNN_ ( SpatialMaxUnpooling_updateOutput_frame ) ( scalar_t * input_p , scalar_t * output_p , <nl> + THIndex_t * ind_p , <nl> + int nslices , <nl> + int iwidth , int iheight , <nl> + int owidth , int oheight ) <nl> + { <nl> + int has_error = 0 ; <nl> + THIndex_t error_index = 0 ; <nl> + std : : mutex mutex ; <nl> + at : : parallel_for ( 0 , nslices , 0 , [ & ] ( int64_t start , int64_t end ) { <nl> + for ( auto k = start ; k < end ; k + + ) <nl> + { <nl> + scalar_t * output_p_k = output_p + k * owidth * oheight ; <nl> + scalar_t * input_p_k = input_p + k * iwidth * iheight ; <nl> + THIndex_t * ind_p_k = ind_p + k * iwidth * iheight ; <nl> + <nl> + int i , j ; <nl> + THIndex_t maxp ; <nl> + for ( i = 0 ; i < iheight ; i + + ) <nl> + { <nl> + for ( j = 0 ; j < iwidth ; j + + ) <nl> + { <nl> + maxp = ind_p_k [ i * iwidth + j ] ; / * retrieve position of max * / <nl> + if ( maxp < 0 | | maxp > = owidth * oheight ) { <nl> + std : : unique_lock < std : : mutex > lock ( mutex ) ; <nl> + has_error = 1 ; <nl> + error_index = maxp ; <nl> + } else { <nl> + output_p_k [ maxp ] = input_p_k [ i * iwidth + j ] ; / * update output * / <nl> + } <nl> + } <nl> + } <nl> + } <nl> + } ) ; <nl> + if ( has_error ) { <nl> + THError ( " found an invalid max index % ld ( output volumes are of size % dx % d ) " , <nl> + error_index , oheight , owidth ) ; <nl> + } <nl> + } <nl> + <nl> + void THNN_ ( SpatialMaxUnpooling_updateOutput ) ( <nl> + THNNState * state , <nl> + THTensor * input , <nl> + THTensor * output , <nl> + THIndexTensor * indices , <nl> + int owidth , int oheight ) <nl> + { <nl> + int dimw = 2 ; <nl> + int dimh = 1 ; <nl> + int nbatch = 1 ; <nl> + int nslices ; <nl> + int iheight ; <nl> + int iwidth ; <nl> + scalar_t * input_data ; <nl> + scalar_t * output_data ; <nl> + THIndex_t * indices_data ; <nl> + <nl> + <nl> + TORCH_CHECK ( ! input - > is_empty ( ) & & ( input - > dim ( ) = = 3 | | input - > dim ( ) = = 4 ) , <nl> + " non - empty 3D or 4D ( batch mode ) tensor expected for input , but got sizes : " , input - > sizes ( ) ) ; <nl> + THNN_CHECK_SHAPE_INDICES ( input , indices ) ; <nl> + <nl> + if ( input - > dim ( ) = = 4 ) <nl> + { <nl> + nbatch = input - > size ( 0 ) ; <nl> + dimw + + ; <nl> + dimh + + ; <nl> + } <nl> + <nl> + / * sizes * / <nl> + nslices = input - > size ( dimh - 1 ) ; <nl> + iheight = input - > size ( dimh ) ; <nl> + iwidth = input - > size ( dimw ) ; <nl> + <nl> + / * get contiguous input and indices * / <nl> + input = THTensor_ ( newContiguous ) ( input ) ; <nl> + indices = THIndexTensor_ ( newContiguous ) ( indices ) ; <nl> + <nl> + / * resize output * / <nl> + if ( input - > dim ( ) = = 3 ) <nl> + { <nl> + THTensor_ ( resize3d ) ( output , nslices , oheight , owidth ) ; <nl> + THTensor_ ( zero ) ( output ) ; <nl> + <nl> + input_data = input - > data < scalar_t > ( ) ; <nl> + output_data = output - > data < scalar_t > ( ) ; <nl> + indices_data = THIndexTensor_ ( data ) ( indices ) ; <nl> + <nl> + THNN_ ( SpatialMaxUnpooling_updateOutput_frame ) ( input_data , output_data , <nl> + indices_data , <nl> + nslices , <nl> + iwidth , iheight , <nl> + owidth , oheight ) ; <nl> + } <nl> + else <nl> + { <nl> + int p ; <nl> + <nl> + THTensor_ ( resize4d ) ( output , nbatch , nslices , oheight , owidth ) ; <nl> + THTensor_ ( zero ) ( output ) ; <nl> + <nl> + input_data = input - > data < scalar_t > ( ) ; <nl> + output_data = output - > data < scalar_t > ( ) ; <nl> + indices_data = THIndexTensor_ ( data ) ( indices ) ; <nl> + <nl> + for ( p = 0 ; p < nbatch ; p + + ) <nl> + { <nl> + THNN_ ( SpatialMaxUnpooling_updateOutput_frame ) ( <nl> + input_data + p * nslices * iwidth * iheight , <nl> + output_data + p * nslices * owidth * oheight , <nl> + indices_data + p * nslices * iwidth * iheight , <nl> + nslices , <nl> + iwidth , iheight , <nl> + owidth , oheight ) ; <nl> + } <nl> + } <nl> + <nl> + / * cleanup * / <nl> + c10 : : raw : : intrusive_ptr : : decref ( input ) ; <nl> + THIndexTensor_ ( free ) ( indices ) ; <nl> + } <nl> + <nl> + static void THNN_ ( SpatialMaxUnpooling_updateGradInput_frame ) ( scalar_t * gradInput_p , scalar_t * gradOutput_p , <nl> + THIndex_t * ind_p , <nl> + int nslices , <nl> + int iwidth , int iheight , <nl> + int owidth , int oheight ) <nl> + { <nl> + at : : parallel_for ( 0 , nslices , 0 , [ & ] ( int64_t start , int64_t end ) { <nl> + for ( auto k = start ; k < end ; k + + ) <nl> + { <nl> + scalar_t * gradInput_p_k = gradInput_p + k * iwidth * iheight ; <nl> + scalar_t * gradOutput_p_k = gradOutput_p + k * owidth * oheight ; <nl> + THIndex_t * ind_p_k = ind_p + k * iwidth * iheight ; <nl> + <nl> + int i , j ; <nl> + THIndex_t maxp ; <nl> + for ( i = 0 ; i < iheight ; i + + ) <nl> + { <nl> + for ( j = 0 ; j < iwidth ; j + + ) <nl> + { <nl> + maxp = ind_p_k [ i * iwidth + j ] ; / * retrieve position of max * / <nl> + if ( maxp < 0 | | maxp > = owidth * oheight ) { <nl> + THError ( " invalid max index % ld , owidth = % d , oheight = % d " , maxp , owidth , oheight ) ; <nl> + } <nl> + gradInput_p_k [ i * iwidth + j ] = gradOutput_p_k [ maxp ] ; / * update gradient * / <nl> + } <nl> + } <nl> + } <nl> + } ) ; <nl> + } <nl> + <nl> + void THNN_ ( SpatialMaxUnpooling_updateGradInput ) ( <nl> + THNNState * state , <nl> + THTensor * input , <nl> + THTensor * gradOutput , <nl> + THTensor * gradInput , <nl> + THIndexTensor * indices , <nl> + int owidth , int oheight ) <nl> + { <nl> + int dimw = 2 ; <nl> + int dimh = 1 ; <nl> + int nbatch = 1 ; <nl> + int nslices ; <nl> + int iheight ; <nl> + int iwidth ; <nl> + scalar_t * gradInput_data ; <nl> + scalar_t * gradOutput_data ; <nl> + THIndex_t * indices_data ; <nl> + <nl> + THNN_CHECK_SHAPE_INDICES ( input , indices ) ; <nl> + <nl> + / * get contiguous gradOutput and indices * / <nl> + gradOutput = THTensor_ ( newContiguous ) ( gradOutput ) ; <nl> + indices = THIndexTensor_ ( newContiguous ) ( indices ) ; <nl> + <nl> + / * resize * / <nl> + THTensor_ ( resizeAs ) ( gradInput , input ) ; <nl> + THTensor_ ( zero ) ( gradInput ) ; <nl> + <nl> + if ( input - > dim ( ) = = 4 ) { <nl> + nbatch = input - > size ( 0 ) ; <nl> + dimw + + ; <nl> + dimh + + ; <nl> + } <nl> + <nl> + / * sizes * / <nl> + nslices = input - > size ( dimh - 1 ) ; <nl> + iheight = input - > size ( dimh ) ; <nl> + iwidth = input - > size ( dimw ) ; <nl> + <nl> + if ( owidth ! = gradOutput - > size ( dimw ) | | oheight ! = gradOutput - > size ( dimh ) ) { <nl> + THError ( " Inconsistent gradOutput size . oheight = % d , owidth = % d , gradOutput : % dx % d " , <nl> + oheight , owidth , gradOutput - > size ( dimh ) , gradOutput - > size ( dimw ) ) ; <nl> + } <nl> + <nl> + / * get raw pointers * / <nl> + gradInput_data = gradInput - > data < scalar_t > ( ) ; <nl> + gradOutput_data = gradOutput - > data < scalar_t > ( ) ; <nl> + indices_data = THIndexTensor_ ( data ) ( indices ) ; <nl> + <nl> + / * backprop * / <nl> + if ( input - > dim ( ) = = 3 ) <nl> + { <nl> + THNN_ ( SpatialMaxUnpooling_updateGradInput_frame ) ( gradInput_data , gradOutput_data , <nl> + indices_data , <nl> + nslices , <nl> + iwidth , iheight , <nl> + owidth , oheight ) ; <nl> + } <nl> + else <nl> + { <nl> + int p ; <nl> + for ( p = 0 ; p < nbatch ; p + + ) <nl> + { <nl> + THNN_ ( SpatialMaxUnpooling_updateGradInput_frame ) ( gradInput_data + p * nslices * iwidth * iheight , gradOutput_data + p * nslices * owidth * oheight , <nl> + indices_data + p * nslices * iwidth * iheight , <nl> + nslices , <nl> + iwidth , iheight , <nl> + owidth , oheight ) ; <nl> + } <nl> + } <nl> + <nl> + / * cleanup * / <nl> + c10 : : raw : : intrusive_ptr : : decref ( gradOutput ) ; <nl> + THIndexTensor_ ( free ) ( indices ) ; <nl> + } <nl> + <nl> + # endif <nl> mmm a / aten / src / THNN / generic / THNN . h <nl> ppp b / aten / src / THNN / generic / THNN . h <nl> TH_API void THNN_ ( SpatialFullDilatedConvolution_accGradParameters ) ( <nl> int adjW , int adjH , <nl> accreal scale ) ; <nl> <nl> + TH_API void THNN_ ( SpatialMaxUnpooling_updateOutput ) ( <nl> + THNNState * state , <nl> + THTensor * input , <nl> + THTensor * output , <nl> + THIndexTensor * indices , <nl> + int owidth , int oheight ) ; <nl> + TH_API void THNN_ ( SpatialMaxUnpooling_updateGradInput ) ( <nl> + THNNState * state , <nl> + THTensor * input , <nl> + THTensor * gradOutput , <nl> + THTensor * gradInput , <nl> + THIndexTensor * indices , <nl> + int owidth , int oheight ) ; <nl> + <nl> TH_API void THNN_ ( unfolded_acc ) ( <nl> THTensor * finput , <nl> THTensor * input , <nl> TH_API void THNN_ ( VolumetricFullDilatedConvolution_accGradParameters ) ( <nl> int aT , int aW , int aH , / / extra output adjustment <nl> accreal scale ) ; / / scaling factor <nl> <nl> + TH_API void THNN_ ( VolumetricMaxUnpooling_updateOutput ) ( <nl> + THNNState * state , <nl> + THTensor * input , <nl> + THTensor * output , <nl> + THIndexTensor * indices , <nl> + int oT , int oW , int oH , <nl> + int dT , int dW , int dH , <nl> + int pT , int pW , int pH ) ; <nl> + TH_API void THNN_ ( VolumetricMaxUnpooling_updateGradInput ) ( <nl> + THNNState * state , <nl> + THTensor * input , <nl> + THTensor * gradOutput , <nl> + THTensor * gradInput , <nl> + THIndexTensor * indices , <nl> + int oT , int oW , int oH , <nl> + int dT , int dW , int dH , <nl> + int pT , int pW , int pH ) ; <nl> + <nl> TH_API void THNN_ ( FeatureLPPooling_updateOutput ) ( <nl> THNNState * state , <nl> THTensor * input , <nl> new file mode 100644 <nl> index 000000000000 . . 154659a5cf20 <nl> mmm / dev / null <nl> ppp b / aten / src / THNN / generic / VolumetricMaxUnpooling . c <nl> <nl> + # ifndef TH_GENERIC_FILE <nl> + # define TH_GENERIC_FILE " THNN / generic / VolumetricMaxUnpooling . c " <nl> + # else <nl> + <nl> + # include < ATen / Parallel . h > <nl> + # include < mutex > <nl> + <nl> + static inline void THNN_ ( VolumetricMaxUnpooling_shapeCheck ) ( <nl> + THNNState * state , <nl> + THTensor * input , <nl> + THTensor * gradOutput , <nl> + THIndexTensor * indices , <nl> + int oT , <nl> + int oW , <nl> + int oH , <nl> + int dT , <nl> + int dW , <nl> + int dH , <nl> + int pT , <nl> + int pW , <nl> + int pH ) <nl> + { <nl> + THNN_ARGCHECK ( ! input - > is_empty ( ) & & ( input - > dim ( ) = = 4 | | input - > dim ( ) = = 5 ) , 2 , input , <nl> + " non - empty 4D or 5D ( batch mode ) tensor expected for input , but got : % s " ) ; <nl> + <nl> + THNN_CHECK_SHAPE_INDICES ( input , indices ) ; <nl> + <nl> + THArgCheck ( dT > 0 & & dW > 0 & & dH > 0 , 10 , <nl> + " stride should be greater than zero , but got dT : % d dH : % d dW : % d " , <nl> + dT , dH , dW ) ; <nl> + <nl> + int dimw = 3 ; <nl> + int dimh = 2 ; <nl> + int dimt = 1 ; <nl> + int dimn = 0 ; <nl> + <nl> + if ( input - > dim ( ) = = 5 ) <nl> + { <nl> + dimt + + ; <nl> + dimw + + ; <nl> + dimh + + ; <nl> + dimn + + ; <nl> + } <nl> + int nslices = input - > size ( dimn ) ; <nl> + <nl> + if ( gradOutput ! = NULL ) { <nl> + if ( oT ! = gradOutput - > size ( dimt ) | | oW ! = gradOutput - > size ( dimw ) | | oH ! = gradOutput - > size ( dimh ) ) <nl> + { <nl> + THError ( <nl> + " Inconsistent gradOutput size . oT = % d , oH = % d , oW = % d , gradOutput : % dx % dx % d " , <nl> + oT , oH , oW , gradOutput - > size ( dimt ) , gradOutput - > size ( dimh ) , gradOutput - > size ( dimw ) <nl> + ) ; <nl> + } <nl> + <nl> + THNN_CHECK_DIM_SIZE ( gradOutput , input - > dim ( ) , dimn , nslices ) ; <nl> + } <nl> + } <nl> + <nl> + static void THNN_ ( VolumetricMaxUnpooling_updateOutput_frame ) ( <nl> + scalar_t * input_p , <nl> + scalar_t * output_p , <nl> + THIndex_t * ind_p , <nl> + int nslices , <nl> + int iT , <nl> + int iW , <nl> + int iH , <nl> + int oT , <nl> + int oW , <nl> + int oH ) <nl> + { <nl> + int has_error = 0 ; <nl> + THIndex_t error_index = 0 ; <nl> + std : : mutex mutex ; <nl> + at : : parallel_for ( 0 , nslices , 0 , [ & ] ( int64_t start , int64_t end ) { <nl> + for ( auto k = start ; k < end ; k + + ) <nl> + { <nl> + scalar_t * output_p_k = output_p + k * oT * oH * oW ; <nl> + scalar_t * input_p_k = input_p + k * iT * iH * iW ; <nl> + THIndex_t * ind_p_k = ind_p + k * iT * iH * iW ; <nl> + <nl> + int t , i , j , index ; <nl> + THIndex_t maxp ; <nl> + for ( t = 0 ; t < iT ; t + + ) <nl> + { <nl> + for ( i = 0 ; i < iH ; i + + ) <nl> + { <nl> + for ( j = 0 ; j < iW ; j + + ) <nl> + { <nl> + index = t * iH * iW + i * iW + j ; <nl> + maxp = ind_p_k [ index ] ; / * retrieve position of max * / <nl> + if ( maxp < 0 | | maxp > = oT * oW * oH ) <nl> + { <nl> + std : : unique_lock < std : : mutex > lock ( mutex ) ; <nl> + has_error = 1 ; <nl> + error_index = maxp ; <nl> + } else { <nl> + output_p_k [ maxp ] = input_p_k [ index ] ; / * update output * / <nl> + } <nl> + } <nl> + } <nl> + } <nl> + } <nl> + } ) ; <nl> + if ( has_error ) { <nl> + THError ( <nl> + " found an invalid max index % ld ( output volumes are of size % dx % dx % d ) " , <nl> + error_index , oT , oH , oW <nl> + ) ; <nl> + } <nl> + } <nl> + <nl> + void THNN_ ( VolumetricMaxUnpooling_updateOutput ) ( <nl> + THNNState * state , <nl> + THTensor * input , <nl> + THTensor * output , <nl> + THIndexTensor * indices , <nl> + int oT , <nl> + int oW , <nl> + int oH , <nl> + int dT , <nl> + int dW , <nl> + int dH , <nl> + int pT , <nl> + int pW , <nl> + int pH ) <nl> + { <nl> + int dimw = 3 ; <nl> + int dimh = 2 ; <nl> + int dimt = 1 ; <nl> + int nbatch = 1 ; <nl> + int nslices ; <nl> + int iT ; <nl> + int iH ; <nl> + int iW ; <nl> + scalar_t * input_data ; <nl> + scalar_t * output_data ; <nl> + THIndex_t * indices_data ; <nl> + <nl> + THNN_ ( VolumetricMaxUnpooling_shapeCheck ) ( <nl> + state , input , NULL , indices , <nl> + oT , oW , oH , dT , dW , dH , pT , pW , pH ) ; <nl> + <nl> + if ( input - > dim ( ) = = 5 ) <nl> + { <nl> + nbatch = input - > size ( 0 ) ; <nl> + dimt + + ; <nl> + dimw + + ; <nl> + dimh + + ; <nl> + } <nl> + <nl> + / * sizes * / <nl> + nslices = input - > size ( dimt - 1 ) ; <nl> + iT = input - > size ( dimt ) ; <nl> + iH = input - > size ( dimh ) ; <nl> + iW = input - > size ( dimw ) ; <nl> + <nl> + / * get contiguous input * / <nl> + input = THTensor_ ( newContiguous ) ( input ) ; <nl> + indices = THIndexTensor_ ( newContiguous ) ( indices ) ; <nl> + <nl> + / * resize output * / <nl> + if ( input - > dim ( ) = = 4 ) <nl> + { <nl> + THTensor_ ( resize4d ) ( output , nslices , oT , oH , oW ) ; <nl> + THTensor_ ( zero ) ( output ) ; <nl> + <nl> + input_data = input - > data < scalar_t > ( ) ; <nl> + output_data = output - > data < scalar_t > ( ) ; <nl> + indices_data = THIndexTensor_ ( data ) ( indices ) ; <nl> + <nl> + THNN_ ( VolumetricMaxUnpooling_updateOutput_frame ) ( <nl> + input_data , output_data , <nl> + indices_data , <nl> + nslices , <nl> + iT , iW , iH , <nl> + oT , oW , oH <nl> + ) ; <nl> + } <nl> + else <nl> + { <nl> + int p ; <nl> + <nl> + THTensor_ ( resize5d ) ( output , nbatch , nslices , oT , oH , oW ) ; <nl> + THTensor_ ( zero ) ( output ) ; <nl> + <nl> + input_data = input - > data < scalar_t > ( ) ; <nl> + output_data = output - > data < scalar_t > ( ) ; <nl> + indices_data = THIndexTensor_ ( data ) ( indices ) ; <nl> + <nl> + for ( p = 0 ; p < nbatch ; p + + ) <nl> + { <nl> + THNN_ ( VolumetricMaxUnpooling_updateOutput_frame ) ( <nl> + input_data + p * nslices * iT * iW * iH , <nl> + output_data + p * nslices * oT * oW * oH , <nl> + indices_data + p * nslices * iT * iW * iH , <nl> + nslices , <nl> + iT , iW , iH , <nl> + oT , oW , oH <nl> + ) ; <nl> + } <nl> + } <nl> + <nl> + / * cleanup * / <nl> + c10 : : raw : : intrusive_ptr : : decref ( input ) ; <nl> + THIndexTensor_ ( free ) ( indices ) ; <nl> + } <nl> + <nl> + static void THNN_ ( VolumetricMaxUnpooling_updateGradInput_frame ) ( <nl> + scalar_t * gradInput_p , <nl> + scalar_t * gradOutput_p , <nl> + THIndex_t * ind_p , <nl> + int nslices , <nl> + int iT , <nl> + int iW , <nl> + int iH , <nl> + int oT , <nl> + int oW , <nl> + int oH ) <nl> + { <nl> + at : : parallel_for ( 0 , nslices , 0 , [ & ] ( int64_t start , int64_t end ) { <nl> + for ( auto k = start ; k < end ; k + + ) <nl> + { <nl> + scalar_t * gradInput_p_k = gradInput_p + k * iT * iH * iW ; <nl> + scalar_t * gradOutput_p_k = gradOutput_p + k * oT * oH * oW ; <nl> + THIndex_t * ind_p_k = ind_p + k * iT * iH * iW ; <nl> + <nl> + int t , i , j , index ; <nl> + THIndex_t maxp ; <nl> + for ( t = 0 ; t < iT ; t + + ) <nl> + { <nl> + for ( i = 0 ; i < iH ; i + + ) <nl> + { <nl> + for ( j = 0 ; j < iW ; j + + ) <nl> + { <nl> + index = t * iH * iW + i * iW + j ; <nl> + maxp = ind_p_k [ index ] ; / * retrieve position of max * / <nl> + if ( maxp < 0 | | maxp > = oT * oH * oW ) <nl> + { <nl> + THError ( " invalid max index % ld , oT = % d , oW = % d , oH = % d " , maxp , oT , oW , oH ) ; <nl> + } <nl> + gradInput_p_k [ index ] = gradOutput_p_k [ maxp ] ; / * update gradient * / <nl> + } <nl> + } <nl> + } <nl> + } <nl> + } ) ; <nl> + } <nl> + <nl> + void THNN_ ( VolumetricMaxUnpooling_updateGradInput ) ( <nl> + THNNState * state , <nl> + THTensor * input , <nl> + THTensor * gradOutput , <nl> + THTensor * gradInput , <nl> + THIndexTensor * indices , <nl> + int oT , <nl> + int oW , <nl> + int oH , <nl> + int dT , <nl> + int dW , <nl> + int dH , <nl> + int pT , <nl> + int pW , <nl> + int pH ) <nl> + { <nl> + int dimw = 3 ; <nl> + int dimh = 2 ; <nl> + int dimt = 1 ; <nl> + int nbatch = 1 ; <nl> + int nslices ; <nl> + int iT ; <nl> + int iH ; <nl> + int iW ; <nl> + scalar_t * gradInput_data ; <nl> + scalar_t * gradOutput_data ; <nl> + THIndex_t * indices_data ; <nl> + <nl> + THNN_ ( VolumetricMaxUnpooling_shapeCheck ) ( <nl> + state , input , gradOutput , indices , <nl> + oT , oW , oH , dT , dW , dH , pT , pW , pH ) ; <nl> + <nl> + / / TODO : check gradOutput shape <nl> + / * get contiguous gradOutput * / <nl> + gradOutput = THTensor_ ( newContiguous ) ( gradOutput ) ; <nl> + indices = THIndexTensor_ ( newContiguous ) ( indices ) ; <nl> + <nl> + / * resize * / <nl> + THTensor_ ( resizeAs ) ( gradInput , input ) ; <nl> + THTensor_ ( zero ) ( gradInput ) ; <nl> + <nl> + if ( input - > dim ( ) = = 5 ) <nl> + { <nl> + nbatch = input - > size ( 0 ) ; <nl> + dimt + + ; <nl> + dimw + + ; <nl> + dimh + + ; <nl> + } <nl> + <nl> + / * sizes * / <nl> + nslices = input - > size ( dimt - 1 ) ; <nl> + iT = input - > size ( dimt ) ; <nl> + iH = input - > size ( dimh ) ; <nl> + iW = input - > size ( dimw ) ; <nl> + <nl> + / * get raw pointers * / <nl> + gradInput_data = gradInput - > data < scalar_t > ( ) ; <nl> + gradOutput_data = gradOutput - > data < scalar_t > ( ) ; <nl> + indices_data = THIndexTensor_ ( data ) ( indices ) ; <nl> + <nl> + / * backprop * / <nl> + if ( input - > dim ( ) = = 4 ) <nl> + { <nl> + THNN_ ( VolumetricMaxUnpooling_updateGradInput_frame ) ( <nl> + gradInput_data , gradOutput_data , <nl> + indices_data , <nl> + nslices , <nl> + iT , iW , iH , <nl> + oT , oW , oH <nl> + ) ; <nl> + } <nl> + else <nl> + { <nl> + int p ; <nl> + for ( p = 0 ; p < nbatch ; p + + ) <nl> + { <nl> + THNN_ ( VolumetricMaxUnpooling_updateGradInput_frame ) ( <nl> + gradInput_data + p * nslices * iT * iW * iH , <nl> + gradOutput_data + p * nslices * oT * oW * oH , <nl> + indices_data + p * nslices * iT * iW * iH , <nl> + nslices , <nl> + iT , iW , iH , <nl> + oT , oW , oH <nl> + ) ; <nl> + } <nl> + } <nl> + <nl> + / * cleanup * / <nl> + c10 : : raw : : intrusive_ptr : : decref ( gradOutput ) ; <nl> + THIndexTensor_ ( free ) ( indices ) ; <nl> + } <nl> + <nl> + # endif <nl> mmm a / aten / src / THNN / init . cpp <nl> ppp b / aten / src / THNN / init . cpp <nl> <nl> # include < THNN / generic / SpatialAveragePooling . c > <nl> # include < TH / THGenerateFloatTypes . h > <nl> <nl> + # include < THNN / generic / SpatialMaxUnpooling . c > <nl> + # include < TH / THGenerateFloatTypes . h > <nl> + <nl> # include < THNN / generic / VolumetricAveragePooling . c > <nl> # include < TH / THGenerateFloatTypes . h > <nl> <nl> <nl> # include < THNN / generic / VolumetricDilatedConvolution . c > <nl> # include < TH / THGenerateFloatTypes . h > <nl> <nl> + # include < THNN / generic / VolumetricMaxUnpooling . c > <nl> + # include < TH / THGenerateFloatTypes . h > <nl> + <nl> # include < THNN / generic / SpatialClassNLLCriterion . c > <nl> # include < TH / THGenerateFloatTypes . h > <nl> mmm a / torch / nn / _functions / thnn / auto . py <nl> ppp b / torch / nn / _functions / thnn / auto . py <nl> def _generate_function_classes ( scope_dict ) : <nl> name_remap = { <nl> ' TemporalConvolution ' : ' Conv1d ' , <nl> ' SpatialDilatedConvolution ' : ' DilatedConv2d ' , <nl> + ' SpatialMaxUnpooling ' : ' MaxUnpool2d ' , <nl> + ' VolumetricMaxUnpooling ' : ' MaxUnpool3d ' , <nl> ' HardTanh ' : ' Hardtanh ' , <nl> ' HardShrink ' : ' Hardshrink ' , <nl> ' SoftPlus ' : ' Softplus ' , <nl>
|
Revert D15632268 : [ pytorch ] [ PR ] Continuation of Port max_unpool1d , max_unpool2d and max_unpool3d to ATen
|
pytorch/pytorch
|
7a1c9076acd4a4fe20a8817ec3bfd6c68ab370a8
|
2019-06-05T18:41:50Z
|
mmm a / include / swift / AST / DiagnosticEngine . h <nl> ppp b / include / swift / AST / DiagnosticEngine . h <nl> namespace swift { <nl> / / / <nl> / / / Each of the diagnostics described in Diagnostics . def has an entry in <nl> / / / this enumeration type that uniquely identifies it . <nl> - enum class DiagID : unsigned { <nl> - # define DIAG ( KIND , ID , Category , Options , Text , Signature ) ID , <nl> - # include " Diagnostics . def " <nl> - } ; <nl> + enum class DiagID : uint32_t ; <nl> <nl> / / / \ brief Describes a diagnostic along with its argument types . <nl> / / / <nl> namespace swift { <nl> ArrayRef < CharSourceRange > getRanges ( ) const { return Ranges ; } <nl> ArrayRef < FixIt > getFixIts ( ) const { return FixIts ; } <nl> <nl> + / / / Returns true if this object represents a particular diagnostic . <nl> + / / / <nl> + / / / \ code <nl> + / / / someDiag . is ( diag : : invalid_diagnostic ) <nl> + / / / \ endcode <nl> + template < typename . . . OtherArgTypes > <nl> + bool is ( Diag < OtherArgTypes . . . > Other ) const { <nl> + return ID = = Other . ID ; <nl> + } <nl> + <nl> void addRange ( CharSourceRange R ) { <nl> Ranges . push_back ( R ) ; <nl> } <nl> mmm a / lib / AST / DiagnosticList . cpp <nl> ppp b / lib / AST / DiagnosticList . cpp <nl> <nl> # include " swift / AST / Diagnostics . h " <nl> using namespace swift ; <nl> <nl> + enum class swift : : DiagID : uint32_t { <nl> + # define DIAG ( KIND , ID , Category , Options , Text , Signature ) ID , <nl> + # include " swift / AST / Diagnostics . def " <nl> + } ; <nl> + <nl> / / Define all of the diagnostic objects and initialize them with their <nl> / / diagnostic IDs . <nl> # define DIAG ( KIND , ID , Category , Options , Text , Signature ) \ <nl> mmm a / lib / Parse / ParseDecl . cpp <nl> ppp b / lib / Parse / ParseDecl . cpp <nl> static ParserStatus parseIdentifierDeclName ( Parser & P , Identifier & Result , <nl> return makeParserSuccess ( ) ; <nl> <nl> default : <nl> - if ( D . getID ( ) ! = DiagID : : invalid_diagnostic ) <nl> + if ( ! D . is ( diag : : invalid_diagnostic ) ) <nl> P . diagnose ( P . Tok , D ) ; <nl> if ( P . Tok . isKeyword ( ) & & <nl> ( P . peekToken ( ) . is ( ResyncT1 ) | | P . peekToken ( ) . is ( ResyncT2 ) | | <nl>
|
Move diagnostics enum out - of - line .
|
apple/swift
|
69a8860a536f55189b810f23b5747e62af0ebafc
|
2014-01-17T00:15:10Z
|
mmm a / xbmc / cores / VideoPlayer / DVDCodecs / Video / DVDVideoCodecAndroidMediaCodec . cpp <nl> ppp b / xbmc / cores / VideoPlayer / DVDCodecs / Video / DVDVideoCodecAndroidMediaCodec . cpp <nl> void CDVDVideoCodecAndroidMediaCodec : : ConfigureOutputFormat ( CJNIMediaFormat * med <nl> m_videobuffer . iDisplayHeight = crop_bottom + 1 - crop_top ; <nl> if ( m_hints . aspect > 1 . 0 & & ! m_hints . forced_aspect ) <nl> { <nl> - m_videobuffer . iDisplayWidth = ( ( int ) lrint ( m_videobuffer . iHeight * m_hints . aspect ) ) & - 3 ; <nl> + m_videobuffer . iDisplayWidth = ( ( int ) lrint ( m_videobuffer . iHeight * m_hints . aspect ) ) & ~ 3 ; <nl> if ( m_videobuffer . iDisplayWidth > m_videobuffer . iWidth ) <nl> { <nl> m_videobuffer . iDisplayWidth = m_videobuffer . iWidth ; <nl> - m_videobuffer . iDisplayHeight = ( ( int ) lrint ( m_videobuffer . iWidth / m_hints . aspect ) ) & - 3 ; <nl> + m_videobuffer . iDisplayHeight = ( ( int ) lrint ( m_videobuffer . iWidth / m_hints . aspect ) ) & ~ 3 ; <nl> } <nl> } <nl> <nl>
|
Merge pull request from MartijnKaijser / droid_bp_v17
|
xbmc/xbmc
|
e164dd12d193722d9479060dc9e15992b8bf0a0e
|
2016-03-27T07:38:40Z
|
mmm a / src / rpc / connectivity / connectivity . cc <nl> ppp b / src / rpc / connectivity / connectivity . cc <nl> cluster_t : : cluster_t ( int port ) : <nl> routing_table [ me ] = address_t ( ip_address_t : : us ( ) , port ) ; <nl> } <nl> <nl> - cluster_t : : cluster_t ( int port , peer_id_t id_from_last_time ) : <nl> - listener ( port , boost : : bind ( & connectivity : : cluster_t : : on_new_connection , this , _1 ) ) , <nl> - me ( id_from_last_time ) <nl> - { <nl> - routing_table [ me ] = address_t ( ip_address_t : : us ( ) , port ) ; <nl> - } <nl> - <nl> cluster_t : : ~ cluster_t ( ) { <nl> shutdown_cond . pulse ( ) ; <nl> shutdown_semaphore . drain ( ) ; <nl> mmm a / src / rpc / connectivity / connectivity . hpp <nl> ppp b / src / rpc / connectivity / connectivity . hpp <nl> struct cluster_t : <nl> / * Creating a new cluster node , and connecting one cluster to another <nl> cluster * / <nl> cluster_t ( int port ) ; <nl> - cluster_t ( int port , peer_id_t id_from_last_time ) ; <nl> ~ cluster_t ( ) ; <nl> void join ( address_t ) ; <nl> <nl>
|
Got rid of one form of cluster_t constructor .
|
rethinkdb/rethinkdb
|
f48332fb6bad265a9e2893052277c13baefc0ec7
|
2011-07-15T23:28:50Z
|
mmm a / arangod / Aql / ExecutionBlock . cpp <nl> ppp b / arangod / Aql / ExecutionBlock . cpp <nl> EnumerateCollectionBlock : : EnumerateCollectionBlock ( ExecutionEngine * engine , <nl> <nl> auto trxCollection = _trx - > trxCollection ( _collection - > cid ( ) ) ; <nl> if ( trxCollection ! = nullptr ) { <nl> - _trx - > orderBarrier ( trxCollection ) ; <nl> + _trx - > orderDitch ( trxCollection ) ; <nl> } <nl> <nl> if ( _random ) { <nl> IndexRangeBlock : : IndexRangeBlock ( ExecutionEngine * engine , <nl> auto trxCollection = _trx - > trxCollection ( _collection - > cid ( ) ) ; <nl> <nl> if ( trxCollection ! = nullptr ) { <nl> - _trx - > orderBarrier ( trxCollection ) ; <nl> + _trx - > orderDitch ( trxCollection ) ; <nl> } <nl> <nl> std : : vector < std : : vector < RangeInfo > > const & orRanges = en - > _ranges ; <nl> int IndexRangeBlock : : initialize ( ) { <nl> int res = ExecutionBlock : : initialize ( ) ; <nl> <nl> if ( res = = TRI_ERROR_NO_ERROR ) { <nl> - if ( _trx - > orderBarrier ( _trx - > trxCollection ( _collection - > cid ( ) ) ) = = nullptr ) { <nl> + if ( _trx - > orderDitch ( _trx - > trxCollection ( _collection - > cid ( ) ) ) = = nullptr ) { <nl> res = TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> } <nl> ModificationBlock : : ModificationBlock ( ExecutionEngine * engine , <nl> <nl> auto trxCollection = _trx - > trxCollection ( _collection - > cid ( ) ) ; <nl> if ( trxCollection ! = nullptr ) { <nl> - _trx - > orderBarrier ( trxCollection ) ; <nl> + _trx - > orderDitch ( trxCollection ) ; <nl> } <nl> <nl> auto const & registerPlan = ep - > getRegisterPlan ( ) - > varInfo ; <nl> mmm a / arangod / CMakeLists . txt <nl> ppp b / arangod / CMakeLists . txt <nl> add_executable ( <nl> V8Server / v8 - vocindex . cpp <nl> V8Server / v8 - wrapshapedjson . cpp <nl> VocBase / auth . cpp <nl> - VocBase / barrier . cpp <nl> VocBase / cleanup . cpp <nl> VocBase / collection . cpp <nl> VocBase / compactor . cpp <nl> VocBase / datafile . cpp <nl> + VocBase / Ditch . cpp <nl> VocBase / document - collection . cpp <nl> VocBase / ExampleMatcher . cpp <nl> VocBase / edge - collection . cpp <nl> mmm a / arangod / Makefile . files <nl> ppp b / arangod / Makefile . files <nl> arangod_libarangod_a_SOURCES = \ <nl> arangod / V8Server / v8 - util . cpp \ <nl> arangod / V8Server / v8 - wrapshapedjson . cpp \ <nl> arangod / VocBase / auth . cpp \ <nl> - arangod / VocBase / barrier . cpp \ <nl> arangod / VocBase / cleanup . cpp \ <nl> arangod / VocBase / collection . cpp \ <nl> arangod / VocBase / compactor . cpp \ <nl> arangod / VocBase / datafile . cpp \ <nl> + arangod / VocBase / Ditch . cpp \ <nl> arangod / VocBase / document - collection . cpp \ <nl> arangod / VocBase / ExampleMatcher . cpp \ <nl> arangod / VocBase / edge - collection . cpp \ <nl> mmm a / arangod / RestHandler / RestDocumentHandler . cpp <nl> ppp b / arangod / RestHandler / RestDocumentHandler . cpp <nl> bool RestDocumentHandler : : readSingleDocument ( bool generateBody ) { <nl> / / outside read transaction <nl> / / . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <nl> <nl> - TRI_ASSERT ( trx . hasBarrier ( ) ) ; <nl> + TRI_ASSERT ( trx . hasDitch ( ) ) ; <nl> <nl> if ( res ! = TRI_ERROR_NO_ERROR ) { <nl> generateTransactionError ( collectionName , res , ( TRI_voc_key_t ) key . c_str ( ) ) ; <nl> bool RestDocumentHandler : : modifyDocument ( bool isPatch ) { <nl> <nl> string const & & cidString = StringUtils : : itoa ( document - > _info . _planId ) ; <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_FreeJson ( TRI_UNKNOWN_MEM_ZONE , json ) ; <nl> generateTransactionError ( collectionName , TRI_ERROR_OUT_OF_MEMORY ) ; <nl> return false ; <nl> mmm a / arangod / Utils / AqlTransaction . h <nl> ppp b / arangod / Utils / AqlTransaction . h <nl> namespace triagens { <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barrier <nl> + / / / @ brief ditch <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - TRI_barrier_t * barrier ( TRI_voc_cid_t cid ) { <nl> + triagens : : arango : : DocumentDitch * ditch ( TRI_voc_cid_t cid ) { <nl> TRI_transaction_collection_t * trxColl = this - > trxCollection ( cid ) ; <nl> - return trxColl - > _barrier ; <nl> + return trxColl - > _ditch ; <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> mmm a / arangod / Utils / CollectionExport . cpp <nl> ppp b / arangod / Utils / CollectionExport . cpp <nl> <nl> # include " Utils / CollectionGuard . h " <nl> # include " Utils / CollectionReadLocker . h " <nl> # include " Utils / transactions . h " <nl> - # include " VocBase / barrier . h " <nl> # include " VocBase / compactor . h " <nl> + # include " VocBase / Ditch . h " <nl> # include " VocBase / vocbase . h " <nl> <nl> using namespace triagens : : arango ; <nl> CollectionExport : : CollectionExport ( TRI_vocbase_t * vocbase , <nl> Restrictions const & restrictions ) <nl> : _guard ( nullptr ) , <nl> _document ( nullptr ) , <nl> - _barrier ( nullptr ) , <nl> + _ditch ( nullptr ) , <nl> _name ( name ) , <nl> _resolver ( vocbase ) , <nl> _restrictions ( restrictions ) , <nl> CollectionExport : : CollectionExport ( TRI_vocbase_t * vocbase , <nl> CollectionExport : : ~ CollectionExport ( ) { <nl> delete _documents ; <nl> <nl> - if ( _barrier ! = nullptr ) { <nl> - TRI_FreeBarrier ( _barrier ) ; <nl> + if ( _ditch ! = nullptr ) { <nl> + _ditch - > ditches ( ) - > freeDocumentDitch ( _ditch , false ) ; <nl> } <nl> <nl> delete _guard ; <nl> void CollectionExport : : run ( uint64_t maxWaitTime , size_t limit ) { <nl> usleep ( 5000 ) ; <nl> } <nl> <nl> - / / create a barrier under the compaction lock <nl> - _barrier = TRI_CreateBarrierElement ( & _document - > _barrierList , false ) ; <nl> + / / create a ditch under the compaction lock <nl> + _ditch = _document - > ditches ( ) - > createDocumentDitch ( false , __FILE__ , __LINE__ ) ; <nl> <nl> / / release the lock <nl> TRI_UnlockCompactorVocBase ( _document - > _vocbase ) ; <nl> <nl> - / / now we either have a barrier or not <nl> - if ( _barrier = = nullptr ) { <nl> + / / now we either have a ditch or not <nl> + if ( _ditch = = nullptr ) { <nl> THROW_ARANGO_EXCEPTION ( TRI_ERROR_OUT_OF_MEMORY ) ; <nl> } <nl> <nl> mmm a / arangod / Utils / CollectionExport . h <nl> ppp b / arangod / Utils / CollectionExport . h <nl> <nl> # include " Utils / CollectionNameResolver . h " <nl> # include " VocBase / voc - types . h " <nl> <nl> - struct TRI_barrier_s ; <nl> struct TRI_document_collection_t ; <nl> struct TRI_vocbase_s ; <nl> <nl> namespace triagens { <nl> namespace arango { <nl> <nl> class CollectionGuard ; <nl> + class DocumentDitch ; <nl> <nl> / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> / / - - SECTION - - class CollectionExport <nl> namespace triagens { <nl> <nl> triagens : : arango : : CollectionGuard * _guard ; <nl> struct TRI_document_collection_t * _document ; <nl> - struct TRI_barrier_s * _barrier ; <nl> + triagens : : arango : : DocumentDitch * _ditch ; <nl> std : : string const _name ; <nl> triagens : : arango : : CollectionNameResolver _resolver ; <nl> Restrictions _restrictions ; <nl> mmm a / arangod / Utils / SingleCollectionTransaction . h <nl> ppp b / arangod / Utils / SingleCollectionTransaction . h <nl> <nl> # include " Utils / Transaction . h " <nl> # include " Utils / TransactionContext . h " <nl> <nl> - # include " VocBase / barrier . h " <nl> + # include " VocBase / Ditch . h " <nl> # include " VocBase / document - collection . h " <nl> # include " VocBase / server . h " <nl> # include " VocBase / transaction . h " <nl> namespace triagens { <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief return the barrier for the collection <nl> - / / / note that the barrier must already exist <nl> + / / / @ brief return the ditch for the collection <nl> + / / / note that the ditch must already exist <nl> / / / furthermore note that we have two calling conventions because this <nl> / / / is called in two different ways <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - inline TRI_barrier_t * barrier ( ) { <nl> + inline triagens : : arango : : DocumentDitch * ditch ( ) { <nl> TRI_transaction_collection_t * trxCollection = this - > trxCollection ( ) ; <nl> - TRI_ASSERT ( trxCollection - > _barrier ! = nullptr ) ; <nl> + TRI_ASSERT ( trxCollection - > _ditch ! = nullptr ) ; <nl> <nl> - return trxCollection - > _barrier ; <nl> + return trxCollection - > _ditch ; <nl> } <nl> <nl> - inline TRI_barrier_t * barrier ( TRI_voc_cid_t ) { <nl> - return barrier ( ) ; <nl> + inline triagens : : arango : : DocumentDitch * ditch ( TRI_voc_cid_t ) { <nl> + return ditch ( ) ; <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief whether or not a barrier is available for a collection <nl> + / / / @ brief whether or not a ditch is available for a collection <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - inline bool hasBarrier ( ) { <nl> + inline bool hasDitch ( ) { <nl> TRI_transaction_collection_t * trxCollection = this - > trxCollection ( ) ; <nl> <nl> - return ( trxCollection - > _barrier ! = nullptr ) ; <nl> + return ( trxCollection - > _ditch ! = nullptr ) ; <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> mmm a / arangod / Utils / Transaction . h <nl> ppp b / arangod / Utils / Transaction . h <nl> <nl> # include " Basics / tri - strings . h " <nl> # include " Cluster / ServerState . h " <nl> # include " Indexes / PrimaryIndex . h " <nl> - # include " VocBase / barrier . h " <nl> # include " VocBase / collection . h " <nl> + # include " VocBase / Ditch . h " <nl> # include " VocBase / document - collection . h " <nl> # include " VocBase / edge - collection . h " <nl> # include " VocBase / transaction . h " <nl> namespace triagens { <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief order a barrier for a collection <nl> + / / / @ brief order a ditch for a collection <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - TRI_barrier_t * orderBarrier ( TRI_transaction_collection_t * trxCollection ) { <nl> + triagens : : arango : : DocumentDitch * orderDitch ( TRI_transaction_collection_t * trxCollection ) { <nl> TRI_ASSERT ( _trx ! = nullptr ) ; <nl> TRI_ASSERT ( getStatus ( ) = = TRI_TRANSACTION_RUNNING ) ; <nl> TRI_ASSERT ( trxCollection - > _collection ! = nullptr ) ; <nl> namespace triagens { <nl> TRI_document_collection_t * document = trxCollection - > _collection - > _collection ; <nl> TRI_ASSERT ( document ! = nullptr ) ; <nl> <nl> - if ( trxCollection - > _barrier = = nullptr ) { <nl> - trxCollection - > _barrier = TRI_CreateBarrierElement ( & document - > _barrierList , true ) ; <nl> + if ( trxCollection - > _ditch = = nullptr ) { <nl> + trxCollection - > _ditch = document - > ditches ( ) - > createDocumentDitch ( true , __FILE__ , __LINE__ ) ; <nl> } <nl> else { <nl> - / / tell everyone else this barrier is still in use , <nl> + / / tell everyone else this ditch is still in use , <nl> / / at least until the transaction is over <nl> - TRI_SetUsedByTransactionBarrierElement ( reinterpret_cast < TRI_barrier_blocker_t * > ( trxCollection - > _barrier ) ) ; <nl> + trxCollection - > _ditch - > setUsedByTransaction ( ) ; <nl> } <nl> <nl> - return trxCollection - > _barrier ; <nl> + return trxCollection - > _ditch ; <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> namespace triagens { <nl> return TRI_ERROR_NO_ERROR ; <nl> } <nl> <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> return TRI_ERROR_NO_ERROR ; <nl> } <nl> <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> return TRI_ERROR_ARANGO_SHAPER_FAILED ; <nl> } <nl> <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> <nl> TRI_ASSERT ( mptr ! = nullptr ) ; <nl> <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> mptr - > setDataPtr ( nullptr ) ; / / PROTECTED by trx in trxCollection <nl> } <nl> else { <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> auto primaryIndex = document - > primaryIndex ( ) - > internals ( ) ; <nl> <nl> if ( primaryIndex - > _nrUsed > 0 ) { <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> return res ; <nl> } <nl> <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> return TRI_ERROR_NO_ERROR ; <nl> } <nl> <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> return TRI_ERROR_NO_ERROR ; <nl> } <nl> <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> auto primaryIndex = document - > primaryIndex ( ) - > internals ( ) ; <nl> <nl> if ( primaryIndex - > _nrUsed > 0 ) { <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> <nl> TRI_doc_update_policy_t updatePolicy ( policy , expectedRevision , actualRevision ) ; <nl> <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> namespace triagens { <nl> <nl> std : : vector < std : : string > ids ; <nl> <nl> - if ( orderBarrier ( trxCollection ) = = nullptr ) { <nl> + if ( orderDitch ( trxCollection ) = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> mmm a / arangod / V8Server / v8 - collection . cpp <nl> ppp b / arangod / V8Server / v8 - collection . cpp <nl> static void DocumentVocbaseCol ( bool useCollection , <nl> TRI_V8_THROW_EXCEPTION ( res ) ; <nl> } <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> static void DocumentVocbaseCol ( bool useCollection , <nl> res = trx . read ( & document , key . get ( ) ) ; <nl> res = trx . finish ( res ) ; <nl> <nl> - TRI_ASSERT ( trx . hasBarrier ( ) ) ; <nl> + TRI_ASSERT ( trx . hasDitch ( ) ) ; <nl> <nl> if ( res = = TRI_ERROR_NO_ERROR ) { <nl> result = TRI_WrapShapedJson < SingleCollectionReadOnlyTransaction > ( isolate , trx , col - > _cid , document . getDataPtr ( ) ) ; <nl> static void ExistsVocbaseCol ( bool useCollection , <nl> TRI_V8_THROW_EXCEPTION ( res ) ; <nl> } <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> static void ReplaceVocbaseCol ( bool useCollection , <nl> <nl> TRI_doc_mptr_copy_t mptr ; <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> static void InsertVocbaseCol ( TRI_vocbase_col_t * col , <nl> <nl> / / fetch a barrier so nobody unlinks datafiles with the shapes & attributes we might <nl> / / need for this document <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> static void UpdateVocbaseCol ( bool useCollection , <nl> TRI_V8_THROW_EXCEPTION ( res ) ; <nl> } <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_FreeJson ( TRI_UNKNOWN_MEM_ZONE , json ) ; <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> static void InsertEdgeCol ( TRI_vocbase_col_t * col , <nl> <nl> / / fetch a barrier so nobody unlinks datafiles with the shapes & attributes we might <nl> / / need for this document <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> static void JS_TruncateVocbaseCol ( const v8 : : FunctionCallbackInfo < v8 : : Value > & ar <nl> TRI_V8_THROW_EXCEPTION ( res ) ; <nl> } <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> mmm a / arangod / V8Server / v8 - query . cpp <nl> ppp b / arangod / V8Server / v8 - query . cpp <nl> static void ExecuteSkiplistQuery ( const v8 : : FunctionCallbackInfo < v8 : : Value > & arg <nl> TRI_voc_size_t count = 0 ; <nl> bool error = false ; <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_FreeSkiplistIterator ( skiplistIterator ) ; <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> static int StoreGeoResult ( v8 : : Isolate * isolate , <nl> geo_coordinate_distance_t * tmp ; <nl> uint32_t i ; <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> GeoIndex_CoordinatesFree ( cors ) ; <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> static void EdgesQuery ( TRI_edge_direction_e direction , <nl> <nl> bool error = false ; <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> static void JS_AllQuery ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) { <nl> } <nl> <nl> res = trx . read ( docs , skip , limit , & total ) ; <nl> - TRI_ASSERT ( docs . empty ( ) | | trx . hasBarrier ( ) ) ; <nl> + TRI_ASSERT ( docs . empty ( ) | | trx . hasDitch ( ) ) ; <nl> <nl> res = trx . finish ( res ) ; <nl> <nl> static void JS_NthQuery ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) { <nl> } <nl> <nl> res = trx . readPartition ( docs , partitionId , numberOfPartitions , & total ) ; <nl> - TRI_ASSERT ( docs . empty ( ) | | trx . hasBarrier ( ) ) ; <nl> + TRI_ASSERT ( docs . empty ( ) | | trx . hasDitch ( ) ) ; <nl> <nl> res = trx . finish ( res ) ; <nl> <nl> static void JS_Nth2Query ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) { <nl> } <nl> <nl> res = trx . readPartition ( docs , partitionId , numberOfPartitions , & total ) ; <nl> - TRI_ASSERT ( docs . empty ( ) | | trx . hasBarrier ( ) ) ; <nl> + TRI_ASSERT ( docs . empty ( ) | | trx . hasDitch ( ) ) ; <nl> <nl> res = trx . finish ( res ) ; <nl> <nl> static void JS_OffsetQuery ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) { <nl> } <nl> <nl> res = trx . readOffset ( docs , internalSkip , batchSize , skip , limit , & total ) ; <nl> - TRI_ASSERT ( docs . empty ( ) | | trx . hasBarrier ( ) ) ; <nl> + TRI_ASSERT ( docs . empty ( ) | | trx . hasDitch ( ) ) ; <nl> <nl> res = trx . finish ( res ) ; <nl> <nl> static void JS_AnyQuery ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) { <nl> } <nl> <nl> res = trx . readRandom ( & document ) ; <nl> - TRI_ASSERT ( document . getDataPtr ( ) = = nullptr | | trx . hasBarrier ( ) ) ; <nl> + TRI_ASSERT ( document . getDataPtr ( ) = = nullptr | | trx . hasDitch ( ) ) ; <nl> <nl> res = trx . finish ( res ) ; <nl> <nl> static void JS_ByExampleQuery ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) <nl> <nl> / / extract sub - documents <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> static void ByExampleHashIndexQuery ( SingleCollectionReadOnlyTransaction & trx , <nl> <nl> v8 : : Handle < v8 : : Object > example = args [ 1 ] - > ToObject ( ) ; <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> static void JS_ChecksumCollection ( const v8 : : FunctionCallbackInfo < v8 : : Value > & ar <nl> <nl> TRI_document_collection_t * document = trx . documentCollection ( ) ; <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> static void FulltextQuery ( SingleCollectionReadOnlyTransaction & trx , <nl> TRI_V8_THROW_EXCEPTION_INTERNAL ( " internal error in fulltext index query " ) ; <nl> } <nl> <nl> - if ( trx . orderBarrier ( trx . trxCollection ( ) ) = = nullptr ) { <nl> + if ( trx . orderDitch ( trx . trxCollection ( ) ) = = nullptr ) { <nl> TRI_V8_THROW_EXCEPTION_MEMORY ( ) ; <nl> } <nl> <nl> mmm a / arangod / V8Server / v8 - vocbase . cpp <nl> ppp b / arangod / V8Server / v8 - vocbase . cpp <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> # include " v8 - vocbaseprivate . h " <nl> - # include " v8 - wrapshapedjson . h " <nl> - # include " v8 - replication . h " <nl> - # include " v8 - vocindex . h " <nl> - # include " v8 - collection . h " <nl> - # include " v8 - voccursor . h " <nl> - # include " V8Traverser . h " <nl> - <nl> # include " Aql / Query . h " <nl> # include " Aql / QueryList . h " <nl> # include " Aql / QueryRegistry . h " <nl> # include " Basics / Utf8Helper . h " <nl> - <nl> # include " Basics / conversions . h " <nl> # include " Basics / json - utilities . h " <nl> # include " Basics / MutexLocker . h " <nl> + # include " Cluster / AgencyComm . h " <nl> + # include " Cluster / ClusterComm . h " <nl> + # include " Cluster / ClusterInfo . h " <nl> + # include " Cluster / ClusterMethods . h " <nl> + # include " Cluster / ServerState . h " <nl> + # include " HttpServer / ApplicationEndpointServer . h " <nl> + # include " RestServer / ConsoleThread . h " <nl> + # include " RestServer / VocbaseContext . h " <nl> # include " Utils / transactions . h " <nl> # include " Utils / V8ResolverGuard . h " <nl> - <nl> - # include " HttpServer / ApplicationEndpointServer . h " <nl> + # include " V8 / JSLoader . h " <nl> # include " V8 / v8 - conv . h " <nl> # include " V8 / v8 - utils . h " <nl> # include " V8 / V8LineEditor . h " <nl> - # include " Wal / LogfileManager . h " <nl> - <nl> + # include " V8Server / v8 - collection . h " <nl> + # include " V8Server / v8 - replication . h " <nl> + # include " V8Server / v8 - voccursor . h " <nl> + # include " V8Server / v8 - vocindex . h " <nl> + # include " V8Server / v8 - wrapshapedjson . h " <nl> + # include " V8Server / V8Traverser . h " <nl> # include " VocBase / auth . h " <nl> # include " VocBase / key - generator . h " <nl> - # include " v8 . h " <nl> - # include " V8 / JSLoader . h " <nl> - <nl> - # include " Cluster / AgencyComm . h " <nl> - # include " Cluster / ClusterComm . h " <nl> - # include " Cluster / ClusterInfo . h " <nl> - # include " Cluster / ClusterMethods . h " <nl> - # include " Cluster / ServerState . h " <nl> + # include " Wal / LogfileManager . h " <nl> <nl> - # include " unicode / timezone . h " <nl> - # include " unicode / smpdtfmt . h " <nl> - # include " unicode / dtfmtsym . h " <nl> + # include < unicode / timezone . h > <nl> + # include < unicode / smpdtfmt . h > <nl> + # include < unicode / dtfmtsym . h > <nl> <nl> - # include " RestServer / ConsoleThread . h " <nl> - # include " RestServer / VocbaseContext . h " <nl> + # include < v8 . h > <nl> <nl> using namespace std ; <nl> using namespace triagens : : basics ; <nl> int32_t const WRP_VOCBASE_COL_TYPE = 2 ; <nl> / / - - SECTION - - private constants <nl> / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> <nl> - struct CollectionBarrierInfo { <nl> - TRI_barrier_t * barrier ; <nl> + struct CollectionDitchInfo { <nl> + triagens : : arango : : DocumentDitch * ditch ; <nl> TRI_transaction_collection_t * col ; <nl> <nl> - CollectionBarrierInfo ( <nl> - TRI_barrier_t * barrier , <nl> - TRI_transaction_collection_t * col <nl> - ) : barrier ( barrier ) , col ( col ) { } <nl> + CollectionDitchInfo ( triagens : : arango : : DocumentDitch * ditch , <nl> + TRI_transaction_collection_t * col ) <nl> + : ditch ( ditch ) , <nl> + col ( col ) { <nl> + } <nl> } ; <nl> <nl> / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> static void JS_Transaction ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) { <nl> break ; <nl> } <nl> <nl> - readCollections . push_back ( TRI_ObjectToString ( collection ) ) ; <nl> + readCollections . emplace_back ( TRI_ObjectToString ( collection ) ) ; <nl> } <nl> } <nl> else if ( collections - > Get ( TRI_V8_ASCII_STRING ( " read " ) ) - > IsString ( ) ) { <nl> - readCollections . push_back ( TRI_ObjectToString ( collections - > Get ( TRI_V8_ASCII_STRING ( " read " ) ) ) ) ; <nl> + readCollections . emplace_back ( TRI_ObjectToString ( collections - > Get ( TRI_V8_ASCII_STRING ( " read " ) ) ) ) ; <nl> } <nl> else { <nl> isValid = false ; <nl> static void JS_Transaction ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) { <nl> break ; <nl> } <nl> <nl> - writeCollections . push_back ( TRI_ObjectToString ( collection ) ) ; <nl> + writeCollections . emplace_back ( TRI_ObjectToString ( collection ) ) ; <nl> } <nl> } <nl> else if ( collections - > Get ( TRI_V8_ASCII_STRING ( " write " ) ) - > IsString ( ) ) { <nl> - writeCollections . push_back ( TRI_ObjectToString ( collections - > Get ( TRI_V8_ASCII_STRING ( " write " ) ) ) ) ; <nl> + writeCollections . emplace_back ( TRI_ObjectToString ( collections - > Get ( TRI_V8_ASCII_STRING ( " write " ) ) ) ) ; <nl> } <nl> else { <nl> isValid = false ; <nl> static v8 : : Local < v8 : : String > EdgeIdToString ( v8 : : Isolate * isolate , <nl> static v8 : : Handle < v8 : : Value > VertexIdToData ( v8 : : Isolate * isolate , <nl> CollectionNameResolver const * resolver , <nl> ExplicitTransaction * trx , <nl> - unordered_map < TRI_voc_cid_t , CollectionBarrierInfo > const & barriers , <nl> + unordered_map < TRI_voc_cid_t , CollectionDitchInfo > const & ditches , <nl> VertexId const & vertexId ) { <nl> - auto i = barriers . find ( vertexId . cid ) ; <nl> + auto i = ditches . find ( vertexId . cid ) ; <nl> <nl> - if ( i = = barriers . end ( ) ) { <nl> + if ( i = = ditches . end ( ) ) { <nl> v8 : : EscapableHandleScope scope ( isolate ) ; <nl> return scope . Escape < v8 : : Value > ( v8 : : Null ( isolate ) ) ; <nl> } <nl> static v8 : : Handle < v8 : : Value > VertexIdToData ( v8 : : Isolate * isolate , <nl> return scope . Escape < v8 : : Value > ( v8 : : Null ( isolate ) ) ; <nl> } <nl> <nl> - return TRI_WrapShapedJson ( isolate , resolver , i - > second . barrier , <nl> + return TRI_WrapShapedJson ( isolate , resolver , i - > second . ditch , <nl> vertexId . cid , i - > second . col - > _collection - > _collection , document . getDataPtr ( ) ) ; <nl> } <nl> <nl> static v8 : : Handle < v8 : : Value > VertexIdToData ( v8 : : Isolate * isolate , <nl> static v8 : : Handle < v8 : : Value > EdgeIdToData ( v8 : : Isolate * isolate , <nl> CollectionNameResolver const * resolver , <nl> ExplicitTransaction * trx , <nl> - unordered_map < TRI_voc_cid_t , CollectionBarrierInfo > const & barriers , <nl> + unordered_map < TRI_voc_cid_t , CollectionDitchInfo > const & ditches , <nl> EdgeId const & edgeId ) { <nl> / / EdgeId is a typedef of VertexId . <nl> - return VertexIdToData ( isolate , resolver , trx , barriers , edgeId ) ; <nl> + return VertexIdToData ( isolate , resolver , trx , ditches , edgeId ) ; <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> static void ExtractCidsFromPath ( TRI_vocbase_t * vocbase , <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief Request a barrier for the given collection <nl> + / / / @ brief Request a ditch for the given collection <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - static void AddBarrier ( ExplicitTransaction * trx , <nl> - TRI_voc_cid_t const & cid , <nl> - unordered_map < TRI_voc_cid_t , CollectionBarrierInfo > & barriers ) { <nl> - TRI_transaction_collection_t * dcol = trx - > trxCollection ( cid ) ; <nl> + static void AddDitch ( ExplicitTransaction * trx , <nl> + TRI_voc_cid_t const & cid , <nl> + unordered_map < TRI_voc_cid_t , CollectionDitchInfo > & ditches ) { <nl> + TRI_transaction_collection_t * col = trx - > trxCollection ( cid ) ; <nl> <nl> - TRI_barrier_t * barrier = trx - > orderBarrier ( dcol ) ; <nl> + auto ditch = trx - > orderDitch ( col ) ; <nl> <nl> - if ( barrier = = nullptr ) { <nl> + if ( ditch = = nullptr ) { <nl> throw TRI_ERROR_OUT_OF_MEMORY ; <nl> } <nl> <nl> - barriers . emplace ( cid , CollectionBarrierInfo ( barrier , dcol ) ) ; <nl> + ditches . emplace ( cid , CollectionDitchInfo ( ditch , col ) ) ; <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> / / / @ brief Start a new transaction for the given collections and request <nl> - / / / all necessary barriers . <nl> + / / / all necessary ditches . <nl> / / / The caller is responsible to finish and delete the transaction . <nl> / / / If this function throws the transaction is non - existent . <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> static ExplicitTransaction * BeginTransaction ( TRI_vocbase_t * vocbase , <nl> vector < TRI_voc_cid_t > const & readCollections , <nl> vector < TRI_voc_cid_t > const & writeCollections , <nl> CollectionNameResolver const * resolver , <nl> - unordered_map < TRI_voc_cid_t , CollectionBarrierInfo > & barriers ) { <nl> + unordered_map < TRI_voc_cid_t , CollectionDitchInfo > & ditches ) { <nl> <nl> / / IHHF isCoordinator <nl> double lockTimeout = ( double ) ( TRI_TRANSACTION_DEFAULT_LOCK_TIMEOUT / 1000000ULL ) ; <nl> static ExplicitTransaction * BeginTransaction ( TRI_vocbase_t * vocbase , <nl> } <nl> <nl> try { <nl> - / / Get all barriers at once <nl> + / / Get all ditches at once <nl> for ( auto const & it : readCollections ) { <nl> - AddBarrier ( trx , it , barriers ) ; <nl> + AddDitch ( trx , it , ditches ) ; <nl> } <nl> for ( auto const & it : writeCollections ) { <nl> - AddBarrier ( trx , it , barriers ) ; <nl> + AddDitch ( trx , it , ditches ) ; <nl> } <nl> } <nl> catch ( int & ) { <nl> - / / Could not get a barrier . <nl> + / / Could not get a ditch <nl> / / Abort the collection and free the pointers <nl> trx - > abort ( ) ; <nl> delete trx ; <nl> static v8 : : Handle < v8 : : Value > PathIdsToV8 ( v8 : : Isolate * isolate , <nl> TRI_vocbase_t * vocbase , <nl> CollectionNameResolver const * resolver , <nl> ArangoDBPathFinder : : Path const & p , <nl> - unordered_map < TRI_voc_cid_t , CollectionBarrierInfo > & barriers , <nl> + unordered_map < TRI_voc_cid_t , CollectionDitchInfo > & ditches , <nl> bool & includeData ) { <nl> v8 : : EscapableHandleScope scope ( isolate ) ; <nl> v8 : : Handle < v8 : : Object > result = v8 : : Object : : New ( isolate ) ; <nl> static v8 : : Handle < v8 : : Value > PathIdsToV8 ( v8 : : Isolate * isolate , <nl> vector < TRI_voc_cid_t > readCollections ; <nl> ExtractCidsFromPath ( vocbase , p , readCollections ) ; <nl> vector < TRI_voc_cid_t > writeCollections ; <nl> - unordered_map < TRI_voc_cid_t , CollectionBarrierInfo > barriers ; <nl> + unordered_map < TRI_voc_cid_t , CollectionDitchInfo > ditches ; <nl> ExplicitTransaction * trx = BeginTransaction ( vocbase , readCollections , <nl> - writeCollections , resolver , barriers ) ; <nl> + writeCollections , resolver , ditches ) ; <nl> for ( uint32_t j = 0 ; j < vn ; + + j ) { <nl> - vertices - > Set ( j , VertexIdToData ( isolate , resolver , trx , barriers , p . vertices [ j ] ) ) ; <nl> + vertices - > Set ( j , VertexIdToData ( isolate , resolver , trx , ditches , p . vertices [ j ] ) ) ; <nl> } <nl> for ( uint32_t j = 0 ; j < en ; + + j ) { <nl> - edges - > Set ( j , EdgeIdToData ( isolate , resolver , trx , barriers , p . edges [ j ] ) ) ; <nl> + edges - > Set ( j , EdgeIdToData ( isolate , resolver , trx , ditches , p . edges [ j ] ) ) ; <nl> } <nl> trx - > finish ( 0 ) ; <nl> delete trx ; <nl> static void JS_QueryShortestPath ( const v8 : : FunctionCallbackInfo < v8 : : Value > & arg <nl> readCollections . emplace_back ( resolver - > getCollectionId ( it ) ) ; <nl> } <nl> <nl> - / / Start the transaction and <nl> - / / Order Barriers <nl> - unordered_map < TRI_voc_cid_t , CollectionBarrierInfo > barriers ; <nl> + / / Start the transaction and order ditches <nl> + unordered_map < TRI_voc_cid_t , CollectionDitchInfo > ditches ; <nl> ExplicitTransaction * trx = nullptr ; <nl> try { <nl> - trx = BeginTransaction ( vocbase , readCollections , writeCollections , resolver , barriers ) ; <nl> + trx = BeginTransaction ( vocbase , readCollections , writeCollections , resolver , ditches ) ; <nl> } <nl> catch ( int e ) { <nl> / / Nothing to clean up . Throw the error to V8 <nl> static void JS_QueryShortestPath ( const v8 : : FunctionCallbackInfo < v8 : : Value > & arg <nl> if ( opts . useWeight ) { <nl> for ( auto const & it : edgeCollectionNames ) { <nl> auto cid = resolver - > getCollectionId ( it ) ; <nl> - auto colObj = barriers . find ( cid ) - > second . col - > _collection - > _collection ; <nl> + auto colObj = ditches . find ( cid ) - > second . col - > _collection - > _collection ; <nl> edgeCollectionInfos . emplace_back ( new EdgeCollectionInfo ( <nl> cid , <nl> colObj , <nl> static void JS_QueryShortestPath ( const v8 : : FunctionCallbackInfo < v8 : : Value > & arg <nl> else { <nl> for ( auto const & it : edgeCollectionNames ) { <nl> auto cid = resolver - > getCollectionId ( it ) ; <nl> - auto colObj = barriers . find ( cid ) - > second . col - > _collection - > _collection ; <nl> + auto colObj = ditches . find ( cid ) - > second . col - > _collection - > _collection ; <nl> edgeCollectionInfos . emplace_back ( new EdgeCollectionInfo ( <nl> cid , <nl> colObj , <nl> static void JS_QueryShortestPath ( const v8 : : FunctionCallbackInfo < v8 : : Value > & arg <nl> <nl> for ( auto const & it : vertexCollectionNames ) { <nl> auto cid = resolver - > getCollectionId ( it ) ; <nl> - auto colObj = barriers . find ( cid ) - > second . col ; <nl> + auto colObj = ditches . find ( cid ) - > second . col ; <nl> vertexCollectionInfos . emplace_back ( new VertexCollectionInfo ( <nl> cid , <nl> colObj <nl> static void JS_QueryShortestPath ( const v8 : : FunctionCallbackInfo < v8 : : Value > & arg <nl> / / Adding additional locks on vertex collections at this point to the transaction <nl> / / would cause dead - locks . <nl> / / Will be fixed automatically with new MVCC version . <nl> - auto result = PathIdsToV8 ( isolate , vocbase , resolver , * path , barriers , includeData ) ; <nl> + auto result = PathIdsToV8 ( isolate , vocbase , resolver , * path , ditches , includeData ) ; <nl> TRI_V8_RETURN ( result ) ; <nl> } <nl> <nl> static v8 : : Handle < v8 : : Value > VertexIdsToV8 ( v8 : : Isolate * isolate , <nl> ExplicitTransaction * trx , <nl> CollectionNameResolver const * resolver , <nl> vector < VertexId > & ids , <nl> - unordered_map < TRI_voc_cid_t , CollectionBarrierInfo > & barriers , <nl> + unordered_map < TRI_voc_cid_t , CollectionDitchInfo > & ditches , <nl> bool includeData = false ) { <nl> v8 : : EscapableHandleScope scope ( isolate ) ; <nl> uint32_t const vn = static_cast < uint32_t > ( ids . size ( ) ) ; <nl> static v8 : : Handle < v8 : : Value > VertexIdsToV8 ( v8 : : Isolate * isolate , <nl> <nl> if ( includeData ) { <nl> for ( uint32_t j = 0 ; j < vn ; + + j ) { <nl> - vertices - > Set ( j , VertexIdToData ( isolate , resolver , trx , barriers , ids [ j ] ) ) ; <nl> + vertices - > Set ( j , VertexIdToData ( isolate , resolver , trx , ditches , ids [ j ] ) ) ; <nl> } <nl> } <nl> else { <nl> static void JS_QueryNeighbors ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) <nl> readCollections . emplace_back ( resolver - > getCollectionId ( it ) ) ; <nl> } <nl> <nl> - unordered_map < TRI_voc_cid_t , CollectionBarrierInfo > barriers ; <nl> + unordered_map < TRI_voc_cid_t , CollectionDitchInfo > ditches ; <nl> / / Start the transaction <nl> try { <nl> trx = BeginTransaction ( vocbase , readCollections , writeCollections , <nl> - resolver , barriers ) ; <nl> + resolver , ditches ) ; <nl> } <nl> catch ( int e ) { <nl> / / Nothing to clean up . Throw the error to V8 <nl> static void JS_QueryNeighbors ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) <nl> vector < EdgeCollectionInfo * > edgeCollectionInfos ; <nl> for ( auto const & it : edgeCollectionNames ) { <nl> auto cid = resolver - > getCollectionId ( it ) ; <nl> - auto colObj = barriers . find ( cid ) - > second . col - > _collection - > _collection ; <nl> + auto colObj = ditches . find ( cid ) - > second . col - > _collection - > _collection ; <nl> edgeCollectionInfos . emplace_back ( new EdgeCollectionInfo ( <nl> cid , <nl> colObj , <nl> static void JS_QueryNeighbors ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) <nl> vector < VertexCollectionInfo * > vertexCollectionInfos ; <nl> for ( auto it : vertexCollectionNames ) { <nl> auto cid = resolver - > getCollectionId ( it ) ; <nl> - auto colObj = barriers . find ( cid ) - > second . col ; <nl> - vertexCollectionInfos . push_back ( new VertexCollectionInfo ( <nl> + auto colObj = ditches . find ( cid ) - > second . col ; <nl> + vertexCollectionInfos . emplace_back ( new VertexCollectionInfo ( <nl> cid , <nl> colObj <nl> ) ) ; <nl> static void JS_QueryNeighbors ( const v8 : : FunctionCallbackInfo < v8 : : Value > & args ) <nl> } <nl> } <nl> <nl> - auto result = VertexIdsToV8 ( isolate , trx , resolver , neighbors , barriers , includeData ) ; <nl> + auto result = VertexIdsToV8 ( isolate , trx , resolver , neighbors , ditches , includeData ) ; <nl> <nl> cleanup ( ) ; <nl> trx - > finish ( res ) ; <nl> mmm a / arangod / V8Server / v8 - wrapshapedjson . cpp <nl> ppp b / arangod / V8Server / v8 - wrapshapedjson . cpp <nl> using namespace triagens : : rest ; <nl> / / / Layout : <nl> / / / - SLOT_CLASS_TYPE <nl> / / / - SLOT_CLASS <nl> - / / / - SLOT_BARRIER <nl> + / / / - SLOT_DITCH <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> static int32_t const WRP_SHAPED_JSON_TYPE = 4 ; <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief slot for a " barrier " <nl> + / / / @ brief slot for a " ditch " <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - static int const SLOT_BARRIER = 2 ; <nl> + static int const SLOT_DITCH = 2 ; <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> / / / @ brief get basic attributes ( _id , _key , _rev , _from , _to ) for a JavaScript <nl> static v8 : : Handle < v8 : : Object > SetBasicDocumentAttributesShaped ( v8 : : Isolate * iso <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief weak reference callback for a barrier <nl> + / / / @ brief weak reference callback for a ditch <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - static void WeakBarrierCallback ( const v8 : : WeakCallbackData < v8 : : External , v8 : : Persistent < v8 : : External > > & data ) { <nl> + static void WeakDocumentDitchCallback ( const v8 : : WeakCallbackData < v8 : : External , v8 : : Persistent < v8 : : External > > & data ) { <nl> auto isolate = data . GetIsolate ( ) ; <nl> auto persistent = data . GetParameter ( ) ; <nl> - auto myBarrier = v8 : : Local < v8 : : External > : : New ( isolate , * persistent ) ; <nl> + auto myDitch = v8 : : Local < v8 : : External > : : New ( isolate , * persistent ) ; <nl> <nl> - TRI_barrier_blocker_t * barrier = static_cast < TRI_barrier_blocker_t * > ( myBarrier - > Value ( ) ) ; <nl> + auto ditch = static_cast < triagens : : arango : : DocumentDitch * > ( myDitch - > Value ( ) ) ; <nl> + TRI_ASSERT ( ditch ! = nullptr ) ; <nl> <nl> TRI_GET_GLOBALS ( ) ; <nl> <nl> - TRI_ASSERT ( barrier ! = nullptr ) ; <nl> - <nl> v8g - > _hasDeadObjects = true ; <nl> <nl> - LOG_TRACE ( " weak - callback for barrier called " ) ; <nl> + LOG_TRACE ( " weak - callback for document ditch called " ) ; <nl> <nl> / / find the persistent handle <nl> - v8g - > JSBarriers [ barrier ] . Reset ( ) ; <nl> - v8g - > JSBarriers . erase ( barrier ) ; <nl> + v8g - > JSDitches [ ditch ] . Reset ( ) ; <nl> + v8g - > JSDitches . erase ( ditch ) ; <nl> <nl> - / / get the vocbase pointer from the barrier <nl> - TRI_vocbase_t * vocbase = barrier - > base . _container - > _collection - > _vocbase ; <nl> + / / get the vocbase pointer from the ditch <nl> + TRI_vocbase_t * vocbase = ditch - > collection ( ) - > _vocbase ; <nl> <nl> - TRI_FreeBarrier ( barrier , false / * fromTransaction * / ) ; <nl> - / / we don ' t need the barrier anymore , maybe a transaction is still using it <nl> + ditch - > ditches ( ) - > freeDocumentDitch ( ditch , false / * fromTransaction * / ) ; <nl> + / / we don ' t need the ditch anymore , maybe a transaction is still using it <nl> <nl> if ( vocbase ! = nullptr ) { <nl> / / decrease the reference - counter for the database <nl> static void WeakBarrierCallback ( const v8 : : WeakCallbackData < v8 : : External , v8 : : Pe <nl> <nl> v8 : : Handle < v8 : : Value > TRI_WrapShapedJson ( v8 : : Isolate * isolate , <nl> triagens : : arango : : CollectionNameResolver const * resolver , <nl> - TRI_barrier_t * barrier , <nl> + triagens : : arango : : DocumentDitch * ditch , <nl> TRI_voc_cid_t cid , <nl> TRI_document_collection_t * collection , <nl> void const * data ) { <nl> v8 : : EscapableHandleScope scope ( isolate ) ; <nl> TRI_df_marker_t const * marker = static_cast < TRI_df_marker_t const * > ( data ) ; <nl> TRI_ASSERT ( marker ! = nullptr ) ; <nl> - TRI_ASSERT ( barrier ! = nullptr ) ; <nl> + TRI_ASSERT ( ditch ! = nullptr ) ; <nl> TRI_ASSERT ( collection ! = nullptr ) ; <nl> <nl> TRI_GET_GLOBALS ( ) ; <nl> v8 : : Handle < v8 : : Value > TRI_WrapShapedJson ( v8 : : Isolate * isolate , <nl> result - > SetInternalField ( SLOT_CLASS_TYPE , v8 : : Integer : : New ( isolate , WRP_SHAPED_JSON_TYPE ) ) ; <nl> result - > SetInternalField ( SLOT_CLASS , v8 : : External : : New ( isolate , ( void * ) marker ) ) ; <nl> <nl> - auto it = v8g - > JSBarriers . find ( barrier ) ; <nl> + auto it = v8g - > JSDitches . find ( ditch ) ; <nl> <nl> - if ( it = = v8g - > JSBarriers . end ( ) ) { <nl> - / / tell everyone else that this barrier is used by an external <nl> - TRI_SetUsedByExternalBarrierElement ( reinterpret_cast < TRI_barrier_blocker_t * > ( barrier ) ) ; <nl> + if ( it = = v8g - > JSDitches . end ( ) ) { <nl> + / / tell everyone else that this ditch is used by an external <nl> + ditch - > setUsedByExternal ( ) ; <nl> <nl> / / increase the reference - counter for the database <nl> - TRI_ASSERT ( barrier - > _container ! = nullptr ) ; <nl> - TRI_ASSERT ( barrier - > _container - > _collection ! = nullptr ) ; <nl> - TRI_UseVocBase ( barrier - > _container - > _collection - > _vocbase ) ; <nl> - auto externalBarrier = v8 : : External : : New ( isolate , barrier ) ; <nl> - v8 : : Persistent < v8 : : External > & per ( v8g - > JSBarriers [ barrier ] ) ; <nl> - per . Reset ( isolate , externalBarrier ) ; <nl> - result - > SetInternalField ( SLOT_BARRIER , externalBarrier ) ; <nl> - per . SetWeak ( & per , WeakBarrierCallback ) ; <nl> + TRI_ASSERT ( ditch - > collection ( ) ! = nullptr ) ; <nl> + TRI_UseVocBase ( ditch - > collection ( ) - > _vocbase ) ; <nl> + auto externalDitch = v8 : : External : : New ( isolate , ditch ) ; <nl> + v8 : : Persistent < v8 : : External > & per ( v8g - > JSDitches [ ditch ] ) ; <nl> + per . Reset ( isolate , externalDitch ) ; <nl> + result - > SetInternalField ( SLOT_DITCH , externalDitch ) ; <nl> + per . SetWeak ( & per , WeakDocumentDitchCallback ) ; <nl> } <nl> else { <nl> - auto myBarrier = v8 : : Local < v8 : : External > : : New ( isolate , it - > second ) ; <nl> + auto myDitch = v8 : : Local < v8 : : External > : : New ( isolate , it - > second ) ; <nl> <nl> - result - > SetInternalField ( SLOT_BARRIER , myBarrier ) ; <nl> + result - > SetInternalField ( SLOT_DITCH , myDitch ) ; <nl> } <nl> <nl> return scope . Escape < v8 : : Value > ( SetBasicDocumentAttributesShaped ( isolate , resolver , v8g , cid , marker , result ) ) ; <nl> static void KeysOfShapedJson ( const v8 : : PropertyCallbackInfo < v8 : : Array > & args ) { <nl> / / sanity check <nl> v8 : : Handle < v8 : : Object > self = args . Holder ( ) ; <nl> <nl> - if ( self - > InternalFieldCount ( ) < = SLOT_BARRIER ) { <nl> + if ( self - > InternalFieldCount ( ) < = SLOT_DITCH ) { <nl> TRI_V8_RETURN ( v8 : : Array : : New ( isolate ) ) ; <nl> } <nl> <nl> static void KeysOfShapedJson ( const v8 : : PropertyCallbackInfo < v8 : : Array > & args ) { <nl> TRI_V8_RETURN ( v8 : : Array : : New ( isolate ) ) ; <nl> } <nl> <nl> - TRI_barrier_t * barrier = static_cast < TRI_barrier_t * > ( v8 : : Handle < v8 : : External > : : Cast ( self - > GetInternalField ( SLOT_BARRIER ) ) - > Value ( ) ) ; <nl> - TRI_document_collection_t * collection = barrier - > _container - > _collection ; <nl> + auto ditch = static_cast < triagens : : arango : : DocumentDitch * > ( v8 : : Handle < v8 : : External > : : Cast ( self - > GetInternalField ( SLOT_DITCH ) ) - > Value ( ) ) ; <nl> + TRI_document_collection_t * collection = ditch - > collection ( ) ; <nl> <nl> / / check for array shape <nl> TRI_shaper_t * shaper = collection - > getShaper ( ) ; / / PROTECTED by BARRIER , checked by RUNTIME <nl> static void KeysOfShapedJson ( const v8 : : PropertyCallbackInfo < v8 : : Array > & args ) { <nl> static void CopyAttributes ( v8 : : Isolate * isolate , <nl> v8 : : Handle < v8 : : Object > self , <nl> void * marker ) { <nl> - TRI_barrier_t * barrier = static_cast < TRI_barrier_t * > ( v8 : : Handle < v8 : : External > : : Cast ( self - > GetInternalField ( SLOT_BARRIER ) ) - > Value ( ) ) ; <nl> - TRI_document_collection_t * collection = barrier - > _container - > _collection ; <nl> + auto ditch = static_cast < triagens : : arango : : DocumentDitch * > ( v8 : : Handle < v8 : : External > : : Cast ( self - > GetInternalField ( SLOT_DITCH ) ) - > Value ( ) ) ; <nl> + TRI_document_collection_t * collection = ditch - > collection ( ) ; <nl> <nl> / / copy _key and _rev <nl> <nl> static void MapGetNamedShapedJson ( v8 : : Local < v8 : : String > name , <nl> / / sanity check <nl> v8 : : Handle < v8 : : Object > self = args . Holder ( ) ; <nl> <nl> - if ( self - > InternalFieldCount ( ) < = SLOT_BARRIER ) { <nl> + if ( self - > InternalFieldCount ( ) < = SLOT_DITCH ) { <nl> / / we better not throw here . . . otherwise this will cause a segfault <nl> TRI_V8_RETURN ( v8 : : Handle < v8 : : Value > ( ) ) ; <nl> } <nl> static void MapGetNamedShapedJson ( v8 : : Local < v8 : : String > name , <nl> } <nl> <nl> / / get the underlying collection <nl> - TRI_barrier_t * barrier = static_cast < TRI_barrier_t * > ( v8 : : Handle < v8 : : External > : : Cast ( self - > GetInternalField ( SLOT_BARRIER ) ) - > Value ( ) ) ; <nl> - TRI_ASSERT ( barrier ! = nullptr ) ; <nl> + auto ditch = static_cast < triagens : : arango : : DocumentDitch * > ( v8 : : Handle < v8 : : External > : : Cast ( self - > GetInternalField ( SLOT_DITCH ) ) - > Value ( ) ) ; <nl> + TRI_ASSERT ( ditch ! = nullptr ) ; <nl> <nl> - TRI_document_collection_t * collection = barrier - > _container - > _collection ; <nl> + TRI_document_collection_t * collection = ditch - > collection ( ) ; <nl> <nl> / / get shape accessor <nl> TRI_shaper_t * shaper = collection - > getShaper ( ) ; / / PROTECTED by trx here <nl> static void MapSetNamedShapedJson ( v8 : : Local < v8 : : String > name , <nl> / / sanity check <nl> v8 : : Handle < v8 : : Object > self = args . Holder ( ) ; <nl> <nl> - if ( self - > InternalFieldCount ( ) < = SLOT_BARRIER ) { <nl> + if ( self - > InternalFieldCount ( ) < = SLOT_DITCH ) { <nl> / / we better not throw here . . . otherwise this will cause a segfault <nl> TRI_V8_RETURN ( v8 : : Handle < v8 : : Value > ( ) ) ; <nl> } <nl> static void MapDeleteNamedShapedJson ( v8 : : Local < v8 : : String > name , <nl> / / sanity check <nl> v8 : : Handle < v8 : : Object > self = args . Holder ( ) ; <nl> <nl> - if ( self - > InternalFieldCount ( ) < = SLOT_BARRIER ) { <nl> + if ( self - > InternalFieldCount ( ) < = SLOT_DITCH ) { <nl> / / we better not throw here . . . otherwise this will cause a segfault <nl> return ; <nl> } <nl> static void PropertyQueryShapedJson ( v8 : : Local < v8 : : String > name , <nl> v8 : : Handle < v8 : : Object > self = args . Holder ( ) ; <nl> <nl> / / sanity check <nl> - if ( self - > InternalFieldCount ( ) < = SLOT_BARRIER ) { <nl> + if ( self - > InternalFieldCount ( ) < = SLOT_DITCH ) { <nl> TRI_V8_RETURN ( v8 : : Handle < v8 : : Integer > ( ) ) ; <nl> } <nl> <nl> static void PropertyQueryShapedJson ( v8 : : Local < v8 : : String > name , <nl> } <nl> <nl> / / get underlying collection <nl> - TRI_barrier_t * barrier = static_cast < TRI_barrier_t * > ( v8 : : Handle < v8 : : External > : : Cast ( self - > GetInternalField ( SLOT_BARRIER ) ) - > Value ( ) ) ; <nl> - TRI_document_collection_t * collection = barrier - > _container - > _collection ; <nl> + auto ditch = static_cast < triagens : : arango : : DocumentDitch * > ( v8 : : Handle < v8 : : External > : : Cast ( self - > GetInternalField ( SLOT_DITCH ) ) - > Value ( ) ) ; <nl> + TRI_document_collection_t * collection = ditch - > collection ( ) ; <nl> <nl> / / get shape accessor <nl> TRI_shaper_t * shaper = collection - > getShaper ( ) ; / / PROTECTED by BARRIER , checked by RUNTIME <nl> mmm a / arangod / V8Server / v8 - wrapshapedjson . h <nl> ppp b / arangod / V8Server / v8 - wrapshapedjson . h <nl> <nl> <nl> v8 : : Handle < v8 : : Value > TRI_WrapShapedJson ( v8 : : Isolate * isolate , <nl> triagens : : arango : : CollectionNameResolver const * , <nl> - TRI_barrier_t * , <nl> + triagens : : arango : : DocumentDitch * , <nl> TRI_voc_cid_t , <nl> TRI_document_collection_t * , <nl> void const * ) ; <nl> v8 : : Handle < v8 : : Value > TRI_WrapShapedJson ( v8 : : Isolate * isolate , <nl> T & trx , <nl> TRI_voc_cid_t cid , <nl> void const * data ) { <nl> - TRI_barrier_t * barrier = trx . barrier ( cid ) ; <nl> - TRI_ASSERT ( barrier ! = nullptr ) ; <nl> + auto ditch = trx . ditch ( cid ) ; <nl> + TRI_ASSERT ( ditch ! = nullptr ) ; <nl> <nl> triagens : : arango : : CollectionNameResolver const * resolver = trx . resolver ( ) ; <nl> TRI_document_collection_t * collection = trx . documentCollection ( cid ) ; <nl> <nl> TRI_ASSERT ( collection ! = nullptr ) ; <nl> <nl> - return TRI_WrapShapedJson ( isolate , resolver , barrier , cid , collection , data ) ; <nl> + return TRI_WrapShapedJson ( isolate , resolver , ditch , cid , collection , data ) ; <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> new file mode 100644 <nl> index 00000000000 . . ce482175ffc <nl> mmm / dev / null <nl> ppp b / arangod / VocBase / Ditch . cpp <nl> <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief ditches for documents , datafiles etc . <nl> + / / / <nl> + / / / @ file <nl> + / / / <nl> + / / / DISCLAIMER <nl> + / / / <nl> + / / / Copyright 2014 ArangoDB GmbH , Cologne , Germany <nl> + / / / Copyright 2004 - 2014 triAGENS GmbH , Cologne , Germany <nl> + / / / <nl> + / / / Licensed under the Apache License , Version 2 . 0 ( the " License " ) ; <nl> + / / / you may not use this file except in compliance with the License . <nl> + / / / You may obtain a copy of the License at <nl> + / / / <nl> + / / / http : / / www . apache . org / licenses / LICENSE - 2 . 0 <nl> + / / / <nl> + / / / Unless required by applicable law or agreed to in writing , software <nl> + / / / distributed under the License is distributed on an " AS IS " BASIS , <nl> + / / / WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied . <nl> + / / / See the License for the specific language governing permissions and <nl> + / / / limitations under the License . <nl> + / / / <nl> + / / / Copyright holder is ArangoDB GmbH , Cologne , Germany <nl> + / / / <nl> + / / / @ author Dr . Frank Celler <nl> + / / / @ author Copyright 2014 , ArangoDB GmbH , Cologne , Germany <nl> + / / / @ author Copyright 2011 - 2013 , triAGENS GmbH , Cologne , Germany <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + # include " Ditch . h " <nl> + # include " Basics / logging . h " <nl> + # include " Basics / MutexLocker . h " <nl> + # include " VocBase / document - collection . h " <nl> + <nl> + using namespace triagens : : arango ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class Ditch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - constructors / destructors <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + Ditch : : Ditch ( Ditches * ditches , <nl> + char const * filename , <nl> + int line ) <nl> + : _ditches ( ditches ) , <nl> + _prev ( nullptr ) , <nl> + _next ( nullptr ) , <nl> + _filename ( filename ) , <nl> + _line ( line ) { <nl> + } <nl> + <nl> + Ditch : : ~ Ditch ( ) { <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - public methods <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief return the associated collection <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + TRI_document_collection_t * Ditch : : collection ( ) const { <nl> + return _ditches - > collection ( ) ; <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class DocumentDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - constructors / destructors <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + DocumentDitch : : DocumentDitch ( Ditches * ditches , <nl> + bool usedByTransaction , <nl> + char const * filename , <nl> + int line ) <nl> + : Ditch ( ditches , filename , line ) , <nl> + _usedByExternal ( false ) , <nl> + _usedByTransaction ( usedByTransaction ) { <nl> + } <nl> + <nl> + DocumentDitch : : ~ DocumentDitch ( ) { <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief sets the _usedByTransaction flag , using the required lock <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void DocumentDitch : : setUsedByTransaction ( ) { <nl> + auto callback = [ this ] ( ) - > void { <nl> + _usedByTransaction = true ; <nl> + } ; <nl> + _ditches - > executeProtected ( callback ) ; <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief sets the _usedByExternal flag , using the required lock <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void DocumentDitch : : setUsedByExternal ( ) { <nl> + auto callback = [ this ] ( ) - > void { <nl> + _usedByExternal = true ; <nl> + } ; <nl> + _ditches - > executeProtected ( callback ) ; <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class ReplicationDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - constructors / destructors <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + ReplicationDitch : : ReplicationDitch ( Ditches * ditches , <nl> + char const * filename , <nl> + int line ) <nl> + : Ditch ( ditches , filename , line ) { <nl> + } <nl> + <nl> + ReplicationDitch : : ~ ReplicationDitch ( ) { <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class CompactionDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - constructors / destructors <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + CompactionDitch : : CompactionDitch ( Ditches * ditches , <nl> + char const * filename , <nl> + int line ) <nl> + : Ditch ( ditches , filename , line ) { <nl> + } <nl> + <nl> + CompactionDitch : : ~ CompactionDitch ( ) { <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class DropDatafileDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - constructors / destructors <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + DropDatafileDitch : : DropDatafileDitch ( Ditches * ditches , <nl> + TRI_datafile_t * datafile , <nl> + void * data , <nl> + std : : function < void ( TRI_datafile_t * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) <nl> + : Ditch ( ditches , filename , line ) , <nl> + _datafile ( datafile ) , <nl> + _data ( data ) , <nl> + _callback ( callback ) { <nl> + } <nl> + <nl> + DropDatafileDitch : : ~ DropDatafileDitch ( ) { <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class RenameDatafileDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - constructors / destructors <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + RenameDatafileDitch : : RenameDatafileDitch ( Ditches * ditches , <nl> + TRI_datafile_t * datafile , <nl> + void * data , <nl> + std : : function < void ( TRI_datafile_t * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) <nl> + : Ditch ( ditches , filename , line ) , <nl> + _datafile ( datafile ) , <nl> + _data ( data ) , <nl> + _callback ( callback ) { <nl> + } <nl> + <nl> + RenameDatafileDitch : : ~ RenameDatafileDitch ( ) { <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class UnloadCollectionDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - constructors / destructors <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + UnloadCollectionDitch : : UnloadCollectionDitch ( Ditches * ditches , <nl> + TRI_collection_t * collection , <nl> + void * data , <nl> + std : : function < bool ( TRI_collection_t * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) <nl> + : Ditch ( ditches , filename , line ) , <nl> + _collection ( collection ) , <nl> + _data ( data ) , <nl> + _callback ( callback ) { <nl> + } <nl> + <nl> + UnloadCollectionDitch : : ~ UnloadCollectionDitch ( ) { <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class DropCollectionDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - constructors / destructors <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + DropCollectionDitch : : DropCollectionDitch ( Ditches * ditches , <nl> + TRI_collection_t * collection , <nl> + void * data , <nl> + std : : function < bool ( TRI_collection_t * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) <nl> + : Ditch ( ditches , filename , line ) , <nl> + _collection ( collection ) , <nl> + _data ( data ) , <nl> + _callback ( callback ) { <nl> + } <nl> + <nl> + DropCollectionDitch : : ~ DropCollectionDitch ( ) { <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class Ditches <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + Ditches : : Ditches ( TRI_document_collection_t * collection ) <nl> + : _collection ( collection ) , <nl> + _lock ( ) , <nl> + _begin ( nullptr ) , <nl> + _end ( nullptr ) , <nl> + _numDocumentDitches ( 0 ) { <nl> + <nl> + TRI_ASSERT ( _collection ! = nullptr ) ; <nl> + <nl> + } <nl> + <nl> + Ditches : : ~ Ditches ( ) { <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - public methods <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief destroy the ditches - to be called on shutdown only <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void Ditches : : destroy ( ) { <nl> + auto * ptr = _begin ; <nl> + <nl> + while ( ptr ! = nullptr ) { <nl> + auto * next = ptr - > next ( ) ; <nl> + auto const type = ptr - > type ( ) ; <nl> + <nl> + if ( type = = Ditch : : TRI_DITCH_COLLECTION_UNLOAD | | <nl> + type = = Ditch : : TRI_DITCH_COLLECTION_DROP | | <nl> + type = = Ditch : : TRI_DITCH_DATAFILE_DROP | | <nl> + type = = Ditch : : TRI_DITCH_DATAFILE_RENAME | | <nl> + type = = Ditch : : TRI_DITCH_REPLICATION | | <nl> + type = = Ditch : : TRI_DITCH_COMPACTION ) { <nl> + <nl> + delete ptr ; <nl> + } <nl> + else if ( type = = Ditch : : TRI_DITCH_DOCUMENT ) { <nl> + LOG_ERROR ( " logic error . shouldn ' t have document ditches on unload " ) ; <nl> + } <nl> + else { <nl> + LOG_ERROR ( " unknown ditch type " ) ; <nl> + } <nl> + <nl> + ptr = next ; <nl> + } <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief return the associated collection <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + TRI_document_collection_t * Ditches : : collection ( ) const { <nl> + return _collection ; <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief run a user - defined function under the lock <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void Ditches : : executeProtected ( std : : function < void ( ) > callback ) { <nl> + MUTEX_LOCKER ( _lock ) ; <nl> + callback ( ) ; <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief process the first element from the list <nl> + / / / the list will remain unchanged if the first element is either a <nl> + / / / DocumentDitch , a ReplicationDitch or a CompactionDitch , or if the list <nl> + / / / contains any DocumentDitches . <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + Ditch * Ditches : : process ( bool & popped , <nl> + std : : function < bool ( Ditch const * ) > callback ) { <nl> + popped = false ; <nl> + <nl> + MUTEX_LOCKER ( _lock ) ; <nl> + <nl> + auto ditch = _begin ; <nl> + <nl> + if ( ditch = = nullptr ) { <nl> + / / nothing to do <nl> + return nullptr ; <nl> + } <nl> + <nl> + TRI_ASSERT ( ditch ! = nullptr ) ; <nl> + <nl> + auto const type = ditch - > type ( ) ; <nl> + <nl> + / / if it is a DocumentDitch , it means that there is still a reference held <nl> + / / to document data in a datafile . We must then not unload or remove a file <nl> + if ( type = = Ditch : : TRI_DITCH_DOCUMENT | | <nl> + type = = Ditch : : TRI_DITCH_REPLICATION | | <nl> + type = = Ditch : : TRI_DITCH_COMPACTION | | <nl> + _numDocumentDitches > 0 ) { <nl> + / / did not find anything at the head of the barrier list or found an element marker <nl> + / / this means we must exit and cannot throw away datafiles and can unload collections <nl> + return nullptr ; <nl> + } <nl> + <nl> + / / no DocumentDitch at the head of the ditches list . This means that there is <nl> + / / some other action we can perform ( i . e . unloading a datafile or a collection ) <nl> + <nl> + / / note that there is no need to check the entire list for a DocumentDitch as <nl> + / / the list is filled up in chronological order . New ditches are always added to the <nl> + / / tail of the list , and if we have the following list <nl> + / / HEAD - > TRI_DITCH_DATAFILE_CALLBACK - > TRI_DITCH_DOCUMENT <nl> + / / then it is still safe to execute the datafile callback operation , even if there <nl> + / / is a TRI_DITCH_DOCUMENT after it . <nl> + / / This is the case because the TRI_DITCH_DATAFILE_CALLBACK is only put into the <nl> + / / ditches list after changing the pointers in all headers . After the pointers are <nl> + / / changed , it is safe to unload / remove an old datafile ( that noone points to ) . And <nl> + / / any newer TRI_DITCH_DOCUMENTs will always reference data inside other datafiles . <nl> + <nl> + if ( ! callback ( ditch ) ) { <nl> + return ditch ; <nl> + } <nl> + <nl> + / / found an element to go on with - now unlink the element from the list <nl> + unlink ( ditch ) ; <nl> + popped = true ; <nl> + <nl> + return ditch ; <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief check whether the ditches contain a ditch of a certain type <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + bool Ditches : : contains ( Ditch : : DitchType type ) { <nl> + MUTEX_LOCKER ( _lock ) ; <nl> + <nl> + if ( type = = Ditch : : TRI_DITCH_DOCUMENT ) { <nl> + / / shortcut <nl> + return ( _numDocumentDitches > 0 ) ; <nl> + } <nl> + <nl> + auto const * ptr = _begin ; <nl> + <nl> + while ( ptr ! = nullptr ) { <nl> + if ( ptr - > type ( ) = = type ) { <nl> + return true ; <nl> + } <nl> + <nl> + ptr = ptr - > _next ; <nl> + } <nl> + <nl> + return false ; <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief removes and frees a ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void Ditches : : freeDitch ( Ditch * ditch ) { <nl> + TRI_ASSERT ( ditch ! = nullptr ) ; <nl> + <nl> + { <nl> + MUTEX_LOCKER ( _lock ) ; <nl> + <nl> + unlink ( ditch ) ; <nl> + <nl> + if ( ditch - > type ( ) = = Ditch : : TRI_DITCH_DOCUMENT ) { <nl> + / / decrease counter <nl> + - - _numDocumentDitches ; <nl> + } <nl> + } <nl> + <nl> + delete ditch ; <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief removes and frees a ditch <nl> + / / / this is used for ditches used by transactions or by externals to protect <nl> + / / / the flags by the lock <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void Ditches : : freeDocumentDitch ( DocumentDitch * ditch , <nl> + bool fromTransaction ) { <nl> + TRI_ASSERT ( ditch ! = nullptr ) ; <nl> + <nl> + bool shouldFree = false ; <nl> + { <nl> + MUTEX_LOCKER ( _lock ) ; <nl> + <nl> + / / First see who might still be using the ditch : <nl> + if ( fromTransaction ) { <nl> + TRI_ASSERT ( ditch - > _usedByTransaction = = true ) ; <nl> + ditch - > _usedByTransaction = false ; <nl> + } <nl> + else { <nl> + / / note : _usedByExternal may or may not be true when we get here <nl> + / / the reason is that there are ditches not linked at all <nl> + / / ( when a ditch is created ahead of operations but the operations are <nl> + / / not executed etc . ) <nl> + ditch - > _usedByExternal = false ; <nl> + } <nl> + <nl> + if ( ditch - > _usedByTransaction = = false & & <nl> + ditch - > _usedByExternal = = false ) { <nl> + / / Really free it : <nl> + <nl> + unlink ( ditch ) ; <nl> + <nl> + / / decrease counter <nl> + - - _numDocumentDitches ; <nl> + <nl> + / / free the ditch <nl> + shouldFree = true ; <nl> + } <nl> + } <nl> + <nl> + if ( shouldFree ) { <nl> + delete ditch ; <nl> + } <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new document ditch and links it <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + DocumentDitch * Ditches : : createDocumentDitch ( bool usedByTransaction , <nl> + char const * filename , <nl> + int line ) { <nl> + try { <nl> + auto ditch = new DocumentDitch ( this , usedByTransaction , filename , line ) ; <nl> + link ( ditch ) ; <nl> + <nl> + return ditch ; <nl> + } <nl> + catch ( . . . ) { <nl> + return nullptr ; <nl> + } <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new replication ditch and links it <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + ReplicationDitch * Ditches : : createReplicationDitch ( char const * filename , <nl> + int line ) { <nl> + try { <nl> + auto ditch = new ReplicationDitch ( this , filename , line ) ; <nl> + link ( ditch ) ; <nl> + <nl> + return ditch ; <nl> + } <nl> + catch ( . . . ) { <nl> + return nullptr ; <nl> + } <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new compaction ditch and links it <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + CompactionDitch * Ditches : : createCompactionDitch ( char const * filename , <nl> + int line ) { <nl> + try { <nl> + auto ditch = new CompactionDitch ( this , filename , line ) ; <nl> + link ( ditch ) ; <nl> + <nl> + return ditch ; <nl> + } <nl> + catch ( . . . ) { <nl> + return nullptr ; <nl> + } <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new datafile deletion ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + DropDatafileDitch * Ditches : : createDropDatafileDitch ( TRI_datafile_t * datafile , <nl> + void * data , <nl> + std : : function < void ( struct TRI_datafile_s * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) { <nl> + try { <nl> + auto ditch = new DropDatafileDitch ( this , datafile , data , callback , filename , line ) ; <nl> + link ( ditch ) ; <nl> + <nl> + return ditch ; <nl> + } <nl> + catch ( . . . ) { <nl> + return nullptr ; <nl> + } <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new datafile rename ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + RenameDatafileDitch * Ditches : : createRenameDatafileDitch ( TRI_datafile_t * datafile , <nl> + void * data , <nl> + std : : function < void ( struct TRI_datafile_s * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) { <nl> + try { <nl> + auto ditch = new RenameDatafileDitch ( this , datafile , data , callback , filename , line ) ; <nl> + link ( ditch ) ; <nl> + <nl> + return ditch ; <nl> + } <nl> + catch ( . . . ) { <nl> + return nullptr ; <nl> + } <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new collection unload ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + UnloadCollectionDitch * Ditches : : createUnloadCollectionDitch ( TRI_collection_t * collection , <nl> + void * data , <nl> + std : : function < bool ( TRI_collection_t * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) { <nl> + try { <nl> + auto ditch = new UnloadCollectionDitch ( this , collection , data , callback , filename , line ) ; <nl> + link ( ditch ) ; <nl> + <nl> + return ditch ; <nl> + } <nl> + catch ( . . . ) { <nl> + return nullptr ; <nl> + } <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new datafile drop ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + DropCollectionDitch * Ditches : : createDropCollectionDitch ( TRI_collection_t * collection , <nl> + void * data , <nl> + std : : function < bool ( TRI_collection_t * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) { <nl> + try { <nl> + auto ditch = new DropCollectionDitch ( this , collection , data , callback , filename , line ) ; <nl> + link ( ditch ) ; <nl> + <nl> + return ditch ; <nl> + } <nl> + catch ( . . . ) { <nl> + return nullptr ; <nl> + } <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - private methods <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief inserts the ditch into the linked list of ditches <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void Ditches : : link ( Ditch * ditch ) { <nl> + TRI_ASSERT ( ditch ! = nullptr ) ; <nl> + <nl> + MUTEX_LOCKER ( _lock ) ; <nl> + <nl> + / / empty list <nl> + if ( _end = = nullptr ) { <nl> + ditch - > _next = nullptr ; <nl> + ditch - > _prev = nullptr ; <nl> + <nl> + _begin = ditch ; <nl> + _end = ditch ; <nl> + } <nl> + <nl> + / / add to the end <nl> + else { <nl> + ditch - > _next = nullptr ; <nl> + ditch - > _prev = _end ; <nl> + <nl> + _end - > _next = ditch ; <nl> + _end = ditch ; <nl> + } <nl> + <nl> + if ( ditch - > type ( ) = = Ditch : : TRI_DITCH_DOCUMENT ) { <nl> + / / increase counter <nl> + + + _numDocumentDitches ; <nl> + } <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief unlinks the ditch from the linked list of ditches <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void Ditches : : unlink ( Ditch * ditch ) { <nl> + / / ditch is at the beginning of the chain <nl> + if ( ditch - > _prev = = nullptr ) { <nl> + _begin = ditch - > _next ; <nl> + } <nl> + else { <nl> + ditch - > _prev - > _next = ditch - > _next ; <nl> + } <nl> + <nl> + / / ditch is at the end of the chain <nl> + if ( ditch - > _next = = nullptr ) { <nl> + _end = ditch - > _prev ; <nl> + } <nl> + else { <nl> + ditch - > _next - > _prev = ditch - > _prev ; <nl> + } <nl> + } <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - END - OF - FILE <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / Local Variables : <nl> + / / mode : outline - minor <nl> + / / outline - regexp : " / / / @ brief \ \ | / / / { @ inheritDoc } \ \ | / / / @ page \ \ | / / - - SECTION - - \ \ | / / / @ \ \ } " <nl> + / / End : <nl> new file mode 100644 <nl> index 00000000000 . . f4996b13b79 <nl> mmm / dev / null <nl> ppp b / arangod / VocBase / Ditch . h <nl> <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief ditches for documents , datafiles etc . <nl> + / / / <nl> + / / / @ file <nl> + / / / <nl> + / / / DISCLAIMER <nl> + / / / <nl> + / / / Copyright 2014 ArangoDB GmbH , Cologne , Germany <nl> + / / / Copyright 2004 - 2014 triAGENS GmbH , Cologne , Germany <nl> + / / / <nl> + / / / Licensed under the Apache License , Version 2 . 0 ( the " License " ) ; <nl> + / / / you may not use this file except in compliance with the License . <nl> + / / / You may obtain a copy of the License at <nl> + / / / <nl> + / / / http : / / www . apache . org / licenses / LICENSE - 2 . 0 <nl> + / / / <nl> + / / / Unless required by applicable law or agreed to in writing , software <nl> + / / / distributed under the License is distributed on an " AS IS " BASIS , <nl> + / / / WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied . <nl> + / / / See the License for the specific language governing permissions and <nl> + / / / limitations under the License . <nl> + / / / <nl> + / / / Copyright holder is ArangoDB GmbH , Cologne , Germany <nl> + / / / <nl> + / / / @ author Dr . Frank Celler <nl> + / / / @ author Copyright 2014 , ArangoDB GmbH , Cologne , Germany <nl> + / / / @ author Copyright 2011 - 2013 , triAGENS GmbH , Cologne , Germany <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + # ifndef ARANGODB_VOC_BASE_DITCH_H <nl> + # define ARANGODB_VOC_BASE_DITCH_H 1 <nl> + <nl> + # include " Basics / Common . h " <nl> + # include " Basics / locks . h " <nl> + # include " Basics / Mutex . h " <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - forward declarations <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + struct TRI_document_collection_t ; <nl> + struct TRI_collection_t ; <nl> + struct TRI_datafile_s ; <nl> + <nl> + namespace triagens { <nl> + namespace arango { <nl> + <nl> + class Ditches ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class Ditch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + class Ditch { <nl> + <nl> + friend class Ditches ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - constructors / destructors <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + protected : <nl> + <nl> + Ditch ( Ditch const & ) = delete ; <nl> + Ditch & operator = ( Ditch const & ) = delete ; <nl> + <nl> + Ditch ( Ditches * , char const * , int ) ; <nl> + <nl> + public : <nl> + <nl> + virtual ~ Ditch ( ) ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - public types <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + public : <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief ditch type <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + enum DitchType { <nl> + TRI_DITCH_DOCUMENT = 1 , <nl> + TRI_DITCH_REPLICATION , <nl> + TRI_DITCH_COMPACTION , <nl> + TRI_DITCH_DATAFILE_DROP , <nl> + TRI_DITCH_DATAFILE_RENAME , <nl> + TRI_DITCH_COLLECTION_UNLOAD , <nl> + TRI_DITCH_COLLECTION_DROP <nl> + } ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - public methods <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + public : <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief return the ditch type <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + virtual DitchType type ( ) const = 0 ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief return the ditch type name <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + virtual char const * typeName ( ) const = 0 ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief return the next ditch in the linked list <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + inline Ditch * next ( ) const { <nl> + return _next ; <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief return the link to all ditches <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + Ditches * ditches ( ) { <nl> + return _ditches ; <nl> + } <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief return the associated collection <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + struct TRI_document_collection_t * collection ( ) const ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - protected variables <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + protected : <nl> + <nl> + Ditches * _ditches ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - private variables <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + private : <nl> + <nl> + Ditch * _prev ; <nl> + Ditch * _next ; <nl> + char const * _filename ; <nl> + int _line ; <nl> + <nl> + } ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class DocumentDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief document ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + class DocumentDitch : public Ditch { <nl> + <nl> + friend class Ditches ; <nl> + <nl> + public : <nl> + <nl> + DocumentDitch ( Ditches * ditches , <nl> + bool usedByTransaction , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + ~ DocumentDitch ( ) ; <nl> + <nl> + public : <nl> + <nl> + DitchType type ( ) const override final { <nl> + return TRI_DITCH_DOCUMENT ; <nl> + } <nl> + <nl> + char const * typeName ( ) const override final { <nl> + return " document " ; <nl> + } <nl> + <nl> + void setUsedByTransaction ( ) ; <nl> + void setUsedByExternal ( ) ; <nl> + <nl> + private : <nl> + <nl> + bool _usedByExternal ; <nl> + bool _usedByTransaction ; <nl> + } ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class ReplicationDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief replication ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + class ReplicationDitch : public Ditch { <nl> + <nl> + public : <nl> + <nl> + ReplicationDitch ( Ditches * ditches , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + ~ ReplicationDitch ( ) ; <nl> + <nl> + public : <nl> + <nl> + DitchType type ( ) const override final { <nl> + return TRI_DITCH_REPLICATION ; <nl> + } <nl> + <nl> + char const * typeName ( ) const override final { <nl> + return " replication " ; <nl> + } <nl> + } ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class CompactionDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief compaction ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + class CompactionDitch : public Ditch { <nl> + <nl> + public : <nl> + <nl> + CompactionDitch ( Ditches * ditches , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + ~ CompactionDitch ( ) ; <nl> + <nl> + public : <nl> + <nl> + DitchType type ( ) const override final { <nl> + return TRI_DITCH_COMPACTION ; <nl> + } <nl> + <nl> + char const * typeName ( ) const override final { <nl> + return " compaction " ; <nl> + } <nl> + } ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class DropDatafileDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief datafile removal ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + class DropDatafileDitch : public Ditch { <nl> + <nl> + public : <nl> + <nl> + DropDatafileDitch ( Ditches * ditches , <nl> + struct TRI_datafile_s * datafile , <nl> + void * data , <nl> + std : : function < void ( struct TRI_datafile_s * , void * ) > , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + ~ DropDatafileDitch ( ) ; <nl> + <nl> + public : <nl> + <nl> + DitchType type ( ) const override final { <nl> + return TRI_DITCH_DATAFILE_DROP ; <nl> + } <nl> + <nl> + char const * typeName ( ) const override final { <nl> + return " datafile - drop " ; <nl> + } <nl> + <nl> + void executeCallback ( ) { <nl> + _callback ( _datafile , _data ) ; <nl> + } <nl> + <nl> + private : <nl> + <nl> + struct TRI_datafile_s * _datafile ; <nl> + void * _data ; <nl> + std : : function < void ( struct TRI_datafile_s * , void * ) > _callback ; <nl> + } ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class RenameDatafileDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief datafile rename ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + class RenameDatafileDitch : public Ditch { <nl> + <nl> + public : <nl> + <nl> + RenameDatafileDitch ( Ditches * ditches , <nl> + struct TRI_datafile_s * datafile , <nl> + void * data , <nl> + std : : function < void ( struct TRI_datafile_s * , void * ) > , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + ~ RenameDatafileDitch ( ) ; <nl> + <nl> + public : <nl> + <nl> + DitchType type ( ) const override final { <nl> + return TRI_DITCH_DATAFILE_RENAME ; <nl> + } <nl> + <nl> + char const * typeName ( ) const override final { <nl> + return " datafile - rename " ; <nl> + } <nl> + <nl> + void executeCallback ( ) { <nl> + _callback ( _datafile , _data ) ; <nl> + } <nl> + <nl> + private : <nl> + <nl> + struct TRI_datafile_s * _datafile ; <nl> + void * _data ; <nl> + std : : function < void ( struct TRI_datafile_s * , void * ) > _callback ; <nl> + } ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class CollectionDitch <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief collection unload ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + class UnloadCollectionDitch : public Ditch { <nl> + <nl> + public : <nl> + <nl> + UnloadCollectionDitch ( Ditches * ditches , <nl> + struct TRI_collection_t * collection , <nl> + void * data , <nl> + std : : function < bool ( struct TRI_collection_t * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + ~ UnloadCollectionDitch ( ) ; <nl> + <nl> + DitchType type ( ) const override final { <nl> + return TRI_DITCH_COLLECTION_UNLOAD ; <nl> + } <nl> + <nl> + char const * typeName ( ) const override final { <nl> + return " collection - unload " ; <nl> + } <nl> + <nl> + bool executeCallback ( ) { <nl> + return _callback ( _collection , _data ) ; <nl> + } <nl> + <nl> + private : <nl> + <nl> + struct TRI_collection_t * _collection ; <nl> + void * _data ; <nl> + std : : function < bool ( struct TRI_collection_t * , void * ) > _callback ; <nl> + } ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief collection drop ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + class DropCollectionDitch : public Ditch { <nl> + <nl> + public : <nl> + <nl> + DropCollectionDitch ( triagens : : arango : : Ditches * ditches , <nl> + struct TRI_collection_t * collection , <nl> + void * data , <nl> + std : : function < bool ( struct TRI_collection_t * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + ~ DropCollectionDitch ( ) ; <nl> + <nl> + DitchType type ( ) const override final { <nl> + return TRI_DITCH_COLLECTION_DROP ; <nl> + } <nl> + <nl> + char const * typeName ( ) const override final { <nl> + return " collection - drop " ; <nl> + } <nl> + <nl> + bool executeCallback ( ) { <nl> + return _callback ( _collection , _data ) ; <nl> + } <nl> + <nl> + private : <nl> + <nl> + struct TRI_collection_t * _collection ; <nl> + void * _data ; <nl> + std : : function < bool ( struct TRI_collection_t * , void * ) > _callback ; <nl> + } ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - class Ditches <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief doubly linked list of ditches <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + class Ditches { <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - constructors / destructors <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + public : <nl> + <nl> + Ditches ( Ditches const & ) = delete ; <nl> + Ditches & operator = ( Ditches const & ) = delete ; <nl> + Ditches ( ) = delete ; <nl> + <nl> + Ditches ( struct TRI_document_collection_t * ) ; <nl> + ~ Ditches ( ) ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - public methods <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + public : <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief destroy the ditches - to be called on shutdown only <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void destroy ( ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief return the associated collection <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + TRI_document_collection_t * collection ( ) const ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief run a user - defined function under the lock <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void executeProtected ( std : : function < void ( ) > ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief process the first element from the list <nl> + / / / the list will remain unchanged if the first element is either a <nl> + / / / DocumentDitch , a ReplicationDitch or a CompactionDitch , or if the list <nl> + / / / contains any DocumentDitches . <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + Ditch * process ( bool & , std : : function < bool ( Ditch const * ) > ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief check whether the ditches contain a ditch of a certain type <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + bool contains ( Ditch : : DitchType ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief unlinks and frees a ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void freeDitch ( Ditch * ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief unlinks and frees a document ditch <nl> + / / / this is used for ditches used by transactions or by externals to protect <nl> + / / / the flags by the lock <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void freeDocumentDitch ( DocumentDitch * , bool fromTransaction ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new document ditch and links it <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + DocumentDitch * createDocumentDitch ( bool usedByTransaction , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new replication ditch and links it <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + ReplicationDitch * createReplicationDitch ( char const * filename , <nl> + int line ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new compaction ditch and links it <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + CompactionDitch * createCompactionDitch ( char const * filename , <nl> + int line ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new datafile deletion ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + DropDatafileDitch * createDropDatafileDitch ( struct TRI_datafile_s * datafile , <nl> + void * data , <nl> + std : : function < void ( struct TRI_datafile_s * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new datafile rename ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + RenameDatafileDitch * createRenameDatafileDitch ( struct TRI_datafile_s * datafile , <nl> + void * data , <nl> + std : : function < void ( struct TRI_datafile_s * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new collection unload ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + UnloadCollectionDitch * createUnloadCollectionDitch ( struct TRI_collection_t * collection , <nl> + void * data , <nl> + std : : function < bool ( struct TRI_collection_t * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief creates a new collection drop ditch <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + DropCollectionDitch * createDropCollectionDitch ( struct TRI_collection_t * collection , <nl> + void * data , <nl> + std : : function < bool ( struct TRI_collection_t * , void * ) > callback , <nl> + char const * filename , <nl> + int line ) ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - private methods <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + private : <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief inserts the ditch into the linked list of ditches <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void link ( Ditch * ) ; <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / / @ brief unlinks the ditch from the linked list of ditches <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + <nl> + void unlink ( Ditch * ) ; <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - private variables <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + private : <nl> + <nl> + struct TRI_document_collection_t * _collection ; <nl> + <nl> + triagens : : basics : : Mutex _lock ; <nl> + Ditch * _begin ; <nl> + Ditch * _end ; <nl> + uint64_t _numDocumentDitches ; <nl> + } ; <nl> + <nl> + } <nl> + } <nl> + <nl> + # endif <nl> + <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + / / - - SECTION - - END - OF - FILE <nl> + / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> + <nl> + / / Local Variables : <nl> + / / mode : outline - minor <nl> + / / outline - regexp : " / / / @ brief \ \ | / / / { @ inheritDoc } \ \ | / / / @ page \ \ | / / - - SECTION - - \ \ | / / / @ \ \ } " <nl> + / / End : <nl> deleted file mode 100644 <nl> index 07b7f2e4066 . . 00000000000 <nl> mmm a / arangod / VocBase / barrier . cpp <nl> ppp / dev / null <nl> <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief deletion barriers for datafiles <nl> - / / / <nl> - / / / @ file <nl> - / / / <nl> - / / / DISCLAIMER <nl> - / / / <nl> - / / / Copyright 2014 ArangoDB GmbH , Cologne , Germany <nl> - / / / Copyright 2004 - 2014 triAGENS GmbH , Cologne , Germany <nl> - / / / <nl> - / / / Licensed under the Apache License , Version 2 . 0 ( the " License " ) ; <nl> - / / / you may not use this file except in compliance with the License . <nl> - / / / You may obtain a copy of the License at <nl> - / / / <nl> - / / / http : / / www . apache . org / licenses / LICENSE - 2 . 0 <nl> - / / / <nl> - / / / Unless required by applicable law or agreed to in writing , software <nl> - / / / distributed under the License is distributed on an " AS IS " BASIS , <nl> - / / / WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied . <nl> - / / / See the License for the specific language governing permissions and <nl> - / / / limitations under the License . <nl> - / / / <nl> - / / / Copyright holder is ArangoDB GmbH , Cologne , Germany <nl> - / / / <nl> - / / / @ author Dr . Frank Celler <nl> - / / / @ author Copyright 2014 , ArangoDB GmbH , Cologne , Germany <nl> - / / / @ author Copyright 2011 - 2013 , triAGENS GmbH , Cologne , Germany <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - # include " barrier . h " <nl> - <nl> - # include " Basics / logging . h " <nl> - # include " VocBase / document - collection . h " <nl> - <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - / / - - SECTION - - BARRIER <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - / / - - SECTION - - private functions <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief inserts the barrier element into the linked list of barrier elemnents <nl> - / / / of the collection <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - static void LinkBarrierElement ( TRI_barrier_t * element , <nl> - TRI_barrier_list_t * container ) { <nl> - TRI_ASSERT ( container ! = nullptr ) ; <nl> - TRI_ASSERT ( element ! = nullptr ) ; <nl> - <nl> - element - > _container = container ; <nl> - <nl> - TRI_LockSpin ( & container - > _lock ) ; <nl> - <nl> - / / empty list <nl> - if ( container - > _end = = nullptr ) { <nl> - element - > _next = nullptr ; <nl> - element - > _prev = nullptr ; <nl> - <nl> - container - > _begin = element ; <nl> - container - > _end = element ; <nl> - } <nl> - <nl> - / / add to the end <nl> - else { <nl> - element - > _next = nullptr ; <nl> - element - > _prev = container - > _end ; <nl> - <nl> - container - > _end - > _next = element ; <nl> - container - > _end = element ; <nl> - } <nl> - <nl> - if ( element - > _type = = TRI_BARRIER_ELEMENT ) { <nl> - / / increase counter for barrier elements <nl> - + + container - > _numBarrierElements ; <nl> - } <nl> - <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief allocate memory for a barrier of a certain type <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - template < typename T > static T * CreateBarrier ( ) { <nl> - return static_cast < T * > ( TRI_Allocate ( TRI_UNKNOWN_MEM_ZONE , sizeof ( T ) , false ) ) ; <nl> - } <nl> - <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - / / - - SECTION - - constructors and destructors <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief initialises a barrier list <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_InitBarrierList ( TRI_barrier_list_t * container , <nl> - TRI_document_collection_t * collection ) { <nl> - container - > _collection = collection ; <nl> - <nl> - TRI_InitSpin ( & container - > _lock ) ; <nl> - <nl> - container - > _begin = nullptr ; <nl> - container - > _end = nullptr ; <nl> - <nl> - container - > _numBarrierElements = 0 ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief destroys a barrier list <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_DestroyBarrierList ( TRI_barrier_list_t * container ) { <nl> - TRI_barrier_t * ptr ; <nl> - TRI_barrier_t * next ; <nl> - <nl> - ptr = container - > _begin ; <nl> - <nl> - while ( ptr ! = nullptr ) { <nl> - ptr - > _container = nullptr ; <nl> - next = ptr - > _next ; <nl> - <nl> - if ( ptr - > _type = = TRI_BARRIER_COLLECTION_UNLOAD_CALLBACK | | <nl> - ptr - > _type = = TRI_BARRIER_COLLECTION_DROP_CALLBACK | | <nl> - ptr - > _type = = TRI_BARRIER_DATAFILE_DROP_CALLBACK | | <nl> - ptr - > _type = = TRI_BARRIER_DATAFILE_RENAME_CALLBACK | | <nl> - ptr - > _type = = TRI_BARRIER_COLLECTION_REPLICATION | | <nl> - ptr - > _type = = TRI_BARRIER_COLLECTION_COMPACTION ) { <nl> - <nl> - TRI_Free ( TRI_UNKNOWN_MEM_ZONE , ptr ) ; <nl> - } <nl> - else if ( ptr - > _type = = TRI_BARRIER_ELEMENT ) { <nl> - LOG_ERROR ( " logic error . shouldn ' t have barrier elements in barrierlist on unload " ) ; <nl> - } <nl> - else { <nl> - LOG_ERROR ( " unknown barrier type " ) ; <nl> - } <nl> - <nl> - ptr = next ; <nl> - } <nl> - <nl> - TRI_DestroySpin ( & container - > _lock ) ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief check whether the barrier list contains an element of a certain type <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - bool TRI_ContainsBarrierList ( TRI_barrier_list_t * container , <nl> - TRI_barrier_type_e type ) { <nl> - TRI_LockSpin ( & container - > _lock ) ; <nl> - <nl> - if ( type = = TRI_BARRIER_ELEMENT ) { <nl> - / / shortcut <nl> - bool hasBarriers = ( container - > _numBarrierElements > 0 ) ; <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - <nl> - return hasBarriers ; <nl> - } <nl> - <nl> - TRI_barrier_t * ptr = container - > _begin ; <nl> - <nl> - while ( ptr ! = nullptr ) { <nl> - if ( ptr - > _type = = type ) { <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - <nl> - return true ; <nl> - } <nl> - <nl> - ptr = ptr - > _next ; <nl> - } <nl> - <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - <nl> - return false ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new barrier element <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierElementZ ( TRI_barrier_list_t * container , <nl> - bool usedByTransaction , <nl> - size_t line , <nl> - char const * filename ) { <nl> - TRI_barrier_blocker_t * element = CreateBarrier < TRI_barrier_blocker_t > ( ) ; <nl> - <nl> - if ( element = = nullptr ) { <nl> - return nullptr ; <nl> - } <nl> - <nl> - element - > base . _type = TRI_BARRIER_ELEMENT ; <nl> - element - > _data = nullptr ; <nl> - <nl> - element - > _line = line ; <nl> - element - > _filename = filename ; <nl> - element - > _usedByExternal = false ; <nl> - element - > _usedByTransaction = usedByTransaction ; <nl> - <nl> - LinkBarrierElement ( & element - > base , container ) ; <nl> - <nl> - return & element - > base ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new replication barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierReplication ( TRI_barrier_list_t * container ) { <nl> - TRI_barrier_replication_t * element = CreateBarrier < TRI_barrier_replication_t > ( ) ; <nl> - <nl> - if ( element = = nullptr ) { <nl> - return nullptr ; <nl> - } <nl> - <nl> - element - > base . _type = TRI_BARRIER_COLLECTION_REPLICATION ; <nl> - <nl> - LinkBarrierElement ( & element - > base , container ) ; <nl> - <nl> - return & element - > base ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new compaction barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierCompaction ( TRI_barrier_list_t * container ) { <nl> - TRI_barrier_compaction_t * element = CreateBarrier < TRI_barrier_compaction_t > ( ) ; <nl> - <nl> - if ( element = = nullptr ) { <nl> - return nullptr ; <nl> - } <nl> - <nl> - element - > base . _type = TRI_BARRIER_COLLECTION_COMPACTION ; <nl> - <nl> - LinkBarrierElement ( & element - > base , container ) ; <nl> - <nl> - return & element - > base ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new datafile deletion barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierDropDatafile ( TRI_barrier_list_t * container , <nl> - TRI_datafile_t * datafile , <nl> - void ( * callback ) ( struct TRI_datafile_s * , void * ) , <nl> - void * data ) { <nl> - TRI_barrier_datafile_drop_cb_t * element = CreateBarrier < TRI_barrier_datafile_drop_cb_t > ( ) ; <nl> - <nl> - if ( element = = nullptr ) { <nl> - return nullptr ; <nl> - } <nl> - <nl> - element - > base . _type = TRI_BARRIER_DATAFILE_DROP_CALLBACK ; <nl> - <nl> - element - > _datafile = datafile ; <nl> - element - > _data = data ; <nl> - <nl> - element - > callback = callback ; <nl> - <nl> - LinkBarrierElement ( & element - > base , container ) ; <nl> - <nl> - return & element - > base ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new datafile rename barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierRenameDatafile ( TRI_barrier_list_t * container , <nl> - TRI_datafile_t * datafile , <nl> - void ( * callback ) ( struct TRI_datafile_s * , void * ) , <nl> - void * data ) { <nl> - TRI_barrier_datafile_rename_cb_t * element = CreateBarrier < TRI_barrier_datafile_rename_cb_t > ( ) ; <nl> - <nl> - if ( element = = nullptr ) { <nl> - return nullptr ; <nl> - } <nl> - <nl> - element - > base . _type = TRI_BARRIER_DATAFILE_RENAME_CALLBACK ; <nl> - <nl> - element - > _datafile = datafile ; <nl> - element - > _data = data ; <nl> - <nl> - element - > callback = callback ; <nl> - <nl> - LinkBarrierElement ( & element - > base , container ) ; <nl> - <nl> - return & element - > base ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new collection unload barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierUnloadCollection ( TRI_barrier_list_t * container , <nl> - struct TRI_collection_t * collection , <nl> - bool ( * callback ) ( struct TRI_collection_t * , void * ) , <nl> - void * data ) { <nl> - TRI_barrier_collection_cb_t * element = CreateBarrier < TRI_barrier_collection_cb_t > ( ) ; <nl> - <nl> - if ( element = = nullptr ) { <nl> - return nullptr ; <nl> - } <nl> - <nl> - element - > base . _type = TRI_BARRIER_COLLECTION_UNLOAD_CALLBACK ; <nl> - <nl> - element - > _collection = collection ; <nl> - element - > _data = data ; <nl> - <nl> - element - > callback = callback ; <nl> - <nl> - LinkBarrierElement ( & element - > base , container ) ; <nl> - <nl> - return & element - > base ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new collection drop barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierDropCollection ( TRI_barrier_list_t * container , <nl> - struct TRI_collection_t * collection , <nl> - bool ( * callback ) ( struct TRI_collection_t * , void * ) , <nl> - void * data ) { <nl> - TRI_barrier_collection_cb_t * element = CreateBarrier < TRI_barrier_collection_cb_t > ( ) ; <nl> - <nl> - if ( element = = nullptr ) { <nl> - return nullptr ; <nl> - } <nl> - <nl> - element - > base . _type = TRI_BARRIER_COLLECTION_DROP_CALLBACK ; <nl> - <nl> - element - > _collection = collection ; <nl> - element - > _data = data ; <nl> - <nl> - element - > callback = callback ; <nl> - <nl> - LinkBarrierElement ( & element - > base , container ) ; <nl> - <nl> - return & element - > base ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief removes and frees a barrier element or datafile deletion marker <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_FreeBarrier ( TRI_barrier_t * element ) { <nl> - TRI_ASSERT ( element ! = nullptr ) ; <nl> - TRI_barrier_list_t * container = element - > _container ; <nl> - TRI_ASSERT ( container ! = nullptr ) ; <nl> - <nl> - TRI_LockSpin ( & container - > _lock ) ; <nl> - <nl> - / / element is at the beginning of the chain <nl> - if ( element - > _prev = = nullptr ) { <nl> - container - > _begin = element - > _next ; <nl> - } <nl> - else { <nl> - element - > _prev - > _next = element - > _next ; <nl> - } <nl> - <nl> - / / element is at the end of the chain <nl> - if ( element - > _next = = nullptr ) { <nl> - container - > _end = element - > _prev ; <nl> - } <nl> - else { <nl> - element - > _next - > _prev = element - > _prev ; <nl> - } <nl> - <nl> - if ( element - > _type = = TRI_BARRIER_ELEMENT ) { <nl> - / / decrease counter for barrier elements <nl> - - - container - > _numBarrierElements ; <nl> - } <nl> - <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - <nl> - / / free the element <nl> - TRI_Free ( TRI_UNKNOWN_MEM_ZONE , element ) ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief removes and frees a barrier element or datafile deletion marker , <nl> - / / / this is used for barriers used by transaction or by external to protect <nl> - / / / the flags by the lock <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_FreeBarrier ( TRI_barrier_blocker_t * element , <nl> - bool fromTransaction ) { <nl> - TRI_ASSERT ( element ! = nullptr ) ; <nl> - TRI_barrier_list_t * container = element - > base . _container ; <nl> - TRI_ASSERT ( container ! = nullptr ) ; <nl> - <nl> - TRI_LockSpin ( & container - > _lock ) ; <nl> - <nl> - / / First see who might still be using the barrier : <nl> - if ( fromTransaction ) { <nl> - TRI_ASSERT ( element - > _usedByTransaction = = true ) ; <nl> - element - > _usedByTransaction = false ; <nl> - } <nl> - else { <nl> - / / note : _usedByExternal may or may not be true when we get here <nl> - / / the reason is that there are barriers not linked to elements at all <nl> - / / ( when a barrier is created ahead of operations but the operations are <nl> - / / not executed etc . ) <nl> - element - > _usedByExternal = false ; <nl> - } <nl> - <nl> - if ( element - > _usedByTransaction = = false & & <nl> - element - > _usedByExternal = = false ) { <nl> - / / Really free it : <nl> - <nl> - / / element is at the beginning of the chain <nl> - if ( element - > base . _prev = = nullptr ) { <nl> - container - > _begin = element - > base . _next ; <nl> - } <nl> - else { <nl> - element - > base . _prev - > _next = element - > base . _next ; <nl> - } <nl> - <nl> - / / element is at the end of the chain <nl> - if ( element - > base . _next = = nullptr ) { <nl> - container - > _end = element - > base . _prev ; <nl> - } <nl> - else { <nl> - element - > base . _next - > _prev = element - > base . _prev ; <nl> - } <nl> - <nl> - if ( element - > base . _type = = TRI_BARRIER_ELEMENT ) { <nl> - / / decrease counter for barrier elements <nl> - - - container - > _numBarrierElements ; <nl> - } <nl> - <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - <nl> - / / free the element <nl> - TRI_Free ( TRI_UNKNOWN_MEM_ZONE , element ) ; <nl> - } <nl> - else { <nl> - / / Somebody else is still using it , so leave it intact : <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - } <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief sets the _usedByExternal flag , using the required lock <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_SetUsedByExternalBarrierElement ( TRI_barrier_blocker_t * element ) { <nl> - TRI_barrier_list_t * container = element - > base . _container ; <nl> - <nl> - TRI_LockSpin ( & container - > _lock ) ; <nl> - element - > _usedByExternal = true ; <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - } <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief sets the _usedByTransaction flag , using the required lock <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_SetUsedByTransactionBarrierElement ( TRI_barrier_blocker_t * element ) { <nl> - TRI_barrier_list_t * container = element - > base . _container ; <nl> - <nl> - TRI_LockSpin ( & container - > _lock ) ; <nl> - element - > _usedByTransaction = true ; <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - } <nl> - <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - / / - - SECTION - - END - OF - FILE <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - <nl> - / / Local Variables : <nl> - / / mode : outline - minor <nl> - / / outline - regexp : " / / / @ brief \ \ | / / / { @ inheritDoc } \ \ | / / / @ page \ \ | / / - - SECTION - - \ \ | / / / @ \ \ } " <nl> - / / End : <nl> deleted file mode 100644 <nl> index 072b5eae758 . . 00000000000 <nl> mmm a / arangod / VocBase / barrier . h <nl> ppp / dev / null <nl> <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief deletion barriers for datafiles <nl> - / / / <nl> - / / / @ file <nl> - / / / <nl> - / / / DISCLAIMER <nl> - / / / <nl> - / / / Copyright 2014 ArangoDB GmbH , Cologne , Germany <nl> - / / / Copyright 2004 - 2014 triAGENS GmbH , Cologne , Germany <nl> - / / / <nl> - / / / Licensed under the Apache License , Version 2 . 0 ( the " License " ) ; <nl> - / / / you may not use this file except in compliance with the License . <nl> - / / / You may obtain a copy of the License at <nl> - / / / <nl> - / / / http : / / www . apache . org / licenses / LICENSE - 2 . 0 <nl> - / / / <nl> - / / / Unless required by applicable law or agreed to in writing , software <nl> - / / / distributed under the License is distributed on an " AS IS " BASIS , <nl> - / / / WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied . <nl> - / / / See the License for the specific language governing permissions and <nl> - / / / limitations under the License . <nl> - / / / <nl> - / / / Copyright holder is ArangoDB GmbH , Cologne , Germany <nl> - / / / <nl> - / / / @ author Dr . Frank Celler <nl> - / / / @ author Copyright 2014 , ArangoDB GmbH , Cologne , Germany <nl> - / / / @ author Copyright 2011 - 2013 , triAGENS GmbH , Cologne , Germany <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - # ifndef ARANGODB_VOC_BASE_BARRIER_H <nl> - # define ARANGODB_VOC_BASE_BARRIER_H 1 <nl> - <nl> - # include " Basics / Common . h " <nl> - <nl> - # include " Basics / locks . h " <nl> - <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - / / - - SECTION - - forward declarations <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - <nl> - struct TRI_document_collection_t ; <nl> - struct TRI_collection_t ; <nl> - struct TRI_datafile_s ; <nl> - <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - / / - - SECTION - - public types <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barrier element type <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - typedef enum { <nl> - TRI_BARRIER_ELEMENT = 1 , <nl> - TRI_BARRIER_DATAFILE_DROP_CALLBACK , <nl> - TRI_BARRIER_DATAFILE_RENAME_CALLBACK , <nl> - TRI_BARRIER_COLLECTION_UNLOAD_CALLBACK , <nl> - TRI_BARRIER_COLLECTION_DROP_CALLBACK , <nl> - TRI_BARRIER_COLLECTION_REPLICATION , <nl> - TRI_BARRIER_COLLECTION_COMPACTION <nl> - } <nl> - TRI_barrier_type_e ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barrier element <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - typedef struct TRI_barrier_s { <nl> - struct TRI_barrier_s * _prev ; <nl> - struct TRI_barrier_s * _next ; <nl> - <nl> - struct TRI_barrier_list_s * _container ; <nl> - <nl> - TRI_barrier_type_e _type ; <nl> - } <nl> - TRI_barrier_t ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barrier element blocker <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - typedef struct TRI_barrier_blocker_s { <nl> - TRI_barrier_t base ; <nl> - <nl> - void * _data ; <nl> - size_t _line ; <nl> - char const * _filename ; <nl> - <nl> - bool _usedByExternal ; <nl> - bool _usedByTransaction ; <nl> - } <nl> - TRI_barrier_blocker_t ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barrier replication <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - typedef struct TRI_barrier_replication_s { <nl> - TRI_barrier_t base ; <nl> - } <nl> - TRI_barrier_replication_t ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barrier compaction <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - typedef struct TRI_barrier_compaction_s { <nl> - TRI_barrier_t base ; <nl> - } <nl> - TRI_barrier_compaction_t ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barrier element datafile removal callback <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - typedef struct TRI_barrier_datafile_drop_cb_s { <nl> - TRI_barrier_t base ; <nl> - <nl> - struct TRI_datafile_s * _datafile ; <nl> - void * _data ; <nl> - void ( * callback ) ( struct TRI_datafile_s * , void * ) ; <nl> - } <nl> - TRI_barrier_datafile_drop_cb_t ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barrier element datafile rename callback <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - typedef struct TRI_barrier_datafile_rename_cb_s { <nl> - TRI_barrier_t base ; <nl> - <nl> - struct TRI_datafile_s * _datafile ; <nl> - void * _data ; <nl> - void ( * callback ) ( struct TRI_datafile_s * , void * ) ; <nl> - } <nl> - TRI_barrier_datafile_rename_cb_t ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barrier element collection callback <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - typedef struct TRI_barrier_collection_cb_s { <nl> - TRI_barrier_t base ; <nl> - <nl> - struct TRI_collection_t * _collection ; <nl> - void * _data ; <nl> - bool ( * callback ) ( struct TRI_collection_t * , void * ) ; <nl> - } <nl> - TRI_barrier_collection_cb_t ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief doubly linked list of barriers <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - typedef struct TRI_barrier_list_s { <nl> - struct TRI_document_collection_t * _collection ; <nl> - <nl> - TRI_spin_t _lock ; <nl> - <nl> - TRI_barrier_t * _begin ; <nl> - TRI_barrier_t * _end ; <nl> - <nl> - uint64_t _numBarrierElements ; <nl> - } <nl> - TRI_barrier_list_t ; <nl> - <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - / / - - SECTION - - constructors and destructors <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief initialises a barrier list <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_InitBarrierList ( TRI_barrier_list_t * container , <nl> - struct TRI_document_collection_t * collection ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief destroys a barrier list <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_DestroyBarrierList ( TRI_barrier_list_t * container ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief check whether the barrier list contains an element of a certain type <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - bool TRI_ContainsBarrierList ( TRI_barrier_list_t * container , <nl> - TRI_barrier_type_e type ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new barrier element <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - # define TRI_CreateBarrierElement ( a , b ) TRI_CreateBarrierElementZ ( ( a ) , ( b ) , __LINE__ , __FILE__ ) <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierElementZ ( TRI_barrier_list_t * container , <nl> - bool usedByTransaction , <nl> - size_t line , <nl> - char const * filename ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new replication barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierReplication ( TRI_barrier_list_t * container ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new compaction barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierCompaction ( TRI_barrier_list_t * container ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new datafile deletion barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierDropDatafile ( TRI_barrier_list_t * container , <nl> - struct TRI_datafile_s * datafile , <nl> - void ( * callback ) ( struct TRI_datafile_s * , void * ) , <nl> - void * data ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new datafile rename barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierRenameDatafile ( TRI_barrier_list_t * container , <nl> - struct TRI_datafile_s * datafile , <nl> - void ( * callback ) ( struct TRI_datafile_s * , void * ) , <nl> - void * data ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new collection unload barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierUnloadCollection ( TRI_barrier_list_t * container , <nl> - struct TRI_collection_t * collection , <nl> - bool ( * callback ) ( struct TRI_collection_t * , void * ) , <nl> - void * data ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief creates a new collection drop barrier <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - TRI_barrier_t * TRI_CreateBarrierDropCollection ( TRI_barrier_list_t * container , <nl> - struct TRI_collection_t * collection , <nl> - bool ( * callback ) ( struct TRI_collection_t * , void * ) , <nl> - void * data ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief removes and frees a barrier element or datafile deletion marker <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_FreeBarrier ( TRI_barrier_t * element ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief removes and frees a barrier element or datafile deletion marker , <nl> - / / / this is used for barriers used by transaction or by external to protect <nl> - / / / the flags by the lock <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_FreeBarrier ( TRI_barrier_blocker_t * element , bool fromTransaction ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief sets the _usedByExternal flag , using the required lock <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_SetUsedByExternalBarrierElement ( TRI_barrier_blocker_t * ) ; <nl> - <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief sets the _usedByTransaction flag , using the required lock <nl> - / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - <nl> - void TRI_SetUsedByTransactionBarrierElement ( TRI_barrier_blocker_t * ) ; <nl> - <nl> - # endif <nl> - <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - / / - - SECTION - - END - OF - FILE <nl> - / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> - <nl> - / / Local Variables : <nl> - / / mode : outline - minor <nl> - / / outline - regexp : " / / / @ brief \ \ | / / / { @ inheritDoc } \ \ | / / / @ page \ \ | / / - - SECTION - - \ \ | / / / @ \ \ } " <nl> - / / End : <nl> mmm a / arangod / VocBase / cleanup . cpp <nl> ppp b / arangod / VocBase / cleanup . cpp <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> # include " cleanup . h " <nl> - <nl> # include " Basics / files . h " <nl> # include " Basics / logging . h " <nl> # include " Basics / tri - strings . h " <nl> # include " Utils / CursorRepository . h " <nl> - # include " VocBase / barrier . h " <nl> # include " VocBase / compactor . h " <nl> + # include " VocBase / Ditch . h " <nl> # include " VocBase / document - collection . h " <nl> # include " Wal / LogfileManager . h " <nl> <nl> static void CleanupDocumentCollection ( TRI_vocbase_col_t * collection , <nl> <nl> / / loop until done <nl> while ( true ) { <nl> - TRI_barrier_list_t * container = & document - > _barrierList ; <nl> - TRI_barrier_t * element = nullptr ; <nl> + auto ditches = document - > ditches ( ) ; <nl> <nl> / / check and remove all callback elements at the beginning of the list <nl> - TRI_LockSpin ( & container - > _lock ) ; <nl> + auto callback = [ & ] ( triagens : : arango : : Ditch const * ditch ) - > bool { <nl> + if ( ditch - > type ( ) = = triagens : : arango : : Ditch : : TRI_DITCH_COLLECTION_UNLOAD ) { <nl> + / / check if we can really unload , this is only the case if the collection ' s WAL markers <nl> + / / were fully collected <nl> + <nl> + if ( ! unloadChecked & & ! isInShutdown ) { <nl> + return false ; <nl> + } <nl> + / / fall - through intentional <nl> + } <nl> + else { <nl> + / / retry in next iteration <nl> + unloadChecked = false ; <nl> + } <nl> + <nl> + return true ; <nl> + } ; <nl> <nl> - / / check the element on top of the barrier list <nl> - if ( container - > _begin = = nullptr ) { <nl> - / / nothing to do <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - return ; <nl> - } <nl> <nl> - / / if it is a TRI_BARRIER_ELEMENT , it means that there is still a reference held <nl> - / / to document data in a datafile . We must then not unload or remove a file <nl> - if ( container - > _begin - > _type = = TRI_BARRIER_ELEMENT | | <nl> - container - > _begin - > _type = = TRI_BARRIER_COLLECTION_REPLICATION | | <nl> - container - > _begin - > _type = = TRI_BARRIER_COLLECTION_COMPACTION | | <nl> - container - > _numBarrierElements > 0 ) { <nl> - / / did not find anything at the head of the barrier list or found an element marker <nl> - / / this means we must exit and cannot throw away datafiles and can unload collections <nl> + bool popped = false ; <nl> + auto ditch = ditches - > process ( popped , callback ) ; <nl> <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> + if ( ditch = = nullptr ) { <nl> + / / absolutely nothing to do <nl> return ; <nl> } <nl> <nl> - / / no TRI_BARRIER_ELEMENT at the head of the barrier list . This means that there is <nl> - / / some other action we can perform ( i . e . unloading a datafile or a collection ) <nl> - <nl> - / / note that there is no need to check the entire list for a TRI_BARRIER_ELEMENT as <nl> - / / the list is filled up in chronological order . New barriers are always added to the <nl> - / / tail of the list , and if we have the following list <nl> - / / HEAD - > TRI_BARRIER_DATAFILE_CALLBACK - > TRI_BARRIER_ELEMENT <nl> - / / then it is still safe to execute the datafile callback operation , even if there <nl> - / / is a TRI_BARRIER_ELEMENT after it . <nl> - / / This is the case because the TRI_BARRIER_DATAFILE_CALLBACK is only put into the <nl> - / / barrier list after changing the pointers in all headers . After the pointers are <nl> - / / changed , it is safe to unload / remove an old datafile ( that noone points to ) . And <nl> - / / any newer TRI_BARRIER_ELEMENTS will always reference data inside other datafiles . <nl> - <nl> - element = container - > _begin ; <nl> - TRI_ASSERT ( element ! = nullptr ) ; <nl> - <nl> - if ( element - > _type = = TRI_BARRIER_COLLECTION_UNLOAD_CALLBACK ) { <nl> - / / check if we can really unload , this is only the case if the collection ' s WAL markers <nl> - / / were fully collected <nl> - <nl> - if ( ! unloadChecked & & ! isInShutdown ) { <nl> - / / we must release the lock temporarily to check if the collection is fully collected <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> - <nl> - / / must not hold the spin lock while querying the collection <nl> - if ( ! TRI_IsFullyCollectedDocumentCollection ( document ) ) { <nl> - bool isDeleted = false ; <nl> - <nl> - / / if there is still some garbage collection to perform , <nl> - / / check if the collection was deleted already <nl> - if ( TRI_TRY_READ_LOCK_STATUS_VOCBASE_COL ( collection ) ) { <nl> - isDeleted = ( collection - > _status = = TRI_VOC_COL_STATUS_DELETED ) ; <nl> - TRI_READ_UNLOCK_STATUS_VOCBASE_COL ( collection ) ; <nl> - } <nl> - <nl> - if ( ! isDeleted & & TRI_IsDeletedVocBase ( collection - > _vocbase ) ) { <nl> - / / the collection was not marked as deleted , but the database was <nl> - isDeleted = true ; <nl> - } <nl> - <nl> - if ( ! isDeleted ) { <nl> - / / collection is not fully collected and still undeleted - postpone the unload <nl> - return ; <nl> - } <nl> - / / if deleted , then we may unload / delete <nl> + TRI_ASSERT ( ditch ! = nullptr ) ; <nl> + <nl> + if ( ! popped ) { <nl> + if ( ! TRI_IsFullyCollectedDocumentCollection ( document ) ) { <nl> + bool isDeleted = false ; <nl> + <nl> + / / if there is still some garbage collection to perform , <nl> + / / check if the collection was deleted already <nl> + if ( TRI_TRY_READ_LOCK_STATUS_VOCBASE_COL ( collection ) ) { <nl> + isDeleted = ( collection - > _status = = TRI_VOC_COL_STATUS_DELETED ) ; <nl> + TRI_READ_UNLOCK_STATUS_VOCBASE_COL ( collection ) ; <nl> } <nl> <nl> - unloadChecked = true ; <nl> - continue ; <nl> - } <nl> - / / fall - through intentional <nl> - } <nl> - else { <nl> - / / retry in next iteration <nl> - unloadChecked = false ; <nl> - } <nl> + if ( ! isDeleted & & TRI_IsDeletedVocBase ( collection - > _vocbase ) ) { <nl> + / / the collection was not marked as deleted , but the database was <nl> + isDeleted = true ; <nl> + } <nl> <nl> - / / found an element to go on with <nl> - container - > _begin = element - > _next ; <nl> + if ( ! isDeleted ) { <nl> + / / collection is not fully collected and still undeleted - postpone the unload <nl> + return ; <nl> + } <nl> + / / if deleted , then we may unload / delete <nl> + } <nl> <nl> - if ( element - > _next = = nullptr ) { <nl> - container - > _end = nullptr ; <nl> - } <nl> - else { <nl> - element - > _next - > _prev = nullptr ; <nl> + unloadChecked = true ; <nl> + continue ; <nl> } <nl> <nl> - / / yes , we can release the lock here <nl> - TRI_UnlockSpin ( & container - > _lock ) ; <nl> + / / if we got here , the ditch was already unlinked from the list of ditches <nl> + / / if we free it , we therefore must not use the freeDitch method ! <nl> <nl> - / / someone else might now insert a new TRI_BARRIER_ELEMENT here , but it will <nl> + / / someone else might now insert a new TRI_DITCH_DOCUMENT now , but it will <nl> / / always refer to a different datafile than the one that we will now unload <nl> <nl> / / execute callback , sone of the callbacks might delete or free our collection <nl> - if ( element - > _type = = TRI_BARRIER_DATAFILE_DROP_CALLBACK ) { <nl> - TRI_barrier_datafile_drop_cb_t * de = ( TRI_barrier_datafile_drop_cb_t * ) element ; <nl> + auto const type = ditch - > type ( ) ; <nl> <nl> - de - > callback ( de - > _datafile , de - > _data ) ; <nl> - TRI_Free ( TRI_UNKNOWN_MEM_ZONE , element ) ; <nl> + if ( type = = triagens : : arango : : Ditch : : TRI_DITCH_DATAFILE_DROP ) { <nl> + dynamic_cast < triagens : : arango : : DropDatafileDitch * > ( ditch ) - > executeCallback ( ) ; <nl> + delete ditch ; <nl> / / next iteration <nl> } <nl> - else if ( element - > _type = = TRI_BARRIER_DATAFILE_RENAME_CALLBACK ) { <nl> - TRI_barrier_datafile_rename_cb_t * de = ( TRI_barrier_datafile_rename_cb_t * ) element ; <nl> - <nl> - de - > callback ( de - > _datafile , de - > _data ) ; <nl> - TRI_Free ( TRI_UNKNOWN_MEM_ZONE , element ) ; <nl> + else if ( type = = triagens : : arango : : Ditch : : TRI_DITCH_DATAFILE_RENAME ) { <nl> + dynamic_cast < triagens : : arango : : RenameDatafileDitch * > ( ditch ) - > executeCallback ( ) ; <nl> + delete ditch ; <nl> / / next iteration <nl> } <nl> - else if ( element - > _type = = TRI_BARRIER_COLLECTION_UNLOAD_CALLBACK ) { <nl> - / / collection is unloaded <nl> - TRI_barrier_collection_cb_t * ce = ( TRI_barrier_collection_cb_t * ) element ; <nl> - <nl> - bool hasUnloaded = ce - > callback ( ce - > _collection , ce - > _data ) ; <nl> - TRI_Free ( TRI_UNKNOWN_MEM_ZONE , element ) ; <nl> + else if ( type = = triagens : : arango : : Ditch : : TRI_DITCH_COLLECTION_UNLOAD ) { <nl> + / / collection will be unloaded <nl> + bool hasUnloaded = dynamic_cast < triagens : : arango : : UnloadCollectionDitch * > ( ditch ) - > executeCallback ( ) ; <nl> + delete ditch ; <nl> <nl> if ( hasUnloaded ) { <nl> / / this has unloaded and freed the collection <nl> return ; <nl> } <nl> } <nl> - else if ( element - > _type = = TRI_BARRIER_COLLECTION_DROP_CALLBACK ) { <nl> - / / collection is dropped <nl> - TRI_barrier_collection_cb_t * ce = ( TRI_barrier_collection_cb_t * ) element ; <nl> - <nl> - bool hasUnloaded = ce - > callback ( ce - > _collection , ce - > _data ) ; <nl> - TRI_Free ( TRI_UNKNOWN_MEM_ZONE , element ) ; <nl> + else if ( type = = triagens : : arango : : Ditch : : TRI_DITCH_COLLECTION_DROP ) { <nl> + / / collection will be dropped <nl> + bool hasDropped = dynamic_cast < triagens : : arango : : DropCollectionDitch * > ( ditch ) - > executeCallback ( ) ; <nl> + delete ditch ; <nl> <nl> - if ( hasUnloaded ) { <nl> + if ( hasDropped ) { <nl> / / this has dropped the collection <nl> return ; <nl> } <nl> } <nl> else { <nl> / / unknown type <nl> - LOG_FATAL_AND_EXIT ( " unknown barrier type ' % d ' " , ( int ) element - > _type ) ; <nl> + LOG_FATAL_AND_EXIT ( " unknown ditch type ' % d ' " , ( int ) type ) ; <nl> } <nl> <nl> / / next iteration <nl> static void CleanupCursors ( TRI_vocbase_t * vocbase , <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> void TRI_CleanupVocBase ( void * data ) { <nl> - TRI_vector_pointer_t collections ; <nl> uint64_t iterations = 0 ; <nl> <nl> TRI_vocbase_t * const vocbase = static_cast < TRI_vocbase_t * > ( data ) ; <nl> TRI_ASSERT ( vocbase ! = nullptr ) ; <nl> TRI_ASSERT ( vocbase - > _state = = 1 ) ; <nl> <nl> + TRI_vector_pointer_t collections ; <nl> TRI_InitVectorPointer ( & collections , TRI_UNKNOWN_MEM_ZONE ) ; <nl> <nl> while ( true ) { <nl> mmm a / arangod / VocBase / compactor . cpp <nl> ppp b / arangod / VocBase / compactor . cpp <nl> static void CompactifyDatafiles ( TRI_document_collection_t * document , <nl> RemoveCompactor ( document , compactor ) ; <nl> <nl> for ( i = 0 ; i < n ; + + i ) { <nl> - TRI_barrier_t * b ; <nl> - <nl> compaction_info_t * compaction = static_cast < compaction_info_t * > ( TRI_AtVector ( compactions , i ) ) ; <nl> <nl> / / datafile is also empty after compaction and thus useless <nl> RemoveDatafile ( document , compaction - > _datafile ) ; <nl> <nl> - / / add a deletion marker to the result set container <nl> - b = TRI_CreateBarrierDropDatafile ( & document - > _barrierList , compaction - > _datafile , DropDatafileCallback , document ) ; <nl> + / / add a deletion ditch to the collection <nl> + auto b = document - > ditches ( ) - > createDropDatafileDitch ( compaction - > _datafile , document , DropDatafileCallback , __FILE__ , __LINE__ ) ; <nl> <nl> if ( b = = nullptr ) { <nl> - LOG_ERROR ( " out of memory when creating datafile - drop barrier " ) ; <nl> + LOG_ERROR ( " out of memory when creating datafile - drop ditch " ) ; <nl> } <nl> } <nl> } <nl> static void CompactifyDatafiles ( TRI_document_collection_t * document , <nl> } <nl> <nl> for ( i = 0 ; i < n ; + + i ) { <nl> - TRI_barrier_t * b ; <nl> compaction_info_t * compaction = static_cast < compaction_info_t * > ( TRI_AtVector ( compactions , i ) ) ; <nl> <nl> if ( i = = 0 ) { <nl> static void CompactifyDatafiles ( TRI_document_collection_t * document , <nl> <nl> memcpy ( copy , & context , sizeof ( compaction_context_t ) ) ; <nl> <nl> - b = TRI_CreateBarrierRenameDatafile ( & document - > _barrierList , compaction - > _datafile , RenameDatafileCallback , copy ) ; <nl> + auto b = document - > ditches ( ) - > createRenameDatafileDitch ( compaction - > _datafile , copy , RenameDatafileCallback , __FILE__ , __LINE__ ) ; <nl> <nl> if ( b = = nullptr ) { <nl> - LOG_ERROR ( " out of memory when creating datafile - rename barrier " ) ; <nl> + LOG_ERROR ( " out of memory when creating datafile - rename ditch " ) ; <nl> TRI_Free ( TRI_CORE_MEM_ZONE , copy ) ; <nl> } <nl> } <nl> static void CompactifyDatafiles ( TRI_document_collection_t * document , <nl> RemoveDatafile ( document , compaction - > _datafile ) ; <nl> <nl> / / add a drop datafile marker <nl> - b = TRI_CreateBarrierDropDatafile ( & document - > _barrierList , compaction - > _datafile , DropDatafileCallback , document ) ; <nl> + auto b = document - > ditches ( ) - > createDropDatafileDitch ( compaction - > _datafile , document , DropDatafileCallback , __FILE__ , __LINE__ ) ; <nl> <nl> if ( b = = nullptr ) { <nl> - LOG_ERROR ( " out of memory when creating datafile - drop barrier " ) ; <nl> + LOG_ERROR ( " out of memory when creating datafile - drop ditch " ) ; <nl> } <nl> } <nl> } <nl> void TRI_CompactorVocBase ( void * data ) { <nl> } <nl> <nl> if ( document - > _lastCompaction + COMPACTOR_COLLECTION_INTERVAL < = now ) { <nl> - TRI_barrier_t * ce = TRI_CreateBarrierCompaction ( & document - > _barrierList ) ; <nl> + auto ce = document - > ditches ( ) - > createCompactionDitch ( __FILE__ , __LINE__ ) ; <nl> <nl> if ( ce = = nullptr ) { <nl> / / out of memory <nl> - LOG_WARNING ( " out of memory when trying to create a barrier element " ) ; <nl> + LOG_WARNING ( " out of memory when trying to create compaction ditch " ) ; <nl> } <nl> else { <nl> worked = CompactifyDocumentCollection ( document ) ; <nl> void TRI_CompactorVocBase ( void * data ) { <nl> } <nl> / / if we worked , then we don ' t set the compaction stamp to force another round of compaction <nl> <nl> - TRI_FreeBarrier ( ce ) ; <nl> + document - > ditches ( ) - > freeDitch ( ce ) ; <nl> } <nl> } <nl> <nl> mmm a / arangod / VocBase / document - collection . cpp <nl> ppp b / arangod / VocBase / document - collection . cpp <nl> <nl> # include " Utils / transactions . h " <nl> # include " Utils / CollectionReadLocker . h " <nl> # include " Utils / CollectionWriteLocker . h " <nl> + # include " VocBase / Ditch . h " <nl> # include " VocBase / edge - collection . h " <nl> # include " VocBase / ExampleMatcher . h " <nl> # include " VocBase / key - generator . h " <nl> # include " VocBase / server . h " <nl> # include " VocBase / update - policy . h " <nl> # include " VocBase / voc - shaper . h " <nl> - # include " VocBase / barrier . h " <nl> # include " Wal / DocumentOperation . h " <nl> # include " Wal / LogfileManager . h " <nl> # include " Wal / Marker . h " <nl> void TRI_doc_mptr_copy_t : : setDataPtr ( void const * d ) { <nl> TRI_document_collection_t : : TRI_document_collection_t ( ) <nl> : _useSecondaryIndexes ( true ) , <nl> _capConstraint ( nullptr ) , <nl> + _ditches ( this ) , <nl> _headersPtr ( nullptr ) , <nl> _keyGenerator ( nullptr ) , <nl> _uncollectedLogfileEntries ( 0 ) , <nl> triagens : : arango : : Index * TRI_document_collection_t : : lookupIndex ( TRI_idx_iid_t i <nl> <nl> # ifdef TRI_ENABLE_MAINTAINER_MODE <nl> TRI_shaper_t * TRI_document_collection_t : : getShaper ( ) const { <nl> - if ( ! TRI_ContainsBarrierList ( & _barrierList , TRI_BARRIER_ELEMENT ) ) { <nl> + if ( ! _ditches . contains ( triagens : : arango : : Ditch : : TRI_DITCH_DOCUMENT ) ) { <nl> TransactionBase : : assertSomeTrxInScope ( ) ; <nl> } <nl> return _shaper ; <nl> static int InitBaseDocumentCollection ( TRI_document_collection_t * document , <nl> return res ; <nl> } <nl> <nl> - TRI_InitBarrierList ( & document - > _barrierList , document ) ; <nl> - <nl> TRI_InitReadWriteLock ( & document - > _compactionLock ) ; <nl> <nl> return TRI_ERROR_NO_ERROR ; <nl> static void DestroyBaseDocumentCollection ( TRI_document_collection_t * document ) <nl> } <nl> <nl> TRI_DestroyAssociativePointer ( & document - > _datafileInfo ) ; <nl> - TRI_DestroyBarrierList ( & document - > _barrierList ) ; <nl> + <nl> + document - > ditches ( ) - > destroy ( ) ; <nl> TRI_DestroyCollection ( document ) ; <nl> } <nl> <nl> mmm a / arangod / VocBase / document - collection . h <nl> ppp b / arangod / VocBase / document - collection . h <nl> <nl> # include " Basics / ReadWriteLockCPP11 . h " <nl> # include " Basics / fasthash . h " <nl> # include " Basics / JsonHelper . h " <nl> - # include " VocBase / barrier . h " <nl> # include " VocBase / collection . h " <nl> + # include " VocBase / Ditch . h " <nl> # include " VocBase / headers . h " <nl> # include " VocBase / transaction . h " <nl> # include " VocBase / update - policy . h " <nl> struct TRI_document_collection_t : public TRI_collection_t { <nl> triagens : : arango : : EdgeIndex * edgeIndex ( ) ; <nl> triagens : : arango : : CapConstraint * capConstraint ( ) ; <nl> <nl> - triagens : : arango : : CapConstraint * _capConstraint ; <nl> + triagens : : arango : : CapConstraint * _capConstraint ; <nl> <nl> - mutable TRI_barrier_list_t _barrierList ; <nl> - TRI_associative_pointer_t _datafileInfo ; <nl> + triagens : : arango : : Ditches * ditches ( ) { <nl> + return & _ditches ; <nl> + } <nl> + <nl> + mutable triagens : : arango : : Ditches _ditches ; <nl> + TRI_associative_pointer_t _datafileInfo ; <nl> <nl> - TRI_headers_t * _headersPtr ; <nl> - KeyGenerator * _keyGenerator ; <nl> + TRI_headers_t * _headersPtr ; <nl> + KeyGenerator * _keyGenerator ; <nl> <nl> std : : vector < triagens : : arango : : Index * > _indexes ; <nl> <nl> - std : : set < TRI_voc_tid_t > * _failedTransactions ; <nl> + std : : set < TRI_voc_tid_t > * _failedTransactions ; <nl> <nl> - std : : atomic < int64_t > _uncollectedLogfileEntries ; <nl> - int64_t _numberDocuments ; <nl> - TRI_read_write_lock_t _compactionLock ; <nl> - double _lastCompaction ; <nl> + std : : atomic < int64_t > _uncollectedLogfileEntries ; <nl> + int64_t _numberDocuments ; <nl> + TRI_read_write_lock_t _compactionLock ; <nl> + double _lastCompaction ; <nl> <nl> / / . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <nl> / / this condition variable protects the _journalsCondition <nl> / / . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <nl> <nl> - TRI_condition_t _journalsCondition ; <nl> + TRI_condition_t _journalsCondition ; <nl> <nl> / / whether or not any of the indexes may need to be garbage - collected <nl> / / this flag may be modifying when an index is added to a collection <nl> / / if true , the cleanup thread will periodically call the cleanup functions of <nl> / / the collection ' s indexes that support cleanup <nl> - size_t _cleanupIndexes ; <nl> + size_t _cleanupIndexes ; <nl> <nl> int ( * beginRead ) ( struct TRI_document_collection_t * ) ; <nl> int ( * endRead ) ( struct TRI_document_collection_t * ) ; <nl> struct TRI_document_collection_t : public TRI_collection_t { <nl> int ( * beginReadTimed ) ( struct TRI_document_collection_t * , uint64_t , uint64_t ) ; <nl> int ( * beginWriteTimed ) ( struct TRI_document_collection_t * , uint64_t , uint64_t ) ; <nl> <nl> - # ifdef TRI_ENABLE_MAINTAINER_MODE <nl> - void ( * dump ) ( struct TRI_document_collection_t * ) ; <nl> - # endif <nl> - <nl> TRI_doc_collection_info_t * ( * figures ) ( struct TRI_document_collection_t * collection ) ; <nl> TRI_voc_size_t ( * size ) ( struct TRI_document_collection_t * collection ) ; <nl> <nl> mmm a / arangod / VocBase / replication - dump . cpp <nl> ppp b / arangod / VocBase / replication - dump . cpp <nl> int TRI_DumpCollectionReplication ( TRI_replication_dump_t * dump , <nl> TRI_document_collection_t * document = col - > _collection ; <nl> <nl> / / create a barrier so the underlying collection is not unloaded <nl> - TRI_barrier_t * b = TRI_CreateBarrierReplication ( & document - > _barrierList ) ; <nl> + auto b = document - > ditches ( ) - > createReplicationDitch ( __FILE__ , __LINE__ ) ; <nl> <nl> if ( b = = nullptr ) { <nl> return TRI_ERROR_OUT_OF_MEMORY ; <nl> int TRI_DumpCollectionReplication ( TRI_replication_dump_t * dump , <nl> <nl> TRI_ReadUnlockReadWriteLock ( & document - > _compactionLock ) ; <nl> <nl> - TRI_FreeBarrier ( b ) ; <nl> + document - > ditches ( ) - > freeDitch ( b ) ; <nl> <nl> return res ; <nl> } <nl> mmm a / arangod / VocBase / transaction . cpp <nl> ppp b / arangod / VocBase / transaction . cpp <nl> static TRI_transaction_collection_t * CreateCollection ( TRI_transaction_t * trx , <nl> trxCollection - > _accessType = accessType ; <nl> trxCollection - > _nestingLevel = nestingLevel ; <nl> trxCollection - > _collection = nullptr ; <nl> - trxCollection - > _barrier = nullptr ; <nl> + trxCollection - > _ditch = nullptr ; <nl> trxCollection - > _operations = nullptr ; <nl> trxCollection - > _originalRevision = 0 ; <nl> trxCollection - > _lockType = TRI_TRANSACTION_NONE ; <nl> static void FreeCollection ( TRI_transaction_collection_t * trxCollection ) { <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief frees an unused barrier if it exists <nl> + / / / @ brief frees an unused ditch if it exists <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - static void FreeBarrier ( TRI_transaction_collection_t * trxCollection ) { <nl> - if ( trxCollection - > _barrier ! = nullptr ) { <nl> - / / we ' re done with this barrier <nl> - auto barrier = reinterpret_cast < TRI_barrier_blocker_t * > ( trxCollection - > _barrier ) ; <nl> + static void FreeDitch ( TRI_transaction_collection_t * trxCollection ) { <nl> + auto ditch = trxCollection - > _ditch ; <nl> <nl> - TRI_FreeBarrier ( barrier , true / * fromTransaction * / ) ; <nl> - / / If some external entity is still using the barrier , it is kept ! <nl> + if ( ditch ! = nullptr ) { <nl> + / / we ' re done with this ditch <nl> + ditch - > ditches ( ) - > freeDocumentDitch ( ditch , true / * fromTransaction * / ) ; <nl> + / / If some external entity is still using the ditch , it is kept ! <nl> <nl> - trxCollection - > _barrier = nullptr ; <nl> + trxCollection - > _ditch = nullptr ; <nl> } <nl> } <nl> <nl> void TRI_FreeTransaction ( TRI_transaction_t * trx ) { <nl> while ( i - - > 0 ) { <nl> TRI_transaction_collection_t * trxCollection = static_cast < TRI_transaction_collection_t * > ( TRI_AtVectorPointer ( & trx - > _collections , i ) ) ; <nl> <nl> - FreeBarrier ( trxCollection ) ; <nl> + FreeDitch ( trxCollection ) ; <nl> FreeCollection ( trxCollection ) ; <nl> } <nl> <nl> mmm a / arangod / VocBase / transaction . h <nl> ppp b / arangod / VocBase / transaction . h <nl> <nl> # include " Basics / hashes . h " <nl> # include " Basics / locks . h " <nl> # include " Basics / vector . h " <nl> - <nl> # include " VocBase / datafile . h " <nl> # include " VocBase / voc - types . h " <nl> <nl> namespace triagens { <nl> + namespace arango { <nl> + class DocumentDitch ; <nl> + } <nl> namespace wal { <nl> struct DocumentOperation ; <nl> } <nl> namespace triagens { <nl> / / - - SECTION - - forward declarations <nl> / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> <nl> - struct TRI_barrier_s ; <nl> struct TRI_vocbase_s ; <nl> struct TRI_vocbase_col_s ; <nl> <nl> typedef struct TRI_transaction_collection_s { <nl> TRI_transaction_type_e _accessType ; / / access type ( read | write ) <nl> int _nestingLevel ; / / the transaction level that added this collection <nl> struct TRI_vocbase_col_s * _collection ; / / vocbase collection pointer <nl> - struct TRI_barrier_s * _barrier ; <nl> + triagens : : arango : : DocumentDitch * _ditch ; <nl> std : : vector < triagens : : wal : : DocumentOperation * > * _operations ; <nl> TRI_voc_rid_t _originalRevision ; / / collection revision at trx start <nl> TRI_transaction_type_e _lockType ; / / collection lock type <nl> mmm a / arangod / VocBase / vocbase . cpp <nl> ppp b / arangod / VocBase / vocbase . cpp <nl> <nl> # include " Utils / CursorRepository . h " <nl> # include " Utils / transactions . h " <nl> # include " VocBase / auth . h " <nl> - # include " VocBase / barrier . h " <nl> # include " VocBase / cleanup . h " <nl> # include " VocBase / compactor . h " <nl> + # include " VocBase / Ditch . h " <nl> # include " VocBase / document - collection . h " <nl> # include " VocBase / replication - applier . h " <nl> # include " VocBase / server . h " <nl> static bool UnloadCollectionCallback ( TRI_collection_t * col , <nl> return true ; <nl> } <nl> <nl> - if ( TRI_ContainsBarrierList ( & collection - > _collection - > _barrierList , TRI_BARRIER_ELEMENT ) | | <nl> - TRI_ContainsBarrierList ( & collection - > _collection - > _barrierList , TRI_BARRIER_COLLECTION_REPLICATION ) | | <nl> - TRI_ContainsBarrierList ( & collection - > _collection - > _barrierList , TRI_BARRIER_COLLECTION_COMPACTION ) ) { <nl> + auto ditches = collection - > _collection - > ditches ( ) ; <nl> + <nl> + if ( ditches - > contains ( triagens : : arango : : Ditch : : TRI_DITCH_DOCUMENT ) | | <nl> + ditches - > contains ( triagens : : arango : : Ditch : : TRI_DITCH_REPLICATION ) | | <nl> + ditches - > contains ( triagens : : arango : : Ditch : : TRI_DITCH_COMPACTION ) ) { <nl> TRI_WRITE_UNLOCK_STATUS_VOCBASE_COL ( collection ) ; <nl> <nl> - / / still some barriers left . . . <nl> - / / as the cleanup thread has already popped the unload barrier from the barrier list , <nl> + / / still some ditches left . . . <nl> + / / as the cleanup thread has already popped the unload ditch from the ditches list , <nl> / / we need to insert a new one to really executed the unload <nl> TRI_UnloadCollectionVocBase ( collection - > _collection - > _vocbase , collection , false ) ; <nl> <nl> static int LoadCollectionVocBase ( TRI_vocbase_t * vocbase , <nl> / / release the WRITE lock and try again <nl> if ( collection - > _status = = TRI_VOC_COL_STATUS_UNLOADING ) { <nl> / / check if there is a deferred drop action going on for this collection <nl> - if ( TRI_ContainsBarrierList ( & collection - > _collection - > _barrierList , TRI_BARRIER_COLLECTION_DROP_CALLBACK ) ) { <nl> + if ( collection - > _collection - > ditches ( ) - > contains ( triagens : : arango : : Ditch : : TRI_DITCH_COLLECTION_DROP ) ) { <nl> / / drop call going on , we must abort <nl> TRI_WRITE_UNLOCK_STATUS_VOCBASE_COL ( collection ) ; <nl> <nl> int TRI_UnloadCollectionVocBase ( TRI_vocbase_t * vocbase , <nl> / / mark collection as unloading <nl> collection - > _status = TRI_VOC_COL_STATUS_UNLOADING ; <nl> <nl> - / / added callback for unload <nl> - TRI_CreateBarrierUnloadCollection ( & collection - > _collection - > _barrierList , <nl> - collection - > _collection , <nl> - UnloadCollectionCallback , <nl> - collection ) ; <nl> + / / add callback for unload <nl> + collection - > _collection - > ditches ( ) - > createUnloadCollectionDitch ( collection - > _collection , collection , UnloadCollectionCallback , __FILE__ , __LINE__ ) ; <nl> <nl> / / release locks <nl> TRI_WRITE_UNLOCK_STATUS_VOCBASE_COL ( collection ) ; <nl> int TRI_DropCollectionVocBase ( TRI_vocbase_t * vocbase , <nl> DropCollectionCallback ( nullptr , collection ) ; <nl> } <nl> else { <nl> - / / added callback for dropping <nl> - TRI_CreateBarrierDropCollection ( & collection - > _collection - > _barrierList , <nl> - collection - > _collection , <nl> - DropCollectionCallback , <nl> - collection ) ; <nl> + / / add callback for dropping <nl> + collection - > _collection - > ditches ( ) - > createDropCollectionDitch ( collection - > _collection , collection , DropCollectionCallback , __FILE__ , __LINE__ ) ; <nl> <nl> / / wake up the cleanup thread <nl> TRI_LockCondition ( & vocbase - > _cleanupCondition ) ; <nl> mmm a / arangod / Wal / CollectorThread . cpp <nl> ppp b / arangod / Wal / CollectorThread . cpp <nl> char * CollectorThread : : nextFreeMarkerPosition ( TRI_document_collection_t * docume <nl> / / create a local datafile info struct <nl> createDfi ( cache , datafile - > _fid ) ; <nl> <nl> - / / we only need the barriers when we are outside the recovery <nl> + / / we only need the ditches when we are outside the recovery <nl> / / the compactor will not run during recovery <nl> - TRI_barrier_t * barrier = TRI_CreateBarrierElement ( & document - > _barrierList , false ) ; <nl> + auto ditch = document - > ditches ( ) - > createDocumentDitch ( false , __FILE__ , __LINE__ ) ; <nl> <nl> - if ( barrier = = nullptr ) { <nl> + if ( ditch = = nullptr ) { <nl> THROW_ARANGO_EXCEPTION ( TRI_ERROR_OUT_OF_MEMORY ) ; <nl> } <nl> <nl> - cache - > addBarrier ( barrier ) ; <nl> + cache - > addDitch ( ditch ) ; <nl> } <nl> } <nl> else { <nl> mmm a / arangod / Wal / CollectorThread . h <nl> ppp b / arangod / Wal / CollectorThread . h <nl> <nl> # include " Basics / ConditionVariable . h " <nl> # include " Basics / Mutex . h " <nl> # include " Basics / Thread . h " <nl> - # include " VocBase / barrier . h " <nl> # include " VocBase / datafile . h " <nl> + # include " VocBase / Ditch . h " <nl> # include " VocBase / document - collection . h " <nl> # include " VocBase / voc - types . h " <nl> # include " Wal / Logfile . h " <nl> namespace triagens { <nl> logfile ( logfile ) , <nl> totalOperationsCount ( totalOperationsCount ) , <nl> operations ( new std : : vector < CollectorOperation > ( ) ) , <nl> - barriers ( ) , <nl> + ditches ( ) , <nl> dfi ( ) , <nl> lastFid ( 0 ) , <nl> lastDatafile ( nullptr ) { <nl> namespace triagens { <nl> if ( operations ! = nullptr ) { <nl> delete operations ; <nl> } <nl> - freeBarriers ( ) ; <nl> + freeDitches ( ) ; <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief add a barrier <nl> + / / / @ brief add a ditch <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - void addBarrier ( TRI_barrier_t * barrier ) { <nl> - TRI_ASSERT ( barrier ! = nullptr ) ; <nl> - barriers . push_back ( barrier ) ; <nl> + void addDitch ( triagens : : arango : : DocumentDitch * ditch ) { <nl> + TRI_ASSERT ( ditch ! = nullptr ) ; <nl> + ditches . emplace_back ( ditch ) ; <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief free all barriers <nl> + / / / @ brief free all ditches <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - void freeBarriers ( ) { <nl> - for ( auto it = barriers . begin ( ) ; it ! = barriers . end ( ) ; + + it ) { <nl> - TRI_FreeBarrier ( ( * it ) ) ; <nl> + void freeDitches ( ) { <nl> + for ( auto & it : ditches ) { <nl> + it - > ditches ( ) - > freeDocumentDitch ( it , false ) ; <nl> } <nl> <nl> - barriers . clear ( ) ; <nl> + ditches . clear ( ) ; <nl> } <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> namespace triagens { <nl> std : : vector < CollectorOperation > * operations ; <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barriers held by the operations <nl> + / / / @ brief ditches held by the operations <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - std : : vector < TRI_barrier_t * > barriers ; <nl> + std : : vector < triagens : : arango : : DocumentDitch * > ditches ; <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> / / / @ brief datafile info cache , updated when the collector transfers markers <nl> mmm a / js / server / upgrade - database . js <nl> ppp b / js / server / upgrade - database . js <nl> <nl> <nl> task : function ( ) { <nl> var aal = getCollection ( " _aal " ) ; <nl> - if ( ! aal ) { <nl> + if ( ! aal ) { <nl> return true ; <nl> } <nl> aal . drop ( ) ; <nl> mmm a / lib / V8 / v8 - globals . cpp <nl> ppp b / lib / V8 / v8 - globals . cpp <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> TRI_v8_global_s : : TRI_v8_global_s ( v8 : : Isolate * isolate ) <nl> - : JSBarriers ( ) , <nl> - JSCollections ( ) , <nl> + : JSCollections ( ) , <nl> + JSDitches ( ) , <nl> <nl> AgencyTempl ( ) , <nl> ClusterInfoTempl ( ) , <nl> mmm a / lib / V8 / v8 - globals . h <nl> ppp b / lib / V8 / v8 - globals . h <nl> typedef struct TRI_v8_global_s { <nl> / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief barrier mapping for weak pointers <nl> + / / / @ brief collection mapping for weak pointers <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - std : : unordered_map < void * , v8 : : Persistent < v8 : : External > > JSBarriers ; <nl> + std : : unordered_map < void * , v8 : : Persistent < v8 : : External > > JSCollections ; <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - / / / @ brief collection mapping for weak pointers <nl> + / / / @ brief document ditches mapping for weak pointers <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> <nl> - std : : unordered_map < void * , v8 : : Persistent < v8 : : External > > JSCollections ; <nl> + std : : unordered_map < void * , v8 : : Persistent < v8 : : External > > JSDitches ; <nl> <nl> / / mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> / / - - SECTION - - JAVASCRIPT OBJECT TEMPLATES <nl>
|
goodbye barriers , welcome ditches
|
arangodb/arangodb
|
4dde6e49cd82909ba3ec7a9f60f02fa37ad6bf81
|
2015-05-28T08:23:30Z
|
mmm a / src / python / grpcio / grpc / experimental / aio / _channel . py <nl> ppp b / src / python / grpcio / grpc / experimental / aio / _channel . py <nl> async def _close ( self , grace ) : <nl> self . _channel . closing ( ) <nl> <nl> if grace : <nl> + # pylint : disable = unused - variable <nl> _ , pending = await asyncio . wait ( self . _ongoing_calls . calls , <nl> timeout = grace , <nl> loop = self . _loop ) <nl> mmm a / src / python / grpcio_tests / tests_aio / unit / channel_test . py <nl> ppp b / src / python / grpcio_tests / tests_aio / unit / channel_test . py <nl> <nl> <nl> import logging <nl> import os <nl> - import threading <nl> import unittest <nl> <nl> import grpc <nl> from grpc . experimental import aio <nl> from grpc . experimental . aio import _base_call <nl> - from grpc . experimental . aio . _channel import _OngoingCalls <nl> <nl> from src . proto . grpc . testing import messages_pb2 , test_pb2_grpc <nl> from tests . unit . framework . common import test_constants <nl> mmm a / src / python / grpcio_tests / tests_aio / unit / close_channel_test . py <nl> ppp b / src / python / grpcio_tests / tests_aio / unit / close_channel_test . py <nl> <nl> <nl> import asyncio <nl> import logging <nl> - import os <nl> - import threading <nl> import unittest <nl> <nl> import grpc <nl> <nl> from grpc . experimental . aio . _channel import _OngoingCalls <nl> <nl> from src . proto . grpc . testing import messages_pb2 , test_pb2_grpc <nl> - from tests . unit . framework . common import test_constants <nl> - from tests_aio . unit . _constants import ( UNARY_CALL_WITH_SLEEP_VALUE , <nl> - UNREACHABLE_TARGET ) <nl> + from tests_aio . unit . _constants import UNARY_CALL_WITH_SLEEP_VALUE <nl> from tests_aio . unit . _test_base import AioTestBase <nl> from tests_aio . unit . _test_server import start_test_server <nl> <nl> - _UNARY_CALL_METHOD = ' / grpc . testing . TestService / UnaryCall ' <nl> _UNARY_CALL_METHOD_WITH_SLEEP = ' / grpc . testing . TestService / UnaryCallWithSleep ' <nl> - _STREAMING_OUTPUT_CALL_METHOD = ' / grpc . testing . TestService / StreamingOutputCall ' <nl> - <nl> - _INVOCATION_METADATA = ( <nl> - ( ' initial - md - key ' , ' initial - md - value ' ) , <nl> - ( ' trailing - md - key - bin ' , b ' \ x00 \ x02 ' ) , <nl> - ) <nl> - <nl> - _NUM_STREAM_RESPONSES = 5 <nl> - _REQUEST_PAYLOAD_SIZE = 7 <nl> - _RESPONSE_PAYLOAD_SIZE = 42 <nl> <nl> <nl> class TestOngoingCalls ( unittest . TestCase ) : <nl>
|
Remove unused imports , add pylint exceptions
|
grpc/grpc
|
5959b685e803a648e0f4a8ae557579c6ce4617aa
|
2020-01-29T22:13:06Z
|
mmm a / tensorflow / contrib / distribute / python / mirrored_strategy . py <nl> ppp b / tensorflow / contrib / distribute / python / mirrored_strategy . py <nl> def _create_mirrored_variable ( devices , real_mirrored_creator , * args , * * kwargs ) : <nl> collections . append ( ops . GraphKeys . TRAINABLE_VARIABLES ) <nl> l = g . get_collection_ref ( ops . GraphKeys . TRAINABLE_VARIABLES ) <nl> for v in index . values ( ) : <nl> - l . remove ( v ) <nl> + if v in l : <nl> + l . remove ( v ) <nl> g . add_to_collections ( collections , result ) <nl> elif ops . GraphKeys . GLOBAL_STEP in collections : <nl> ops . add_to_collections ( ops . GraphKeys . GLOBAL_STEP , result ) <nl> def _real_mirrored_creator ( devices , * args , * * kwargs ) : # pylint : disable = g - missi <nl> # name as the absolute name of the variable . <nl> kwargs [ " name " ] = " % s / replica_ % d / " % ( var0name , i ) <nl> # Initialize replicas with the same value : <nl> - if context . executing_eagerly ( ) : <nl> - kwargs [ " initial_value " ] = array_ops . identity ( <nl> - index [ devices [ 0 ] ] . value ( ) ) <nl> - else : <nl> - def initial_value_fn ( device = d ) : <nl> + def initial_value_fn ( device = d ) : <nl> + if context . executing_eagerly ( ) : <nl> + init_value = index [ devices [ 0 ] ] . value ( ) <nl> + return array_ops . identity ( init_value ) <nl> + else : <nl> with ops . device ( device ) : <nl> - return array_ops . identity ( index [ devices [ 0 ] ] . initial_value ) <nl> - kwargs [ " initial_value " ] = initial_value_fn <nl> + init_value = index [ devices [ 0 ] ] . initial_value <nl> + return array_ops . identity ( init_value ) <nl> + kwargs [ " initial_value " ] = initial_value_fn <nl> with context . context ( ) . device_policy ( context . DEVICE_PLACEMENT_SILENT ) : <nl> - v = next_creator ( * args , * * kwargs ) <nl> + # Don ' t record operations ( e . g . other variable reads ) during <nl> + # variable creation . <nl> + with tape . stop_recording ( ) : <nl> + v = next_creator ( * args , * * kwargs ) <nl> assert not isinstance ( v , values . DistributedVariable ) <nl> index [ d ] = v <nl> return index <nl> mmm a / tensorflow / contrib / distribute / python / mirrored_strategy_multigpu_test . py <nl> ppp b / tensorflow / contrib / distribute / python / mirrored_strategy_multigpu_test . py <nl> <nl> <nl> import sys <nl> <nl> + import numpy as np <nl> + <nl> from tensorflow . contrib . distribute . python import mirrored_strategy <nl> from tensorflow . contrib . distribute . python import multi_worker_test_base <nl> from tensorflow . contrib . distribute . python import strategy_test_lib <nl> <nl> from tensorflow . python . framework import dtypes <nl> from tensorflow . python . framework import ops <nl> from tensorflow . python . framework import test_util <nl> + from tensorflow . python . keras . engine import training as keras_training <nl> + from tensorflow . python . keras . layers import core as keras_core <nl> from tensorflow . python . layers import core <nl> + from tensorflow . python . ops import array_ops <nl> from tensorflow . python . ops import math_ops <nl> from tensorflow . python . ops import rnn <nl> from tensorflow . python . ops import rnn_cell_impl <nl> <nl> from tensorflow . python . ops import variables <nl> from tensorflow . python . training import device_util <nl> from tensorflow . python . training import distribution_strategy_context <nl> + from tensorflow . python . training import gradient_descent <nl> + from tensorflow . python . training import optimizer as optimizer_lib <nl> from tensorflow . python . training import server_lib <nl> <nl> <nl> def __call__ ( self , factor = 2 ) : <nl> return x <nl> <nl> <nl> + class MiniModel ( keras_training . Model ) : <nl> + " " " Minimal model for mnist . <nl> + <nl> + Useful for testing and debugging on slow TPU simulators . <nl> + " " " <nl> + <nl> + def __init__ ( self ) : <nl> + super ( MiniModel , self ) . __init__ ( name = " " ) <nl> + self . fc = keras_core . Dense ( 1 , name = " fc " , kernel_initializer = " ones " , <nl> + bias_initializer = " ones " ) <nl> + <nl> + def call ( self , inputs , training = True ) : <nl> + inputs = array_ops . ones ( [ 1 , 10 ] ) <nl> + return self . fc ( inputs ) <nl> + <nl> + <nl> class MirroredStrategyDefunTest ( test . TestCase ) : <nl> <nl> def _skip_eager_if_gpus_less_than ( self , num_gpus ) : <nl> def fn1 ( mock_model , factor ) : <nl> " GPU : 0 " : 3 . 0 * 1 . 25 } ) <nl> self . _call_and_check ( fn1 , [ factors ] , expected_result , [ fn1 ] ) <nl> <nl> + @ test_util . run_in_graph_and_eager_modes ( ) <nl> + def testTrain ( self ) : <nl> + self . _skip_eager_if_gpus_less_than ( 1 ) <nl> + <nl> + cpu_dev = device_util . canonicalize ( " CPU : 0 " ) <nl> + gpu_dev = device_util . canonicalize ( " GPU : 0 " ) <nl> + devices = [ cpu_dev , gpu_dev ] <nl> + dist = mirrored_strategy . MirroredStrategy ( devices ) <nl> + <nl> + with dist . scope ( ) : <nl> + mock_model = MiniModel ( ) <nl> + mock_model . call = function . defun ( mock_model . call ) <nl> + <nl> + def loss_fn ( ctx ) : <nl> + del ctx <nl> + return mock_model ( array_ops . ones ( [ 1 , 10 ] ) ) <nl> + <nl> + gradients_fn = backprop . implicit_grad ( loss_fn ) <nl> + gradients_fn = optimizer_lib . get_filtered_grad_fn ( gradients_fn ) <nl> + grads_and_vars = dist . call_for_each_tower ( <nl> + gradients_fn , None , run_concurrently = False ) <nl> + <nl> + optimizer = gradient_descent . GradientDescentOptimizer ( 0 . 25 ) <nl> + update_ops = optimizer . _distributed_apply ( dist , grads_and_vars ) # pylint : disable = protected - access <nl> + <nl> + if not context . executing_eagerly ( ) : <nl> + self . evaluate ( variables . global_variables_initializer ( ) ) <nl> + self . evaluate ( update_ops ) <nl> + <nl> + updated_var_values = self . evaluate ( mock_model . variables ) <nl> + # All variables start at 1 . 0 and get two updates of 0 . 25 . <nl> + self . assertAllEqual ( 0 . 5 * np . ones ( [ 10 , 1 ] ) , updated_var_values [ 0 ] ) <nl> + self . assertAllEqual ( [ 0 . 5 ] , updated_var_values [ 1 ] ) <nl> + <nl> + <nl> <nl> class MultiWorkerMirroredStrategyTest ( <nl> multi_worker_test_base . MultiWorkerTestBase , <nl> mmm a / tensorflow / python / eager / backprop_test . py <nl> ppp b / tensorflow / python / eager / backprop_test . py <nl> def testTapeReset ( self ) : <nl> loss + = v * v <nl> self . assertAllEqual ( t . gradient ( loss , v ) , 2 . 0 ) <nl> <nl> + def testAutomaticWatchedVariables ( self ) : <nl> + with backprop . GradientTape ( ) as t : <nl> + self . assertEqual ( 0 , len ( t . watched_variables ( ) ) ) <nl> + v = resource_variable_ops . ResourceVariable ( 1 . 0 ) <nl> + loss = v * v <nl> + self . assertAllEqual ( [ v ] , t . watched_variables ( ) ) <nl> + <nl> + t . reset ( ) <nl> + self . assertEqual ( 0 , len ( t . watched_variables ( ) ) ) <nl> + loss + = v * v <nl> + self . assertAllEqual ( [ v ] , t . watched_variables ( ) ) <nl> + <nl> + def testExplicitWatchedVariables ( self ) : <nl> + with backprop . GradientTape ( ) as t : <nl> + self . assertEqual ( 0 , len ( t . watched_variables ( ) ) ) <nl> + v = resource_variable_ops . ResourceVariable ( 1 . 0 ) <nl> + t . watch ( v ) <nl> + self . assertAllEqual ( [ v ] , t . watched_variables ( ) ) <nl> + <nl> + t . reset ( ) <nl> + self . assertEqual ( 0 , len ( t . watched_variables ( ) ) ) <nl> + t . watch ( v ) <nl> + self . assertAllEqual ( [ v ] , t . watched_variables ( ) ) <nl> + <nl> @ test_util . assert_no_new_tensors <nl> def testGradientNone ( self ) : <nl> <nl> mmm a / tensorflow / python / eager / function . py <nl> ppp b / tensorflow / python / eager / function . py <nl> <nl> from tensorflow . python . ops import gradients_impl <nl> from tensorflow . python . ops import resource_variable_ops <nl> from tensorflow . python . ops import variable_scope <nl> - from tensorflow . python . training import distribution_strategy_context <nl> from tensorflow . python . util import compat <nl> from tensorflow . python . util import nest <nl> from tensorflow . python . util import tf_decorator <nl> def __init__ ( self , name ) : <nl> # from the default graph even in eager mode . Maybe it should be part of the <nl> # eager context ? <nl> self . _distribution_strategy_stack = graph . _distribution_strategy_stack <nl> + self . _variable_creator_stack = graph . _variable_creator_stack <nl> # Inherit the graph key , since this is used for matching variables in <nl> # optimizers . <nl> self . _graph_key = graph . _graph_key <nl> def __init__ ( self , func_graph , attrs = None ) : <nl> self . _func_graph . inputs , self . _func_graph . outputs , self . _attrs ) <nl> self . _backward_graph_function = None <nl> <nl> - # Map holding distributed variables , keyed by resource handle tensors . <nl> - self . _distributed_variables = { } <nl> - strategy = distribution_strategy_context . get_distribution_strategy ( ) <nl> - for variable in self . _func_graph . variables : <nl> - # If variable is not distributed , unwrap returns [ variable ] . <nl> - component_variables = strategy . unwrap ( variable ) <nl> - # Only update the dictionary when the variable is actually distributed . <nl> - if ( len ( component_variables ) > 1 or component_variables [ 0 ] ! = variable ) : <nl> - for component_variable in component_variables : <nl> - self . _distributed_variables [ component_variable . handle ] = variable <nl> - <nl> def __call__ ( self , * args ) : <nl> " " " Executes the wrapped function . <nl> <nl> def __call__ ( self , * args ) : <nl> if v . trainable : <nl> tape . variable_accessed ( v ) <nl> <nl> - captures = self . _resolve_captured_inputs ( ) <nl> tensor_inputs = [ ] <nl> for i , arg in enumerate ( nest . flatten ( args ) ) : <nl> if isinstance ( arg , resource_variable_ops . ResourceVariable ) : <nl> def __call__ ( self , * args ) : <nl> raise ValueError ( " All inputs to ` Function ` s must be Tensors ; " <nl> " on invocation of % s , the % d - th input ( % s ) was not a " <nl> " Tensor . " % ( self . _func_graph . name , i , str ( arg ) ) ) <nl> - args = tensor_inputs + captures <nl> + args = tensor_inputs + self . _captured_inputs <nl> <nl> - if tape . should_record ( tensor_inputs ) or tape . should_record ( captures ) : <nl> + if ( tape . should_record ( tensor_inputs ) or <nl> + tape . should_record ( self . _captured_inputs ) ) : <nl> return self . _backprop_call ( args ) <nl> <nl> # Only need to override the gradient in graph mode and when we have outputs . <nl> def backward_function ( * args ) : <nl> args , backward_function ) <nl> return self . _build_call_outputs ( real_outputs ) <nl> <nl> - def _resolve_captured_inputs ( self ) : <nl> - " " " Resolve captured distributed variables to their current values . <nl> - <nl> - Some inputs can be distributed variables . Such variables yield a different <nl> - component ( i . e . actual tf . Variable ) variables depending on the context of <nl> - execution . <nl> - <nl> - Returns : <nl> - a list of resolved captured input tensors . <nl> - " " " <nl> - if self . _distributed_variables : <nl> - # Loop over each captured input and check if it corresponds to something <nl> - # distributed . If so , get its _distributed_container and fetch the <nl> - # component appropriate for the current execution context . <nl> - resolved_captured_inputs = self . _captured_inputs [ : ] <nl> - for i , captured_input in enumerate ( self . _captured_inputs ) : <nl> - distributed_var = self . _distributed_variables . get ( captured_input , None ) <nl> - if distributed_var is not None : <nl> - # distributed variables override __getattr__ and substitute the <nl> - # right component variable . In here , ` distributed_var . handle ` <nl> - # actually does the equivalent of <nl> - # distributed_var . get_current_component_var ( ) . handle . <nl> - resolved_captured_inputs [ i ] = distributed_var . handle <nl> - return resolved_captured_inputs <nl> - return self . _captured_inputs <nl> - <nl> def _build_call_outputs ( self , result ) : <nl> " " " Maps the fdef output list to actual output structure . <nl> <nl> def check_mutation ( n1 , n2 ) : <nl> for x in _flatten ( func_graph . structured_outputs ) <nl> if x is not None ) <nl> <nl> - # Some captured variables might be components of DistributedValues . <nl> - # Instead of storing non - distributed component variables , we <nl> - # store their distributed containers so we can retrieve the correct <nl> - # component variables at call - time . <nl> - strategy = distribution_strategy_context . get_distribution_strategy ( ) <nl> - for i , variable in enumerate ( variables ) : <nl> - # If variable is not distributed value_container returns itself . <nl> - variables [ i ] = strategy . value_container ( variable ) <nl> func_graph . variables = variables <nl> <nl> # Register any other functions defined in the graph . <nl> mmm a / tensorflow / python / eager / tape . py <nl> ppp b / tensorflow / python / eager / tape . py <nl> <nl> import contextlib <nl> <nl> from tensorflow . python import pywrap_tensorflow <nl> + from tensorflow . python . util . lazy_loader import LazyLoader <nl> + <nl> + # There is a circular dependency between this , ops . py , and <nl> + # distribution_strategy_context . <nl> + # TODO ( b / 117329403 ) : Remove this circular dependency . <nl> + distribution_strategy_context = LazyLoader ( <nl> + " distribute_lib " , globals ( ) , <nl> + " tensorflow . python . training . " <nl> + " distribution_strategy_context " ) <nl> <nl> <nl> class Tape ( object ) : <nl> def watch ( tape , tensor ) : <nl> <nl> def watch_variable ( tape , variable ) : <nl> " " " Marks this variable to be watched by the given tape . " " " <nl> - pywrap_tensorflow . TFE_Py_TapeWatchVariable ( tape . _tape , variable ) # pylint : disable = protected - access <nl> + strategy = distribution_strategy_context . get_distribution_strategy ( ) <nl> + if distribution_strategy_context . get_tower_context ( ) : <nl> + variables = [ strategy . value_container ( variable ) ] <nl> + else : <nl> + variables = strategy . unwrap ( variable ) <nl> + for var in variables : <nl> + pywrap_tensorflow . TFE_Py_TapeWatchVariable ( tape . _tape , var ) # pylint : disable = protected - access <nl> <nl> <nl> def variable_accessed ( variable ) : <nl> - " " " Notifies all tapes in the stack that a variable has been accessed . " " " <nl> - pywrap_tensorflow . TFE_Py_TapeVariableAccessed ( variable ) <nl> + " " " Notifies all tapes in the stack that a variable has been accessed . <nl> + <nl> + Args : <nl> + variable : variable to be watched . <nl> + " " " <nl> + strategy = distribution_strategy_context . get_distribution_strategy ( ) <nl> + if distribution_strategy_context . get_tower_context ( ) : <nl> + variables = [ strategy . value_container ( variable ) ] <nl> + else : <nl> + variables = strategy . unwrap ( variable ) <nl> + for var in variables : <nl> + pywrap_tensorflow . TFE_Py_TapeVariableAccessed ( var ) <nl> <nl> <nl> def pop_tape ( tape ) : <nl>
|
Make defun work under distributed strategies .
|
tensorflow/tensorflow
|
5f69248a692f7b47ea11930621f4f19d0397fe8c
|
2018-10-09T22:12:12Z
|
mmm a / docs / html / md__internals . html <nl> ppp b / docs / html / md__internals . html <nl> < h3 > Format identification < / h3 > <nl> < p > The format also doesn ' t contain information for format identification and versioning , which is also by design . FlatBuffers is a statically typed system , meaning the user of a buffer needs to know what kind of buffer it is . FlatBuffers can of course be wrapped inside other containers where needed , or you can use its union feature to dynamically identify multiple possible sub - objects stored . Additionally , it can be used together with the schema parser if full reflective capabilities are desired . < / p > <nl> < p > Versioning is something that is intrinsically part of the format ( the optionality / extensibility of fields ) , so the format itself does not need a version number ( it ' s a meta - format , in a sense ) . We ' re hoping that this format can accommodate all data needed . If format breaking changes are ever necessary , it would become a new kind of format rather than just a variation . < / p > <nl> < h3 > Offsets < / h3 > <nl> - < p > The most important and generic offset type ( see < code > flatbuffers . h < / code > ) is < code > offset_t < / code > , which is currently always a < code > uint32_t < / code > , and is used to refer to all tables / unions / strings / vectors . 32bit is intentional , since we want to keep the format binary compatible between 32 and 64bit systems , and a 64bit offset would bloat the size for almost all uses . A version of this format with 64bit ( or 16bit ) offsets is easy to set when needed . Unsigned means they can only point in one direction , which typically is forward ( towards a higher memory location ) . Any backwards offsets will be explicitly marked as such . < / p > <nl> - < p > The format starts with an < code > offset_t < / code > to the root object in the buffer . < / p > <nl> + < p > The most important and generic offset type ( see < code > flatbuffers . h < / code > ) is < code > uoffset_t < / code > , which is currently always a < code > uint32_t < / code > , and is used to refer to all tables / unions / strings / vectors ( these are never stored in - line ) . 32bit is intentional , since we want to keep the format binary compatible between 32 and 64bit systems , and a 64bit offset would bloat the size for almost all uses . A version of this format with 64bit ( or 16bit ) offsets is easy to set when needed . Unsigned means they can only point in one direction , which typically is forward ( towards a higher memory location ) . Any backwards offsets will be explicitly marked as such . < / p > <nl> + < p > The format starts with an < code > uoffset_t < / code > to the root object in the buffer . < / p > <nl> < p > We have two kinds of objects , structs and tables . < / p > <nl> < h3 > Structs < / h3 > <nl> < p > These are the simplest , and as mentioned , intended for simple data that benefits from being extra efficient and doesn ' t need versioning / extensibility . They are always stored inline in their parent ( a struct , table , or vector ) for maximum compactness . Structs define a consistent memory layout where all components are aligned to their size , and structs aligned to their largest scalar member . This is done independent of the alignment rules of the underlying compiler to guarantee a cross platform compatible layout . This layout is then enforced in the generated code . < / p > <nl> < h3 > Tables < / h3 > <nl> - < p > These start with an < code > soffset_t < / code > to a vtable ( signed version of < code > offset_t < / code > , since vtables may be stored anywhere ) , followed by all the fields as aligned scalars . Unlike structs , not all fields need to be present . There is no set order and layout . < / p > <nl> + < p > These start with an < code > soffset_t < / code > to a vtable ( signed version of < code > uoffset_t < / code > , since vtables may be stored anywhere ) , followed by all the fields as aligned scalars ( or offsets ) . Unlike structs , not all fields need to be present . There is no set order and layout . < / p > <nl> < p > To be able to access fields regardless of these uncertainties , we go through a vtable of offsets . Vtables are shared between any objects that happen to have the same vtable values . < / p > <nl> - < p > The elements of a vtable are all of type < code > voffset_t < / code > , which is currently a < code > uint16_t < / code > . The first element is the number of elements of the vtable , including this one . The second one is the size of the object , in bytes ( including the vtable offset ) . This size is used for streaming , to know how many bytes to read to be able to access all fields of the object . The remaining elements are N the offsets , where N is the amount of field declared in the schema when the code that constructed this buffer was compiled ( thus , the size of the table is N + 2 ) . < / p > <nl> + < p > The elements of a vtable are all of type < code > voffset_t < / code > , which is a < code > uint16_t < / code > . The first element is the number of elements of the vtable , including this one . The second one is the size of the object , in bytes ( including the vtable offset ) . This size is used for streaming , to know how many bytes to read to be able to access all fields of the object . The remaining elements are the N offsets , where N is the amount of fields declared in the schema when the code that constructed this buffer was compiled ( thus , the size of the table is N + 2 ) . < / p > <nl> < p > All accessor functions in the generated code for tables contain the offset into this table as a constant . This offset is checked against the first field ( the number of elements ) , to protect against newer code reading older data . If this offset is out of range , or the vtable entry is 0 , that means the field is not present in this object , and the default value is return . Otherwise , the entry is used as offset to the field to be read . < / p > <nl> < h3 > Strings and Vectors < / h3 > <nl> - < p > Strings are simply a vector of bytes , and are always null - terminated . Vectors are stored as contiguous aligned scalar elements prefixed by a count . < / p > <nl> + < p > Strings are simply a vector of bytes , and are always null - terminated . Vectors are stored as contiguous aligned scalar elements prefixed by a 32bit element count ( not including any null termination ) . < / p > <nl> < h3 > Construction < / h3 > <nl> - < p > The current implementation constructs these buffers backwards , since that significantly reduces the amount of bookkeeping and simplifies the construction API . < / p > <nl> + < p > The current implementation constructs these buffers backwards ( starting at the highest memory address of the buffer ) , since that significantly reduces the amount of bookkeeping and simplifies the construction API . < / p > <nl> < h3 > Code example < / h3 > <nl> < p > Here ' s an example of the code that gets generated for the < code > samples / monster . fbs < / code > . What follows is the entire file , broken up by comments : < / p > < pre class = " fragment " > / / automatically generated , do not modify <nl> <nl> mmm a / docs / html / md__schemas . html <nl> ppp b / docs / html / md__schemas . html <nl> < h3 > Types < / h3 > <nl> < li > 16 bit : < code > short ushort < / code > < / li > <nl> < li > 32 bit : < code > int uint float < / code > < / li > <nl> < li > 64 bit : < code > long ulong double < / code > < / li > <nl> - < li > Vector of any other type ( denoted with < code > [ type ] < / code > ) . Nesting vectors require you wrap the inner vector in a struct / table rather than writing < code > [ [ type ] ] < / code > . < / li > <nl> + < li > Vector of any other type ( denoted with < code > [ type ] < / code > ) . Nesting vectors is not supported , instead you can wrap the inner vector in a table . < / li > <nl> < li > < code > string < / code > , which may only hold UTF - 8 or 7 - bit ASCII . For other text encodings or general binary data use vectors ( < code > [ byte ] < / code > or < code > [ ubyte ] < / code > ) instead . < / li > <nl> < li > References to other tables or structs , enums or unions ( see below ) . < / li > <nl> < / ul > <nl> mmm a / docs / source / Internals . md <nl> ppp b / docs / source / Internals . md <nl> than just a variation . <nl> # # # Offsets <nl> <nl> The most important and generic offset type ( see ` flatbuffers . h ` ) is <nl> - ` offset_t ` , which is currently always a ` uint32_t ` , and is used to <nl> - refer to all tables / unions / strings / vectors . 32bit is <nl> + ` uoffset_t ` , which is currently always a ` uint32_t ` , and is used to <nl> + refer to all tables / unions / strings / vectors ( these are never stored <nl> + in - line ) . 32bit is <nl> intentional , since we want to keep the format binary compatible between <nl> 32 and 64bit systems , and a 64bit offset would bloat the size for almost <nl> all uses . A version of this format with 64bit ( or 16bit ) offsets is easy to set <nl> when needed . Unsigned means they can only point in one direction , which <nl> typically is forward ( towards a higher memory location ) . Any backwards <nl> offsets will be explicitly marked as such . <nl> <nl> - The format starts with an ` offset_t ` to the root object in the buffer . <nl> + The format starts with an ` uoffset_t ` to the root object in the buffer . <nl> <nl> We have two kinds of objects , structs and tables . <nl> <nl> code . <nl> # # # Tables <nl> <nl> These start with an ` soffset_t ` to a vtable ( signed version of <nl> - ` offset_t ` , since vtables may be stored anywhere ) , followed by all the <nl> - fields as aligned scalars . Unlike structs , not all fields need to be <nl> - present . There is no set order and layout . <nl> + ` uoffset_t ` , since vtables may be stored anywhere ) , followed by all the <nl> + fields as aligned scalars ( or offsets ) . Unlike structs , not all fields <nl> + need to be present . There is no set order and layout . <nl> <nl> To be able to access fields regardless of these uncertainties , we go <nl> through a vtable of offsets . Vtables are shared between any objects that <nl> happen to have the same vtable values . <nl> <nl> - The elements of a vtable are all of type ` voffset_t ` , which is currently <nl> + The elements of a vtable are all of type ` voffset_t ` , which is <nl> a ` uint16_t ` . The first element is the number of elements of the vtable , <nl> including this one . The second one is the size of the object , in bytes <nl> ( including the vtable offset ) . This size is used for streaming , to know <nl> how many bytes to read to be able to access all fields of the object . <nl> - The remaining elements are N the offsets , where N is the amount of field <nl> + The remaining elements are the N offsets , where N is the amount of fields <nl> declared in the schema when the code that constructed this buffer was <nl> compiled ( thus , the size of the table is N + 2 ) . <nl> <nl> field to be read . <nl> <nl> Strings are simply a vector of bytes , and are always <nl> null - terminated . Vectors are stored as contiguous aligned scalar <nl> - elements prefixed by a count . <nl> + elements prefixed by a 32bit element count ( not including any <nl> + null termination ) . <nl> <nl> # # # Construction <nl> <nl> - The current implementation constructs these buffers backwards , since <nl> + The current implementation constructs these buffers backwards ( starting <nl> + at the highest memory address of the buffer ) , since <nl> that significantly reduces the amount of bookkeeping and simplifies the <nl> construction API . <nl> <nl> mmm a / docs / source / Schemas . md <nl> ppp b / docs / source / Schemas . md <nl> Builtin scalar types are : <nl> - 64 bit : ` long ulong double ` <nl> <nl> - Vector of any other type ( denoted with ` [ type ] ` ) . Nesting vectors <nl> - require you wrap the inner vector in a struct / table rather than <nl> - writing ` [ [ type ] ] ` . <nl> + is not supported , instead you can wrap the inner vector in a table . <nl> <nl> - ` string ` , which may only hold UTF - 8 or 7 - bit ASCII . For other text encodings <nl> or general binary data use vectors ( ` [ byte ] ` or ` [ ubyte ] ` ) instead . <nl>
|
Documentation changes to clarify FlatBuffer internals .
|
google/flatbuffers
|
66de19ace80bae3bf377e43e9698597170bc9031
|
2014-06-18T00:49:50Z
|
new file mode 100644 <nl> index 000000000000 . . 19f1ed98e6b9 <nl> mmm / dev / null <nl> ppp b / lib / IRGen / Condition . h <nl> <nl> + / / = = = mmm Condition . h - Condition Expression Emission mmmmmmmmmmmm * - C + + - * - = = = / / <nl> + / / <nl> + / / This source file is part of the Swift . org open source project <nl> + / / <nl> + / / Copyright ( c ) 2014 - 2015 Apple Inc . and the Swift project authors <nl> + / / Licensed under Apache License v2 . 0 with Runtime Library Exception <nl> + / / <nl> + / / See http : / / swift . org / LICENSE . txt for license information <nl> + / / See http : / / swift . org / CONTRIBUTORS . txt for the list of Swift project authors <nl> + / / <nl> + / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / <nl> + / / <nl> + / / A helper structure for emitting condition expressions . <nl> + / / <nl> + / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / <nl> + <nl> + # ifndef SWIFT_IRGEN_CONDITION_H <nl> + # define SWIFT_IRGEN_CONDITION_H <nl> + <nl> + # include " IRGen . h " <nl> + <nl> + namespace llvm { <nl> + class BasicBlock ; <nl> + } <nl> + <nl> + namespace swift { <nl> + namespace irgen { <nl> + class IRGenFunction ; <nl> + <nl> + / / / A condition is the result of evaluating a boolean expression as <nl> + / / / control flow . <nl> + class Condition { <nl> + / / The blocks responsible for executing the true and false <nl> + / / conditions . A block is non - null if that branch is possible , but <nl> + / / it ' s only an independent block if both branches are possible . <nl> + llvm : : BasicBlock * TrueBB ; <nl> + llvm : : BasicBlock * FalseBB ; <nl> + <nl> + / / / The continuation block if both branches are possible . <nl> + llvm : : BasicBlock * ContBB ; <nl> + <nl> + public : <nl> + Condition ( llvm : : BasicBlock * TrueBB , llvm : : BasicBlock * FalseBB , <nl> + llvm : : BasicBlock * ContBB ) <nl> + : TrueBB ( TrueBB ) , FalseBB ( FalseBB ) , ContBB ( ContBB ) { } <nl> + <nl> + bool hasTrue ( ) const { return TrueBB ; } <nl> + bool hasFalse ( ) const { return FalseBB ; } <nl> + <nl> + / / / Begin the emission of the true block . This should only be <nl> + / / / called if hasTrue ( ) returns true . <nl> + void enterTrue ( IRGenFunction & IGF ) ; <nl> + <nl> + / / / End the emission of the true block . This must be called after <nl> + / / / enterTrue but before anything else on this Condition . <nl> + void exitTrue ( IRGenFunction & IGF ) ; <nl> + <nl> + / / / Begin the emission of the false block . This should only be <nl> + / / / called if hasFalse ( ) returns true . <nl> + void enterFalse ( IRGenFunction & IGF ) ; <nl> + <nl> + / / / End the emission of the true block . This must be called after <nl> + / / / exitFalse but before anything else on this Condition . <nl> + void exitFalse ( IRGenFunction & IGF ) ; <nl> + <nl> + / / / Complete this conditional execution . This should be called <nl> + / / / only after all other calls on this Condition have been made . <nl> + void complete ( IRGenFunction & IGF ) ; <nl> + } ; <nl> + <nl> + } / / end namespace irgen <nl> + } / / end namespace swift <nl> + <nl> + # endif <nl> mmm a / lib / IRGen / GenControl . cpp <nl> ppp b / lib / IRGen / GenControl . cpp <nl> <nl> / / <nl> / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / <nl> <nl> + # include " llvm / Function . h " <nl> + # include " Condition . h " <nl> # include " IRGenFunction . h " <nl> # include " IRGenModule . h " <nl> # include " JumpDest . h " <nl> + # include " RValue . h " <nl> <nl> using namespace swift ; <nl> using namespace irgen ; <nl> <nl> + / / / Insert the given basic block after the IP block and move the <nl> + / / / insertion point to it . Only valid if the IP is valid . <nl> + void IRBuilder : : emitBlock ( llvm : : BasicBlock * BB ) { <nl> + assert ( ClearedIP = = nullptr ) ; <nl> + llvm : : BasicBlock * CurBB = GetInsertBlock ( ) ; <nl> + assert ( CurBB & & " current insertion point is invalid " ) ; <nl> + CurBB - > getParent ( ) - > getBasicBlockList ( ) . insertAfter ( CurBB , BB ) ; <nl> + IRBuilderBase : : SetInsertPoint ( BB ) ; <nl> + } <nl> + <nl> + / / / Insert the given basic block " anywhere " . The IP may be invalid , <nl> + / / / in which case the block will be inserted after the block which <nl> + / / / contained the IP before the IP was invalidated . <nl> + void IRBuilder : : emitBlockAnywhere ( llvm : : BasicBlock * BB ) { <nl> + llvm : : BasicBlock * IP = GetInsertBlock ( ) ; <nl> + if ( ! IP ) { <nl> + assert ( ClearedIP & & " no insertion point and none saved , either " ) ; <nl> + IP = ClearedIP ; <nl> + ClearedIP = nullptr ; <nl> + } <nl> + IP - > getParent ( ) - > getBasicBlockList ( ) . insertAfter ( IP , BB ) ; <nl> + IRBuilderBase : : SetInsertPoint ( BB ) ; <nl> + } <nl> + <nl> / / / Emit a branch to the given jump destination , threading out through <nl> / / / any cleanups we might need to run . Leaves the insertion point at <nl> / / / the current point . <nl> void IRGenFunction : : emitBranch ( JumpDest Dest ) { <nl> + / / FIXME : scope depth <nl> + Builder . CreateBr ( Dest . getBlock ( ) ) ; <nl> } <nl> <nl> / / / Create a new basic block with the given name . The block is not <nl> llvm : : BasicBlock * <nl> IRGenFunction : : createBasicBlock ( const llvm : : Twine & Name ) { <nl> return llvm : : BasicBlock : : Create ( IGM . getLLVMContext ( ) , Name ) ; <nl> } <nl> + <nl> + / / / Emit a boolean expression as a control - flow condition . <nl> + / / / <nl> + / / / \ param hasFalseCode - true if the false branch doesn ' t just lead <nl> + / / / to the fallthrough . <nl> + Condition IRGenFunction : : emitCondition ( Expr * E , bool hasFalseCode ) { <nl> + assert ( Builder . hasValidIP ( ) & & " emitting condition at unreachable point " ) ; <nl> + <nl> + / / TODO : special - case interesting condition expressions . <nl> + RValue RV = emitRValue ( E ) ; <nl> + <nl> + / / FIXME : hard - coding this is not ideal . <nl> + assert ( RV . isScalar ( 1 ) & & " r - value has unexpected form ! " ) ; <nl> + llvm : : Value * V = RV . getScalars ( ) [ 0 ] ; <nl> + assert ( V - > getType ( ) - > isIntegerTy ( 1 ) ) ; <nl> + <nl> + llvm : : BasicBlock * trueBB , * falseBB , * contBB ; <nl> + <nl> + / / Check for a constant condition . <nl> + if ( llvm : : ConstantInt * C = dyn_cast < llvm : : ConstantInt > ( V ) ) { <nl> + / / If the condition is constant false , ignore the true branch . We <nl> + / / will fall into the false branch unless there is none . <nl> + if ( C - > isZero ( ) ) { <nl> + trueBB = nullptr ; <nl> + falseBB = ( hasFalseCode ? Builder . GetInsertBlock ( ) : nullptr ) ; <nl> + <nl> + / / Otherwise , ignore the false branch . We will fall into the true <nl> + / / branch . <nl> + } else { <nl> + trueBB = Builder . GetInsertBlock ( ) ; <nl> + falseBB = nullptr ; <nl> + } <nl> + <nl> + / / There is no separate continuation block . <nl> + contBB = nullptr ; <nl> + <nl> + / / Otherwise , the condition requires a conditional branch . <nl> + } else { <nl> + contBB = createBasicBlock ( " condition . cont " ) ; <nl> + trueBB = createBasicBlock ( " if . true " ) ; <nl> + <nl> + llvm : : BasicBlock * falseDestBB ; <nl> + if ( hasFalseCode ) { <nl> + falseBB = falseDestBB = createBasicBlock ( " if . false " ) ; <nl> + } else { <nl> + falseBB = nullptr ; <nl> + falseDestBB = contBB ; <nl> + } <nl> + <nl> + Builder . CreateCondBr ( V , trueBB , falseDestBB ) ; <nl> + } <nl> + <nl> + return Condition ( trueBB , falseBB , contBB ) ; <nl> + } <nl> + <nl> + void Condition : : enterTrue ( IRGenFunction & IGF ) { <nl> + assert ( TrueBB ) ; <nl> + assert ( IGF . Builder . hasValidIP ( ) ) ; <nl> + <nl> + / / We only need a separate branch if there ' s a continuation block . <nl> + if ( ! ContBB ) return ; <nl> + <nl> + IGF . Builder . emitBlock ( TrueBB ) ; <nl> + } <nl> + <nl> + void Condition : : exitTrue ( IRGenFunction & IGF ) { <nl> + / / Nothing to do if there ' s no continuation block . <nl> + if ( ! ContBB ) return ; <nl> + assert ( FalseBB ) ; <nl> + <nl> + / / It ' s quite possible for this point to be unreachable , in which <nl> + / / case there ' s nothing to do . <nl> + if ( ! IGF . Builder . hasValidIP ( ) ) return ; <nl> + <nl> + / / Otherwise , resume into the continuation block . <nl> + IGF . Builder . CreateBr ( ContBB ) ; <nl> + } <nl> + <nl> + void Condition : : enterFalse ( IRGenFunction & IGF ) { <nl> + assert ( FalseBB ) ; <nl> + <nl> + / / We only need a separate branch if there ' s a continuation block . <nl> + if ( ! ContBB ) return ; <nl> + <nl> + / / It ' s possible to have no insertion point here because the end of <nl> + / / the continuation block was unreachable . <nl> + IGF . Builder . emitBlockAnywhere ( FalseBB ) ; <nl> + } <nl> + <nl> + void Condition : : exitFalse ( IRGenFunction & IGF ) { <nl> + / / Nothing to do if there ' s no continuation block . <nl> + if ( ! ContBB ) return ; <nl> + <nl> + / / If there are no uses of the continuation block , bypass it . <nl> + / / We ' ll just emit continuation code directly after this , if <nl> + / / we even have an insertion point . <nl> + if ( ContBB - > use_empty ( ) ) { <nl> + <nl> + / / Otherwise , if there ' s no insertion point , merge the continuation <nl> + / / block back into its single predecessor and move the IP there . <nl> + } else if ( ! IGF . Builder . hasValidIP ( ) ) { <nl> + assert ( ContBB - > hasOneUse ( ) ) ; <nl> + llvm : : BranchInst * Br = cast < llvm : : BranchInst > ( * ContBB - > use_begin ( ) ) ; <nl> + assert ( Br - > isUnconditional ( ) ) ; <nl> + <nl> + IGF . Builder . SetInsertPoint ( Br - > getParent ( ) ) ; <nl> + Br - > eraseFromParent ( ) ; <nl> + assert ( ContBB - > use_empty ( ) ) ; <nl> + <nl> + / / Otherwise , branch to the continuation block and start inserting there . <nl> + } else { <nl> + IGF . Builder . CreateBr ( ContBB ) ; <nl> + } <nl> + } <nl> + <nl> + void Condition : : complete ( IRGenFunction & IGF ) { <nl> + / / The invariants coming in here are strong but complex . <nl> + <nl> + / / The only situation where we don ' t have an insertion point is when <nl> + / / the continuation block is totally unreachable . <nl> + assert ( IGF . Builder . hasValidIP ( ) | | ! ContBB | | ContBB - > use_empty ( ) ) ; <nl> + <nl> + / / Either the continuation block is unreachable or the insertion <nl> + / / point immediately follows a terminator , but not both . <nl> + assert ( ( ! ContBB | | ContBB - > use_empty ( ) ) ! = <nl> + ( IGF . Builder . hasValidIP ( ) & & <nl> + isa < llvm : : TerminatorInst > ( IGF . Builder . GetInsertBlock ( ) - > back ( ) ) ) ) ; <nl> + <nl> + / / If there is no continuation block , there is nothing to do . <nl> + if ( ! ContBB ) return ; <nl> + <nl> + / / If the continuation block has no uses , just destroy it and leave <nl> + / / the insertion point wherever it currently lies . <nl> + if ( ContBB - > use_empty ( ) ) { <nl> + delete ContBB ; <nl> + <nl> + / / Otherwise , we need to insert the continuation block . We know we <nl> + / / have an insertion point . <nl> + } else { <nl> + IGF . Builder . emitBlock ( ContBB ) ; <nl> + } <nl> + } <nl> mmm a / lib / IRGen / GenFunc . cpp <nl> ppp b / lib / IRGen / GenFunc . cpp <nl> void IRGenFunction : : emitEpilogue ( ) { <nl> if ( ReturnBB - > use_empty ( ) ) { <nl> ReturnBB - > eraseFromParent ( ) ; <nl> <nl> + / / Normally this means that we ' ll just insert the epilogue in the <nl> + / / current block , but if the current IP is unreachable then so is <nl> + / / the entire epilogue . <nl> + if ( ! Builder . hasValidIP ( ) ) return ; <nl> + <nl> / / Otherwise , branch to it if the current IP is reachable . <nl> - } else if ( Builder . GetInsertPoint ( ) ) { <nl> + } else if ( Builder . hasValidIP ( ) ) { <nl> Builder . CreateBr ( ReturnBB ) ; <nl> Builder . SetInsertPoint ( ReturnBB ) ; <nl> + <nl> + / / Otherwise , if there is exactly one use of the return block , merge <nl> + / / it into its predecessor . <nl> + } else if ( ReturnBB - > hasOneUse ( ) ) { <nl> + / / return statements are never emitted as conditional branches . <nl> + llvm : : BranchInst * Br = cast < llvm : : BranchInst > ( * ReturnBB - > use_begin ( ) ) ; <nl> + assert ( Br - > isUnconditional ( ) ) ; <nl> + Builder . SetInsertPoint ( Br - > getParent ( ) ) ; <nl> + Br - > eraseFromParent ( ) ; <nl> + ReturnBB - > eraseFromParent ( ) ; <nl> + <nl> + / / Otherwise , just move the IP to the return block . <nl> + } else { <nl> + Builder . SetInsertPoint ( ReturnBB ) ; <nl> } <nl> <nl> FunctionType * FnTy = CurFuncExpr - > Ty - > getAs < FunctionType > ( ) ; <nl> mmm a / lib / IRGen / GenStmt . cpp <nl> ppp b / lib / IRGen / GenStmt . cpp <nl> <nl> # include " llvm / ADT / PointerUnion . h " <nl> # include " llvm / Support / ErrorHandling . h " <nl> # include " Cleanup . h " <nl> + # include " Condition . h " <nl> # include " GenType . h " <nl> # include " IRGenFunction . h " <nl> # include " JumpDest . h " <nl> void IRGenFunction : : emitBraceStmt ( BraceStmt * BS ) { <nl> Scope BraceScope ( * this ) ; <nl> <nl> for ( unsigned I = 0 , E = BS - > NumElements ; I ! = E ; + + I ) { <nl> + assert ( Builder . hasValidIP ( ) ) ; <nl> + <nl> BraceStmt : : ExprStmtOrDecl Elt = BS - > Elements [ I ] ; <nl> if ( Expr * E = Elt . dyn_cast < Expr * > ( ) ) { <nl> emitIgnored ( E ) ; <nl> } else if ( Stmt * S = Elt . dyn_cast < Stmt * > ( ) ) { <nl> emitStmt ( S ) ; <nl> + <nl> + / / If we ever reach an unreachable point , stop emitting statements . <nl> + / / This will need revision if we ever add goto . <nl> + if ( ! Builder . hasValidIP ( ) ) return ; <nl> } else { <nl> emitLocal ( Elt . get < Decl * > ( ) ) ; <nl> } <nl> void IRGenFunction : : emitAssignStmt ( AssignStmt * S ) { <nl> } <nl> <nl> void IRGenFunction : : emitIfStmt ( IfStmt * S ) { <nl> - <nl> - unimplemented ( S - > getLocStart ( ) , " IfStmt is unimplemented " ) ; <nl> + Condition cond = emitCondition ( S - > Cond , S - > Else ! = nullptr ) ; <nl> + if ( cond . hasTrue ( ) ) { <nl> + cond . enterTrue ( * this ) ; <nl> + emitStmt ( S - > Then ) ; <nl> + cond . exitTrue ( * this ) ; <nl> + } <nl> + <nl> + if ( cond . hasFalse ( ) ) { <nl> + assert ( S - > Else ) ; <nl> + cond . enterFalse ( * this ) ; <nl> + emitStmt ( S - > Else ) ; <nl> + cond . exitFalse ( * this ) ; <nl> + } <nl> + <nl> + cond . complete ( * this ) ; <nl> } <nl> <nl> void IRGenFunction : : emitReturnStmt ( ReturnStmt * S ) { <nl> void IRGenFunction : : emitReturnStmt ( ReturnStmt * S ) { <nl> / / In either case , branch to the return block . <nl> JumpDest ReturnDest ( ReturnBB ) ; <nl> emitBranch ( ReturnDest ) ; <nl> + Builder . ClearInsertionPoint ( ) ; <nl> } <nl> <nl> void IRGenFunction : : emitWhileStmt ( WhileStmt * S ) { <nl> - unimplemented ( S - > getLocStart ( ) , " WhileStmt is unimplemented " ) ; <nl> + / / Create a new basic block and jump into it . <nl> + llvm : : BasicBlock * loopBB = createBasicBlock ( " while " ) ; <nl> + Builder . CreateBr ( loopBB ) ; <nl> + Builder . emitBlock ( loopBB ) ; <nl> + <nl> + / / Evaluate the condition with the false edge leading directly <nl> + / / to the continuation block . <nl> + Condition cond = emitCondition ( S - > Cond , / * hasFalseCode * / false ) ; <nl> + <nl> + / / If there ' s a true edge , emit the body in it . <nl> + if ( cond . hasTrue ( ) ) { <nl> + cond . enterTrue ( * this ) ; <nl> + emitStmt ( S - > Body ) ; <nl> + if ( Builder . hasValidIP ( ) ) { <nl> + Builder . CreateBr ( loopBB ) ; <nl> + Builder . ClearInsertionPoint ( ) ; <nl> + } <nl> + cond . exitTrue ( * this ) ; <nl> + } <nl> + <nl> + / / Complete the conditional execution . <nl> + cond . complete ( * this ) ; <nl> } <nl> mmm a / lib / IRGen / IRBuilder . h <nl> ppp b / lib / IRGen / IRBuilder . h <nl> class IRBuilder : public IRBuilderBase { <nl> / / Without this , it keeps resolving to llvm : : IRBuilderBase because <nl> / / of the injected class name . <nl> typedef irgen : : IRBuilderBase IRBuilderBase ; <nl> + <nl> + / / / The block containing the insertion point when the insertion <nl> + / / / point was last cleared . Used only for preserving block <nl> + / / / ordering . <nl> + llvm : : BasicBlock * ClearedIP ; <nl> + <nl> public : <nl> - IRBuilder ( llvm : : LLVMContext & Context ) : IRBuilderBase ( Context ) { } <nl> + IRBuilder ( llvm : : LLVMContext & Context ) <nl> + : IRBuilderBase ( Context ) , ClearedIP ( nullptr ) { } <nl> + <nl> + bool hasValidIP ( ) const { return GetInsertBlock ( ) ! = nullptr ; } <nl> + <nl> + void ClearInsertionPoint ( ) { <nl> + assert ( hasValidIP ( ) & & " clearing invalid insertion point ! " ) ; <nl> + assert ( ClearedIP = = nullptr ) ; <nl> + <nl> + / / / Whenever we clear the insertion point , remember where we were . <nl> + ClearedIP = GetInsertBlock ( ) ; <nl> + IRBuilderBase : : ClearInsertionPoint ( ) ; <nl> + } <nl> + <nl> + void SetInsertPoint ( llvm : : BasicBlock * BB ) { <nl> + ClearedIP = nullptr ; <nl> + IRBuilderBase : : SetInsertPoint ( BB ) ; <nl> + } <nl> <nl> using IRBuilderBase : : CreateLoad ; <nl> llvm : : LoadInst * CreateLoad ( llvm : : Value * Addr , Alignment A , <nl> class IRBuilder : public IRBuilderBase { <nl> Store - > setAlignment ( A . getValue ( ) ) ; <nl> return Store ; <nl> } <nl> + <nl> + / / / Insert the given basic block after the IP block and move the <nl> + / / / insertion point to it . Only valid if the IP is valid . <nl> + void emitBlock ( llvm : : BasicBlock * BB ) ; <nl> + <nl> + / / / Insert the given basic block " anywhere " . The IP may be invalid , <nl> + / / / in which case the block will be inserted after the block which <nl> + / / / contained the IP before the IP was invalidated . <nl> + void emitBlockAnywhere ( llvm : : BasicBlock * BB ) ; <nl> } ; <nl> <nl> } / / end namespace irgen <nl> mmm a / lib / IRGen / IRGen . h <nl> ppp b / lib / IRGen / IRGen . h <nl> <nl> # define SWIFT_IRGEN_IRGEN_H <nl> <nl> # include " llvm / Support / DataTypes . h " <nl> + # include < cassert > <nl> <nl> namespace llvm { <nl> class Value ; <nl> mmm a / lib / IRGen / IRGenFunction . h <nl> ppp b / lib / IRGen / IRGenFunction . h <nl> namespace swift { <nl> class WhileStmt ; <nl> <nl> namespace irgen { <nl> + class Condition ; <nl> class IRGenModule ; <nl> class JumpDest ; <nl> class RValue ; <nl> class IRGenFunction { <nl> RValue emitTupleElementRValue ( TupleElementExpr * E , const TypeInfo & TInfo ) ; <nl> LValue emitTupleElementLValue ( TupleElementExpr * E , const TypeInfo & TInfo ) ; <nl> RValue emitTupleShuffleExpr ( TupleShuffleExpr * E , const TypeInfo & TInfo ) ; <nl> + Condition emitCondition ( Expr * E , bool hasFalseCode ) ; <nl> <nl> / / mmm Declaration emission mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> public : <nl> new file mode 100644 <nl> index 000000000000 . . 7ae73a8a3fe5 <nl> mmm / dev / null <nl> ppp b / test / IRGen / if . swift <nl> <nl> + / / RUN : % swift - triple x86_64 - apple - darwin10 % s - emit - llvm | FileCheck % s <nl> + <nl> + import swift <nl> + <nl> + / / CHECK : [ [ INT : % . * ] ] = type { { i64 } } <nl> + <nl> + / / CHECK : define i64 @ _T2f0 ( i64 ) { <nl> + func f0 ( x : int ) - > int { <nl> + / / Prologue . <nl> + / / CHECK : [ [ RET : % . * ] ] = alloca [ [ INT ] ] , align 8 <nl> + / / CHECK - NEXT : [ [ X : % . * ] ] = alloca [ [ INT ] ] , align 8 <nl> + / / CHECK - NEXT : [ [ T0 : % . * ] ] = getelementptr inbounds [ [ INT ] ] * [ [ X ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T1 : % . * ] ] = getelementptr inbounds { i64 } * [ [ T0 ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : store i64 { { % . * } } , i64 * [ [ T1 ] ] , align 8 <nl> + <nl> + / / CHECK - NEXT : [ [ T0 : % . * ] ] = getelementptr inbounds [ [ INT ] ] * [ [ X ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T1 : % . * ] ] = getelementptr inbounds { i64 } * [ [ T0 ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T2 : % . * ] ] = load i64 * [ [ T1 ] ] , align 8 <nl> + / / CHECK - NEXT : [ [ T3 : % . * ] ] = call i1 @ _Top2ee ( i64 [ [ T2 ] ] , i64 0 ) <nl> + / / CHECK - NEXT : [ [ T4 : % . * ] ] = call i1 @ _T19convertToLogicValue ( i1 [ [ T3 ] ] ) <nl> + / / CHECK - NEXT : br i1 [ [ T4 ] ] , label % [ [ BB0 : . * ] ] , label % [ [ BB1 : . * ] ] <nl> + if ( x = = 0 ) { <nl> + / / CHECK : [ [ BB0 ] ] : <nl> + / / CHECK - NEXT : [ [ T0 : % . * ] ] = getelementptr inbounds [ [ INT ] ] * [ [ RET ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T1 : % . * ] ] = getelementptr inbounds { i64 } * [ [ T0 ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : store i64 0 , i64 * [ [ T1 ] ] , align 8 <nl> + / / CHECK - NEXT : br label % [ [ BB_RET : . * ] ] <nl> + return 0 <nl> + <nl> + / / CHECK : [ [ BB1 ] ] : <nl> + / / CHECK - NEXT : [ [ T0 : % . * ] ] = getelementptr inbounds [ [ INT ] ] * [ [ X ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T1 : % . * ] ] = getelementptr inbounds { i64 } * [ [ T0 ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T2 : % . * ] ] = load i64 * [ [ T1 ] ] , align 8 <nl> + / / CHECK - NEXT : [ [ T3 : % . * ] ] = call i1 @ _Top2ee ( i64 [ [ T2 ] ] , i64 1 ) <nl> + / / CHECK - NEXT : [ [ T4 : % . * ] ] = call i1 @ _T19convertToLogicValue ( i1 [ [ T3 ] ] ) <nl> + / / CHECK - NEXT : br i1 [ [ T4 ] ] , label % [ [ BB2 : . * ] ] , label % [ [ BB3 : . * ] ] <nl> + } else if ( x = = 1 ) { <nl> + / / CHECK : [ [ BB2 ] ] : <nl> + / / CHECK - NEXT : [ [ T0 : % . * ] ] = getelementptr inbounds [ [ INT ] ] * [ [ RET ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T1 : % . * ] ] = getelementptr inbounds { i64 } * [ [ T0 ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : store i64 1 , i64 * [ [ T1 ] ] , align 8 <nl> + / / CHECK - NEXT : br label % [ [ BB_RET ] ] <nl> + return 1 <nl> + <nl> + } else { <nl> + / / CHECK : [ [ BB3 ] ] : <nl> + / / CHECK - NEXT : [ [ T0 : % . * ] ] = getelementptr inbounds [ [ INT ] ] * [ [ X ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T1 : % . * ] ] = getelementptr inbounds { i64 } * [ [ T0 ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T2 : % . * ] ] = load i64 * [ [ T1 ] ] , align 8 <nl> + / / CHECK - NEXT : [ [ T3 : % . * ] ] = call i64 @ _Top1s ( i64 [ [ T2 ] ] , i64 2 ) <nl> + / / CHECK - NEXT : [ [ V0 : % . * ] ] = call i64 @ _T2f0 ( i64 [ [ T3 ] ] ) <nl> + / / CHECK - NEXT : [ [ T0 : % . * ] ] = getelementptr inbounds [ [ INT ] ] * [ [ X ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T1 : % . * ] ] = getelementptr inbounds { i64 } * [ [ T0 ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T2 : % . * ] ] = load i64 * [ [ T1 ] ] , align 8 <nl> + / / CHECK - NEXT : [ [ T3 : % . * ] ] = call i64 @ _Top1s ( i64 [ [ T2 ] ] , i64 1 ) <nl> + / / CHECK - NEXT : [ [ V1 : % . * ] ] = call i64 @ _T2f0 ( i64 [ [ T3 ] ] ) <nl> + / / CHECK - NEXT : [ [ T0 : % . * ] ] = call i64 @ _Top1p ( i64 [ [ V0 ] ] , i64 [ [ V1 ] ] ) <nl> + / / CHECK - NEXT : [ [ T1 : % . * ] ] = getelementptr inbounds [ [ INT ] ] * [ [ RET ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T2 : % . * ] ] = getelementptr inbounds { i64 } * [ [ T1 ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : store i64 [ [ T0 ] ] , i64 * [ [ T2 ] ] , align 8 <nl> + / / CHECK - NEXT : br label % [ [ BB_RET ] ] <nl> + return f0 ( x - 2 ) + f0 ( x - 1 ) <nl> + } <nl> + <nl> + / / CHECK : [ [ BB_RET ] ] : <nl> + / / CHECK - NEXT : [ [ T0 : % . * ] ] = getelementptr inbounds [ [ INT ] ] * [ [ RET ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T1 : % . * ] ] = getelementptr inbounds { i64 } * [ [ T0 ] ] , i32 0 , i32 0 <nl> + / / CHECK - NEXT : [ [ T2 : % . * ] ] = load i64 * [ [ T1 ] ] , align 8 <nl> + / / CHECK - NEXT : ret i64 [ [ T2 ] ] <nl> + } <nl>
|
IR generation for ' if ' statements . Adjust the standard library
|
apple/swift
|
2cd676bf99a369e4895b056d660551da82cba2c6
|
2011-09-02T19:02:36Z
|
mmm a / test / expr / postfix / dot / init_ref_delegation . swift <nl> ppp b / test / expr / postfix / dot / init_ref_delegation . swift <nl> func foo < T : C > ( _ x : T , y : T . Type ) where T : P { <nl> var ci1 = x . init ( required : 0 ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 15 - 15 = type ( of : } } { { 19 - 19 = ) } } <nl> var ci2 = x . init ( x : 0 ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 15 - 15 = type ( of : } } { { 19 - 19 = ) } } <nl> var ci3 = x . init ( ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 15 - 15 = type ( of : } } { { 19 - 19 = ) } } <nl> - var ci4 = x . init ( proto : " " ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 15 - 15 = type ( of : } } { { 19 - 19 = ) } } <nl> - <nl> - var ci1a = x ( required : 0 ) / / expected - error { { cannot call value of non - function type ' T ' } } <nl> - var ci2a = x ( x : 0 ) / / expected - error { { cannot call value of non - function type ' T ' } } <nl> - var ci3a = x ( ) / / expected - error { { cannot call value of non - function type ' T ' } } { { 15 - 17 = } } <nl> - var ci4a = x ( proto : " " ) / / expected - error { { cannot call value of non - function type ' T ' } } <nl> + var ci4 = x . init ( proto : " " ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 15 - 15 = type ( of : } } { { 19 - 19 = ) } } <nl> + <nl> + var z = x <nl> + z . init ( required : 0 ) / / expected - error { { ' init ' is a member of the type ; use assignment to initalize the value instead } } { { 4 - 4 = = } } <nl> + z . init ( x : 0 ) / / expected - error { { ' init ' is a member of the type ; use assignment to initalize the value instead } } { { 4 - 4 = = } } <nl> + z . init ( ) / / expected - error { { ' init ' is a member of the type ; use assignment to initalize the value instead } } { { 4 - 4 = = } } <nl> + z . init ( proto : " " ) / / expected - error { { ' init ' is a member of the type ; use assignment to initalize the value instead } } { { 4 - 4 = = } } <nl> + <nl> + var ci1a = z . init ( required : 0 ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 16 - 16 = type ( of : } } { { 20 - 20 = ) } } <nl> + var ci2a = z . init ( x : 0 ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 16 - 16 = type ( of : } } { { 20 - 20 = ) } } <nl> + var ci3a = z . init ( ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 16 - 16 = type ( of : } } { { 20 - 20 = ) } } <nl> + var ci4a = z . init ( proto : " " ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 16 - 16 = type ( of : } } { { 20 - 20 = ) } } <nl> + <nl> + var ci1b = x ( required : 0 ) / / expected - error { { cannot call value of non - function type ' T ' } } <nl> + var ci2b = x ( x : 0 ) / / expected - error { { cannot call value of non - function type ' T ' } } <nl> + var ci3b = x ( ) / / expected - error { { cannot call value of non - function type ' T ' } } { { 15 - 17 = } } <nl> + var ci4b = x ( proto : " " ) / / expected - error { { cannot call value of non - function type ' T ' } } <nl> <nl> var cm1 = y . init ( required : 0 ) <nl> var cm2 = y . init ( x : 0 ) / / expected - error { { ' required ' initializer } } <nl> class TestOptionalTrySub : TestOptionalTry { <nl> / / expected - note @ - 1 { { force potentially - failing result with ' try ! ' } } { { 5 - 9 = try ! } } <nl> } <nl> } <nl> + <nl> + struct X { init ( ) { } } <nl> + <nl> + struct Y { <nl> + func foo ( _ : X ) { } <nl> + func asFunctionReturn ( ) - > X { <nl> + var a = X ( ) <nl> + return a . init ( ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 14 - 14 = type ( of : } } { { 18 - 18 = ) } } <nl> + } <nl> + var x : X <nl> + init ( ) { <nl> + x . init ( ) / / expected - error { { ' init ' is a member of the type ; use assignment to initalize the value instead } } { { 6 - 6 = = } } <nl> + foo ( x . init ( ) ) / / expected - error { { ' init ' is a member of the type ; use ' type ( of : . . . ) ' to initialize a new object of the same dynamic type } } { { 11 - 11 = type ( of : } } { { 15 - 15 = ) } } <nl> + } <nl> + } <nl> + <nl> + struct Y2 { <nl> + var x : X <nl> + init ( ) { <nl> + x = X ( ) <nl> + } <nl> + } <nl> + <nl> + struct MultipleMemberAccesses { <nl> + var y : Y <nl> + init ( ) { <nl> + y = Y ( ) <nl> + y . x . init ( ) / / expected - error { { ' init ' is a member of the type ; use assignment to initalize the value instead } } { { 8 - 8 = = } } <nl> + } <nl> + } <nl>
|
Test : Add tests for . init calls that should be transformed into assignments
|
apple/swift
|
4f1dbdbcc407de359f4e7c7e1fee51b6a283fb16
|
2019-05-08T19:42:56Z
|
mmm a / src / rdb_protocol / changefeed . cc <nl> ppp b / src / rdb_protocol / changefeed . cc <nl> class stream_t : public subscription_stream_t { <nl> } <nl> } ; <nl> <nl> - struct stamped_range_t { <nl> - key_range_t range ; <nl> - std : : map < uuid_u , uint64_t > stamps ; <nl> - } ; <nl> - <nl> / / RSI : pick up here , use pop_needed_changes <nl> class splice_stream_t : public subscription_stream_t { <nl> public : <nl> class splice_stream_t : public subscription_stream_t { <nl> return std : : move ( ret ) ; <nl> } <nl> <nl> - const store_key_t & get_right_fencepost ( ) { <nl> - return ranges . size ( ) = = 0 ? left_fencepost : ranges . back ( ) . range . right . key ; <nl> - } <nl> bool discard ( const store_key_t & pkey , <nl> const std : : pair < uuid_u , uint64_t > & source_stamp , <nl> const indexed_datum_t & val ) { <nl> class splice_stream_t : public subscription_stream_t { <nl> key = pkey ; <nl> } <nl> <nl> - if ( key < left_fencepost ) return false ; <nl> - if ( key > = get_right_fencepost ( ) ) return true ; <nl> - <nl> - if ( unread_range . contains ( val . index ) ) return true ; <nl> + / / Default construct if we have a new shard uuid . <nl> + stamped_range_t * stamped_range = & stamped_ranges [ source_stamp . first ] ; <nl> + stamped_range - > latest_change_stamp = source_stamp . second ; <nl> + if ( key < stamped_range - > left_fencepost ) return false ; <nl> + if ( key > = stamped_range - > get_right_fencepost ( ) ) return true ; <nl> / / ` ranges ` should be extremely small <nl> - for ( const auto & range : ranges ) { <nl> - if ( range . range . contains ( val . index ) ) { <nl> - auto it = range . stamps . find ( source_stamp . first ) ; <nl> - if ( it = = range . stamps . end ( ) ) return true ; <nl> - return source_stamp . second < it - > second ; <nl> + for ( const auto & pair : stamped_range - > ranges ) { <nl> + if ( pair . first . contains ( val . index ) ) { <nl> + return source_stamp . second < pair . second ; <nl> } <nl> } <nl> / / If we get here then there ' s a gap in the ranges . <nl> r_sanity_check ( false ) ; <nl> } <nl> - / / RSI : coalescing <nl> - void add_range ( stamped_range_t & & range ) { <nl> + void add_range ( uuid_u uuid , uint64_t stamp , key_range_t range ) { <nl> / / Safe because we never generate ` store_key_t : : max ( ) ` . <nl> - if ( range . range . right . unbounded ) { <nl> - range . range . right . unbounded = false ; <nl> - range . range . right . key = store_key_t : : max ( ) ; <nl> + if ( range . right . unbounded ) { <nl> + range . right . unbounded = false ; <nl> + range . right . key = store_key_t : : max ( ) ; <nl> + } <nl> + / / Default construct if we have a new shard uuid . <nl> + stamped_range_t * stamped_range = & stamped_ranges [ uuid ] ; <nl> + if ( stamped_range - > ranges . size ( ) = = 0 ) { <nl> + stamped_range - > left_fencepost = range . left ; <nl> + stamped_range - > ranges . push_back ( std : : move ( range ) ) ; <nl> + } else if ( stamped_range - > ranges . back ( ) . second = = stamp ) { <nl> + stamped_ranges - > ranges . back ( ) . first . right = range . right ; <nl> + } else { <nl> + stamped_range - > ranges . push_back ( std : : move ( range ) ) ; <nl> } <nl> - ranges . push_back ( std : : move ( range ) ) ; <nl> - / / It ' s theoretically possible that this assert could fail , but it ' s <nl> - / / infinitely more likely that we ' re failing to remove outdated ranges <nl> - / / for some reason . <nl> - rassert ( ranges . size ( ) < 100 ) ; <nl> } <nl> void update_ranges ( counted_t < datum_stream_t > src ) { <nl> r_sanity_check ( src . has ( ) ) ; <nl> - add_range ( src - > stamped_last_read_range ( ) ) <nl> - } <nl> - bool outdated ( const stamped_range_t & range ) { <nl> - for ( const auto & pair : range ) { <nl> - auto it = latest_stamps . find ( pair . first ) ; <nl> - if ( it = = latest_stamps . end ( ) ) return false ; <nl> - if ( it - > second < stamp . second ) return false ; <nl> + key_range_t range = src - > last_read_range ( ) ; <nl> + std : : map < uuid_u , uint64_t > last_read_stamps ; <nl> + for ( const auto & pair : last_read_stamps ) { <nl> + add_range ( last_read_stamps . first , last_read_stamps . second , range ) ; <nl> } <nl> - return true ; <nl> } <nl> void remove_outdated_ranges ( ) { <nl> - while ( ranges . size ( ) > 0 & & outdated ( ranges . front ( ) ) ) { <nl> - left_fencepost = ranges . front ( ) . range . right . key ; <nl> - ranges . pop_front ( ) ; <nl> + for ( auto & & stamped_range : stamped_ranges_t ) { <nl> + auto * ranges = & stamped_range . ranges ; <nl> + while ( ranges - > size ( ) > 0 & & ranges - > front ( ) . second < = latest_change_stamp ) { <nl> + stamped_range . left_fencepost = ranges - > front ( ) . first . right . key ; <nl> + ranges . pop_front ( ) ; <nl> + } <nl> } <nl> } <nl> <nl> - store_key_t left_fencepost ; <nl> - std : : deque < stamped_range_t > ranges ; <nl> - std : : map < uuid_u , uint64_t > latest_stamps ; <nl> + struct stamped_range_t { <nl> + stamped_range_t ( ) <nl> + : latest_change_stamp ( 0 ) , <nl> + left_fencepost ( store_key_t : : min ( ) ) { } <nl> + const store_key_t & get_right_fencepost ( ) { <nl> + return ranges . size ( ) = = 0 ? left_fencepost : ranges . back ( ) . first . right . key ; <nl> + } <nl> + uint64_t latest_change_stamp ; <nl> + store_key_t left_fencepost ; <nl> + std : : deque < std : : pair < key_range_t , uint64_t > > ranges ; <nl> + } ; <nl> + std : : map < uuid_u , stamped_range_t > stamped_ranges ; <nl> counted_t < datum_stream_t > src ; <nl> } ; <nl> <nl>
|
working on coalescing
|
rethinkdb/rethinkdb
|
5a987b1e50e8904472cd73f0fcef596c05ef895c
|
2015-03-24T23:05:17Z
|
mmm a / dbms / programs / main . cpp <nl> ppp b / dbms / programs / main . cpp <nl> <nl> + # include < signal . h > <nl> + # include < setjmp . h > <nl> + <nl> # include < new > <nl> # include < iostream > <nl> # include < vector > <nl> std : : string instructionFailToString ( InstructionFail fail ) <nl> <nl> sigjmp_buf jmpbuf ; <nl> <nl> - void sigIllCheckHandler ( int , siginfo_t * , void * ) <nl> + [ [ noreturn ] ] void sigIllCheckHandler ( int , siginfo_t * , void * ) <nl> { <nl> siglongjmp ( jmpbuf , 1 ) ; <nl> } <nl> void sigIllCheckHandler ( int , siginfo_t * , void * ) <nl> / / / If instruction is unavailable , SIGILL will be sent by kernel . <nl> void checkRequiredInstructionsImpl ( volatile InstructionFail & fail ) <nl> { <nl> - # if __SSE3__ <nl> + # if defined ( __SSE3__ ) <nl> fail = InstructionFail : : SSE3 ; <nl> __asm__ volatile ( " addsubpd % % xmm0 , % % xmm0 " : : : " xmm0 " ) ; <nl> # endif <nl> <nl> - # if __SSSE3__ <nl> + # if defined ( __SSSE3__ ) <nl> fail = InstructionFail : : SSSE3 ; <nl> __asm__ volatile ( " pabsw % % xmm0 , % % xmm0 " : : : " xmm0 " ) ; <nl> <nl> # endif <nl> <nl> - # if __SSE4_1__ <nl> + # if defined ( __SSE4_1__ ) <nl> fail = InstructionFail : : SSE4_1 ; <nl> __asm__ volatile ( " pmaxud % % xmm0 , % % xmm0 " : : : " xmm0 " ) ; <nl> # endif <nl> <nl> - # if __SSE4_2__ <nl> + # if defined ( __SSE4_2__ ) <nl> fail = InstructionFail : : SSE4_2 ; <nl> __asm__ volatile ( " pcmpgtq % % xmm0 , % % xmm0 " : : : " xmm0 " ) ; <nl> # endif <nl> <nl> - # if __AVX__ <nl> + # if defined ( __AVX__ ) <nl> fail = InstructionFail : : AVX ; <nl> __asm__ volatile ( " vaddpd % % ymm0 , % % ymm0 , % % ymm0 " : : : " ymm0 " ) ; <nl> # endif <nl> <nl> - # if __AVX2__ <nl> + # if defined ( __AVX2__ ) <nl> fail = InstructionFail : : AVX2 ; <nl> __asm__ volatile ( " vpabsw % % ymm0 , % % ymm0 " : : : " ymm0 " ) ; <nl> # endif <nl> <nl> - # if __AVX512__ <nl> + # if defined ( __AVX512__ ) <nl> fail = InstructionFail : : AVX512 ; <nl> __asm__ volatile ( " vpabsw % % zmm0 , % % zmm0 " : : : " zmm0 " ) ; <nl> # endif <nl> void checkRequiredInstructionsImpl ( volatile InstructionFail & fail ) <nl> <nl> / / / Check SSE and others instructions availability <nl> / / / Calls exit on fail <nl> + / / / This function must be called as early inside main as possible . <nl> void checkRequiredInstructions ( ) <nl> { <nl> struct sigaction sa { } ; <nl>
|
Better check for available instructions
|
ClickHouse/ClickHouse
|
68726fe2a273bc8c2ff1fa71c96a321babaa200a
|
2020-03-26T16:58:50Z
|
mmm a / src / apinatives . js <nl> ppp b / src / apinatives . js <nl> <nl> / / Use of this source code is governed by a BSD - style license that can be <nl> / / found in the LICENSE file . <nl> <nl> + " use strict " ; <nl> + <nl> / / This file contains infrastructure used by the API . See <nl> / / v8natives . js for an explanation of these files are processed and <nl> / / loaded . <nl> mmm a / src / array - iterator . js <nl> ppp b / src / array - iterator . js <nl> <nl> / / Copyright 2013 the V8 project authors . All rights reserved . <nl> - / / Redistribution and use in source and binary forms , with or without <nl> - / / modification , are permitted provided that the following conditions are <nl> - / / met : <nl> - / / <nl> - / / * Redistributions of source code must retain the above copyright <nl> - / / notice , this list of conditions and the following disclaimer . <nl> - / / * Redistributions in binary form must reproduce the above <nl> - / / copyright notice , this list of conditions and the following <nl> - / / disclaimer in the documentation and / or other materials provided <nl> - / / with the distribution . <nl> - / / * Neither the name of Google Inc . nor the names of its <nl> - / / contributors may be used to endorse or promote products derived <nl> - / / from this software without specific prior written permission . <nl> - / / <nl> - / / THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS <nl> - / / ' AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT <nl> - / / LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR <nl> - / / A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT <nl> - / / OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , <nl> - / / SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT <nl> - / / LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , <nl> - / / DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY <nl> - / / THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT <nl> - / / ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE <nl> - / / OF THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE . <nl> + / / Use of this source code is governed by a BSD - style license that can be <nl> + / / found in the LICENSE file . <nl> <nl> ' use strict ' ; <nl> <nl> mmm a / src / date . js <nl> ppp b / src / date . js <nl> <nl> / / Use of this source code is governed by a BSD - style license that can be <nl> / / found in the LICENSE file . <nl> <nl> + " use strict " ; <nl> + <nl> / / This file relies on the fact that the following declarations have been made <nl> / / in v8natives . js : <nl> / / var $ isFinite = GlobalIsFinite ; <nl> mmm a / src / i18n . js <nl> ppp b / src / i18n . js <nl> <nl> / / Copyright 2013 the V8 project authors . All rights reserved . <nl> / / Use of this source code is governed by a BSD - style license that can be <nl> / / found in the LICENSE file . <nl> - / / limitations under the License . <nl> + <nl> + " use strict " ; <nl> <nl> / / ECMAScript 402 API implementation . <nl> <nl> <nl> * / <nl> $ Object . defineProperty ( global , " Intl " , { enumerable : false , value : ( function ( ) { <nl> <nl> - ' use strict ' ; <nl> - <nl> var Intl = { } ; <nl> <nl> var undefined = global . undefined ; <nl> mmm a / src / json . js <nl> ppp b / src / json . js <nl> <nl> / / Use of this source code is governed by a BSD - style license that can be <nl> / / found in the LICENSE file . <nl> <nl> + " use strict " ; <nl> + <nl> / / This file relies on the fact that the following declarations have been made <nl> / / in runtime . js : <nl> / / var $ Array = global . Array ; <nl> mmm a / src / math . js <nl> ppp b / src / math . js <nl> <nl> / / Use of this source code is governed by a BSD - style license that can be <nl> / / found in the LICENSE file . <nl> <nl> + " use strict " ; <nl> + <nl> / / This file relies on the fact that the following declarations have been made <nl> / / in runtime . js : <nl> / / var $ Object = global . Object ; <nl> mmm a / src / regexp . js <nl> ppp b / src / regexp . js <nl> <nl> / / Use of this source code is governed by a BSD - style license that can be <nl> / / found in the LICENSE file . <nl> <nl> + " use strict " ; <nl> + <nl> / / This file relies on the fact that the following declaration has been made <nl> / / in runtime . js : <nl> / / var $ Object = global . Object ; <nl> mmm a / src / uri . js <nl> ppp b / src / uri . js <nl> <nl> / / Use of this source code is governed by a BSD - style license that can be <nl> / / found in the LICENSE file . <nl> <nl> + " use strict " ; <nl> + <nl> / / This file relies on the fact that the following declaration has been made <nl> / / in runtime . js : <nl> / / var $ Array = global . Array ; <nl>
|
Move more builtin files to strict mode .
|
v8/v8
|
38754b4e1210763c6d2a241d085ff6c6618b4926
|
2014-05-12T08:43:01Z
|
mmm a / src / mongo / db / auth / authz_manager_external_state_mock . cpp <nl> ppp b / src / mongo / db / auth / authz_manager_external_state_mock . cpp <nl> Status AuthzManagerExternalStateMock : : _queryVector ( <nl> const NamespaceString & collectionName , <nl> const BSONObj & query , <nl> std : : vector < BSONObjCollection : : iterator > * result ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression parseResult = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> if ( ! parseResult . isOK ( ) ) { <nl> return parseResult . getStatus ( ) ; <nl> } <nl> mmm a / src / mongo / db / catalog / apply_ops . cpp <nl> ppp b / src / mongo / db / catalog / apply_ops . cpp <nl> Status applyOps ( OperationContext * txn , <nl> <nl> / / Apply - ops would never have a $ where / $ text matcher . Using the " DisallowExtensions " <nl> / / callback ensures that parsing will throw an error if $ where or $ text are found . <nl> - Matcher m ( f [ " res " ] . Obj ( ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + / / TODO SERVER - 23690 : Pass the appropriate CollatorInterface * instead of nullptr . <nl> + Matcher m ( f [ " res " ] . Obj ( ) , ExtensionsCallbackDisallowExtensions ( ) , nullptr ) ; <nl> if ( ! m . matches ( realres ) ) { <nl> result - > append ( " got " , realres ) ; <nl> result - > append ( " whatFailed " , f ) ; <nl> mmm a / src / mongo / db / catalog / collection . cpp <nl> ppp b / src / mongo / db / catalog / collection . cpp <nl> StatusWithMatchExpression Collection : : parseValidator ( const BSONObj & validator ) c <nl> return status ; <nl> } <nl> <nl> + / / TODO SERVER - 23687 : Pass the appropriate CollatorInterface * instead of nullptr . <nl> auto statusWithMatcher = <nl> - MatchExpressionParser : : parse ( validator , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( validator , ExtensionsCallbackDisallowExtensions ( ) , nullptr ) ; <nl> if ( ! statusWithMatcher . isOK ( ) ) <nl> return statusWithMatcher . getStatus ( ) ; <nl> <nl> mmm a / src / mongo / db / catalog / index_catalog . cpp <nl> ppp b / src / mongo / db / catalog / index_catalog . cpp <nl> Status IndexCatalog : : _isSpecOk ( OperationContext * txn , const BSONObj & spec ) const <nl> return Status ( ErrorCodes : : CannotCreateIndex , <nl> " \ " partialFilterExpression \ " for an index must be a document " ) ; <nl> } <nl> + / / TODO SERVER - 23618 : pass the appropriate CollatorInterface * instead of nullptr . <nl> StatusWithMatchExpression statusWithMatcher = MatchExpressionParser : : parse ( <nl> - filterElement . Obj ( ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + filterElement . Obj ( ) , ExtensionsCallbackDisallowExtensions ( ) , nullptr ) ; <nl> if ( ! statusWithMatcher . isOK ( ) ) { <nl> return statusWithMatcher . getStatus ( ) ; <nl> } <nl> mmm a / src / mongo / db / catalog / index_catalog_entry . cpp <nl> ppp b / src / mongo / db / catalog / index_catalog_entry . cpp <nl> void IndexCatalogEntry : : init ( OperationContext * txn , IndexAccessMethod * accessMet <nl> if ( BSONElement filterElement = _descriptor - > getInfoElement ( " partialFilterExpression " ) ) { <nl> invariant ( filterElement . isABSONObj ( ) ) ; <nl> BSONObj filter = filterElement . Obj ( ) ; <nl> + / / TODO SERVER - 23618 : pass the appropriate CollatorInterface * instead of nullptr . <nl> StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( filter , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( filter , ExtensionsCallbackDisallowExtensions ( ) , nullptr ) ; <nl> / / this should be checked in create , so can blow up here <nl> invariantOK ( statusWithMatcher . getStatus ( ) ) ; <nl> _filterExpression = std : : move ( statusWithMatcher . getValue ( ) ) ; <nl> mmm a / src / mongo / db / clientlistplugin . cpp <nl> ppp b / src / mongo / db / clientlistplugin . cpp <nl> class CurrentOpContexts : public Command { <nl> BSONObjBuilder & result ) { <nl> unique_ptr < MatchExpression > filter ; <nl> if ( cmdObj [ " filter " ] . isABSONObj ( ) ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression statusWithMatcher = MatchExpressionParser : : parse ( <nl> - cmdObj [ " filter " ] . Obj ( ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + cmdObj [ " filter " ] . Obj ( ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> if ( ! statusWithMatcher . isOK ( ) ) { <nl> return appendCommandStatus ( result , statusWithMatcher . getStatus ( ) ) ; <nl> } <nl> mmm a / src / mongo / db / commands / current_op . cpp <nl> ppp b / src / mongo / db / commands / current_op . cpp <nl> class CurrentOpCommand : public Command { <nl> / / collection , we pass in a fake collection name ( and this is okay , because $ where parsing <nl> / / only relies on the database part of the namespace ) . <nl> const NamespaceString fakeNS ( db , " $ cmd " ) ; <nl> - const Matcher matcher ( filter , ExtensionsCallbackReal ( txn , & fakeNS ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + const Matcher matcher ( filter , ExtensionsCallbackReal ( txn , & fakeNS ) , collator ) ; <nl> <nl> BSONArrayBuilder inprogBuilder ( result . subarrayStart ( " inprog " ) ) ; <nl> <nl> mmm a / src / mongo / db / commands / list_collections . cpp <nl> ppp b / src / mongo / db / commands / list_collections . cpp <nl> class CmdListCollections : public Command { <nl> return appendCommandStatus ( <nl> result , Status ( ErrorCodes : : BadValue , " \ " filter \ " must be an object " ) ) ; <nl> } <nl> + / / The collator is null because collection objects are compared using binary comparison . <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression statusWithMatcher = MatchExpressionParser : : parse ( <nl> - filterElt . Obj ( ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + filterElt . Obj ( ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> if ( ! statusWithMatcher . isOK ( ) ) { <nl> return appendCommandStatus ( result , statusWithMatcher . getStatus ( ) ) ; <nl> } <nl> mmm a / src / mongo / db / exec / projection_exec . cpp <nl> ppp b / src / mongo / db / exec / projection_exec . cpp <nl> ProjectionExec : : ProjectionExec ( const BSONObj & spec , <nl> BSONObj elemMatchObj = e . wrap ( ) ; <nl> verify ( elemMatchObj . isOwned ( ) ) ; <nl> _elemMatchObjs . push_back ( elemMatchObj ) ; <nl> + / / TODO SERVER - 23680 : pass the appropriate CollatorInterface * instead of nullptr . <nl> StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( elemMatchObj , extensionsCallback ) ; <nl> + MatchExpressionParser : : parse ( elemMatchObj , extensionsCallback , nullptr ) ; <nl> verify ( statusWithMatcher . isOK ( ) ) ; <nl> / / And store it in _matchers . <nl> _matchers [ mongoutils : : str : : before ( e . fieldName ( ) , ' . ' ) . c_str ( ) ] = <nl> mmm a / src / mongo / db / exec / projection_exec_test . cpp <nl> ppp b / src / mongo / db / exec / projection_exec_test . cpp <nl> using std : : unique_ptr ; <nl> * Utility function to create MatchExpression <nl> * / <nl> unique_ptr < MatchExpression > parseMatchExpression ( const BSONObj & obj ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( status . isOK ( ) ) ; <nl> return std : : move ( status . getValue ( ) ) ; <nl> } <nl> mmm a / src / mongo / db / exec / stagedebug_cmd . cpp <nl> ppp b / src / mongo / db / exec / stagedebug_cmd . cpp <nl> class StageDebugCmd : public Command { <nl> } <nl> BSONObj argObj = e . Obj ( ) ; <nl> if ( filterTag = = e . fieldName ( ) ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression statusWithMatcher = MatchExpressionParser : : parse ( <nl> - argObj , ExtensionsCallbackReal ( txn , & collection - > ns ( ) ) ) ; <nl> + argObj , ExtensionsCallbackReal ( txn , & collection - > ns ( ) ) , collator ) ; <nl> if ( ! statusWithMatcher . isOK ( ) ) { <nl> return NULL ; <nl> } <nl> mmm a / src / mongo / db / matcher / SConscript <nl> ppp b / src / mongo / db / matcher / SConscript <nl> env . CppUnitTest ( <nl> ' expression_parser_tree_test . cpp ' , <nl> ] , <nl> LIBDEPS = [ <nl> + ' $ BUILD_DIR / mongo / db / query / collation / collator_interface_mock ' , <nl> ' expressions ' , <nl> ] , <nl> ) <nl> mmm a / src / mongo / db / matcher / expression_algo_test . cpp <nl> ppp b / src / mongo / db / matcher / expression_algo_test . cpp <nl> using std : : unique_ptr ; <nl> class ParsedMatchExpression { <nl> public : <nl> ParsedMatchExpression ( const std : : string & str ) : _obj ( fromjson ( str ) ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( _obj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( _obj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( result . getStatus ( ) ) ; <nl> _expr = std : : move ( result . getValue ( ) ) ; <nl> } <nl> TEST ( ExpressionAlgoIsSubsetOf , NullAndOmittedField ) { <nl> / / Verify that ComparisonMatchExpression : : init ( ) prohibits creating a match expression with <nl> / / an Undefined type . <nl> BSONObj undefined = fromjson ( " { a : undefined } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> ASSERT_EQUALS ( ErrorCodes : : BadValue , <nl> - MatchExpressionParser : : parse ( undefined , ExtensionsCallbackDisallowExtensions ( ) ) <nl> - . getStatus ( ) ) ; <nl> + MatchExpressionParser : : parse ( <nl> + undefined , ExtensionsCallbackDisallowExtensions ( ) , collator ) . getStatus ( ) ) ; <nl> <nl> ParsedMatchExpression empty ( " { } " ) ; <nl> ParsedMatchExpression null ( " { a : null } " ) ; <nl> TEST ( ExpressionAlgoIsSubsetOf , Compare_Exists_NE ) { <nl> <nl> TEST ( IsIndependent , AndIsIndependentOnlyIfChildrenAre ) { <nl> BSONObj matchPredicate = fromjson ( " { $ and : [ { a : 1 } , { b : 1 } ] } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> unique_ptr < MatchExpression > expr = std : : move ( status . getValue ( ) ) ; <nl> TEST ( IsIndependent , AndIsIndependentOnlyIfChildrenAre ) { <nl> <nl> TEST ( IsIndependent , ElemMatchIsNotIndependent ) { <nl> BSONObj matchPredicate = fromjson ( " { x : { $ elemMatch : { y : 1 } } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> unique_ptr < MatchExpression > expr = std : : move ( status . getValue ( ) ) ; <nl> TEST ( IsIndependent , ElemMatchIsNotIndependent ) { <nl> <nl> TEST ( IsIndependent , NorIsIndependentOnlyIfChildrenAre ) { <nl> BSONObj matchPredicate = fromjson ( " { $ nor : [ { a : 1 } , { b : 1 } ] } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> unique_ptr < MatchExpression > expr = std : : move ( status . getValue ( ) ) ; <nl> TEST ( IsIndependent , NorIsIndependentOnlyIfChildrenAre ) { <nl> <nl> TEST ( IsIndependent , NotIsIndependentOnlyIfChildrenAre ) { <nl> BSONObj matchPredicate = fromjson ( " { a : { $ not : { $ eq : 1 } } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> unique_ptr < MatchExpression > expr = std : : move ( status . getValue ( ) ) ; <nl> TEST ( IsIndependent , NotIsIndependentOnlyIfChildrenAre ) { <nl> <nl> TEST ( IsIndependent , OrIsIndependentOnlyIfChildrenAre ) { <nl> BSONObj matchPredicate = fromjson ( " { $ or : [ { a : 1 } , { b : 1 } ] } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> unique_ptr < MatchExpression > expr = std : : move ( status . getValue ( ) ) ; <nl> TEST ( IsIndependent , OrIsIndependentOnlyIfChildrenAre ) { <nl> <nl> TEST ( IsIndependent , AndWithDottedFieldPathsIsNotIndependent ) { <nl> BSONObj matchPredicate = fromjson ( " { $ and : [ { ' a ' : 1 } , { ' a . b ' : 1 } ] } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> unique_ptr < MatchExpression > expr = std : : move ( status . getValue ( ) ) ; <nl> TEST ( IsIndependent , AndWithDottedFieldPathsIsNotIndependent ) { <nl> <nl> TEST ( IsIndependent , BallIsIndependentOfBalloon ) { <nl> BSONObj matchPredicate = fromjson ( " { ' a . ball ' : 4 } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> unique_ptr < MatchExpression > expr = std : : move ( status . getValue ( ) ) ; <nl> TEST ( IsIndependent , BallIsIndependentOfBalloon ) { <nl> <nl> TEST ( SplitMatchExpression , AndWithSplittableChildrenIsSplittable ) { <nl> BSONObj matchPredicate = fromjson ( " { $ and : [ { a : 1 } , { b : 1 } ] } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> std : : pair < unique_ptr < MatchExpression > , unique_ptr < MatchExpression > > splitExpr = <nl> TEST ( SplitMatchExpression , AndWithSplittableChildrenIsSplittable ) { <nl> <nl> TEST ( SplitMatchExpression , NorWithIndependentChildrenIsSplittable ) { <nl> BSONObj matchPredicate = fromjson ( " { $ nor : [ { a : 1 } , { b : 1 } ] } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> std : : pair < unique_ptr < MatchExpression > , unique_ptr < MatchExpression > > splitExpr = <nl> TEST ( SplitMatchExpression , NorWithIndependentChildrenIsSplittable ) { <nl> <nl> TEST ( SplitMatchExpression , NotWithIndependentChildIsSplittable ) { <nl> BSONObj matchPredicate = fromjson ( " { x : { $ not : { $ gt : 4 } } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> std : : pair < unique_ptr < MatchExpression > , unique_ptr < MatchExpression > > splitExpr = <nl> TEST ( SplitMatchExpression , NotWithIndependentChildIsSplittable ) { <nl> <nl> TEST ( SplitMatchExpression , OrWithOnlyIndependentChildrenIsNotSplittable ) { <nl> BSONObj matchPredicate = fromjson ( " { $ or : [ { a : 1 } , { b : 1 } ] } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> std : : pair < unique_ptr < MatchExpression > , unique_ptr < MatchExpression > > splitExpr = <nl> TEST ( SplitMatchExpression , ComplexMatchExpressionSplitsCorrectly ) { <nl> " { $ and : [ { x : { $ not : { $ size : 2 } } } , " <nl> " { $ or : [ { ' a . b ' : 3 } , { ' a . b . c ' : 4 } ] } , " <nl> " { $ nor : [ { x : { $ gt : 4 } } , { $ and : [ { x : { $ not : { $ eq : 1 } } } , { y : 3 } ] } ] } ] } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( status . getStatus ( ) ) ; <nl> <nl> std : : pair < unique_ptr < MatchExpression > , unique_ptr < MatchExpression > > splitExpr = <nl> TEST ( SplitMatchExpression , ComplexMatchExpressionSplitsCorrectly ) { <nl> <nl> TEST ( MapOverMatchExpression , DoesMapOverLogicalNodes ) { <nl> BSONObj matchPredicate = fromjson ( " { a : { $ not : { $ eq : 1 } } } " ) ; <nl> - auto swMatchExpression = MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + auto swMatchExpression = <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( swMatchExpression . getStatus ( ) ) ; <nl> <nl> bool hasLogicalNode = false ; <nl> TEST ( MapOverMatchExpression , DoesMapOverLogicalNodes ) { <nl> <nl> TEST ( MapOverMatchExpression , DoesMapOverLeafNodes ) { <nl> BSONObj matchPredicate = fromjson ( " { a : { $ not : { $ eq : 1 } } } " ) ; <nl> - auto swMatchExpression = MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + auto swMatchExpression = <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( swMatchExpression . getStatus ( ) ) ; <nl> <nl> bool hasLeafNode = false ; <nl> TEST ( MapOverMatchExpression , DoesMapOverLeafNodes ) { <nl> <nl> TEST ( MapOverMatchExpression , DoesPassPath ) { <nl> BSONObj matchPredicate = fromjson ( " { a : { $ elemMatch : { b : 1 } } } " ) ; <nl> - auto swMatchExpression = MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + auto swMatchExpression = <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( swMatchExpression . getStatus ( ) ) ; <nl> <nl> std : : vector < std : : string > paths ; <nl> TEST ( MapOverMatchExpression , DoesPassPath ) { <nl> <nl> TEST ( MapOverMatchExpression , DoesMapOverNodesWithMultipleChildren ) { <nl> BSONObj matchPredicate = fromjson ( " { $ and : [ { a : { $ gt : 1 } } , { b : { $ lte : 2 } } ] } " ) ; <nl> - auto swMatchExpression = MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + auto swMatchExpression = <nl> + MatchExpressionParser : : parse ( matchPredicate , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_OK ( swMatchExpression . getStatus ( ) ) ; <nl> <nl> size_t nodeCount = 0 ; <nl> mmm a / src / mongo / db / matcher / expression_parser . cpp <nl> ppp b / src / mongo / db / matcher / expression_parser . cpp <nl> StatusWithMatchExpression MatchExpressionParser : : _parseSubField ( const BSONObj & c <nl> / / TODO : these should move to getGtLtOp , or its replacement <nl> <nl> if ( mongoutils : : str : : equals ( " $ eq " , e . fieldName ( ) ) ) <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to EqualityMatchExpression ( ) . <nl> - return _parseComparison ( name , new EqualityMatchExpression ( nullptr ) , e ) ; <nl> + return _parseComparison ( name , new EqualityMatchExpression ( _collator ) , e ) ; <nl> <nl> if ( mongoutils : : str : : equals ( " $ not " , e . fieldName ( ) ) ) { <nl> return _parseNot ( name , e , level ) ; <nl> StatusWithMatchExpression MatchExpressionParser : : _parseSubField ( const BSONObj & c <nl> return { Status ( ErrorCodes : : BadValue , <nl> mongoutils : : str : : stream ( ) < < " unknown operator : " < < e . fieldName ( ) ) } ; <nl> case BSONObj : : LT : <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to LTMatchExpression ( ) . <nl> - return _parseComparison ( name , new LTMatchExpression ( nullptr ) , e ) ; <nl> + return _parseComparison ( name , new LTMatchExpression ( _collator ) , e ) ; <nl> case BSONObj : : LTE : <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to LTEMatchExpression ( ) . <nl> - return _parseComparison ( name , new LTEMatchExpression ( nullptr ) , e ) ; <nl> + return _parseComparison ( name , new LTEMatchExpression ( _collator ) , e ) ; <nl> case BSONObj : : GT : <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to GTMatchExpression ( ) . <nl> - return _parseComparison ( name , new GTMatchExpression ( nullptr ) , e ) ; <nl> + return _parseComparison ( name , new GTMatchExpression ( _collator ) , e ) ; <nl> case BSONObj : : GTE : <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to GTEMatchExpression ( ) . <nl> - return _parseComparison ( name , new GTEMatchExpression ( nullptr ) , e ) ; <nl> + return _parseComparison ( name , new GTEMatchExpression ( _collator ) , e ) ; <nl> case BSONObj : : NE : { <nl> if ( RegEx = = e . type ( ) ) { <nl> / / Just because $ ne can be rewritten as the negation of an <nl> / / equality does not mean that $ ne of a regex is allowed . See SERVER - 1705 . <nl> return { Status ( ErrorCodes : : BadValue , " Can ' t have regex as arg to $ ne . " ) } ; <nl> } <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to EqualityMatchExpression ( ) . <nl> StatusWithMatchExpression s = <nl> - _parseComparison ( name , new EqualityMatchExpression ( nullptr ) , e ) ; <nl> + _parseComparison ( name , new EqualityMatchExpression ( _collator ) , e ) ; <nl> if ( ! s . isOK ( ) ) <nl> return s ; <nl> std : : unique_ptr < NotMatchExpression > n = stdx : : make_unique < NotMatchExpression > ( ) ; <nl> StatusWithMatchExpression MatchExpressionParser : : _parseSubField ( const BSONObj & c <nl> return { std : : move ( n ) } ; <nl> } <nl> case BSONObj : : Equality : <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to EqualityMatchExpression ( ) . <nl> - return _parseComparison ( name , new EqualityMatchExpression ( nullptr ) , e ) ; <nl> + return _parseComparison ( name , new EqualityMatchExpression ( _collator ) , e ) ; <nl> <nl> case BSONObj : : opIN : { <nl> if ( e . type ( ) ! = Array ) <nl> return { Status ( ErrorCodes : : BadValue , " $ in needs an array " ) } ; <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to InMatchExpression ( ) . <nl> - std : : unique_ptr < InMatchExpression > temp = stdx : : make_unique < InMatchExpression > ( nullptr ) ; <nl> + std : : unique_ptr < InMatchExpression > temp = <nl> + stdx : : make_unique < InMatchExpression > ( _collator ) ; <nl> Status s = temp - > init ( name ) ; <nl> if ( ! s . isOK ( ) ) <nl> return s ; <nl> StatusWithMatchExpression MatchExpressionParser : : _parseSubField ( const BSONObj & c <nl> case BSONObj : : NIN : { <nl> if ( e . type ( ) ! = Array ) <nl> return { Status ( ErrorCodes : : BadValue , " $ nin needs an array " ) } ; <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to InMatchExpression ( ) . <nl> - std : : unique_ptr < InMatchExpression > temp = stdx : : make_unique < InMatchExpression > ( nullptr ) ; <nl> + std : : unique_ptr < InMatchExpression > temp = <nl> + stdx : : make_unique < InMatchExpression > ( _collator ) ; <nl> Status s = temp - > init ( name ) ; <nl> if ( ! s . isOK ( ) ) <nl> return s ; <nl> StatusWithMatchExpression MatchExpressionParser : : _parse ( const BSONObj & obj , int <nl> } else if ( mongoutils : : str : : equals ( " ref " , rest ) | | <nl> mongoutils : : str : : equals ( " id " , rest ) | | mongoutils : : str : : equals ( " db " , rest ) ) { <nl> / / DBRef fields . <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to EqualityMatchExpression ( ) in <nl> - / / the " id " case . <nl> + / / ' id ' is collation - aware . ' ref ' and ' db ' are compared using binary comparison . <nl> + CollatorInterface * collator = ( str : : equals ( " id " , rest ) ? _collator : nullptr ) ; <nl> std : : unique_ptr < ComparisonMatchExpression > eq = <nl> - stdx : : make_unique < EqualityMatchExpression > ( nullptr ) ; <nl> + stdx : : make_unique < EqualityMatchExpression > ( collator ) ; <nl> Status s = eq - > init ( e . fieldName ( ) , e ) ; <nl> if ( ! s . isOK ( ) ) <nl> return s ; <nl> StatusWithMatchExpression MatchExpressionParser : : _parse ( const BSONObj & obj , int <nl> continue ; <nl> } <nl> <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to EqualityMatchExpression ( ) . <nl> std : : unique_ptr < ComparisonMatchExpression > eq = <nl> - stdx : : make_unique < EqualityMatchExpression > ( nullptr ) ; <nl> + stdx : : make_unique < EqualityMatchExpression > ( _collator ) ; <nl> Status s = eq - > init ( e . fieldName ( ) , e ) ; <nl> if ( ! s . isOK ( ) ) <nl> return s ; <nl> StatusWithMatchExpression MatchExpressionParser : : _parseAll ( const char * name , <nl> } else if ( e . type ( ) = = Object & & e . Obj ( ) . firstElement ( ) . getGtLtOp ( - 1 ) ! = - 1 ) { <nl> return { Status ( ErrorCodes : : BadValue , " no $ expressions in $ all " ) } ; <nl> } else { <nl> - / / TODO SERVER - 23608 : Pass our CollatorInterface * to EqualityMatchExpression ( ) . <nl> std : : unique_ptr < EqualityMatchExpression > x = <nl> - stdx : : make_unique < EqualityMatchExpression > ( nullptr ) ; <nl> + stdx : : make_unique < EqualityMatchExpression > ( _collator ) ; <nl> Status s = x - > init ( name , e ) ; <nl> if ( ! s . isOK ( ) ) <nl> return s ; <nl> mmm a / src / mongo / db / matcher / expression_parser . h <nl> ppp b / src / mongo / db / matcher / expression_parser . h <nl> <nl> <nl> namespace mongo { <nl> <nl> + class CollatorInterface ; <nl> class OperationContext ; <nl> <nl> class MatchExpressionParser { <nl> class MatchExpressionParser { <nl> / * * <nl> * caller has to maintain ownership obj <nl> * the tree has views ( BSONElement ) into obj <nl> + * ' collator ' must outlive the returned MatchExpression and any clones made of it . <nl> * / <nl> static StatusWithMatchExpression parse ( const BSONObj & obj , <nl> - const ExtensionsCallback & extensionsCallback ) { <nl> + const ExtensionsCallback & extensionsCallback , <nl> + CollatorInterface * collator ) { <nl> / / The 0 initializes the match expression tree depth . <nl> - return MatchExpressionParser ( & extensionsCallback ) . _parse ( obj , 0 ) ; <nl> + return MatchExpressionParser ( & extensionsCallback , collator ) . _parse ( obj , 0 ) ; <nl> } <nl> <nl> private : <nl> - explicit MatchExpressionParser ( const ExtensionsCallback * extensionsCallback ) <nl> - : _extensionsCallback ( extensionsCallback ) { } <nl> + MatchExpressionParser ( const ExtensionsCallback * extensionsCallback , CollatorInterface * collator ) <nl> + : _extensionsCallback ( extensionsCallback ) , _collator ( collator ) { } <nl> <nl> / * * <nl> * 5 = false <nl> class MatchExpressionParser { <nl> / / Performs parsing for the match extensions . We do not own this pointer - it has to live <nl> / / as long as the parser is active . <nl> const ExtensionsCallback * _extensionsCallback ; <nl> + <nl> + / / Collator that constructed collation - aware MatchExpressions will use . <nl> + / / We do not own this pointer - it has to live as long as the parser is active . <nl> + CollatorInterface * _collator ; <nl> } ; <nl> <nl> typedef stdx : : function < StatusWithMatchExpression ( <nl> mmm a / src / mongo / db / matcher / expression_parser_array_test . cpp <nl> ppp b / src / mongo / db / matcher / expression_parser_array_test . cpp <nl> <nl> # include " mongo / db / matcher / expression . h " <nl> # include " mongo / db / matcher / expression_array . h " <nl> # include " mongo / db / matcher / extensions_callback_disallow_extensions . h " <nl> + # include " mongo / db / query / collation / collator_interface_mock . h " <nl> <nl> namespace mongo { <nl> <nl> using std : : string ; <nl> <nl> TEST ( MatchExpressionParserArrayTest , Size1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ size " < < 2 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , Size1 ) { <nl> <nl> TEST ( MatchExpressionParserArrayTest , SizeAsLong ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ size " < < 2LL ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , SizeAsLong ) { <nl> <nl> TEST ( MatchExpressionParserArrayTest , SizeAsNegativeLong ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ size " < < - 2LL ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserArrayTest , SizeTooLarge ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ size " < < std : : numeric_limits < long long > : : max ( ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserArrayTest , SizeAsString ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ size " <nl> < < " a " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserArrayTest , SizeWithIntegralDouble ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ size " < < 2 . 0 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , SizeWithIntegralDouble ) { <nl> <nl> TEST ( MatchExpressionParserArrayTest , SizeWithNegativeIntegralDouble ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ size " < < - 2 . 0 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserArrayTest , SizeWithDouble ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ size " < < 2 . 5 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserArrayTest , SizeWithNegative ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ size " < < - 2 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserArrayTest , SizeBad ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ size " < < BSONNULL ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserArrayTest , SizeBad ) { <nl> <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchArr1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < BSON ( " x " < < 1 < < " y " < < 2 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchArr1 ) { <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchAnd ) { <nl> BSONObj query = <nl> BSON ( " x " < < BSON ( " $ elemMatch " < < BSON ( " $ and " < < BSON_ARRAY ( BSON ( " x " < < 1 < < " y " < < 2 ) ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchAnd ) { <nl> <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchNor ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < BSON ( " $ nor " < < BSON_ARRAY ( BSON ( " x " < < 1 ) ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchNor ) { <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchOr ) { <nl> BSONObj query = <nl> BSON ( " x " < < BSON ( " $ elemMatch " < < BSON ( " $ or " < < BSON_ARRAY ( BSON ( " x " < < 1 < < " y " < < 2 ) ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchOr ) { <nl> <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchVal1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < BSON ( " $ gt " < < 5 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchDBRef1 ) { <nl> < < " db " ) ; <nl> <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < BSON ( " $ eq " < < match ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < match ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchDBRef2 ) { <nl> < < " db " ) ; <nl> <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < match ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < match ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchDBRef3 ) { <nl> < < " $ id " < < oidx < < " foo " < < 12345 ) ; <nl> <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < match ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < match ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchDBRef4 ) { <nl> < < " db " ) ; <nl> <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < matchOutOfOrder ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < match ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchDBRef5 ) { <nl> < < " $ id " < < oidx < < " foo " < < 12345 ) ; <nl> <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < matchOutOfOrder ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < match ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchDBRef6 ) { <nl> < < " $ id " < < oid < < " foo " < < 12345 ) ; <nl> <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < matchMissingID ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < match ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchDBRef7 ) { <nl> < < " $ id " < < oidx < < " foo " < < 12345 ) ; <nl> <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < matchMissingRef ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < match ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchDBRef8 ) { <nl> < < " foo " < < 12345 ) ; <nl> <nl> BSONObj query = BSON ( " x " < < BSON ( " $ elemMatch " < < matchDBOnly ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < match ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , ElemMatchDBRef8 ) { <nl> <nl> TEST ( MatchExpressionParserArrayTest , All1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ all " < < BSON_ARRAY ( 1 < < 2 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> / / Verify that the $ all got parsed to AND . <nl> TEST ( MatchExpressionParserArrayTest , All1 ) { <nl> <nl> TEST ( MatchExpressionParserArrayTest , AllNull ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ all " < < BSON_ARRAY ( BSONNULL ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> / / Verify that the $ all got parsed to AND . <nl> TEST ( MatchExpressionParserArrayTest , AllNull ) { <nl> <nl> TEST ( MatchExpressionParserArrayTest , AllBadArg ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ all " < < 1 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserArrayTest , AllBadRegexArg ) { <nl> <nl> BSONObj query = BSON ( " x " < < operand . obj ( ) ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserArrayTest , AllRegex1 ) { <nl> all . appendArray ( " $ all " , allArray . obj ( ) ) ; <nl> BSONObj query = BSON ( " a " < < all . obj ( ) ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> / / Verify that the $ all got parsed to AND . <nl> TEST ( MatchExpressionParserArrayTest , AllRegex2 ) { <nl> all . appendArray ( " $ all " , allArray . obj ( ) ) ; <nl> BSONObj query = BSON ( " a " < < all . obj ( ) ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> / / Verify that the $ all got parsed to AND . <nl> TEST ( MatchExpressionParserArrayTest , AllRegex2 ) { <nl> <nl> TEST ( MatchExpressionParserArrayTest , AllNonArray ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ all " < < BSON_ARRAY ( 5 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> / / Verify that the $ all got parsed to AND . <nl> TEST ( MatchExpressionParserArrayTest , AllNonArray ) { <nl> TEST ( MatchExpressionParserArrayTest , AllElemMatch1 ) { <nl> BSONObj internal = BSON ( " x " < < 1 < < " y " < < 2 ) ; <nl> BSONObj query = BSON ( " x " < < BSON ( " $ all " < < BSON_ARRAY ( BSON ( " $ elemMatch " < < internal ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> / / Verify that the $ all got parsed to an AND with a single ELEM_MATCH_OBJECT child . <nl> TEST ( MatchExpressionParserArrayTest , AllElemMatch1 ) { <nl> TEST ( MatchExpressionParserArrayTest , AllElemMatch2 ) { <nl> BSONObj internal = BSON ( " z " < < 1 ) ; <nl> BSONObj query = BSON ( " x . y " < < BSON ( " $ all " < < BSON_ARRAY ( BSON ( " $ elemMatch " < < internal ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> / / Verify that the $ all got parsed to an AND with a single ELEM_MATCH_OBJECT child . <nl> TEST ( MatchExpressionParserArrayTest , AllElemMatch2 ) { <nl> / / are correct . <nl> TEST ( MatchExpressionParserArrayTest , AllElemMatch3 ) { <nl> BSONObj query = fromjson ( " { x : { $ all : [ { $ elemMatch : { y : 1 , z : 1 } } ] } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> std : : unique_ptr < MatchExpression > expr = std : : move ( result . getValue ( ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , AllElemMatchBad ) { <nl> BSONObj internal = BSON ( " x " < < 1 < < " y " < < 2 ) ; <nl> <nl> BSONObj query = BSON ( " x " < < BSON ( " $ all " < < BSON_ARRAY ( BSON ( " $ elemMatch " < < internal ) < < 5 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < BSON ( " $ all " < < BSON_ARRAY ( 5 < < BSON ( " $ elemMatch " < < internal ) ) ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserArrayTest , AllElemMatchBad ) { <nl> TEST ( MatchExpressionParserArrayTest , AllElemMatchBadMixed ) { <nl> / / $ elemMatch first , equality second . <nl> BSONObj bad1 = fromjson ( " { x : { $ all : [ { $ elemMatch : { y : 1 } } , 3 ] } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result1 = <nl> - MatchExpressionParser : : parse ( bad1 , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( bad1 , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result1 . isOK ( ) ) ; <nl> <nl> / / equality first , $ elemMatch second <nl> BSONObj bad2 = fromjson ( " { x : { $ all : [ 3 , { $ elemMatch : { y : 1 } } ] } } " ) ; <nl> StatusWithMatchExpression result2 = <nl> - MatchExpressionParser : : parse ( bad2 , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( bad2 , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result1 . isOK ( ) ) ; <nl> <nl> / / $ elemMatch first , object second <nl> BSONObj bad3 = fromjson ( " { x : { $ all : [ { $ elemMatch : { y : 1 } } , { z : 1 } ] } } " ) ; <nl> StatusWithMatchExpression result3 = <nl> - MatchExpressionParser : : parse ( bad3 , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( bad3 , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result3 . isOK ( ) ) ; <nl> <nl> / / object first , $ elemMatch second <nl> BSONObj bad4 = fromjson ( " { x : { $ all : [ { z : 1 } , { $ elemMatch : { y : 1 } } ] } } " ) ; <nl> StatusWithMatchExpression result4 = <nl> - MatchExpressionParser : : parse ( bad4 , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( bad4 , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result4 . isOK ( ) ) ; <nl> } <nl> <nl> / / $ all with empty string . <nl> TEST ( MatchExpressionParserArrayTest , AllEmptyString ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ all " < < BSON_ARRAY ( " " ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " <nl> TEST ( MatchExpressionParserArrayTest , AllISODate ) { <nl> const Date_t & notMatch = notMatchResult . getValue ( ) ; <nl> <nl> BSONObj query = BSON ( " x " < < BSON ( " $ all " < < BSON_ARRAY ( match ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < notMatch ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , AllISODate ) { <nl> / / $ all on array element with empty string . <nl> TEST ( MatchExpressionParserArrayTest , AllDottedEmptyString ) { <nl> BSONObj query = BSON ( " x . 1 " < < BSON ( " $ all " < < BSON_ARRAY ( " " ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " <nl> TEST ( MatchExpressionParserArrayTest , AllDottedISODate ) { <nl> const Date_t & notMatch = notMatchResult . getValue ( ) ; <nl> <nl> BSONObj query = BSON ( " x . 1 " < < BSON ( " $ all " < < BSON_ARRAY ( match ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < notMatch ) ) ) ; <nl> TEST ( MatchExpressionParserArrayTest , AllDottedISODate ) { <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < BSON_ARRAY ( BSONNULL < < match ) ) ) ) ; <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < BSON_ARRAY ( BSONObj ( ) < < match ) ) ) ) ; <nl> } <nl> + <nl> + TEST ( MatchExpressionParserArrayTest , AllStringNullCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ all " < < BSON_ARRAY ( " string " ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : AND , result . getValue ( ) - > matchType ( ) ) ; <nl> + ASSERT_EQUALS ( 1U , result . getValue ( ) - > numChildren ( ) ) ; <nl> + MatchExpression * child = result . getValue ( ) - > getChild ( 0 ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , child - > matchType ( ) ) ; <nl> + EqualityMatchExpression * eqMatch = static_cast < EqualityMatchExpression * > ( child ) ; <nl> + ASSERT_TRUE ( eqMatch - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + TEST ( MatchExpressionParserArrayTest , AllStringCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ all " < < BSON_ARRAY ( " string " ) ) ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kAlwaysEqual ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : AND , result . getValue ( ) - > matchType ( ) ) ; <nl> + ASSERT_EQUALS ( 1U , result . getValue ( ) - > numChildren ( ) ) ; <nl> + MatchExpression * child = result . getValue ( ) - > getChild ( 0 ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , child - > matchType ( ) ) ; <nl> + EqualityMatchExpression * eqMatch = static_cast < EqualityMatchExpression * > ( child ) ; <nl> + ASSERT_TRUE ( eqMatch - > getCollator ( ) = = & collator ) ; <nl> + } <nl> } <nl> mmm a / src / mongo / db / matcher / expression_parser_geo_test . cpp <nl> ppp b / src / mongo / db / matcher / expression_parser_geo_test . cpp <nl> namespace mongo { <nl> TEST ( MatchExpressionParserGeo , WithinBox ) { <nl> BSONObj query = fromjson ( " { a : { $ within : { $ box : [ { x : 4 , y : 4 } , [ 6 , 6 ] ] } } } " ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( fromjson ( " { a : [ 3 , 4 ] } " ) ) ) ; <nl> TEST ( MatchExpressionParserGeoNear , ParseNear ) { <nl> " { loc : { $ near : { $ maxDistance : 100 , " <nl> " $ geometry : { type : \ " Point \ " , coordinates : [ 0 , 0 ] } } } } " ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> MatchExpression * exp = result . getValue ( ) . get ( ) ; <nl> TEST ( MatchExpressionParserGeoNear , ParseNearExtraField ) { <nl> " { loc : { $ near : { $ maxDistance : 100 , " <nl> " $ geometry : { type : \ " Point \ " , coordinates : [ 0 , 0 ] } } , foo : 1 } } " ) ; <nl> <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> <nl> / / For $ near , $ nearSphere , and $ geoNear syntax of : <nl> TEST ( MatchExpressionParserGeoNear , ParseNearExtraField ) { <nl> TEST ( MatchExpressionParserGeoNear , ParseValidNear ) { <nl> BSONObj query = fromjson ( " { loc : { $ near : [ 0 , 0 ] , $ maxDistance : 100 , $ minDistance : 50 } } " ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> MatchExpression * exp = result . getValue ( ) . get ( ) ; <nl> TEST ( MatchExpressionParserGeoNear , ParseValidNear ) { <nl> TEST ( MatchExpressionParserGeoNear , ParseInvalidNear ) { <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ maxDistance : 100 , $ near : [ 0 , 0 ] } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ minDistance : 100 , $ near : [ 0 , 0 ] } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ near : [ 0 , 0 ] , $ maxDistance : { } } } " ) ; <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ near : [ 0 , 0 ] , $ minDistance : { } } } " ) ; <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ near : [ 0 , 0 ] , $ eq : 40 } } " ) ; <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ eq : 40 , $ near : [ 0 , 0 ] } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( <nl> " { loc : { $ near : [ 0 , 0 ] , $ geoWithin : { $ geometry : { type : \ " Polygon \ " , coordinates : [ ] } } } } " ) ; <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ near : { $ foo : 1 } } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ minDistance : 10 } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> } <nl> TEST ( MatchExpressionParserGeoNear , ParseInvalidNear ) { <nl> TEST ( MatchExpressionParserGeoNear , ParseValidGeoNear ) { <nl> BSONObj query = fromjson ( " { loc : { $ geoNear : [ 0 , 0 ] , $ maxDistance : 100 , $ minDistance : 50 } } " ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> MatchExpression * exp = result . getValue ( ) . get ( ) ; <nl> TEST ( MatchExpressionParserGeoNear , ParseValidGeoNear ) { <nl> TEST ( MatchExpressionParserGeoNear , ParseInvalidGeoNear ) { <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ maxDistance : 100 , $ geoNear : [ 0 , 0 ] } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ minDistance : 100 , $ geoNear : [ 0 , 0 ] } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ geoNear : [ 0 , 0 ] , $ eq : 1 } } " ) ; <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ geoNear : [ 0 , 0 ] , $ maxDistance : { } } } " ) ; <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ geoNear : [ 0 , 0 ] , $ minDistance : { } } } " ) ; <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> } <nl> <nl> TEST ( MatchExpressionParserGeoNear , ParseValidNearSphere ) { <nl> BSONObj query = fromjson ( " { loc : { $ nearSphere : [ 0 , 0 ] , $ maxDistance : 100 , $ minDistance : 50 } } " ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> MatchExpression * exp = result . getValue ( ) . get ( ) ; <nl> TEST ( MatchExpressionParserGeoNear , ParseValidNearSphere ) { <nl> TEST ( MatchExpressionParserGeoNear , ParseInvalidNearSphere ) { <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ maxDistance : 100 , $ nearSphere : [ 0 , 0 ] } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ minDistance : 100 , $ nearSphere : [ 0 , 0 ] } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ nearSphere : [ 0 , 0 ] , $ maxDistance : { } } } " ) ; <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ nearSphere : [ 0 , 0 ] , $ minDistance : { } } } " ) ; <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> { <nl> BSONObj query = fromjson ( " { loc : { $ nearSphere : [ 0 , 0 ] , $ eq : 1 } } " ) ; <nl> - ASSERT_THROWS ( MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) , <nl> - UserException ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + ASSERT_THROWS ( <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) , <nl> + UserException ) ; <nl> } <nl> } <nl> <nl> mmm a / src / mongo / db / matcher / expression_parser_leaf_test . cpp <nl> ppp b / src / mongo / db / matcher / expression_parser_leaf_test . cpp <nl> <nl> # include " mongo / db / matcher / expression . h " <nl> # include " mongo / db / matcher / expression_leaf . h " <nl> # include " mongo / db / matcher / extensions_callback_disallow_extensions . h " <nl> + # include " mongo / db / query / collation / collator_interface_mock . h " <nl> # include " mongo / platform / decimal128 . h " <nl> # include " mongo / util / log . h " <nl> <nl> namespace mongo { <nl> using std : : endl ; <nl> using std : : string ; <nl> <nl> + TEST ( MatchExpressionParserLeafTest , NullCollation ) { <nl> + BSONObj query = BSON ( " x " <nl> + < < " string " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , result . getValue ( ) - > matchType ( ) ) ; <nl> + EqualityMatchExpression * match = static_cast < EqualityMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , Collation ) { <nl> + BSONObj query = BSON ( " x " <nl> + < < " string " ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kAlwaysEqual ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , result . getValue ( ) - > matchType ( ) ) ; <nl> + EqualityMatchExpression * match = static_cast < EqualityMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = & collator ) ; <nl> + } <nl> + <nl> TEST ( MatchExpressionParserLeafTest , SimpleEQ2 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ eq " < < 2 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , SimpleEQ2 ) { <nl> <nl> TEST ( MatchExpressionParserLeafTest , SimpleEQUndefined ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ eq " < < BSONUndefined ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> + TEST ( MatchExpressionParserLeafTest , EQNullCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ eq " <nl> + < < " string " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , result . getValue ( ) - > matchType ( ) ) ; <nl> + EqualityMatchExpression * match = static_cast < EqualityMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , EQCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ eq " <nl> + < < " string " ) ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kAlwaysEqual ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , result . getValue ( ) - > matchType ( ) ) ; <nl> + EqualityMatchExpression * match = static_cast < EqualityMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = & collator ) ; <nl> + } <nl> + <nl> TEST ( MatchExpressionParserLeafTest , SimpleGT1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ gt " < < 2 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 2 ) ) ) ; <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 3 ) ) ) ; <nl> } <nl> <nl> + TEST ( MatchExpressionParserLeafTest , GTNullCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ gt " <nl> + < < " abc " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : GT , result . getValue ( ) - > matchType ( ) ) ; <nl> + GTMatchExpression * match = static_cast < GTMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , GTCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ gt " <nl> + < < " abc " ) ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kReverseString ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : GT , result . getValue ( ) - > matchType ( ) ) ; <nl> + GTMatchExpression * match = static_cast < GTMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = & collator ) ; <nl> + } <nl> + <nl> TEST ( MatchExpressionParserLeafTest , SimpleLT1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ lt " < < 2 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , SimpleLT1 ) { <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 3 ) ) ) ; <nl> } <nl> <nl> + TEST ( MatchExpressionParserLeafTest , LTNullCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ lt " <nl> + < < " abc " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : LT , result . getValue ( ) - > matchType ( ) ) ; <nl> + LTMatchExpression * match = static_cast < LTMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , LTCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ lt " <nl> + < < " abc " ) ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kReverseString ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : LT , result . getValue ( ) - > matchType ( ) ) ; <nl> + LTMatchExpression * match = static_cast < LTMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = & collator ) ; <nl> + } <nl> + <nl> TEST ( MatchExpressionParserLeafTest , SimpleGTE1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ gte " < < 2 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , SimpleGTE1 ) { <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 3 ) ) ) ; <nl> } <nl> <nl> + TEST ( MatchExpressionParserLeafTest , GTENullCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ gte " <nl> + < < " abc " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : GTE , result . getValue ( ) - > matchType ( ) ) ; <nl> + GTEMatchExpression * match = static_cast < GTEMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , GTECollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ gte " <nl> + < < " abc " ) ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kReverseString ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : GTE , result . getValue ( ) - > matchType ( ) ) ; <nl> + GTEMatchExpression * match = static_cast < GTEMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = & collator ) ; <nl> + } <nl> + <nl> TEST ( MatchExpressionParserLeafTest , SimpleLTE1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ lte " < < 2 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , SimpleLTE1 ) { <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 3 ) ) ) ; <nl> } <nl> <nl> + TEST ( MatchExpressionParserLeafTest , LTENullCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ lte " <nl> + < < " abc " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : LTE , result . getValue ( ) - > matchType ( ) ) ; <nl> + LTEMatchExpression * match = static_cast < LTEMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , LTECollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ lte " <nl> + < < " abc " ) ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kReverseString ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : LTE , result . getValue ( ) - > matchType ( ) ) ; <nl> + LTEMatchExpression * match = static_cast < LTEMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = & collator ) ; <nl> + } <nl> + <nl> TEST ( MatchExpressionParserLeafTest , SimpleNE1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ ne " < < 2 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , SimpleNE1 ) { <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 3 ) ) ) ; <nl> } <nl> <nl> + TEST ( MatchExpressionParserLeafTest , NENullCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ ne " <nl> + < < " string " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : NOT , result . getValue ( ) - > matchType ( ) ) ; <nl> + MatchExpression * child = result . getValue ( ) - > getChild ( 0 ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , child - > matchType ( ) ) ; <nl> + EqualityMatchExpression * eqMatch = static_cast < EqualityMatchExpression * > ( child ) ; <nl> + ASSERT_TRUE ( eqMatch - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , NECollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ ne " <nl> + < < " string " ) ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kAlwaysEqual ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : NOT , result . getValue ( ) - > matchType ( ) ) ; <nl> + MatchExpression * child = result . getValue ( ) - > getChild ( 0 ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , child - > matchType ( ) ) ; <nl> + EqualityMatchExpression * eqMatch = static_cast < EqualityMatchExpression * > ( child ) ; <nl> + ASSERT_TRUE ( eqMatch - > getCollator ( ) = = & collator ) ; <nl> + } <nl> + <nl> TEST ( MatchExpressionParserLeafTest , SimpleModBad1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ mod " < < BSON_ARRAY ( 3 < < 2 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < BSON ( " $ mod " < < BSON_ARRAY ( 3 ) ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( ! result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < BSON ( " $ mod " < < BSON_ARRAY ( 3 < < 2 < < 4 ) ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( ! result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < BSON ( " $ mod " < < BSON_ARRAY ( " q " < < 2 ) ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( ! result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < BSON ( " $ mod " < < 3 ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( ! result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < BSON ( " $ mod " < < BSON ( " a " < < 1 < < " b " < < 2 ) ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( ! result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , SimpleMod1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ mod " < < BSON_ARRAY ( 3 < < 2 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 5 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , SimpleMod1 ) { <nl> <nl> TEST ( MatchExpressionParserLeafTest , SimpleModNotNumber ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ mod " < < BSON_ARRAY ( 2 < < " r " ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 2 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , SimpleModNotNumber ) { <nl> < < " a " ) ) ) ; <nl> } <nl> <nl> + TEST ( MatchExpressionParserLeafTest , IdCollation ) { <nl> + BSONObj query = BSON ( " $ id " <nl> + < < " string " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , result . getValue ( ) - > matchType ( ) ) ; <nl> + EqualityMatchExpression * match = static_cast < EqualityMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , IdNullCollation ) { <nl> + BSONObj query = BSON ( " $ id " <nl> + < < " string " ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kAlwaysEqual ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , result . getValue ( ) - > matchType ( ) ) ; <nl> + EqualityMatchExpression * match = static_cast < EqualityMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = & collator ) ; <nl> + } <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , RefCollation ) { <nl> + BSONObj query = BSON ( " $ ref " <nl> + < < " coll " ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kAlwaysEqual ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , result . getValue ( ) - > matchType ( ) ) ; <nl> + EqualityMatchExpression * match = static_cast < EqualityMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = nullptr ) ; <nl> + } <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , DbCollation ) { <nl> + BSONObj query = BSON ( " $ db " <nl> + < < " db " ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kAlwaysEqual ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : EQ , result . getValue ( ) - > matchType ( ) ) ; <nl> + EqualityMatchExpression * match = static_cast < EqualityMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = nullptr ) ; <nl> + } <nl> <nl> TEST ( MatchExpressionParserLeafTest , SimpleIN1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( 2 < < 3 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , SimpleIN1 ) { <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 3 ) ) ) ; <nl> } <nl> <nl> + TEST ( MatchExpressionParserLeafTest , INNullCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( " string " ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : MATCH_IN , result . getValue ( ) - > matchType ( ) ) ; <nl> + InMatchExpression * match = static_cast < InMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , INCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( " string " ) ) ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kAlwaysEqual ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : MATCH_IN , result . getValue ( ) - > matchType ( ) ) ; <nl> + InMatchExpression * match = static_cast < InMatchExpression * > ( result . getValue ( ) . get ( ) ) ; <nl> + ASSERT_TRUE ( match - > getCollator ( ) = = & collator ) ; <nl> + } <nl> + <nl> TEST ( MatchExpressionParserLeafTest , INSingleDBRef ) { <nl> OID oid = OID : : gen ( ) ; <nl> BSONObj query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( BSON ( " $ ref " <nl> < < " coll " <nl> < < " $ id " < < oid < < " $ db " <nl> < < " db " ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> OID oidx = OID : : gen ( ) ; <nl> TEST ( MatchExpressionParserLeafTest , INMultipleDBRef ) { <nl> < < " coll " <nl> < < " $ id " < < oid < < " $ db " <nl> < < " db " ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> OID oidx = OID : : gen ( ) ; <nl> TEST ( MatchExpressionParserLeafTest , INDBRefWithOptionalField1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( BSON ( " $ ref " <nl> < < " coll " <nl> < < " $ id " < < oid < < " foo " < < 12345 ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> OID oidx = OID : : gen ( ) ; <nl> TEST ( MatchExpressionParserLeafTest , INInvalidDBRefs ) { <nl> / / missing $ id <nl> BSONObj query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( BSON ( " $ ref " <nl> < < " coll " ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> <nl> / / second field is not $ id <nl> query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( BSON ( " $ ref " <nl> < < " coll " <nl> < < " $ foo " < < 1 ) ) ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> <nl> OID oid = OID : : gen ( ) ; <nl> <nl> / / missing $ ref field <nl> query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( BSON ( " $ id " < < oid < < " foo " < < 3 ) ) ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> <nl> / / missing $ id and $ ref field <nl> query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( BSON ( " $ db " <nl> < < " test " <nl> < < " foo " < < 3 ) ) ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , INExpressionDocument ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( BSON ( " $ foo " < < 1 ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , INNotArray ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ in " < < 5 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , INUndefined ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( BSONUndefined ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , INNotElemMatch ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( BSON ( " $ elemMatch " < < 1 ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , INRegexTooLong ) { <nl> BSONObjBuilder operand ; <nl> operand . appendArray ( " $ in " , inArray . obj ( ) ) ; <nl> BSONObj query = BSON ( " x " < < operand . obj ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , INRegexTooLong2 ) { <nl> string tooLargePattern ( 50 * 1000 , ' z ' ) ; <nl> BSONObj query = BSON ( " x " < < BSON ( " $ in " < < BSON_ARRAY ( BSON ( " $ regex " < < tooLargePattern ) ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , INRegexStuff ) { <nl> operand . appendArray ( " $ in " , inArray . obj ( ) ) ; <nl> <nl> BSONObj query = BSON ( " a " < < operand . obj ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> BSONObj matchFirst = BSON ( " a " <nl> TEST ( MatchExpressionParserLeafTest , INRegexStuff ) { <nl> <nl> TEST ( MatchExpressionParserLeafTest , SimpleNIN1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ nin " < < BSON_ARRAY ( 2 < < 3 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , SimpleNIN1 ) { <nl> <nl> TEST ( MatchExpressionParserLeafTest , NINNotArray ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ nin " < < 5 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> + TEST ( MatchExpressionParserLeafTest , NINNullCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ nin " < < BSON_ARRAY ( " string " ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : NOT , result . getValue ( ) - > matchType ( ) ) ; <nl> + MatchExpression * child = result . getValue ( ) - > getChild ( 0 ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : MATCH_IN , child - > matchType ( ) ) ; <nl> + InMatchExpression * inMatch = static_cast < InMatchExpression * > ( child ) ; <nl> + ASSERT_TRUE ( inMatch - > getCollator ( ) = = collator ) ; <nl> + } <nl> + <nl> + TEST ( MatchExpressionParserLeafTest , NINCollation ) { <nl> + BSONObj query = BSON ( " x " < < BSON ( " $ nin " < < BSON_ARRAY ( " string " ) ) ) ; <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kAlwaysEqual ) ; <nl> + StatusWithMatchExpression result = <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , & collator ) ; <nl> + ASSERT_TRUE ( result . isOK ( ) ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : NOT , result . getValue ( ) - > matchType ( ) ) ; <nl> + MatchExpression * child = result . getValue ( ) - > getChild ( 0 ) ; <nl> + ASSERT_EQUALS ( MatchExpression : : MATCH_IN , child - > matchType ( ) ) ; <nl> + InMatchExpression * inMatch = static_cast < InMatchExpression * > ( child ) ; <nl> + ASSERT_TRUE ( inMatch - > getCollator ( ) = = & collator ) ; <nl> + } <nl> <nl> TEST ( MatchExpressionParserLeafTest , Regex1 ) { <nl> BSONObjBuilder b ; <nl> b . appendRegex ( " x " , " abc " , " i " ) ; <nl> BSONObj query = b . obj ( ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " <nl> TEST ( MatchExpressionParserLeafTest , Regex2 ) { <nl> < < " abc " <nl> < < " $ options " <nl> < < " i " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " <nl> TEST ( MatchExpressionParserLeafTest , Regex3 ) { <nl> < < " i " <nl> < < " $ regex " <nl> < < " abc " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> log ( ) < < " result : " < < result . getStatus ( ) < < endl ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> TEST ( MatchExpressionParserLeafTest , RegexBad ) { <nl> < < " abc " <nl> < < " $ optionas " <nl> < < " i " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> <nl> / / $ regex does not with numbers <nl> query = BSON ( " x " < < BSON ( " $ regex " < < 123 ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < BSON ( " $ regex " < < BSON_ARRAY ( " abc " ) ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < BSON ( " $ optionas " <nl> < < " i " ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < BSON ( " $ options " <nl> < < " i " ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , RegexEmbeddedNULByte ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ regex " <nl> < < " ^ a \ \ x00b " ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> StringData value ( " a \ 0b " , StringData : : LiteralTag ( ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , ExistsYes1 ) { <nl> BSONObjBuilder b ; <nl> b . appendBool ( " $ exists " , true ) ; <nl> BSONObj query = BSON ( " x " < < b . obj ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " <nl> TEST ( MatchExpressionParserLeafTest , ExistsNO1 ) { <nl> BSONObjBuilder b ; <nl> b . appendBool ( " $ exists " , false ) ; <nl> BSONObj query = BSON ( " x " < < b . obj ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " <nl> TEST ( MatchExpressionParserLeafTest , ExistsNO1 ) { <nl> <nl> TEST ( MatchExpressionParserLeafTest , Type1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ type " < < String ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " <nl> TEST ( MatchExpressionParserLeafTest , Type1 ) { <nl> <nl> TEST ( MatchExpressionParserLeafTest , Type2 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ type " < < ( double ) NumberDouble ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 5 . 3 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , Type2 ) { <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeDoubleOperator ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ type " < < 1 . 5 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 5 . 3 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeDoubleOperator ) { <nl> TEST ( MatchExpressionParserLeafTest , TypeDecimalOperator ) { <nl> if ( Decimal128 : : enabled ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ type " < < mongo : : NumberDecimal ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT_FALSE ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 5 . 3 ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeDecimalOperator ) { <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeNull ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ type " < < jstNULL ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSONObj ( ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeBadType ) { <nl> BSONObjBuilder b ; <nl> b . append ( " $ type " , ( JSTypeMax + 1 ) ) ; <nl> BSONObj query = BSON ( " x " < < b . obj ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_NOT_OK ( result . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeBad ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ type " < < BSON ( " x " < < 1 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeBadString ) { <nl> + CollatorInterface * collator = nullptr ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ type : null } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ type : true } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ type : { } } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( fromjson ( " { a : { $ type : ObjectId ( ' 000000000000000000000000 ' ) } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ type : [ ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameDouble ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeNumberDouble = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' double ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' double ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typeNumberDouble . getStatus ( ) ) ; <nl> TypeMatchExpression * tmeNumberDouble = <nl> static_cast < TypeMatchExpression * > ( typeNumberDouble . getValue ( ) . get ( ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameDouble ) { <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringNameNumberDecimal ) { <nl> if ( Decimal128 : : enabled ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeNumberDecimal = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' decimal ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' decimal ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typeNumberDecimal . getStatus ( ) ) ; <nl> TypeMatchExpression * tmeNumberDecimal = <nl> static_cast < TypeMatchExpression * > ( typeNumberDecimal . getValue ( ) . get ( ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringNameNumberDecimal ) { <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameNumberInt ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeNumberInt = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' int ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' int ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typeNumberInt . getStatus ( ) ) ; <nl> TypeMatchExpression * tmeNumberInt = <nl> static_cast < TypeMatchExpression * > ( typeNumberInt . getValue ( ) . get ( ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameNumberInt ) { <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameNumberLong ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeNumberLong = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' long ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' long ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typeNumberLong . getStatus ( ) ) ; <nl> TypeMatchExpression * tmeNumberLong = <nl> static_cast < TypeMatchExpression * > ( typeNumberLong . getValue ( ) . get ( ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameNumberLong ) { <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameString ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeString = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' string ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' string ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typeString . getStatus ( ) ) ; <nl> TypeMatchExpression * tmeString = static_cast < TypeMatchExpression * > ( typeString . getValue ( ) . get ( ) ) ; <nl> ASSERT ( tmeString - > getType ( ) = = String ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameString ) { <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnamejstOID ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typejstOID = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' objectId ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' objectId ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typejstOID . getStatus ( ) ) ; <nl> TypeMatchExpression * tmejstOID = static_cast < TypeMatchExpression * > ( typejstOID . getValue ( ) . get ( ) ) ; <nl> ASSERT ( tmejstOID - > getType ( ) = = jstOID ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnamejstOID ) { <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnamejstNULL ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typejstNULL = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' null ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' null ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typejstNULL . getStatus ( ) ) ; <nl> TypeMatchExpression * tmejstNULL = <nl> static_cast < TypeMatchExpression * > ( typejstNULL . getValue ( ) . get ( ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnamejstNULL ) { <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameBool ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeBool = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' bool ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' bool ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typeBool . getStatus ( ) ) ; <nl> TypeMatchExpression * tmeBool = static_cast < TypeMatchExpression * > ( typeBool . getValue ( ) . get ( ) ) ; <nl> ASSERT ( tmeBool - > getType ( ) = = Bool ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameBool ) { <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameObject ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeObject = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' object ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' object ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typeObject . getStatus ( ) ) ; <nl> TypeMatchExpression * tmeObject = static_cast < TypeMatchExpression * > ( typeObject . getValue ( ) . get ( ) ) ; <nl> ASSERT ( tmeObject - > getType ( ) = = Object ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameObject ) { <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameArray ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeArray = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' array ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' array ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typeArray . getStatus ( ) ) ; <nl> TypeMatchExpression * tmeArray = static_cast < TypeMatchExpression * > ( typeArray . getValue ( ) . get ( ) ) ; <nl> ASSERT ( tmeArray - > getType ( ) = = Array ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameArray ) { <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameNumber ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeNumber = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : ' number ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : ' number ' } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( typeNumber . getStatus ( ) ) ; <nl> TypeMatchExpression * tmeNumber = static_cast < TypeMatchExpression * > ( typeNumber . getValue ( ) . get ( ) ) ; <nl> ASSERT_TRUE ( tmeNumber - > matchesBSON ( fromjson ( " { a : 5 . 4 } " ) ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , TypeStringnameNumber ) { <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , InvalidTypeCodeLessThanMinKeyFailsToParse ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeNumber = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : - 20 } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : - 20 } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_NOT_OK ( typeNumber . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , InvalidTypeCodeGreaterThanMaxKeyFailsToParse ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeNumber = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : 400 } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : 400 } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_NOT_OK ( typeNumber . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , InvalidTypeCodeUnusedBetweenMinAndMaxFailsToParse ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression typeNumber = MatchExpressionParser : : parse ( <nl> - fromjson ( " { a : { $ type : 62 } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + fromjson ( " { a : { $ type : 62 } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_NOT_OK ( typeNumber . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , ValidTypeCodesParseSuccessfully ) { <nl> <nl> for ( auto type : validTypes ) { <nl> BSONObj predicate = BSON ( " a " < < BSON ( " $ type " < < type ) ) ; <nl> - auto expression = <nl> - MatchExpressionParser : : parse ( predicate , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + auto expression = MatchExpressionParser : : parse ( <nl> + predicate , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( expression . getStatus ( ) ) ; <nl> auto typeExpression = static_cast < TypeMatchExpression * > ( expression . getValue ( ) . get ( ) ) ; <nl> ASSERT_EQ ( type , typeExpression - > getType ( ) ) ; <nl> TEST ( MatchExpressionParserLeafTest , ValidTypeCodesParseSuccessfully ) { <nl> TEST ( MatchExpressionParserTest , BitTestMatchExpressionValidMask ) { <nl> const double k2Power53 = scalbn ( 1 , 32 ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllSet " < < 54 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllSet " < < std : : numeric_limits < long long > : : max ( ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllSet " < < k2Power53 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllSet " < < k2Power53 - 1 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllClear " < < 54 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllClear " < < std : : numeric_limits < long long > : : max ( ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllClear " < < k2Power53 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllClear " < < k2Power53 - 1 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnySet " < < 54 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnySet " < < std : : numeric_limits < long long > : : max ( ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnySet " < < k2Power53 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnySet " < < k2Power53 - 1 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnyClear " < < 54 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnyClear " < < std : : numeric_limits < long long > : : max ( ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnyClear " < < k2Power53 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnyClear " < < k2Power53 - 1 ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserTest , BitTestMatchExpressionValidArray ) { <nl> TEST ( MatchExpressionParserTest , BitTestMatchExpressionValidArray ) { <nl> ASSERT_EQ ( BSONType : : NumberLong , bsonArrayLongLong [ 2 ] . type ( ) ) ; <nl> ASSERT_EQ ( BSONType : : NumberLong , bsonArrayLongLong [ 3 ] . type ( ) ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllSet " < < BSON_ARRAY ( 0 ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllSet " < < BSON_ARRAY ( 0 < < 1 < < 2 < < 3 ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllSet " < < bsonArrayLongLong ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllSet " < < BSON_ARRAY ( std : : numeric_limits < int > : : max ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllClear " < < BSON_ARRAY ( 0 ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllClear " < < BSON_ARRAY ( 0 < < 1 < < 2 < < 3 ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllClear " < < bsonArrayLongLong ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllClear " < < BSON_ARRAY ( std : : numeric_limits < int > : : max ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnySet " < < BSON_ARRAY ( 0 ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnySet " < < BSON_ARRAY ( 0 < < 1 < < 2 < < 3 ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnySet " < < bsonArrayLongLong ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnySet " < < BSON_ARRAY ( std : : numeric_limits < int > : : max ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnyClear " < < BSON_ARRAY ( 0 ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnyClear " < < BSON_ARRAY ( 0 < < 1 < < 2 < < 3 ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnyClear " < < bsonArrayLongLong ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnyClear " < < BSON_ARRAY ( std : : numeric_limits < int > : : max ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserTest , BitTestMatchExpressionValidBinData ) { <nl> + CollatorInterface * collator = nullptr ; <nl> ASSERT_OK ( <nl> MatchExpressionParser : : parse ( <nl> fromjson ( " { a : { $ bitsAllSet : { $ binary : ' AAAAAAAAAAAAAAAAAAAAAAAAAAAA ' , $ type : ' 00 ' } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_OK ( <nl> MatchExpressionParser : : parse ( <nl> fromjson ( <nl> " { a : { $ bitsAllClear : { $ binary : ' AAAAAAAAAAAAAAAAAAAAAAAAAAAA ' , $ type : ' 00 ' } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_OK ( <nl> MatchExpressionParser : : parse ( <nl> fromjson ( " { a : { $ bitsAnySet : { $ binary : ' AAAAAAAAAAAAAAAAAAAAAAAAAAAA ' , $ type : ' 00 ' } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_OK ( <nl> MatchExpressionParser : : parse ( <nl> fromjson ( <nl> " { a : { $ bitsAnyClear : { $ binary : ' AAAAAAAAAAAAAAAAAAAAAAAAAAAA ' , $ type : ' 00 ' } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserTest , BitTestMatchExpressionInvalidMaskType ) { <nl> + CollatorInterface * collator = nullptr ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : null } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : true } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : { } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : ' ' } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : null } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : true } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : { } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : ' ' } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( <nl> fromjson ( " { a : { $ bitsAllClear : ObjectId ( ' 000000000000000000000000 ' ) } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : null } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : true } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : { } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : ' ' } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( <nl> fromjson ( " { a : { $ bitsAnySet : ObjectId ( ' 000000000000000000000000 ' ) } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : null } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : true } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : { } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : ' ' } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( <nl> fromjson ( " { a : { $ bitsAnyClear : ObjectId ( ' 000000000000000000000000 ' ) } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserTest , BitTestMatchExpressionInvalidMaskValue ) { <nl> const double kLongLongMaxAsDouble = scalbn ( 1 , std : : numeric_limits < long long > : : digits ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : NaN } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : - 54 } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllSet " < < std : : numeric_limits < double > : : max ( ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllSet " < < kLongLongMaxAsDouble ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : 2 . 5 } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : NaN } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : - 54 } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllClear " < < std : : numeric_limits < double > : : max ( ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAllClear " < < kLongLongMaxAsDouble ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : 2 . 5 } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : NaN } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : - 54 } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnySet " < < std : : numeric_limits < double > : : max ( ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnySet " < < kLongLongMaxAsDouble ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : 2 . 5 } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : NaN } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : - 54 } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnyClear " < < std : : numeric_limits < double > : : max ( ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( BSON ( " a " < < BSON ( " $ bitsAnyClear " < < kLongLongMaxAsDouble ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : 2 . 5 } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserTest , BitTestMatchExpressionInvalidArray ) { <nl> + CollatorInterface * collator = nullptr ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ null ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ true ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ ' ' ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ { } ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ [ ] ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ - 1 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ 2 . 5 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> fromjson ( <nl> " { a : { $ bitsAllSet : [ { $ binary : ' AAAAAAAAAAAAAAAAAAAAAAAAAAAA ' , $ type : ' 00 ' } ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ null ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ true ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ ' ' ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ { } ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ [ ] ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ - 1 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ 2 . 5 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> fromjson ( <nl> " { a : { $ bitsAllClear : [ { $ binary : ' AAAAAAAAAAAAAAAAAAAAAAAAAAAA ' , $ type : ' 00 ' } ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ null ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ true ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ ' ' ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ { } ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ [ ] ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ - 1 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ 2 . 5 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> fromjson ( <nl> " { a : { $ bitsAnySet : [ { $ binary : ' AAAAAAAAAAAAAAAAAAAAAAAAAAAA ' , $ type : ' 00 ' } ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ null ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ true ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ ' ' ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ { } ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ [ ] ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ - 1 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ 2 . 5 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> fromjson ( <nl> " { a : { $ bitsAnyClear : [ { $ binary : ' AAAAAAAAAAAAAAAAAAAAAAAAAAAA ' , $ type : ' 00 ' } ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserTest , BitTestMatchExpressionInvalidArrayValue ) { <nl> + CollatorInterface * collator = nullptr ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ - 54 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ NaN ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ 2 . 5 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ 1e100 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllSet : [ - 1e100 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllSet " < < BSON_ARRAY ( std : : numeric_limits < long long > : : max ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllSet " < < BSON_ARRAY ( std : : numeric_limits < long long > : : min ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ - 54 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ NaN ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ 2 . 5 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ 1e100 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAllClear : [ - 1e100 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllClear " < < BSON_ARRAY ( std : : numeric_limits < long long > : : max ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAllClear " < < BSON_ARRAY ( std : : numeric_limits < long long > : : min ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ - 54 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ NaN ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ 2 . 5 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ 1e100 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnySet : [ - 1e100 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnySet " < < BSON_ARRAY ( std : : numeric_limits < long long > : : max ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnySet " < < BSON_ARRAY ( std : : numeric_limits < long long > : : min ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ - 54 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ NaN ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ 2 . 5 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ 1e100 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( MatchExpressionParser : : parse ( fromjson ( " { a : { $ bitsAnyClear : [ - 1e100 ] } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnyClear " < < BSON_ARRAY ( std : : numeric_limits < long long > : : max ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> ASSERT_NOT_OK ( <nl> MatchExpressionParser : : parse ( <nl> BSON ( " a " < < BSON ( " $ bitsAnyClear " < < BSON_ARRAY ( std : : numeric_limits < long long > : : min ( ) ) ) ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) . getStatus ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) . getStatus ( ) ) ; <nl> } <nl> } <nl> mmm a / src / mongo / db / matcher / expression_parser_test . cpp <nl> ppp b / src / mongo / db / matcher / expression_parser_test . cpp <nl> namespace mongo { <nl> <nl> TEST ( MatchExpressionParserTest , SimpleEQ1 ) { <nl> BSONObj query = BSON ( " x " < < 2 ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 2 ) ) ) ; <nl> TEST ( MatchExpressionParserTest , SimpleEQ1 ) { <nl> <nl> TEST ( MatchExpressionParserTest , Multiple1 ) { <nl> BSONObj query = BSON ( " x " < < 5 < < " y " < < BSON ( " $ gt " < < 5 < < " $ lt " < < 8 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 5 < < " y " < < 7 ) ) ) ; <nl> TEST ( MatchExpressionParserTest , Multiple1 ) { <nl> <nl> TEST ( AtomicMatchExpressionTest , AtomicOperator1 ) { <nl> BSONObj query = BSON ( " x " < < 5 < < " $ atomic " < < BSON ( " $ gt " < < 5 < < " $ lt " < < 8 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < 5 < < " $ isolated " < < 1 ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> query = BSON ( " x " < < 5 < < " y " < < BSON ( " $ isolated " < < 1 ) ) ; <nl> - result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + result = MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserTest , MinDistanceWithoutNearFailsToParse ) { <nl> BSONObj query = fromjson ( " { loc : { $ minDistance : 10 } } " ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> mmm a / src / mongo / db / matcher / expression_parser_tree_test . cpp <nl> ppp b / src / mongo / db / matcher / expression_parser_tree_test . cpp <nl> namespace mongo { <nl> <nl> TEST ( MatchExpressionParserTreeTest , OR1 ) { <nl> BSONObj query = BSON ( " $ or " < < BSON_ARRAY ( BSON ( " x " < < 1 ) < < BSON ( " y " < < 2 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserTreeTest , OR1 ) { <nl> TEST ( MatchExpressionParserTreeTest , OREmbedded ) { <nl> BSONObj query1 = BSON ( " $ or " < < BSON_ARRAY ( BSON ( " x " < < 1 ) < < BSON ( " y " < < 2 ) ) ) ; <nl> BSONObj query2 = BSON ( " $ or " < < BSON_ARRAY ( query1 ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query2 , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query2 , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserTreeTest , OREmbedded ) { <nl> <nl> TEST ( MatchExpressionParserTreeTest , AND1 ) { <nl> BSONObj query = BSON ( " $ and " < < BSON_ARRAY ( BSON ( " x " < < 1 ) < < BSON ( " y " < < 2 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserTreeTest , AND1 ) { <nl> <nl> TEST ( MatchExpressionParserTreeTest , NOREmbedded ) { <nl> BSONObj query = BSON ( " $ nor " < < BSON_ARRAY ( BSON ( " x " < < 1 ) < < BSON ( " y " < < 2 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 1 ) ) ) ; <nl> TEST ( MatchExpressionParserTreeTest , NOREmbedded ) { <nl> <nl> TEST ( MatchExpressionParserTreeTest , NOT1 ) { <nl> BSONObj query = BSON ( " x " < < BSON ( " $ not " < < BSON ( " $ gt " < < 5 ) ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( result . getValue ( ) - > matchesBSON ( BSON ( " x " < < 2 ) ) ) ; <nl> TEST ( MatchExpressionParserTreeTest , MaximumTreeDepthNotExceed ) { <nl> } <nl> <nl> BSONObj query = fromjson ( ss . str ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserTreeTest , MaximumTreeDepthExceed ) { <nl> } <nl> <nl> BSONObj query = fromjson ( ss . str ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserTreeTest , MaximumTreeDepthExceededNestedNots ) { <nl> } <nl> <nl> BSONObj query = fromjson ( ss . str ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserTreeTest , MaximumTreeDepthExceededNestedElemMatch ) { <nl> } <nl> <nl> BSONObj query = fromjson ( ss . str ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_FALSE ( result . isOK ( ) ) ; <nl> } <nl> <nl> TEST ( MatchExpressionParserLeafTest , NotRegex1 ) { <nl> BSONObjBuilder b ; <nl> b . appendRegex ( " $ not " , " abc " , " i " ) ; <nl> BSONObj query = BSON ( " x " < < b . obj ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression result = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( result . isOK ( ) ) ; <nl> <nl> ASSERT ( ! result . getValue ( ) - > matchesBSON ( BSON ( " x " <nl> mmm a / src / mongo / db / matcher / expression_serialization_test . cpp <nl> ppp b / src / mongo / db / matcher / expression_serialization_test . cpp <nl> BSONObj serialize ( MatchExpression * match ) { <nl> } <nl> <nl> TEST ( SerializeBasic , AndExpressionWithOneChildSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { $ and : [ { x : 0 } ] } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { $ and : [ { x : 0 } ] } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ and : [ { x : { $ eq : 0 } } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , AndExpressionWithOneChildSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , AndExpressionWithTwoChildrenSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { $ and : [ { x : 1 } , { x : 2 } ] } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { $ and : [ { x : 1 } , { x : 2 } ] } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ and : [ { x : { $ eq : 1 } } , { x : { $ eq : 2 } } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , AndExpressionWithTwoChildrenSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , AndExpressionWithTwoIdenticalChildrenSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { $ and : [ { x : 1 } , { x : 1 } ] } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { $ and : [ { x : 1 } , { x : 1 } ] } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ and : [ { x : { $ eq : 1 } } , { x : { $ eq : 1 } } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , AndExpressionWithTwoIdenticalChildrenSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionOr ) { <nl> - Matcher original ( fromjson ( " { $ or : [ { x : ' A ' } , { x : ' B ' } ] } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { $ or : [ { x : ' A ' } , { x : ' B ' } ] } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ or : [ { x : { $ eq : ' A ' } } , { x : { $ eq : ' B ' } } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionOr ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionElemMatchObjectSerializesCorrectly ) { <nl> + CollatorInterface * collator = nullptr ; <nl> Matcher original ( fromjson ( " { x : { $ elemMatch : { a : { $ gt : 0 } , b : { $ gt : 0 } } } } " ) , <nl> - ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + ExtensionsCallbackNoop ( ) , <nl> + collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> fromjson ( " { x : { $ elemMatch : { $ and : [ { a : { $ gt : 0 } } , { b : { $ gt : 0 } } ] } } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> TEST ( SerializeBasic , ExpressionElemMatchObjectSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionElemMatchObjectWithEmptyStringSerializesCorrectly ) { <nl> + CollatorInterface * collator = nullptr ; <nl> Matcher original ( fromjson ( " { ' ' : { $ elemMatch : { a : { $ gt : 0 } , b : { $ gt : 0 } } } } " ) , <nl> - ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + ExtensionsCallbackNoop ( ) , <nl> + collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> fromjson ( " { ' ' : { $ elemMatch : { $ and : [ { a : { $ gt : 0 } } , { b : { $ gt : 0 } } ] } } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> TEST ( SerializeBasic , ExpressionElemMatchObjectWithEmptyStringSerializesCorrectly <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionElemMatchValueSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ elemMatch : { $ lt : 1 , $ gt : - 1 } } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( <nl> + fromjson ( " { x : { $ elemMatch : { $ lt : 1 , $ gt : - 1 } } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ elemMatch : { $ lt : 1 , $ gt : - 1 } } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionElemMatchValueSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionElemMatchValueWithEmptyStringSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ elemMatch : { $ lt : 1 , $ gt : - 1 } } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( <nl> + fromjson ( " { x : { $ elemMatch : { $ lt : 1 , $ gt : - 1 } } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ elemMatch : { $ lt : 1 , $ gt : - 1 } } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionElemMatchValueWithEmptyStringSerializesCorrectly ) <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionSizeSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ size : 2 } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ size : 2 } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ size : 2 } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionSizeSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionAllSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ all : [ 1 , 2 ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ all : [ 1 , 2 ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ and : [ { x : { $ eq : 1 } } , { x : { $ eq : 2 } } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionAllSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionAllWithEmptyArraySerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ all : [ ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ all : [ ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ all : [ ] } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionAllWithEmptyArraySerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionAllWithRegex ) { <nl> - Matcher original ( fromjson ( " { x : { $ all : [ / a . b . c / , / . d . e . / ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( <nl> + fromjson ( " { x : { $ all : [ / a . b . c / , / . d . e . / ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ and : [ { x : / a . b . c / } , { x : / . d . e . / } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionAllWithRegex ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionEqSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ eq : { a : 1 } } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ eq : { a : 1 } } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ eq : { a : 1 } } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionEqSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNeSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ ne : { a : 1 } } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ ne : { a : 1 } } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ nor : [ { x : { $ eq : { a : 1 } } } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionNeSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionLtSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ lt : 3 } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ lt : 3 } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ lt : 3 } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionLtSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionGtSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ gt : 3 } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ gt : 3 } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ gt : 3 } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionGtSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionGteSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ gte : 3 } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ gte : 3 } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ gte : 3 } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionGteSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionLteSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ lte : 3 } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ lte : 3 } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ lte : 3 } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionLteSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionRegexWithObjSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ regex : ' a . b ' } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ regex : ' a . b ' } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ regex : ' a . b ' } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionRegexWithObjSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionRegexWithValueSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : / a . b / i } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : / a . b / i } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ regex : ' a . b ' , $ options : ' i ' } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionRegexWithValueSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionRegexWithValueAndOptionsSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : / a . b / } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : / a . b / } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ regex : ' a . b ' } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionRegexWithValueAndOptionsSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionRegexWithEqObjSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ eq : { $ regex : ' a . b ' } } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ eq : { $ regex : ' a . b ' } } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ eq : { $ regex : ' a . b ' } } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionRegexWithEqObjSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionModSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ mod : [ 2 , 1 ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ mod : [ 2 , 1 ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ mod : [ 2 , 1 ] } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionModSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionExistsTrueSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ exists : true } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ exists : true } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ exists : true } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionExistsTrueSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionExistsFalseSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ exists : false } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ exists : false } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ nor : [ { x : { $ exists : true } } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionExistsFalseSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionInSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ in : [ 1 , 2 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ in : [ 1 , 2 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ in : [ 1 , 2 , 3 ] } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionInSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionInWithEmptyArraySerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ in : [ ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ in : [ ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ in : [ ] } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionInWithEmptyArraySerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionInWithRegexSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ in : [ / \ \ d + / , / \ \ w + / ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ in : [ / \ \ d + / , / \ \ w + / ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ in : [ / \ \ d + / , / \ \ w + / ] } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionInWithRegexSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNinSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ nin : [ 1 , 2 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ nin : [ 1 , 2 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ nor : [ { x : { $ in : [ 1 , 2 , 3 ] } } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionNinSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionBitsAllSetSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ bitsAllSet : [ 1 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ bitsAllSet : [ 1 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ bitsAllSet : [ 1 , 3 ] } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionBitsAllSetSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionBitsAllClearSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ bitsAllClear : [ 1 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ bitsAllClear : [ 1 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ bitsAllClear : [ 1 , 3 ] } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionBitsAllClearSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionBitsAnySetSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ bitsAnySet : [ 1 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ bitsAnySet : [ 1 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ bitsAnySet : [ 1 , 3 ] } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionBitsAnySetSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionBitsAnyClearSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ bitsAnyClear : [ 1 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ bitsAnyClear : [ 1 , 3 ] } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ bitsAnyClear : [ 1 , 3 ] } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionBitsAnyClearSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNotSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ not : { $ eq : 3 } } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ not : { $ eq : 3 } } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ nor : [ { $ and : [ { x : { $ eq : 3 } } ] } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionNotSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNotWithMultipleChildrenSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ not : { $ lt : 1 , $ gt : 3 } } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ not : { $ lt : 1 , $ gt : 3 } } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> fromjson ( " { $ nor : [ { $ and : [ { x : { $ lt : 1 } } , { x : { $ gt : 3 } } ] } ] } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> TEST ( SerializeBasic , ExpressionNotWithMultipleChildrenSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNotWithBitTestSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ not : { $ bitsAnySet : [ 1 , 3 ] } } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( <nl> + fromjson ( " { x : { $ not : { $ bitsAnySet : [ 1 , 3 ] } } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ nor : [ { $ and : [ { x : { $ bitsAnySet : [ 1 , 3 ] } } ] } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionNotWithBitTestSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNotWithRegexObjSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ not : { $ regex : ' a . b ' } } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ not : { $ regex : ' a . b ' } } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ nor : [ { x : / a . b / } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionNotWithRegexObjSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNotWithRegexValueSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ not : / a . b / } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ not : / a . b / } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ nor : [ { x : / a . b / } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionNotWithRegexValueSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNotWithRegexValueAndOptionsSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ not : / a . b / i } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ not : / a . b / i } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ nor : [ { x : / a . b / i } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionNotWithRegexValueAndOptionsSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNotWithGeoSerializesCorrectly ) { <nl> + CollatorInterface * collator = nullptr ; <nl> Matcher original ( fromjson ( <nl> " { x : { $ not : { $ geoIntersects : { $ geometry : { type : ' Polygon ' , " <nl> " coordinates : [ [ [ 0 , 0 ] , [ 5 , 0 ] , " <nl> " [ 5 , 5 ] , [ 0 , 5 ] , [ 0 , 0 ] ] ] } } } } } " ) , <nl> - ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + ExtensionsCallbackNoop ( ) , <nl> + collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> fromjson ( <nl> " { $ nor : [ { $ and : [ { x : { $ geoIntersects : { $ geometry : { type : ' Polygon ' , coordinates : " <nl> TEST ( SerializeBasic , ExpressionNotWithGeoSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNorSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { $ nor : [ { x : 3 } , { x : { $ lt : 1 } } ] } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( <nl> + fromjson ( " { $ nor : [ { x : 3 } , { x : { $ lt : 1 } } ] } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { $ nor : [ { x : { $ eq : 3 } } , { x : { $ lt : 1 } } ] } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionNorSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionTypeSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ type : 2 } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ type : 2 } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ type : 2 } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionTypeSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionTypeWithNumberSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { x : { $ type : ' number ' } } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { x : { $ type : ' number ' } } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { x : { $ type : ' number ' } } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionTypeWithNumberSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionEmptySerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionEmptySerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionWhereSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { $ where : ' this . a = = this . b ' } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { $ where : ' this . a = = this . b ' } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> BSONObjBuilder ( ) . appendCodeWScope ( " $ where " , " this . a = = this . b " , BSONObj ( ) ) . obj ( ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionWhereWithScopeSerializesCorrectly ) { <nl> + CollatorInterface * collator = nullptr ; <nl> Matcher original ( BSON ( " $ where " < < BSONCodeWScope ( " this . a = = this . b " , BSON ( " x " < < 3 ) ) ) , <nl> - ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + ExtensionsCallbackNoop ( ) , <nl> + collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> BSON ( " $ where " < < BSONCodeWScope ( " this . a = = this . b " , BSON ( " x " < < 3 ) ) ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionCommentSerializesCorrectly ) { <nl> - Matcher original ( fromjson ( " { $ comment : ' Hello ' } " ) , ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + Matcher original ( fromjson ( " { $ comment : ' Hello ' } " ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , fromjson ( " { } " ) ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , serialize ( reserialized . getMatchExpression ( ) ) ) ; <nl> <nl> TEST ( SerializeBasic , ExpressionCommentSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionGeoWithinSerializesCorrectly ) { <nl> + CollatorInterface * collator = nullptr ; <nl> Matcher original ( <nl> fromjson ( <nl> " { x : { $ geoWithin : { $ geometry : " <nl> " { type : ' Polygon ' , coordinates : [ [ [ 0 , 0 ] , [ 10 , 0 ] , [ 10 , 10 ] , [ 0 , 10 ] , [ 0 , 0 ] ] ] } } } } " ) , <nl> - ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + ExtensionsCallbackNoop ( ) , <nl> + collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> fromjson ( <nl> " { x : { $ geoWithin : { $ geometry : { type : ' Polygon ' , coordinates : [ [ [ 0 , 0 ] , [ 10 , 0 ] , " <nl> TEST ( SerializeBasic , ExpressionGeoWithinSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionGeoIntersectsSerializesCorrectly ) { <nl> + CollatorInterface * collator = nullptr ; <nl> Matcher original ( <nl> fromjson ( <nl> " { x : { $ geoIntersects : { $ geometry : { type : ' Polygon ' , coordinates : [ [ [ 0 , 0 ] , [ 5 , 0 ] , [ 5 , " <nl> " 5 ] , [ 0 , 5 ] , [ 0 , 0 ] ] ] } } } } " ) , <nl> - ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + ExtensionsCallbackNoop ( ) , <nl> + collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> fromjson ( <nl> " { x : { $ geoIntersects : { $ geometry : { type : ' Polygon ' , coordinates : [ [ [ 0 , 0 ] , [ 5 , 0 ] , " <nl> TEST ( SerializeBasic , ExpressionGeoIntersectsSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNearSerializesCorrectly ) { <nl> + CollatorInterface * collator = nullptr ; <nl> Matcher original ( <nl> fromjson ( <nl> " { x : { $ near : { $ geometry : { type : ' Point ' , coordinates : [ 0 , 0 ] } , $ maxDistance : 10 , " <nl> " $ minDistance : 1 } } } " ) , <nl> - ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + ExtensionsCallbackNoop ( ) , <nl> + collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> fromjson ( <nl> " { x : { $ near : { $ geometry : { type : ' Point ' , coordinates : [ 0 , 0 ] } , $ maxDistance : 10 , " <nl> TEST ( SerializeBasic , ExpressionNearSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionNearSphereSerializesCorrectly ) { <nl> + CollatorInterface * collator = nullptr ; <nl> Matcher original ( <nl> fromjson ( <nl> " { x : { $ nearSphere : { $ geometry : { type : ' Point ' , coordinates : [ 0 , 0 ] } , $ maxDistance : 10 , " <nl> " $ minDistance : 1 } } } " ) , <nl> - ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + ExtensionsCallbackNoop ( ) , <nl> + collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> fromjson ( <nl> " { x : { $ nearSphere : { $ geometry : { type : ' Point ' , coordinates : [ 0 , 0 ] } , " <nl> TEST ( SerializeBasic , ExpressionNearSphereSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionTextSerializesCorrectly ) { <nl> + CollatorInterface * collator = nullptr ; <nl> Matcher original ( fromjson ( " { $ text : { $ search : ' a ' , $ language : ' en ' , $ caseSensitive : true } } " ) , <nl> - ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + ExtensionsCallbackNoop ( ) , <nl> + collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> fromjson ( <nl> " { $ text : { $ search : ' a ' , $ language : ' en ' , $ caseSensitive : true , " <nl> TEST ( SerializeBasic , ExpressionTextSerializesCorrectly ) { <nl> } <nl> <nl> TEST ( SerializeBasic , ExpressionTextWithDefaultLanguageSerializesCorrectly ) { <nl> + CollatorInterface * collator = nullptr ; <nl> Matcher original ( fromjson ( " { $ text : { $ search : ' a ' , $ caseSensitive : false } } " ) , <nl> - ExtensionsCallbackNoop ( ) ) ; <nl> - Matcher reserialized ( serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) ) ; <nl> + ExtensionsCallbackNoop ( ) , <nl> + collator ) ; <nl> + Matcher reserialized ( <nl> + serialize ( original . getMatchExpression ( ) ) , ExtensionsCallbackNoop ( ) , collator ) ; <nl> ASSERT_EQ ( * reserialized . getQuery ( ) , <nl> fromjson ( <nl> " { $ text : { $ search : ' a ' , $ language : ' ' , $ caseSensitive : false , " <nl> mmm a / src / mongo / db / matcher / matcher . cpp <nl> ppp b / src / mongo / db / matcher / matcher . cpp <nl> <nl> <nl> namespace mongo { <nl> <nl> - Matcher : : Matcher ( const BSONObj & pattern , const ExtensionsCallback & extensionsCallback ) <nl> + Matcher : : Matcher ( const BSONObj & pattern , <nl> + const ExtensionsCallback & extensionsCallback , <nl> + CollatorInterface * collator ) <nl> : _pattern ( pattern ) { <nl> StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( pattern , extensionsCallback ) ; <nl> + MatchExpressionParser : : parse ( pattern , extensionsCallback , collator ) ; <nl> uassert ( 16810 , <nl> mongoutils : : str : : stream ( ) < < " bad query : " < < statusWithMatcher . getStatus ( ) . toString ( ) , <nl> statusWithMatcher . isOK ( ) ) ; <nl> mmm a / src / mongo / db / matcher / matcher . h <nl> ppp b / src / mongo / db / matcher / matcher . h <nl> <nl> <nl> namespace mongo { <nl> <nl> + class CollatorInterface ; <nl> + <nl> / * * <nl> * Matcher is a simple wrapper around a BSONObj and the MatchExpression created from it . <nl> * / <nl> class Matcher { <nl> MONGO_DISALLOW_COPYING ( Matcher ) ; <nl> <nl> public : <nl> - explicit Matcher ( const BSONObj & pattern , const ExtensionsCallback & extensionsCallback ) ; <nl> + / * * <nl> + * ' collator ' must outlive the returned Matcher and any MatchExpression cloned from it . <nl> + * / <nl> + explicit Matcher ( const BSONObj & pattern , <nl> + const ExtensionsCallback & extensionsCallback , <nl> + CollatorInterface * collator ) ; <nl> <nl> bool matches ( const BSONObj & doc , MatchDetails * details = NULL ) const ; <nl> <nl> mmm a / src / mongo / db / ops / modifier_pull . cpp <nl> ppp b / src / mongo / db / ops / modifier_pull . cpp <nl> Status ModifierPull : : init ( const BSONElement & modExpr , const Options & opts , bool * <nl> <nl> / / Build the matcher around the object we built above . Currently , we do not allow $ pull <nl> / / operations to contain $ text / $ where clauses , so preserving this behaviour . <nl> + / / TODO SERVER - 23689 : Pass the appropriate CollatorInterface * instead of nullptr . <nl> StatusWithMatchExpression parseResult = <nl> - MatchExpressionParser : : parse ( _exprObj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( _exprObj , ExtensionsCallbackDisallowExtensions ( ) , nullptr ) ; <nl> if ( ! parseResult . isOK ( ) ) { <nl> return parseResult . getStatus ( ) ; <nl> } <nl> mmm a / src / mongo / db / ops / path_support_test . cpp <nl> ppp b / src / mongo / db / ops / path_support_test . cpp <nl> TEST_F ( ArrayDoc , NonNumericPathInArray ) { <nl> / / <nl> <nl> static MatchExpression * makeExpr ( const BSONObj & exprBSON ) { <nl> - return MatchExpressionParser : : parse ( exprBSON , ExtensionsCallbackDisallowExtensions ( ) ) <nl> + CollatorInterface * collator = nullptr ; <nl> + return MatchExpressionParser : : parse ( exprBSON , ExtensionsCallbackDisallowExtensions ( ) , collator ) <nl> . getValue ( ) <nl> . release ( ) ; <nl> } <nl> mmm a / src / mongo / db / pipeline / document_source_match . cpp <nl> ppp b / src / mongo / db / pipeline / document_source_match . cpp <nl> bool DocumentSourceMatch : : isTextQuery ( const BSONObj & query ) { <nl> void DocumentSourceMatch : : joinMatchWith ( intrusive_ptr < DocumentSourceMatch > other ) { <nl> _predicate = BSON ( " $ and " < < BSON_ARRAY ( _predicate < < other - > getQuery ( ) ) ) ; <nl> <nl> - StatusWithMatchExpression status = <nl> - uassertStatusOK ( MatchExpressionParser : : parse ( _predicate , ExtensionsCallbackNoop ( ) ) ) ; <nl> + / / TODO SERVER - 23349 : Pass the appropriate CollatorInterface * instead of nullptr . <nl> + StatusWithMatchExpression status = uassertStatusOK ( <nl> + MatchExpressionParser : : parse ( _predicate , ExtensionsCallbackNoop ( ) , nullptr ) ) ; <nl> _expression = std : : move ( status . getValue ( ) ) ; <nl> } <nl> <nl> void DocumentSourceMatch : : addDependencies ( DepsTracker * deps ) const { <nl> DocumentSourceMatch : : DocumentSourceMatch ( const BSONObj & query , <nl> const intrusive_ptr < ExpressionContext > & pExpCtx ) <nl> : DocumentSource ( pExpCtx ) , _predicate ( query . getOwned ( ) ) , _isTextQuery ( isTextQuery ( query ) ) { <nl> - StatusWithMatchExpression status = <nl> - uassertStatusOK ( MatchExpressionParser : : parse ( _predicate , ExtensionsCallbackNoop ( ) ) ) ; <nl> + / / TODO SERVER - 23349 : Pass the appropriate CollatorInterface * instead of nullptr . <nl> + StatusWithMatchExpression status = uassertStatusOK ( <nl> + MatchExpressionParser : : parse ( _predicate , ExtensionsCallbackNoop ( ) , nullptr ) ) ; <nl> + <nl> _expression = std : : move ( status . getValue ( ) ) ; <nl> getDependencies ( & _dependencies ) ; <nl> } <nl> mmm a / src / mongo / db / query / canonical_query . cpp <nl> ppp b / src / mongo / db / query / canonical_query . cpp <nl> StatusWith < std : : unique_ptr < CanonicalQuery > > CanonicalQuery : : canonicalize ( <nl> std : : unique_ptr < LiteParsedQuery > autoLpq ( lpq ) ; <nl> <nl> / / Make MatchExpression . <nl> + / / TODO SERVER - 23610 : pass our CollatorInterface * instead of nullptr . <nl> StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( autoLpq - > getFilter ( ) , extensionsCallback ) ; <nl> + MatchExpressionParser : : parse ( autoLpq - > getFilter ( ) , extensionsCallback , nullptr ) ; <nl> if ( ! statusWithMatcher . isOK ( ) ) { <nl> return statusWithMatcher . getStatus ( ) ; <nl> } <nl> StatusWith < std : : unique_ptr < CanonicalQuery > > CanonicalQuery : : canonicalize ( <nl> auto & lpq = lpqStatus . getValue ( ) ; <nl> <nl> / / Build a parse tree from the BSONObj in the parsed query . <nl> + / / TODO SERVER - 23610 : pass our CollatorInterface * instead of nullptr . <nl> StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( lpq - > getFilter ( ) , extensionsCallback ) ; <nl> + MatchExpressionParser : : parse ( lpq - > getFilter ( ) , extensionsCallback , nullptr ) ; <nl> if ( ! statusWithMatcher . isOK ( ) ) { <nl> return statusWithMatcher . getStatus ( ) ; <nl> } <nl> mmm a / src / mongo / db / query / canonical_query_test . cpp <nl> ppp b / src / mongo / db / query / canonical_query_test . cpp <nl> static const NamespaceString nss ( " testdb . testcoll " ) ; <nl> * and return the MatchExpression * . <nl> * / <nl> MatchExpression * parseMatchExpression ( const BSONObj & obj ) { <nl> - StatusWithMatchExpression status = MatchExpressionParser : : parse ( obj , ExtensionsCallbackNoop ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression status = <nl> + MatchExpressionParser : : parse ( obj , ExtensionsCallbackNoop ( ) , collator ) ; <nl> if ( ! status . isOK ( ) ) { <nl> mongoutils : : str : : stream ss ; <nl> ss < < " failed to parse query : " < < obj . toString ( ) <nl> mmm a / src / mongo / db / query / index_bounds_builder_test . cpp <nl> ppp b / src / mongo / db / query / index_bounds_builder_test . cpp <nl> double NaN = numeric_limits < double > : : quiet_NaN ( ) ; <nl> * Utility function to create MatchExpression <nl> * / <nl> MatchExpression * parseMatchExpression ( const BSONObj & obj ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( status . isOK ( ) ) ; <nl> MatchExpression * expr ( status . getValue ( ) . release ( ) ) ; <nl> return expr ; <nl> mmm a / src / mongo / db / query / parsed_projection . cpp <nl> ppp b / src / mongo / db / query / parsed_projection . cpp <nl> Status ParsedProjection : : make ( const BSONObj & spec , <nl> invariant ( elemMatchObj . isOwned ( ) ) ; <nl> <nl> / / TODO : Is there a faster way of validating the elemMatchObj ? <nl> + / / TODO SERVER - 23680 : pass the appropriate CollatorInterface * instead of nullptr . <nl> StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( elemMatchObj , extensionsCallback ) ; <nl> + MatchExpressionParser : : parse ( elemMatchObj , extensionsCallback , nullptr ) ; <nl> if ( ! statusWithMatcher . isOK ( ) ) { <nl> return statusWithMatcher . getStatus ( ) ; <nl> } <nl> mmm a / src / mongo / db / query / parsed_projection_test . cpp <nl> ppp b / src / mongo / db / query / parsed_projection_test . cpp <nl> using namespace mongo ; <nl> / / <nl> <nl> unique_ptr < ParsedProjection > createParsedProjection ( const BSONObj & query , const BSONObj & projObj ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT ( statusWithMatcher . isOK ( ) ) ; <nl> std : : unique_ptr < MatchExpression > queryMatchExpr = std : : move ( statusWithMatcher . getValue ( ) ) ; <nl> ParsedProjection * out = NULL ; <nl> unique_ptr < ParsedProjection > createParsedProjection ( const char * queryStr , const <nl> void assertInvalidProjection ( const char * queryStr , const char * projStr ) { <nl> BSONObj query = fromjson ( queryStr ) ; <nl> BSONObj projObj = fromjson ( projStr ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT ( statusWithMatcher . isOK ( ) ) ; <nl> std : : unique_ptr < MatchExpression > queryMatchExpr = std : : move ( statusWithMatcher . getValue ( ) ) ; <nl> ParsedProjection * out = NULL ; <nl> mmm a / src / mongo / db / query / plan_cache_indexability_test . cpp <nl> ppp b / src / mongo / db / query / plan_cache_indexability_test . cpp <nl> namespace mongo { <nl> namespace { <nl> <nl> std : : unique_ptr < MatchExpression > parseMatchExpression ( const BSONObj & obj ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> if ( ! status . isOK ( ) ) { <nl> FAIL ( str : : stream ( ) < < " failed to parse query : " < < obj . toString ( ) <nl> < < " . Reason : " < < status . getStatus ( ) . toString ( ) ) ; <nl> mmm a / src / mongo / db / query / plan_cache_test . cpp <nl> ppp b / src / mongo / db / query / plan_cache_test . cpp <nl> unique_ptr < CanonicalQuery > canonicalize ( const char * queryStr , <nl> * Utility function to create MatchExpression <nl> * / <nl> unique_ptr < MatchExpression > parseMatchExpression ( const BSONObj & obj ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> if ( ! status . isOK ( ) ) { <nl> str : : stream ss ; <nl> ss < < " failed to parse query : " < < obj . toString ( ) <nl> mmm a / src / mongo / db / query / planner_ixselect_test . cpp <nl> ppp b / src / mongo / db / query / planner_ixselect_test . cpp <nl> using std : : vector ; <nl> * Utility function to create MatchExpression <nl> * / <nl> unique_ptr < MatchExpression > parseMatchExpression ( const BSONObj & obj ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_TRUE ( status . isOK ( ) ) ; <nl> return std : : move ( status . getValue ( ) ) ; <nl> } <nl> mmm a / src / mongo / db / query / query_planner_test_fixture . cpp <nl> ppp b / src / mongo / db / query / query_planner_test_fixture . cpp <nl> void QueryPlannerTest : : assertHasOneSolutionOf ( const std : : vector < std : : string > & so <nl> } <nl> <nl> std : : unique_ptr < MatchExpression > QueryPlannerTest : : parseMatchExpression ( const BSONObj & obj ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression status = <nl> - MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( obj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> if ( ! status . isOK ( ) ) { <nl> FAIL ( str : : stream ( ) < < " failed to parse query : " < < obj . toString ( ) <nl> < < " . Reason : " < < status . getStatus ( ) . toString ( ) ) ; <nl> mmm a / src / mongo / db / query / query_planner_test_lib . cpp <nl> ppp b / src / mongo / db / query / query_planner_test_lib . cpp <nl> bool filterMatches ( const BSONObj & testFilter , const QuerySolutionNode * trueFilte <nl> if ( NULL = = trueFilterNode - > filter ) { <nl> return false ; <nl> } <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( testFilter , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( testFilter , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> if ( ! statusWithMatcher . isOK ( ) ) { <nl> return false ; <nl> } <nl> mmm a / src / mongo / db / query / query_solution_test . cpp <nl> ppp b / src / mongo / db / query / query_solution_test . cpp <nl> TEST ( QuerySolutionTest , IntervalListSomePoints ) { <nl> <nl> std : : unique_ptr < ParsedProjection > createParsedProjection ( const BSONObj & query , <nl> const BSONObj & projObj ) { <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression queryMatchExpr = <nl> - MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + MatchExpressionParser : : parse ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT ( queryMatchExpr . isOK ( ) ) ; <nl> ParsedProjection * out = nullptr ; <nl> Status status = ParsedProjection : : make ( <nl> mmm a / src / mongo / dbtests / matchertests . cpp <nl> ppp b / src / mongo / dbtests / matchertests . cpp <nl> <nl> # include " mongo / db / matcher / extensions_callback_disallow_extensions . h " <nl> # include " mongo / db / matcher / extensions_callback_real . h " <nl> # include " mongo / db / matcher / matcher . h " <nl> + # include " mongo / db / operation_context_impl . h " <nl> + # include " mongo / db / query / collation / collator_interface_mock . h " <nl> # include " mongo / dbtests / dbtests . h " <nl> # include " mongo / util / timer . h " <nl> <nl> class Basic { <nl> public : <nl> void run ( ) { <nl> BSONObj query = fromjson ( " { \ " a \ " : \ " b \ " } " ) ; <nl> - M m ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + M m ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT ( m . matches ( fromjson ( " { \ " a \ " : \ " b \ " } " ) ) ) ; <nl> } <nl> } ; <nl> class DoubleEqual { <nl> public : <nl> void run ( ) { <nl> BSONObj query = fromjson ( " { \ " a \ " : 5 } " ) ; <nl> - M m ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + M m ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT ( m . matches ( fromjson ( " { \ " a \ " : 5 } " ) ) ) ; <nl> } <nl> } ; <nl> class MixedNumericEqual { <nl> void run ( ) { <nl> BSONObjBuilder query ; <nl> query . append ( " a " , 5 ) ; <nl> - M m ( query . done ( ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + M m ( query . done ( ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT ( m . matches ( fromjson ( " { \ " a \ " : 5 } " ) ) ) ; <nl> } <nl> } ; <nl> class MixedNumericGt { <nl> public : <nl> void run ( ) { <nl> BSONObj query = fromjson ( " { \ " a \ " : { \ " $ gt \ " : 4 } } " ) ; <nl> - M m ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + M m ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> BSONObjBuilder b ; <nl> b . append ( " a " , 5 ) ; <nl> ASSERT ( m . matches ( b . done ( ) ) ) ; <nl> class MixedNumericIN { <nl> ASSERT_EQUALS ( 4 , query [ " a " ] . embeddedObject ( ) [ " $ in " ] . embeddedObject ( ) [ " 0 " ] . number ( ) ) ; <nl> ASSERT_EQUALS ( NumberInt , query [ " a " ] . embeddedObject ( ) [ " $ in " ] . embeddedObject ( ) [ " 0 " ] . type ( ) ) ; <nl> <nl> - M m ( query , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + M m ( query , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> <nl> { <nl> BSONObjBuilder b ; <nl> template < typename M > <nl> class MixedNumericEmbedded { <nl> public : <nl> void run ( ) { <nl> - M m ( BSON ( " a " < < BSON ( " x " < < 1 ) ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + M m ( BSON ( " a " < < BSON ( " x " < < 1 ) ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT ( m . matches ( BSON ( " a " < < BSON ( " x " < < 1 ) ) ) ) ; <nl> ASSERT ( m . matches ( BSON ( " a " < < BSON ( " x " < < 1 . 0 ) ) ) ) ; <nl> } <nl> template < typename M > <nl> class Size { <nl> public : <nl> void run ( ) { <nl> - M m ( fromjson ( " { a : { $ size : 4 } } " ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + M m ( fromjson ( " { a : { $ size : 4 } } " ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT ( m . matches ( fromjson ( " { a : [ 1 , 2 , 3 , 4 ] } " ) ) ) ; <nl> ASSERT ( ! m . matches ( fromjson ( " { a : [ 1 , 2 , 3 ] } " ) ) ) ; <nl> ASSERT ( ! m . matches ( fromjson ( " { a : [ 1 , 2 , 3 , ' a ' , ' b ' ] } " ) ) ) ; <nl> template < typename M > <nl> class WithinBox { <nl> public : <nl> void run ( ) { <nl> + CollatorInterface * collator = nullptr ; <nl> M m ( fromjson ( " { loc : { $ within : { $ box : [ { x : 4 , y : 4 } , [ 6 , 6 ] ] } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) ; <nl> ASSERT ( ! m . matches ( fromjson ( " { loc : [ 3 , 4 ] } " ) ) ) ; <nl> ASSERT ( m . matches ( fromjson ( " { loc : [ 4 , 4 ] } " ) ) ) ; <nl> ASSERT ( m . matches ( fromjson ( " { loc : [ 5 , 5 ] } " ) ) ) ; <nl> template < typename M > <nl> class WithinPolygon { <nl> public : <nl> void run ( ) { <nl> + CollatorInterface * collator = nullptr ; <nl> M m ( fromjson ( " { loc : { $ within : { $ polygon : [ { x : 0 , y : 0 } , [ 0 , 5 ] , [ 5 , 5 ] , [ 5 , 0 ] ] } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) ; <nl> ASSERT ( m . matches ( fromjson ( " { loc : [ 3 , 4 ] } " ) ) ) ; <nl> ASSERT ( m . matches ( fromjson ( " { loc : [ 4 , 4 ] } " ) ) ) ; <nl> ASSERT ( m . matches ( fromjson ( " { loc : { x : 5 , y : 5 } } " ) ) ) ; <nl> template < typename M > <nl> class WithinCenter { <nl> public : <nl> void run ( ) { <nl> + CollatorInterface * collator = nullptr ; <nl> M m ( fromjson ( " { loc : { $ within : { $ center : [ { x : 30 , y : 30 } , 10 ] } } } " ) , <nl> - ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) ; <nl> ASSERT ( ! m . matches ( fromjson ( " { loc : [ 3 , 4 ] } " ) ) ) ; <nl> ASSERT ( m . matches ( fromjson ( " { loc : { x : 30 , y : 30 } } " ) ) ) ; <nl> ASSERT ( m . matches ( fromjson ( " { loc : [ 20 , 30 ] } " ) ) ) ; <nl> template < typename M > <nl> class ElemMatchKey { <nl> public : <nl> void run ( ) { <nl> - M matcher ( BSON ( " a . b " < < 1 ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + M matcher ( BSON ( " a . b " < < 1 ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> MatchDetails details ; <nl> details . requestElemMatchKey ( ) ; <nl> ASSERT ( ! details . hasElemMatchKey ( ) ) ; <nl> class WhereSimple1 { <nl> const NamespaceString nss ( " unittests . matchertests " ) ; <nl> AutoGetCollectionForRead ctx ( & txn , nss ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> M m ( BSON ( " $ where " <nl> < < " function ( ) { return this . a = = 1 ; } " ) , <nl> - ExtensionsCallbackReal ( & txn , & nss ) ) ; <nl> + ExtensionsCallbackReal ( & txn , & nss ) , <nl> + collator ) ; <nl> ASSERT ( m . matches ( BSON ( " a " < < 1 ) ) ) ; <nl> ASSERT ( ! m . matches ( BSON ( " a " < < 2 ) ) ) ; <nl> } <nl> template < typename M > <nl> class TimingBase { <nl> public : <nl> long dotime ( const BSONObj & patt , const BSONObj & obj ) { <nl> - M m ( patt , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + M m ( patt , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> Timer t ; <nl> for ( int i = 0 ; i < 900000 ; i + + ) { <nl> if ( ! m . matches ( obj ) ) { <nl> class AllTiming : public TimingBase < M > { <nl> } <nl> } ; <nl> <nl> + / * * Test that ' collator ' is passed to MatchExpressionParser : : parse ( ) . * / <nl> + template < typename M > <nl> + class NullCollator { <nl> + public : <nl> + void run ( ) { <nl> + CollatorInterface * collator = nullptr ; <nl> + M matcher ( BSON ( " a " <nl> + < < " string " ) , <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + collator ) ; <nl> + ASSERT ( ! matcher . matches ( BSON ( " a " <nl> + < < " string2 " ) ) ) ; <nl> + } <nl> + } ; <nl> + <nl> + / * * Test that ' collator ' is passed to MatchExpressionParser : : parse ( ) . * / <nl> + template < typename M > <nl> + class Collator { <nl> + public : <nl> + void run ( ) { <nl> + CollatorInterfaceMock collator ( CollatorInterfaceMock : : MockType : : kAlwaysEqual ) ; <nl> + M matcher ( BSON ( " a " <nl> + < < " string " ) , <nl> + ExtensionsCallbackDisallowExtensions ( ) , <nl> + & collator ) ; <nl> + ASSERT ( matcher . matches ( BSON ( " a " <nl> + < < " string2 " ) ) ) ; <nl> + } <nl> + } ; <nl> <nl> class All : public Suite { <nl> public : <nl> class All : public Suite { <nl> ADD_BOTH ( WithinBox ) ; <nl> ADD_BOTH ( WithinCenter ) ; <nl> ADD_BOTH ( WithinPolygon ) ; <nl> + ADD_BOTH ( NullCollator ) ; <nl> + ADD_BOTH ( Collator ) ; <nl> } <nl> } ; <nl> <nl> mmm a / src / mongo / dbtests / query_stage_collscan . cpp <nl> ppp b / src / mongo / dbtests / query_stage_collscan . cpp <nl> class QueryStageCollectionScanBase { <nl> params . tailable = false ; <nl> <nl> / / Make the filter . <nl> - StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( filterObj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression statusWithMatcher = MatchExpressionParser : : parse ( <nl> + filterObj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> verify ( statusWithMatcher . isOK ( ) ) ; <nl> unique_ptr < MatchExpression > filterExpr = std : : move ( statusWithMatcher . getValue ( ) ) ; <nl> <nl> mmm a / src / mongo / dbtests / query_stage_count . cpp <nl> ppp b / src / mongo / dbtests / query_stage_count . cpp <nl> class CountStageTest { <nl> <nl> unique_ptr < WorkingSet > ws ( new WorkingSet ) ; <nl> <nl> + CollatorInterface * collator = nullptr ; <nl> StatusWithMatchExpression statusWithMatcher = MatchExpressionParser : : parse ( <nl> - request . getQuery ( ) , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + request . getQuery ( ) , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT ( statusWithMatcher . isOK ( ) ) ; <nl> unique_ptr < MatchExpression > expression = std : : move ( statusWithMatcher . getValue ( ) ) ; <nl> <nl> mmm a / src / mongo / dbtests / query_stage_fetch . cpp <nl> ppp b / src / mongo / dbtests / query_stage_fetch . cpp <nl> class FetchStageFilter : public QueryStageFetchBase { <nl> <nl> / / Make the filter . <nl> BSONObj filterObj = BSON ( " foo " < < 6 ) ; <nl> - StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( filterObj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression statusWithMatcher = MatchExpressionParser : : parse ( <nl> + filterObj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> verify ( statusWithMatcher . isOK ( ) ) ; <nl> unique_ptr < MatchExpression > filterExpr = std : : move ( statusWithMatcher . getValue ( ) ) ; <nl> <nl> mmm a / src / mongo / dbtests / query_stage_multiplan . cpp <nl> ppp b / src / mongo / dbtests / query_stage_multiplan . cpp <nl> class MPSCollectionScanVsHighlySelectiveIXScan : public QueryStageMultiPlanBase <nl> <nl> / / Make the filter . <nl> BSONObj filterObj = BSON ( " foo " < < 7 ) ; <nl> - StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( filterObj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression statusWithMatcher = MatchExpressionParser : : parse ( <nl> + filterObj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> verify ( statusWithMatcher . isOK ( ) ) ; <nl> unique_ptr < MatchExpression > filter = std : : move ( statusWithMatcher . getValue ( ) ) ; <nl> / / Make the stage . <nl> mmm a / src / mongo / dbtests / query_stage_subplan . cpp <nl> ppp b / src / mongo / dbtests / query_stage_subplan . cpp <nl> class QueryStageSubplanRewriteToRootedOr : public QueryStageSubplanBase { <nl> / / Rewrite ( AND ( OR a b ) e ) = > ( OR ( AND a e ) ( AND b e ) ) <nl> { <nl> BSONObj queryObj = fromjson ( " { $ or : [ { a : 1 } , { b : 1 } ] , e : 1 } " ) ; <nl> - StatusWithMatchExpression expr = <nl> - MatchExpressionParser : : parse ( queryObj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression expr = MatchExpressionParser : : parse ( <nl> + queryObj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( expr . getStatus ( ) ) ; <nl> std : : unique_ptr < MatchExpression > rewrittenExpr = <nl> SubplanStage : : rewriteToRootedOr ( std : : move ( expr . getValue ( ) ) ) ; <nl> class QueryStageSubplanRewriteToRootedOr : public QueryStageSubplanBase { <nl> / / Rewrite ( AND ( OR a b ) e f ) = > ( OR ( AND a e f ) ( AND b e f ) ) <nl> { <nl> BSONObj queryObj = fromjson ( " { $ or : [ { a : 1 } , { b : 1 } ] , e : 1 , f : 1 } " ) ; <nl> - StatusWithMatchExpression expr = <nl> - MatchExpressionParser : : parse ( queryObj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression expr = MatchExpressionParser : : parse ( <nl> + queryObj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( expr . getStatus ( ) ) ; <nl> std : : unique_ptr < MatchExpression > rewrittenExpr = <nl> SubplanStage : : rewriteToRootedOr ( std : : move ( expr . getValue ( ) ) ) ; <nl> class QueryStageSubplanRewriteToRootedOr : public QueryStageSubplanBase { <nl> / / Rewrite ( AND ( OR ( AND a b ) ( AND c d ) e f ) = > ( OR ( AND a b e f ) ( AND c d e f ) ) <nl> { <nl> BSONObj queryObj = fromjson ( " { $ or : [ { a : 1 , b : 1 } , { c : 1 , d : 1 } ] , e : 1 , f : 1 } " ) ; <nl> - StatusWithMatchExpression expr = <nl> - MatchExpressionParser : : parse ( queryObj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression expr = MatchExpressionParser : : parse ( <nl> + queryObj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> ASSERT_OK ( expr . getStatus ( ) ) ; <nl> std : : unique_ptr < MatchExpression > rewrittenExpr = <nl> SubplanStage : : rewriteToRootedOr ( std : : move ( expr . getValue ( ) ) ) ; <nl> mmm a / src / mongo / dbtests / query_stage_tests . cpp <nl> ppp b / src / mongo / dbtests / query_stage_tests . cpp <nl> class IndexScanBase { <nl> int countResults ( const IndexScanParams & params , BSONObj filterObj = BSONObj ( ) ) { <nl> AutoGetCollectionForRead ctx ( & _txn , ns ( ) ) ; <nl> <nl> - StatusWithMatchExpression statusWithMatcher = <nl> - MatchExpressionParser : : parse ( filterObj , ExtensionsCallbackDisallowExtensions ( ) ) ; <nl> + CollatorInterface * collator = nullptr ; <nl> + StatusWithMatchExpression statusWithMatcher = MatchExpressionParser : : parse ( <nl> + filterObj , ExtensionsCallbackDisallowExtensions ( ) , collator ) ; <nl> verify ( statusWithMatcher . isOK ( ) ) ; <nl> unique_ptr < MatchExpression > filterExpr = std : : move ( statusWithMatcher . getValue ( ) ) ; <nl> <nl>
|
SERVER - 23608 Make MatchExpressionParser take a CollatorInterface *
|
mongodb/mongo
|
d6a77a0135db56972b2626a08e20a240a770f66f
|
2016-04-26T21:31:35Z
|
mmm a / test / lit . cfg <nl> ppp b / test / lit . cfg <nl> class SwiftTest ( lit . formats . ShTest ) : <nl> <nl> test . config . environment [ " LLVM_PROFILE_FILE " ] = os . path . join ( profdir , " swift - % p . profraw " ) <nl> <nl> - def after_test ( test , litConfig , result ) : <nl> + def after_test ( self , test , litConfig , result ) : <nl> profdir = self . profdir_for_test ( test ) <nl> if self . merged : <nl> files = glob . glob ( os . path . join ( profdir , " * . profraw " ) ) <nl> class SwiftTest ( lit . formats . ShTest ) : <nl> def execute ( self , test , litConfig ) : <nl> self . before_test ( test , litConfig ) <nl> result = super ( SwiftTest , self ) . execute ( test , litConfig ) <nl> - return self . after_test ( self , test , litConfig , result ) <nl> + return self . after_test ( test , litConfig , result ) <nl> <nl> # name : The name of this test suite . <nl> config . name = ' Swift ' <nl>
|
[ coverage ] Fixed runtime error in lit . cfg
|
apple/swift
|
3ea61fbcc39405c2aea4d74e52a1f877145e7697
|
2016-01-27T00:35:35Z
|
mmm a / include / swift / Reflection / ReflectionContext . h <nl> ppp b / include / swift / Reflection / ReflectionContext . h <nl> class ReflectionContext <nl> } <nl> <nl> void dumpAllSections ( std : : ostream & OS ) { <nl> - getBuilder ( ) . dumpAllSections ( ) ; <nl> + getBuilder ( ) . dumpAllSections ( OS ) ; <nl> } <nl> <nl> # if defined ( __APPLE__ ) & & defined ( __MACH__ ) <nl>
|
[ Reflection ] Fix a member function so that it actually compiles .
|
apple/swift
|
52531eef00390ea3b7a5f0ad9367abb7ec0c446e
|
2018-06-01T00:02:32Z
|
mmm a / s / chunk . cpp <nl> ppp b / s / chunk . cpp <nl> namespace mongo { <nl> _chunkMap [ c - > getMax ( ) ] = c ; <nl> _chunkRanges . reloadAll ( _chunkMap ) ; <nl> <nl> + _shards . insert ( c - > getShard ( ) ) ; <nl> + <nl> save_inlock ( ) ; <nl> log ( ) < < " no chunks for : " < < ns < < " so creating first : " < < c - > toString ( ) < < endl ; <nl> <nl> namespace mongo { <nl> _chunks . clear ( ) ; <nl> _chunkMap . clear ( ) ; <nl> _chunkRanges . clear ( ) ; <nl> + _shards . clear ( ) ; <nl> } <nl> <nl> void ChunkManager : : _reload ( ) { <nl> namespace mongo { <nl> _chunks . clear ( ) ; <nl> _chunkMap . clear ( ) ; <nl> _chunkRanges . clear ( ) ; <nl> + _shards . clear ( ) ; <nl> _load ( ) ; <nl> <nl> if ( _isValid ( ) ) { <nl> namespace mongo { <nl> <nl> _chunks . push_back ( c ) ; <nl> _chunkMap [ c - > getMax ( ) ] = c ; <nl> + _shards . insert ( c - > getShard ( ) ) ; <nl> <nl> } <nl> conn . done ( ) ; <nl> namespace mongo { <nl> <nl> void ChunkManager : : getAllShards ( set < Shard > & all ) { <nl> rwlock lk ( _lock , false ) ; <nl> - <nl> - / / TODO : cache this <nl> - for ( vector < ChunkPtr > : : iterator i = _chunks . begin ( ) ; i ! = _chunks . end ( ) ; i + + ) { <nl> - all . insert ( ( * i ) - > getShard ( ) ) ; <nl> - } <nl> + all = _shards ; <nl> } <nl> <nl> void ChunkManager : : ensureIndex ( ) { <nl> namespace mongo { <nl> _chunks . clear ( ) ; <nl> _chunkMap . clear ( ) ; <nl> _chunkRanges . clear ( ) ; <nl> + _shards . clear ( ) ; <nl> <nl> <nl> / / delete data from mongod <nl> namespace mongo { <nl> <nl> void ChunkManager : : _migrationNotification ( Chunk * c ) { <nl> _chunkRanges . reloadRange ( _chunkMap , c - > getMin ( ) , c - > getMax ( ) ) ; <nl> + _shards . insert ( c - > getShard ( ) ) ; <nl> } <nl> <nl> <nl> mmm a / s / chunk . h <nl> ppp b / s / chunk . h <nl> namespace mongo { <nl> ChunkMap _chunkMap ; <nl> ChunkRangeManager _chunkRanges ; <nl> <nl> + set < Shard > _shards ; <nl> + <nl> unsigned long long _sequenceNumber ; <nl> <nl> RWLock _lock ; <nl>
|
cache list of shards SERVER - 952
|
mongodb/mongo
|
3b37957322b3b00c783c9a90e7afdfeb8f25f4c6
|
2010-06-30T00:40:29Z
|
mmm a / include / fmt / color . h <nl> ppp b / include / fmt / color . h <nl> <nl> <nl> FMT_BEGIN_NAMESPACE <nl> <nl> - # ifdef FMT_DEPRECATED_COLORS <nl> - <nl> - / / color and ( v ) print_colored are deprecated . <nl> - enum FMT_DEPRECATED color { <nl> - black , <nl> - red , <nl> - green , <nl> - yellow , <nl> - blue , <nl> - magenta , <nl> - cyan , <nl> - white <nl> - } ; <nl> - FMT_DEPRECATED FMT_API void vprint_colored ( color c , string_view format , <nl> - format_args args ) ; <nl> - FMT_DEPRECATED FMT_API void vprint_colored ( color c , wstring_view format , <nl> - wformat_args args ) ; <nl> - template < typename . . . Args > <nl> - FMT_DEPRECATED inline void print_colored ( color c , string_view format_str , <nl> - const Args & . . . args ) { <nl> - vprint_colored ( c , format_str , make_format_args ( args . . . ) ) ; <nl> - } <nl> - template < typename . . . Args > <nl> - FMT_DEPRECATED inline void print_colored ( color c , wstring_view format_str , <nl> - const Args & . . . args ) { <nl> - vprint_colored ( c , format_str , make_format_args < wformat_context > ( args . . . ) ) ; <nl> - } <nl> - <nl> - FMT_DEPRECATED inline void vprint_colored ( color c , string_view format , <nl> - format_args args ) { <nl> - char escape [ ] = " \ x1b [ 30m " ; <nl> - escape [ 3 ] = static_cast < char > ( ' 0 ' + c ) ; <nl> - std : : fputs ( escape , stdout ) ; <nl> - vprint ( format , args ) ; <nl> - std : : fputs ( internal : : data : : RESET_COLOR , stdout ) ; <nl> - } <nl> - <nl> - FMT_DEPRECATED inline void vprint_colored ( color c , wstring_view format , <nl> - wformat_args args ) { <nl> - wchar_t escape [ ] = L " \ x1b [ 30m " ; <nl> - escape [ 3 ] = static_cast < wchar_t > ( ' 0 ' + c ) ; <nl> - std : : fputws ( escape , stdout ) ; <nl> - vprint ( format , args ) ; <nl> - std : : fputws ( internal : : data : : WRESET_COLOR , stdout ) ; <nl> - } <nl> - <nl> - # else <nl> - <nl> enum class color : uint32_t { <nl> alice_blue = 0xF0F8FF , / / rgb ( 240 , 248 , 255 ) <nl> antique_white = 0xFAEBD7 , / / rgb ( 250 , 235 , 215 ) <nl> enum class terminal_color : uint8_t { <nl> bright_magenta , <nl> bright_cyan , <nl> bright_white <nl> - } ; / / enum class terminal_color <nl> + } ; <nl> <nl> enum class emphasis : uint8_t { <nl> bold = 1 , <nl> italic = 1 < < 1 , <nl> underline = 1 < < 2 , <nl> strikethrough = 1 < < 3 <nl> - } ; / / enum class emphasis <nl> + } ; <nl> <nl> / / rgb is a struct for red , green and blue colors . <nl> - / / We use rgb as name because some editors will show it as color direct in the <nl> - / / editor . <nl> + / / Using the name " rgb " makes some editors show the color in a tooltip . <nl> struct rgb { <nl> FMT_CONSTEXPR rgb ( ) : r ( 0 ) , g ( 0 ) , b ( 0 ) { } <nl> FMT_CONSTEXPR rgb ( uint8_t r_ , uint8_t g_ , uint8_t b_ ) : r ( r_ ) , g ( g_ ) , b ( b_ ) { } <nl> inline std : : basic_string < Char > format ( const text_style & ts , const S & format_str , <nl> { internal : : make_args_checked ( format_str , args . . . ) } ) ; <nl> } <nl> <nl> - # endif <nl> - <nl> FMT_END_NAMESPACE <nl> <nl> # endif / / FMT_COLOR_H_ <nl>
|
Remove deprecated color API
|
fmtlib/fmt
|
de37de912bab26ed9a2b97504e65c670889fccd6
|
2019-07-03T21:19:24Z
|
mmm a / libraries / chain / include / eosio / chain / authority . hpp <nl> ppp b / libraries / chain / include / eosio / chain / authority . hpp <nl> struct permission_level_weight { <nl> weight_type weight ; <nl> } ; <nl> <nl> - template < > <nl> - struct config : : billable_size < permission_level_weight > { <nl> - static const uint64_t value = 24 ; / / / < over value of weight for safety <nl> - } ; <nl> - <nl> struct key_weight { <nl> public_key_type key ; <nl> weight_type weight ; <nl> } ; <nl> <nl> - template < > <nl> - struct config : : billable_size < key_weight > { <nl> - static const uint64_t value = 8 ; / / / < over value of weight for safety , dynamically sizing key <nl> - } ; <nl> + namespace config { <nl> + template < > <nl> + struct billable_size < permission_level_weight > { <nl> + static const uint64_t value = 24 ; / / / < over value of weight for safety <nl> + } ; <nl> <nl> + template < > <nl> + struct billable_size < key_weight > { <nl> + static const uint64_t value = 8 ; / / / < over value of weight for safety , dynamically sizing key <nl> + } ; <nl> + } <nl> <nl> struct authority { <nl> authority ( public_key_type k ) : threshold ( 1 ) , keys ( { { k , 1 } } ) { } <nl> mmm a / libraries / chain / include / eosio / chain / generated_transaction_object . hpp <nl> ppp b / libraries / chain / include / eosio / chain / generated_transaction_object . hpp <nl> namespace eosio { namespace chain { <nl> <nl> typedef chainbase : : generic_index < generated_transaction_multi_index > generated_transaction_index ; <nl> <nl> - template < > <nl> - struct config : : billable_size < generated_transaction_object > { <nl> - static const uint64_t overhead = config : : overhead_per_row_per_index_ram_bytes * 5 ; / / / < overhead for 5x indices internal - key , txid , expiration , delay , sender_id <nl> - static const uint64_t value = 96 + 4 + overhead ; / / / < 96 bytes for our constant size fields , 4 bytes for a varint for packed_trx size and 96 bytes of implementation overhead <nl> - } ; <nl> + namespace config { <nl> + template < > <nl> + struct billable_size < generated_transaction_object > { <nl> + static const uint64_t overhead = overhead_per_row_per_index_ram_bytes * 5 ; / / / < overhead for 5x indices internal - key , txid , expiration , delay , sender_id <nl> + static const uint64_t value = 96 + 4 + overhead ; / / / < 96 bytes for our constant size fields , 4 bytes for a varint for packed_trx size and 96 bytes of implementation overhead <nl> + } ; <nl> + } <nl> } } / / eosio : : chain <nl> <nl> CHAINBASE_SET_INDEX_TYPE ( eosio : : chain : : generated_transaction_object , eosio : : chain : : generated_transaction_multi_index ) <nl> mmm a / libraries / chain / include / eosio / chain / permission_link_object . hpp <nl> ppp b / libraries / chain / include / eosio / chain / permission_link_object . hpp <nl> namespace eosio { namespace chain { <nl> > <nl> > ; <nl> <nl> - template < > <nl> - struct config : : billable_size < permission_link_object > { <nl> - static const uint64_t overhead = config : : overhead_per_row_per_index_ram_bytes * 3 ; / / / < 3x indices id , action , permission <nl> - static const uint64_t value = 40 + overhead ; / / / < fixed field + overhead <nl> - } ; <nl> + namespace config { <nl> + template < > <nl> + struct billable_size < permission_link_object > { <nl> + static const uint64_t overhead = overhead_per_row_per_index_ram_bytes * 3 ; / / / < 3x indices id , action , permission <nl> + static const uint64_t value = 40 + overhead ; / / / < fixed field + overhead <nl> + } ; <nl> + } <nl> } } / / eosio : : chain <nl> <nl> CHAINBASE_SET_INDEX_TYPE ( eosio : : chain : : permission_link_object , eosio : : chain : : permission_link_index ) <nl> mmm a / libraries / chain / include / eosio / chain / permission_object . hpp <nl> ppp b / libraries / chain / include / eosio / chain / permission_object . hpp <nl> namespace eosio { namespace chain { <nl> > <nl> > ; <nl> <nl> - template < > <nl> - struct config : : billable_size < permission_object > { <nl> - static const uint64_t overhead = 6 * config : : overhead_per_row_per_index_ram_bytes ; / / / < 6 indices 2x internal ID , parent , owner , name , name_usage <nl> - static const uint64_t value = 80 + overhead ; / / / < fixed field size + overhead <nl> - } ; <nl> - <nl> + namespace config { <nl> + template < > <nl> + struct billable_size < permission_object > { <nl> + static const uint64_t overhead = 6 * overhead_per_row_per_index_ram_bytes ; / / / < 6 indices 2x internal ID , parent , owner , name , name_usage <nl> + static const uint64_t value = 80 + overhead ; / / / < fixed field size + overhead <nl> + } ; <nl> + } <nl> } } / / eosio : : chain <nl> <nl> CHAINBASE_SET_INDEX_TYPE ( eosio : : chain : : permission_object , eosio : : chain : : permission_index ) <nl>
|
fix some warnings on older GCC builds EOSIO / eos
|
EOSIO/eos
|
081e3bcb451bbfad27ef5b9be0bacfa06f3ac7fc
|
2018-04-03T11:59:53Z
|
mmm a / db / write_thread . cc <nl> ppp b / db / write_thread . cc <nl> WriteThread : : WriteThread ( const ImmutableDBOptions & db_options ) <nl> allow_concurrent_memtable_write_ ( <nl> db_options . allow_concurrent_memtable_write ) , <nl> enable_pipelined_write_ ( db_options . enable_pipelined_write ) , <nl> + max_write_batch_group_size_bytes ( <nl> + db_options . max_write_batch_group_size_bytes ) , <nl> newest_writer_ ( nullptr ) , <nl> newest_memtable_writer_ ( nullptr ) , <nl> last_sequence_ ( 0 ) , <nl> size_t WriteThread : : EnterAsBatchGroupLeader ( Writer * leader , <nl> / / Allow the group to grow up to a maximum size , but if the <nl> / / original write is small , limit the growth so we do not slow <nl> / / down the small write too much . <nl> - size_t max_size = 1 < < 20 ; <nl> - if ( size < = ( 128 < < 10 ) ) { <nl> - max_size = size + ( 128 < < 10 ) ; <nl> + size_t max_size = max_write_batch_group_size_bytes ; <nl> + const uint64_t min_batch_size_bytes = max_write_batch_group_size_bytes / 8 ; <nl> + if ( size < = min_batch_size_bytes ) { <nl> + max_size = size + min_batch_size_bytes ; <nl> } <nl> <nl> leader - > write_group = write_group ; <nl> void WriteThread : : EnterAsMemTableWriter ( Writer * leader , <nl> / / Allow the group to grow up to a maximum size , but if the <nl> / / original write is small , limit the growth so we do not slow <nl> / / down the small write too much . <nl> - size_t max_size = 1 < < 20 ; <nl> - if ( size < = ( 128 < < 10 ) ) { <nl> - max_size = size + ( 128 < < 10 ) ; <nl> + size_t max_size = max_write_batch_group_size_bytes ; <nl> + const uint64_t min_batch_size_bytes = max_write_batch_group_size_bytes / 8 ; <nl> + if ( size < = min_batch_size_bytes ) { <nl> + max_size = size + min_batch_size_bytes ; <nl> } <nl> <nl> leader - > write_group = write_group ; <nl> mmm a / db / write_thread . h <nl> ppp b / db / write_thread . h <nl> class WriteThread { <nl> / / Enable pipelined write to WAL and memtable . <nl> const bool enable_pipelined_write_ ; <nl> <nl> + / / The maximum limit of number of bytes that are written in a single batch <nl> + / / of WAL or memtable write . It is followed when the leader write size <nl> + / / is larger than 1 / 8 of this limit . <nl> + const uint64_t max_write_batch_group_size_bytes ; <nl> + <nl> / / Points to the newest pending writer . Only leader can remove <nl> / / elements , adding can be done lock - free by anybody . <nl> std : : atomic < Writer * > newest_writer_ ; <nl> mmm a / include / rocksdb / options . h <nl> ppp b / include / rocksdb / options . h <nl> struct DBOptions { <nl> / / Default : true <nl> bool enable_write_thread_adaptive_yield = true ; <nl> <nl> + / / The maximum limit of number of bytes that are written in a single batch <nl> + / / of WAL or memtable write . It is followed when the leader write size <nl> + / / is larger than 1 / 8 of this limit . <nl> + / / <nl> + / / Default : 1 MB <nl> + uint64_t max_write_batch_group_size_bytes = 1 < < 20 ; <nl> + <nl> / / The maximum number of microseconds that a write operation will use <nl> / / a yielding spin loop to coordinate with other write threads before <nl> / / blocking on a mutex . ( Assuming write_thread_slow_yield_usec is <nl> mmm a / options / db_options . cc <nl> ppp b / options / db_options . cc <nl> ImmutableDBOptions : : ImmutableDBOptions ( const DBOptions & options ) <nl> table_cache_numshardbits ( options . table_cache_numshardbits ) , <nl> wal_ttl_seconds ( options . WAL_ttl_seconds ) , <nl> wal_size_limit_mb ( options . WAL_size_limit_MB ) , <nl> + max_write_batch_group_size_bytes ( <nl> + options . max_write_batch_group_size_bytes ) , <nl> manifest_preallocation_size ( options . manifest_preallocation_size ) , <nl> allow_mmap_reads ( options . allow_mmap_reads ) , <nl> allow_mmap_writes ( options . allow_mmap_writes ) , <nl> void ImmutableDBOptions : : Dump ( Logger * log ) const { <nl> ROCKS_LOG_HEADER ( log , <nl> " Options . WAL_size_limit_MB : % " PRIu64 , <nl> wal_size_limit_mb ) ; <nl> + ROCKS_LOG_HEADER ( log , <nl> + " " <nl> + " Options . max_write_batch_group_size_bytes : % " PRIu64 , <nl> + max_write_batch_group_size_bytes ) ; <nl> ROCKS_LOG_HEADER ( <nl> log , " Options . manifest_preallocation_size : % " ROCKSDB_PRIszt , <nl> manifest_preallocation_size ) ; <nl> mmm a / options / db_options . h <nl> ppp b / options / db_options . h <nl> struct ImmutableDBOptions { <nl> int table_cache_numshardbits ; <nl> uint64_t wal_ttl_seconds ; <nl> uint64_t wal_size_limit_mb ; <nl> + uint64_t max_write_batch_group_size_bytes ; <nl> size_t manifest_preallocation_size ; <nl> bool allow_mmap_reads ; <nl> bool allow_mmap_writes ; <nl> mmm a / options / options_helper . cc <nl> ppp b / options / options_helper . cc <nl> DBOptions BuildDBOptions ( const ImmutableDBOptions & immutable_db_options , <nl> immutable_db_options . allow_concurrent_memtable_write ; <nl> options . enable_write_thread_adaptive_yield = <nl> immutable_db_options . enable_write_thread_adaptive_yield ; <nl> + options . max_write_batch_group_size_bytes = <nl> + immutable_db_options . max_write_batch_group_size_bytes ; <nl> options . write_thread_max_yield_usec = <nl> immutable_db_options . write_thread_max_yield_usec ; <nl> options . write_thread_slow_yield_usec = <nl> std : : unordered_map < std : : string , OptionTypeInfo > <nl> { " write_thread_slow_yield_usec " , <nl> { offsetof ( struct DBOptions , write_thread_slow_yield_usec ) , <nl> OptionType : : kUInt64T , OptionVerificationType : : kNormal , false , 0 } } , <nl> + { " max_write_batch_group_size_bytes " , <nl> + { offsetof ( struct DBOptions , max_write_batch_group_size_bytes ) , <nl> + OptionType : : kUInt64T , OptionVerificationType : : kNormal , false , 0 } } , <nl> { " write_thread_max_yield_usec " , <nl> { offsetof ( struct DBOptions , write_thread_max_yield_usec ) , <nl> OptionType : : kUInt64T , OptionVerificationType : : kNormal , false , 0 } } , <nl> mmm a / options / options_settable_test . cc <nl> ppp b / options / options_settable_test . cc <nl> TEST_F ( OptionsSettableTest , DBOptionsAllFieldsSettable ) { <nl> " delete_obsolete_files_period_micros = 4294967758 ; " <nl> " WAL_ttl_seconds = 4295008036 ; " <nl> " WAL_size_limit_MB = 4295036161 ; " <nl> + " max_write_batch_group_size_bytes = 1048576 ; " <nl> " wal_dir = path / to / wal_dir ; " <nl> " db_write_buffer_size = 2587 ; " <nl> " max_subcompactions = 64330 ; " <nl>
|
Option to make write group size configurable ( )
|
facebook/rocksdb
|
d05c0fe4d10969080df8fed21e05f53aa7ff805a
|
2019-09-12T01:28:33Z
|
new file mode 100644 <nl> index 00000000000 . . cb4b0a92127 <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / . gitignore <nl> <nl> + packages <nl> + * . userprefs <nl> + * . csproj . user <nl> + * . suo <nl> + / TestNugetFeed <nl> \ No newline at end of file <nl> new file mode 100644 <nl> index 00000000000 . . 0eca35c30fb <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / DistribTest . sln <nl> <nl> + <nl> + Microsoft Visual Studio Solution File , Format Version 12 . 00 <nl> + # Visual Studio 2013 <nl> + VisualStudioVersion = 12 . 0 . 31101 . 0 <nl> + MinimumVisualStudioVersion = 10 . 0 . 40219 . 1 <nl> + Project ( " { FAE04EC0 - 301F - 11D3 - BF4B - 00C04F79EFBC } " ) = " DistribTest " , " DistribTest \ DistribTest . csproj " , " { A3E61CC3 - 3710 - 49A3 - A830 - A0066EDBCE2F } " <nl> + EndProject <nl> + Global <nl> + GlobalSection ( SolutionConfigurationPlatforms ) = preSolution <nl> + Debug | Any CPU = Debug | Any CPU <nl> + Release | Any CPU = Release | Any CPU <nl> + EndGlobalSection <nl> + GlobalSection ( ProjectConfigurationPlatforms ) = postSolution <nl> + { A3E61CC3 - 3710 - 49A3 - A830 - A0066EDBCE2F } . Debug | Any CPU . ActiveCfg = Debug | Any CPU <nl> + { A3E61CC3 - 3710 - 49A3 - A830 - A0066EDBCE2F } . Debug | Any CPU . Build . 0 = Debug | Any CPU <nl> + { A3E61CC3 - 3710 - 49A3 - A830 - A0066EDBCE2F } . Release | Any CPU . ActiveCfg = Release | Any CPU <nl> + { A3E61CC3 - 3710 - 49A3 - A830 - A0066EDBCE2F } . Release | Any CPU . Build . 0 = Release | Any CPU <nl> + EndGlobalSection <nl> + GlobalSection ( SolutionProperties ) = preSolution <nl> + HideSolutionNode = FALSE <nl> + EndGlobalSection <nl> + EndGlobal <nl> new file mode 100644 <nl> index 00000000000 . . 1746e3269ed <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / DistribTest / . gitignore <nl> <nl> + bin <nl> + obj <nl> new file mode 100644 <nl> index 00000000000 . . 30d3e094721 <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / DistribTest / App . config <nl> <nl> + < ? xml version = " 1 . 0 " encoding = " utf - 8 " ? > <nl> + < configuration > <nl> + < startup > <nl> + < supportedRuntime version = " v4 . 0 " sku = " . NETFramework , Version = v4 . 5 " / > <nl> + < / startup > <nl> + < runtime > <nl> + < assemblyBinding xmlns = " urn : schemas - microsoft - com : asm . v1 " > <nl> + < dependentAssembly > <nl> + < assemblyIdentity name = " System . Net . Http . Primitives " publicKeyToken = " b03f5f7f11d50a3a " culture = " neutral " / > <nl> + < bindingRedirect oldVersion = " 0 . 0 . 0 . 0 - 4 . 2 . 29 . 0 " newVersion = " 4 . 2 . 29 . 0 " / > <nl> + < / dependentAssembly > <nl> + < / assemblyBinding > <nl> + < / runtime > <nl> + < / configuration > <nl> \ No newline at end of file <nl> new file mode 100644 <nl> index 00000000000 . . a843df1664f <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / DistribTest / DistribTest . csproj <nl> <nl> + < ? xml version = " 1 . 0 " encoding = " utf - 8 " ? > <nl> + < Project ToolsVersion = " 12 . 0 " DefaultTargets = " Build " xmlns = " http : / / schemas . microsoft . com / developer / msbuild / 2003 " > <nl> + < Import Project = " $ ( MSBuildExtensionsPath ) \ $ ( MSBuildToolsVersion ) \ Microsoft . Common . props " Condition = " Exists ( ' $ ( MSBuildExtensionsPath ) \ $ ( MSBuildToolsVersion ) \ Microsoft . Common . props ' ) " / > <nl> + < PropertyGroup > <nl> + < Configuration Condition = " ' $ ( Configuration ) ' = = ' ' " > Debug < / Configuration > <nl> + < Platform Condition = " ' $ ( Platform ) ' = = ' ' " > AnyCPU < / Platform > <nl> + < ProjectGuid > { A3E61CC3 - 3710 - 49A3 - A830 - A0066EDBCE2F } < / ProjectGuid > <nl> + < OutputType > Exe < / OutputType > <nl> + < AppDesignerFolder > Properties < / AppDesignerFolder > <nl> + < RootNamespace > DistribTest < / RootNamespace > <nl> + < AssemblyName > DistribTest < / AssemblyName > <nl> + < TargetFrameworkVersion > v4 . 5 < / TargetFrameworkVersion > <nl> + < FileAlignment > 512 < / FileAlignment > <nl> + < NuGetPackageImportStamp > b86d820c < / NuGetPackageImportStamp > <nl> + < / PropertyGroup > <nl> + < PropertyGroup Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Debug | AnyCPU ' " > <nl> + < PlatformTarget > AnyCPU < / PlatformTarget > <nl> + < DebugSymbols > true < / DebugSymbols > <nl> + < DebugType > full < / DebugType > <nl> + < Optimize > false < / Optimize > <nl> + < OutputPath > bin \ Debug \ < / OutputPath > <nl> + < DefineConstants > DEBUG ; TRACE < / DefineConstants > <nl> + < ErrorReport > prompt < / ErrorReport > <nl> + < WarningLevel > 4 < / WarningLevel > <nl> + < / PropertyGroup > <nl> + < PropertyGroup Condition = " ' $ ( Configuration ) | $ ( Platform ) ' = = ' Release | AnyCPU ' " > <nl> + < PlatformTarget > AnyCPU < / PlatformTarget > <nl> + < DebugType > pdbonly < / DebugType > <nl> + < Optimize > true < / Optimize > <nl> + < OutputPath > bin \ Release \ < / OutputPath > <nl> + < DefineConstants > TRACE < / DefineConstants > <nl> + < ErrorReport > prompt < / ErrorReport > <nl> + < WarningLevel > 4 < / WarningLevel > <nl> + < / PropertyGroup > <nl> + < ItemGroup > <nl> + < Reference Include = " BouncyCastle . Crypto " > <nl> + < HintPath > . . \ packages \ BouncyCastle . 1 . 7 . 0 \ lib \ Net40 - Client \ BouncyCastle . Crypto . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " Google . Apis . Auth " > <nl> + < HintPath > . . \ packages \ Google . Apis . Auth . 1 . 9 . 3 \ lib \ net40 \ Google . Apis . Auth . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " Google . Apis . Auth . PlatformServices " > <nl> + < HintPath > . . \ packages \ Google . Apis . Auth . 1 . 9 . 3 \ lib \ net40 \ Google . Apis . Auth . PlatformServices . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " Google . Apis . Core " > <nl> + < HintPath > . . \ packages \ Google . Apis . Core . 1 . 9 . 3 \ lib \ portable - net40 + sl50 + win + wpa81 + wp80 \ Google . Apis . Core . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " Grpc . Auth " > <nl> + < HintPath > . . \ packages \ Grpc . Auth . 0 . 13 . 0 \ lib \ net45 \ Grpc . Auth . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " Grpc . Core " > <nl> + < HintPath > . . \ packages \ Grpc . Core . 0 . 13 . 0 \ lib \ net45 \ Grpc . Core . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " Microsoft . Threading . Tasks " > <nl> + < HintPath > . . \ packages \ Microsoft . Bcl . Async . 1 . 0 . 168 \ lib \ net40 \ Microsoft . Threading . Tasks . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " Microsoft . Threading . Tasks . Extensions " > <nl> + < HintPath > . . \ packages \ Microsoft . Bcl . Async . 1 . 0 . 168 \ lib \ net40 \ Microsoft . Threading . Tasks . Extensions . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " Microsoft . Threading . Tasks . Extensions . Desktop " > <nl> + < HintPath > . . \ packages \ Microsoft . Bcl . Async . 1 . 0 . 168 \ lib \ net40 \ Microsoft . Threading . Tasks . Extensions . Desktop . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " Newtonsoft . Json , Version = 7 . 0 . 0 . 0 , Culture = neutral , PublicKeyToken = 30ad4fe6b2a6aeed , processorArchitecture = MSIL " > <nl> + < SpecificVersion > False < / SpecificVersion > <nl> + < HintPath > . . \ packages \ Newtonsoft . Json . 7 . 0 . 1 \ lib \ net45 \ Newtonsoft . Json . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " System " / > <nl> + < Reference Include = " System . Core " / > <nl> + < Reference Include = " System . Interactive . Async " > <nl> + < HintPath > . . \ packages \ Ix - Async . 1 . 2 . 3 \ lib \ net45 \ System . Interactive . Async . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " System . Net " / > <nl> + < Reference Include = " System . Net . Http " / > <nl> + < Reference Include = " System . Net . Http . Extensions " > <nl> + < HintPath > . . \ packages \ Microsoft . Net . Http . 2 . 2 . 29 \ lib \ net45 \ System . Net . Http . Extensions . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " System . Net . Http . Primitives " > <nl> + < HintPath > . . \ packages \ Microsoft . Net . Http . 2 . 2 . 29 \ lib \ net45 \ System . Net . Http . Primitives . dll < / HintPath > <nl> + < / Reference > <nl> + < Reference Include = " System . Net . Http . WebRequest " / > <nl> + < Reference Include = " System . Xml . Linq " / > <nl> + < Reference Include = " System . Data . DataSetExtensions " / > <nl> + < Reference Include = " Microsoft . CSharp " / > <nl> + < Reference Include = " System . Data " / > <nl> + < Reference Include = " System . Xml " / > <nl> + < / ItemGroup > <nl> + < ItemGroup > <nl> + < Compile Include = " Program . cs " / > <nl> + < Compile Include = " Properties \ AssemblyInfo . cs " / > <nl> + < / ItemGroup > <nl> + < ItemGroup > <nl> + < None Include = " App . config " / > <nl> + < None Include = " packages . config " / > <nl> + < / ItemGroup > <nl> + < Import Project = " $ ( MSBuildToolsPath ) \ Microsoft . CSharp . targets " / > <nl> + < Import Project = " . . \ packages \ grpc . native . csharp . 0 . 13 . 0 \ build \ portable - net45 + netcore45 + wpa81 + wp8 \ grpc . native . csharp . targets " Condition = " Exists ( ' . . \ packages \ grpc . native . csharp . 0 . 13 . 0 \ build \ portable - net45 + netcore45 + wpa81 + wp8 \ grpc . native . csharp . targets ' ) " / > <nl> + < Target Name = " EnsureNuGetPackageBuildImports " BeforeTargets = " PrepareForBuild " > <nl> + < PropertyGroup > <nl> + < ErrorText > This project references NuGet package ( s ) that are missing on this computer . Enable NuGet Package Restore to download them . For more information , see http : / / go . microsoft . com / fwlink / ? LinkID = 322105 . The missing file is { 0 } . < / ErrorText > <nl> + < / PropertyGroup > <nl> + < Error Condition = " ! Exists ( ' . . \ packages \ grpc . native . csharp . 0 . 13 . 0 \ build \ portable - net45 + netcore45 + wpa81 + wp8 \ grpc . native . csharp . targets ' ) " Text = " $ ( [ System . String ] : : Format ( ' $ ( ErrorText ) ' , ' . . \ packages \ grpc . native . csharp . 0 . 13 . 0 \ build \ portable - net45 + netcore45 + wpa81 + wp8 \ grpc . native . csharp . targets ' ) ) " / > <nl> + < Error Condition = " ! Exists ( ' . . \ packages \ Microsoft . Bcl . Build . 1 . 0 . 21 \ build \ Microsoft . Bcl . Build . targets ' ) " Text = " $ ( [ System . String ] : : Format ( ' $ ( ErrorText ) ' , ' . . \ packages \ Microsoft . Bcl . Build . 1 . 0 . 21 \ build \ Microsoft . Bcl . Build . targets ' ) ) " / > <nl> + < / Target > <nl> + < Import Project = " . . \ packages \ Microsoft . Bcl . Build . 1 . 0 . 21 \ build \ Microsoft . Bcl . Build . targets " Condition = " Exists ( ' . . \ packages \ Microsoft . Bcl . Build . 1 . 0 . 21 \ build \ Microsoft . Bcl . Build . targets ' ) " / > <nl> + < ! - - To modify your build process , add your task inside one of the targets below and uncomment it . <nl> + Other similar extension points exist , see Microsoft . Common . targets . <nl> + < Target Name = " BeforeBuild " > <nl> + < / Target > <nl> + < Target Name = " AfterBuild " > <nl> + < / Target > <nl> + - - > <nl> + < / Project > <nl> \ No newline at end of file <nl> new file mode 100644 <nl> index 00000000000 . . 5a2c0eb5045 <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / DistribTest / Program . cs <nl> <nl> + using System ; <nl> + using Grpc . Core ; <nl> + <nl> + namespace TestGrpcPackage <nl> + { <nl> + class MainClass <nl> + { <nl> + public static void Main ( string [ ] args ) <nl> + { <nl> + / / This code doesn ' t do much but makes sure the native extension is loaded <nl> + / / which is what we are testing here . <nl> + Channel c = new Channel ( " 127 . 0 . 0 . 1 : 1000 " , ChannelCredentials . Insecure ) ; <nl> + c . ShutdownAsync ( ) . Wait ( ) ; <nl> + Console . WriteLine ( " Success ! " ) ; <nl> + } <nl> + } <nl> + } <nl> new file mode 100644 <nl> index 00000000000 . . bc25b263cad <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / DistribTest / Properties / AssemblyInfo . cs <nl> <nl> + using System . Reflection ; <nl> + using System . Runtime . CompilerServices ; <nl> + using System . Runtime . InteropServices ; <nl> + <nl> + / / General Information about an assembly is controlled through the following <nl> + / / set of attributes . Change these attribute values to modify the information <nl> + / / associated with an assembly . <nl> + [ assembly : AssemblyTitle ( " DistribTest " ) ] <nl> + [ assembly : AssemblyDescription ( " " ) ] <nl> + [ assembly : AssemblyConfiguration ( " " ) ] <nl> + [ assembly : AssemblyCompany ( " " ) ] <nl> + [ assembly : AssemblyProduct ( " DistribTest " ) ] <nl> + [ assembly : AssemblyCopyright ( " Copyright © 2016 " ) ] <nl> + [ assembly : AssemblyTrademark ( " " ) ] <nl> + [ assembly : AssemblyCulture ( " " ) ] <nl> + <nl> + / / Setting ComVisible to false makes the types in this assembly not visible <nl> + / / to COM components . If you need to access a type in this assembly from <nl> + / / COM , set the ComVisible attribute to true on that type . <nl> + [ assembly : ComVisible ( false ) ] <nl> + <nl> + / / The following GUID is for the ID of the typelib if this project is exposed to COM <nl> + [ assembly : Guid ( " 68755789 - f103 - 4134 - 9027 - b80a2fc9e21a " ) ] <nl> + <nl> + / / Version information for an assembly consists of the following four values : <nl> + / / <nl> + / / Major Version <nl> + / / Minor Version <nl> + / / Build Number <nl> + / / Revision <nl> + / / <nl> + / / You can specify all the values or you can default the Build and Revision Numbers <nl> + / / by using the ' * ' as shown below : <nl> + / / [ assembly : AssemblyVersion ( " 1 . 0 . * " ) ] <nl> + [ assembly : AssemblyVersion ( " 1 . 0 . 0 . 0 " ) ] <nl> + [ assembly : AssemblyFileVersion ( " 1 . 0 . 0 . 0 " ) ] <nl> new file mode 100644 <nl> index 00000000000 . . ab2fb33de63 <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / DistribTest / packages . config <nl> <nl> + < ? xml version = " 1 . 0 " encoding = " utf - 8 " ? > <nl> + < packages > <nl> + < package id = " BouncyCastle " version = " 1 . 7 . 0 " targetFramework = " net45 " / > <nl> + < package id = " Google . Apis . Auth " version = " 1 . 9 . 3 " targetFramework = " net45 " / > <nl> + < package id = " Google . Apis . Core " version = " 1 . 9 . 3 " targetFramework = " net45 " / > <nl> + < package id = " Grpc " version = " 0 . 13 . 0 " targetFramework = " net45 " / > <nl> + < package id = " Grpc . Auth " version = " 0 . 13 . 0 " targetFramework = " net45 " / > <nl> + < package id = " Grpc . Core " version = " 0 . 13 . 0 " targetFramework = " net45 " / > <nl> + < package id = " grpc . native . csharp " version = " 0 . 13 . 0 " targetFramework = " net45 " / > <nl> + < package id = " Ix - Async " version = " 1 . 2 . 3 " targetFramework = " net45 " / > <nl> + < package id = " Microsoft . Bcl " version = " 1 . 1 . 10 " targetFramework = " net45 " / > <nl> + < package id = " Microsoft . Bcl . Async " version = " 1 . 0 . 168 " targetFramework = " net45 " / > <nl> + < package id = " Microsoft . Bcl . Build " version = " 1 . 0 . 21 " targetFramework = " net45 " / > <nl> + < package id = " Microsoft . Net . Http " version = " 2 . 2 . 29 " targetFramework = " net45 " / > <nl> + < package id = " Newtonsoft . Json " version = " 7 . 0 . 1 " targetFramework = " net45 " / > <nl> + < / packages > <nl> \ No newline at end of file <nl> new file mode 100644 <nl> index 00000000000 . . 5c48bcc9250 <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / NuGet . config <nl> <nl> + < ? xml version = " 1 . 0 " encoding = " utf - 8 " ? > <nl> + < configuration > <nl> + < packageSources > <nl> + < add key = " TestNugetFeed " value = " TestNugetFeed " / > <nl> + < / packageSources > <nl> + < / configuration > <nl> \ No newline at end of file <nl> new file mode 100644 <nl> index 00000000000 . . 50485a30f30 <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / build_vs2015 . bat <nl> <nl> + @ rem Convenience wrapper that runs specified gRPC target using msbuild <nl> + @ rem Usage : build . bat TARGET_NAME <nl> + <nl> + setlocal <nl> + @ rem Set VS variables ( uses Visual Studio 2015 ) <nl> + @ call " % VS140COMNTOOLS % \ . . \ . . \ vc \ vcvarsall . bat " x86 <nl> + <nl> + msbuild % * <nl> + exit / b % ERRORLEVEL % <nl> + endlocal <nl> new file mode 100644 <nl> index 00000000000 . . 1df84668324 <nl> mmm / dev / null <nl> ppp b / test / distrib / csharp / update_version . sh <nl> <nl> + # ! / bin / bash <nl> + <nl> + set - e <nl> + <nl> + cd $ ( dirname $ 0 ) <nl> + <nl> + # Replaces version placeholder with value provided as first argument . <nl> + sed - i " s / __GRPC_NUGET_VERSION__ / $ 1 / g " DistribTest / packages . config DistribTest / DistribTest . csproj <nl> \ No newline at end of file <nl>
|
add C # DistribTest project
|
grpc/grpc
|
d38e372d71e355ac483ac12506118d259ed61f59
|
2016-02-01T22:06:50Z
|
mmm a / Code / CryEngine / CryFlowGraph / FlowSystem / Nodes / FlowAudioRtpcNode . cpp <nl> ppp b / Code / CryEngine / CryFlowGraph / FlowSystem / Nodes / FlowAudioRtpcNode . cpp <nl> class CFlowNode_AudioRtpc final : public CFlowBaseNode < eNCT_Instanced > <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> enum INPUTS <nl> { <nl> - eIn_RtpcName , <nl> - eIn_RtpcValue , <nl> + eIn_ParameterName , <nl> + eIn_ParameterValue , <nl> } ; <nl> <nl> enum OUTPUTS <nl> class CFlowNode_AudioRtpc final : public CFlowBaseNode < eNCT_Instanced > <nl> { <nl> static const SInputPortConfig inputs [ ] = <nl> { <nl> - InputPortConfig < string > ( " audioRTPC_Name " , _HELP ( " RTPC name " ) , " Name " ) , <nl> - InputPortConfig < float > ( " value " , _HELP ( " RTPC value " ) , " Value " ) , <nl> - { 0 } <nl> - } ; <nl> + InputPortConfig < string > ( " audioRTPC_Name " , _HELP ( " Parameter name " ) , " Name " ) , <nl> + InputPortConfig < float > ( " value " , _HELP ( " Parameter value " ) , " Value " ) , <nl> + { 0 } } ; <nl> <nl> static const SOutputPortConfig outputs [ ] = <nl> { <nl> - { 0 } <nl> - } ; <nl> + { 0 } } ; <nl> <nl> config . pInputPorts = inputs ; <nl> config . pOutputPorts = outputs ; <nl> - config . sDescription = _HELP ( " This node sets RTPC values . " ) ; <nl> + config . sDescription = _HELP ( " This node sets parameter values . " ) ; <nl> config . nFlags | = EFLN_TARGET_ENTITY ; <nl> config . SetCategory ( EFLN_APPROVED ) ; <nl> } <nl> class CFlowNode_AudioRtpc final : public CFlowBaseNode < eNCT_Instanced > <nl> <nl> if ( ser . IsReading ( ) ) <nl> { <nl> - SetValue ( pActInfo - > pEntity , fValue ) ; <nl> + Init ( pActInfo ) ; <nl> + m_value = fValue ; <nl> } <nl> } <nl> <nl> class CFlowNode_AudioRtpc final : public CFlowBaseNode < eNCT_Instanced > <nl> } <nl> case eFE_Activate : <nl> { <nl> - if ( IsPortActive ( pActInfo , eIn_RtpcValue ) ) <nl> + if ( IsPortActive ( pActInfo , eIn_ParameterName ) ) <nl> { <nl> - SetValue ( pActInfo - > pEntity , GetPortFloat ( pActInfo , eIn_RtpcValue ) ) ; <nl> + GetParameterId ( pActInfo ) ; <nl> } <nl> <nl> - if ( IsPortActive ( pActInfo , eIn_RtpcName ) ) <nl> + if ( ( IsPortActive ( pActInfo , eIn_ParameterValue ) ) & & ( m_parameterId ! = CryAudio : : InvalidControlId ) ) <nl> { <nl> - GetRtpcId ( pActInfo ) ; <nl> + SetValue ( pActInfo - > pEntity , GetPortFloat ( pActInfo , eIn_ParameterValue ) ) ; <nl> } <nl> <nl> + break ; <nl> + } <nl> + default : <nl> + { <nl> break ; <nl> } <nl> } <nl> class CFlowNode_AudioRtpc final : public CFlowBaseNode < eNCT_Instanced > <nl> private : <nl> <nl> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> - void GetRtpcId ( SActivationInfo * const pActInfo ) <nl> + void GetParameterId ( SActivationInfo * const pActInfo ) <nl> { <nl> - string const & parameterName = GetPortString ( pActInfo , eIn_RtpcName ) ; <nl> + string const & parameterName = GetPortString ( pActInfo , eIn_ParameterName ) ; <nl> <nl> if ( ! parameterName . empty ( ) ) <nl> { <nl> class CFlowNode_AudioRtpc final : public CFlowBaseNode < eNCT_Instanced > <nl> { <nl> if ( gEnv - > pAudioSystem ! = nullptr ) <nl> { <nl> - GetRtpcId ( pActInfo ) ; <nl> - SetValue ( pActInfo - > pEntity , 0 . 0f ) ; <nl> + GetParameterId ( pActInfo ) ; <nl> } <nl> } <nl> <nl> - CryAudio : : ControlId m_parameterId ; <nl> - float m_value ; <nl> - CryAudio : : SRequestUserData m_requestUserData ; <nl> + CryAudio : : ControlId m_parameterId ; <nl> + float m_value ; <nl> } ; <nl> <nl> REGISTER_FLOW_NODE ( " Audio : Rtpc " , CFlowNode_AudioRtpc ) ; <nl>
|
! B ( Audio ) Rtpc flownode was setting its value on initialization .
|
CRYTEK/CRYENGINE
|
58b50c0b6a12817b45b05f96c16cfcddd6de31cd
|
2019-03-15T12:54:26Z
|
mmm a / docs / _static / mxnet - theme / layout . html <nl> ppp b / docs / _static / mxnet - theme / layout . html <nl> <nl> < link rel = " stylesheet " href = " { { pathto ( ' _static / pygments . css ' , 1 ) } } " type = " text / css " / > <nl> { % - endif % } <nl> <nl> - < link rel = " stylesheet " href = " { { pathto ( ' _static / mxnet . css ' , 1 ) } } " > <nl> + < link rel = " stylesheet " href = " { { pathto ( ' _static / mxnet . css ' , 1 ) } } " type = " text / css " > <nl> { % - endmacro % } <nl> <nl> < html lang = " en " > <nl>
|
add type = " text / css " for mxnet . css ( )
|
apache/incubator-mxnet
|
2d0ca16c76b6ff3cd325cb59a2108f01cfef1d64
|
2016-06-19T02:46:19Z
|
mmm a / tensorflow / python / BUILD <nl> ppp b / tensorflow / python / BUILD <nl> cuda_py_test ( <nl> srcs = [ " ops / collective_ops_gpu_test . py " ] , <nl> python_version = " PY3 " , <nl> tags = [ <nl> - " guitar " , <nl> " multi_gpu " , <nl> " no_rocm " , <nl> " no_windows " , <nl> + " noguitar " , # b / 163673583 <nl> ] , <nl> tfrt_enabled = True , <nl> deps = [ <nl>
|
Disable the tests that is timing out for the moment .
|
tensorflow/tensorflow
|
131a9225ed292e762e668cca72bb1ebe3625904c
|
2020-08-12T15:02:34Z
|
mmm a / src / mongo / db / repl / initial_syncer . cpp <nl> ppp b / src / mongo / db / repl / initial_syncer . cpp <nl> StatusWith < Operations > InitialSyncer : : _getNextApplierBatch_inlock ( ) { <nl> OplogApplier : : BatchLimits batchLimits ; <nl> batchLimits . bytes = replBatchLimitBytes . load ( ) ; <nl> batchLimits . ops = OplogApplier : : getBatchLimitOperations ( ) ; <nl> + / / We want a batch boundary after the beginApplyingTimestamp , to make sure all oplog entries <nl> + / / that are part of a transaction before that timestamp are written out before we start applying <nl> + / / entries after them . This is because later entries may be commit or prepare and thus <nl> + / / expect to read the partial entries from the oplog . <nl> + batchLimits . forceBatchBoundaryAfter = _initialSyncState - > beginApplyingTimestamp ; <nl> return _oplogApplier - > getNextApplierBatch ( opCtx . get ( ) , batchLimits ) ; <nl> } <nl> <nl> mmm a / src / mongo / db / repl / oplog_applier . cpp <nl> ppp b / src / mongo / db / repl / oplog_applier . cpp <nl> StatusWith < OplogApplier : : Operations > OplogApplier : : getNextApplierBatch ( <nl> } <nl> } <nl> <nl> + / / If we have a forced batch boundary , apply it . <nl> + if ( totalOps > 0 & & ! batchLimits . forceBatchBoundaryAfter . isNull ( ) & & <nl> + entry . getOpTime ( ) . getTimestamp ( ) > batchLimits . forceBatchBoundaryAfter & & <nl> + ops . back ( ) . getOpTime ( ) . getTimestamp ( ) < = batchLimits . forceBatchBoundaryAfter ) { <nl> + return std : : move ( ops ) ; <nl> + } <nl> + <nl> / / Add op to buffer . <nl> totalOps + = opCount ; <nl> totalBytes + = opBytes ; <nl> mmm a / src / mongo / db / repl / oplog_applier . h <nl> ppp b / src / mongo / db / repl / oplog_applier . h <nl> class OplogApplier { <nl> / / This is intended for implementing slaveDelay , so it should be some number of seconds <nl> / / before now . <nl> boost : : optional < Date_t > slaveDelayLatestTimestamp = { } ; <nl> + <nl> + / / If non - null , the batch will include operations with timestamps either <nl> + / / before - and - including this point or after it , not both . <nl> + Timestamp forceBatchBoundaryAfter ; <nl> } ; <nl> <nl> / / Used to report oplog application progress . <nl>
|
SERVER - 41270 Split batch after beginApplyingTimestamp in initial syncer .
|
mongodb/mongo
|
94a51a07190a945e41166c0987a04227ab5f18f2
|
2019-05-23T01:37:58Z
|
mmm a / tools / MingwBuildEnvironment / Readme . txt <nl> ppp b / tools / MingwBuildEnvironment / Readme . txt <nl> Mingw build environment to build ffmpeg and other libraries <nl> <nl> Installation : <nl> extract msys . 7z to c : \ <nl> + edit c : \ msys \ etc \ fstab if you installed it in a different directory <nl> + edit c : \ msys \ msys . bat and adapt the path to vcvars32 . bat ( line 15 ) <nl> <nl> Open a shell : <nl> - run c : \ msys \ msys . bat <nl> + run c : \ msys \ msys . bat - rxvt <nl> <nl> Source : <nl> - The environment was compiled like described here : http : / / ffmpeg . arrozcru . org / wiki / index . php ? title = Main_Page <nl> - <nl> - Changes : <nl> - I had to adapt the file c : \ msys \ mingw \ include \ vfw . h in order to build without errors . This change might need to be reverted for later builds . <nl> - To do so open the file in an editor and remove the comments from line 673 to 708 ( CAPTUREPARMS and VIDEOHDR are already defined in libavcodec ) . <nl> \ No newline at end of file <nl> + The environment was created like described here : http : / / ffmpeg . arrozcru . org / wiki / index . php ? title = Main_Page <nl> \ No newline at end of file <nl> Binary files a / tools / MingwBuildEnvironment / msys . 7z and b / tools / MingwBuildEnvironment / msys . 7z differ <nl>
|
[ WIN32 ] updated to a fresh and clean mingw environment
|
xbmc/xbmc
|
af65817ef1c7225c87ad16e3101de261bf08a9bb
|
2010-02-01T21:06:11Z
|
mmm a / modules / objdetect / src / haar . cpp <nl> ppp b / modules / objdetect / src / haar . cpp <nl> <nl> # include < stdio . h > <nl> # include " opencv2 / core / internal . hpp " <nl> <nl> - <nl> # if CV_SSE2 | | CV_SSE3 <nl> # if ! CV_SSE4_1 & & ! CV_SSE4_2 <nl> # define _mm_blendv_pd ( a , b , m ) _mm_xor_pd ( a , _mm_and_pd ( _mm_xor_pd ( b , a ) , m ) ) <nl> <nl> # endif <nl> # endif <nl> <nl> - # if CV_AVX <nl> - # define CV_HAAR_USE_AVX 1 <nl> - # else <nl> - # if CV_SSE2 | | CV_SSE3 <nl> - # define CV_HAAR_USE_SSE 1 <nl> - # endif <nl> - # endif <nl> + # if CV_AVX <nl> + # define CV_HAAR_USE_AVX 1 <nl> + # else <nl> + # if CV_SSE2 | | CV_SSE3 <nl> + # define CV_HAAR_USE_SSE 1 <nl> + # endif <nl> + # endif <nl> <nl> / * these settings affect the quality of detection : change with care * / <nl> # define CV_ADJUST_FEATURES 1 <nl> typedef struct CvHidHaarFeature <nl> float weight ; <nl> } <nl> rect [ CV_HAAR_FEATURE_MAX ] ; <nl> - } <nl> - CvHidHaarFeature ; <nl> + } CvHidHaarFeature ; <nl> <nl> <nl> typedef struct CvHidHaarTreeNode <nl> typedef struct CvHidHaarTreeNode <nl> float threshold ; <nl> int left ; <nl> int right ; <nl> - } <nl> - CvHidHaarTreeNode ; <nl> + } CvHidHaarTreeNode ; <nl> <nl> <nl> typedef struct CvHidHaarClassifier <nl> typedef struct CvHidHaarClassifier <nl> / / CvHaarFeature * orig_feature ; <nl> CvHidHaarTreeNode * node ; <nl> float * alpha ; <nl> - } <nl> - CvHidHaarClassifier ; <nl> + } CvHidHaarClassifier ; <nl> <nl> <nl> typedef struct CvHidHaarStageClassifier <nl> typedef struct CvHidHaarStageClassifier <nl> struct CvHidHaarStageClassifier * next ; <nl> struct CvHidHaarStageClassifier * child ; <nl> struct CvHidHaarStageClassifier * parent ; <nl> - } <nl> - CvHidHaarStageClassifier ; <nl> + } CvHidHaarStageClassifier ; <nl> <nl> <nl> - struct CvHidHaarClassifierCascade <nl> + typedef struct CvHidHaarClassifierCascade <nl> { <nl> int count ; <nl> int isStumpBased ; <nl> struct CvHidHaarClassifierCascade <nl> sumtype * p0 , * p1 , * p2 , * p3 ; <nl> <nl> void * * ipp_stages ; <nl> - } ; <nl> + } CvHidHaarClassifierCascade ; <nl> <nl> <nl> const int icv_object_win_border = 1 ; <nl> cvSetImagesForHaarClassifierCascade ( CvHaarClassifierCascade * _cascade , <nl> } <nl> <nl> <nl> - / / AVX version icvEvalHidHaarClassifier . Process 8 CvHidHaarClassifiers per call . Check AVX support before invocation ! ! <nl> + / / AVX version icvEvalHidHaarClassifier . Process 8 CvHidHaarClassifiers per call . Check AVX support before invocation ! ! <nl> # ifdef CV_HAAR_USE_AVX <nl> CV_INLINE <nl> double icvEvalHidHaarClassifierAVX ( CvHidHaarClassifier * classifier , <nl> double variance_norm_factor , size_t p_offset ) <nl> { <nl> int CV_DECL_ALIGNED ( 32 ) idxV [ 8 ] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; <nl> - char flags [ 8 ] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; <nl> + uchar flags [ 8 ] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; <nl> CvHidHaarTreeNode * nodes [ 8 ] ; <nl> double res = 0 ; <nl> - char exitConditionFlag = 0 ; <nl> + uchar exitConditionFlag = 0 ; <nl> for ( ; ; ) <nl> { <nl> - float CV_DECL_ALIGNED ( 32 ) tmp [ 8 ] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; <nl> - nodes [ 0 ] = classifier - > node + idxV [ 0 ] ; <nl> + float CV_DECL_ALIGNED ( 32 ) tmp [ 8 ] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; <nl> + nodes [ 0 ] = ( classifier + 0 ) - > node + idxV [ 0 ] ; <nl> nodes [ 1 ] = ( classifier + 1 ) - > node + idxV [ 1 ] ; <nl> nodes [ 2 ] = ( classifier + 2 ) - > node + idxV [ 2 ] ; <nl> nodes [ 3 ] = ( classifier + 3 ) - > node + idxV [ 3 ] ; <nl> double icvEvalHidHaarClassifierAVX ( CvHidHaarClassifier * classifier , <nl> nodes [ 7 ] = ( classifier + 7 ) - > node + idxV [ 7 ] ; <nl> <nl> __m256 t = _mm256_set1_ps ( variance_norm_factor ) ; <nl> - t = _mm256_mul_ps ( t , _mm256_set_ps ( nodes [ 7 ] - > threshold , nodes [ 6 ] - > threshold , nodes [ 5 ] - > threshold , nodes [ 4 ] - > threshold , nodes [ 3 ] - > threshold , nodes [ 2 ] - > threshold , nodes [ 1 ] - > threshold , nodes [ 0 ] - > threshold ) ) ; <nl> <nl> - __m256 offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 6 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 5 ] - > feature . rect [ 0 ] , p_offset ) , <nl> - calc_sum ( nodes [ 4 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 3 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 2 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 1 ] - > feature . rect [ 0 ] , <nl> - p_offset ) , calc_sum ( nodes [ 0 ] - > feature . rect [ 0 ] , p_offset ) ) ; <nl> - __m256 weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 0 ] . weight , nodes [ 6 ] - > feature . rect [ 0 ] . weight , nodes [ 5 ] - > feature . rect [ 0 ] . weight , <nl> - nodes [ 4 ] - > feature . rect [ 0 ] . weight , nodes [ 3 ] - > feature . rect [ 0 ] . weight , nodes [ 2 ] - > feature . rect [ 0 ] . weight , nodes [ 1 ] - > feature . rect [ 0 ] . weight , nodes [ 0 ] - > feature . rect [ 0 ] . weight ) ; <nl> - __m256 sum = _mm256_mul_ps ( offset , weight ) ; <nl> + t = _mm256_mul_ps ( t , _mm256_set_ps ( nodes [ 7 ] - > threshold , <nl> + nodes [ 6 ] - > threshold , <nl> + nodes [ 5 ] - > threshold , <nl> + nodes [ 4 ] - > threshold , <nl> + nodes [ 3 ] - > threshold , <nl> + nodes [ 2 ] - > threshold , <nl> + nodes [ 1 ] - > threshold , <nl> + nodes [ 0 ] - > threshold ) ) ; <nl> + <nl> + __m256 offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 6 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 5 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 4 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 3 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 2 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 1 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 0 ] - > feature . rect [ 0 ] , p_offset ) ) ; <nl> + <nl> + __m256 weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 6 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 5 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 4 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 3 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 2 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 1 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 0 ] - > feature . rect [ 0 ] . weight ) ; <nl> <nl> - offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 6 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 5 ] - > feature . rect [ 1 ] , p_offset ) , <nl> - calc_sum ( nodes [ 4 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 3 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 2 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 1 ] - > feature . rect [ 1 ] , p_offset ) , <nl> - calc_sum ( nodes [ 0 ] - > feature . rect [ 1 ] , p_offset ) ) ; <nl> - weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 1 ] . weight , nodes [ 6 ] - > feature . rect [ 1 ] . weight , nodes [ 5 ] - > feature . rect [ 1 ] . weight , nodes [ 4 ] - > feature . rect [ 1 ] . weight , <nl> - nodes [ 3 ] - > feature . rect [ 1 ] . weight , nodes [ 2 ] - > feature . rect [ 1 ] . weight , nodes [ 1 ] - > feature . rect [ 1 ] . weight , nodes [ 0 ] - > feature . rect [ 1 ] . weight ) ; <nl> + __m256 sum = _mm256_mul_ps ( offset , weight ) ; <nl> <nl> - sum = _mm256_add_ps ( sum , _mm256_mul_ps ( offset , weight ) ) ; <nl> + offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 6 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 5 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 4 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 3 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 2 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 1 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 0 ] - > feature . rect [ 1 ] , p_offset ) ) ; <nl> + <nl> + weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 6 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 5 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 4 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 3 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 2 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 1 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 0 ] - > feature . rect [ 1 ] . weight ) ; <nl> + <nl> + sum = _mm256_add_ps ( sum , _mm256_mul_ps ( offset , weight ) ) ; <nl> <nl> if ( nodes [ 0 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 0 ] = calc_sum ( nodes [ 0 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 0 ] - > feature . rect [ 2 ] . weight ; <nl> + tmp [ 0 ] = calc_sum ( nodes [ 0 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 0 ] - > feature . rect [ 2 ] . weight ; <nl> if ( nodes [ 1 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 1 ] = calc_sum ( nodes [ 1 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 1 ] - > feature . rect [ 2 ] . weight ; <nl> + tmp [ 1 ] = calc_sum ( nodes [ 1 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 1 ] - > feature . rect [ 2 ] . weight ; <nl> if ( nodes [ 2 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 2 ] = calc_sum ( nodes [ 2 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 2 ] - > feature . rect [ 2 ] . weight ; <nl> + tmp [ 2 ] = calc_sum ( nodes [ 2 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 2 ] - > feature . rect [ 2 ] . weight ; <nl> if ( nodes [ 3 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 3 ] = calc_sum ( nodes [ 3 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 3 ] - > feature . rect [ 2 ] . weight ; <nl> + tmp [ 3 ] = calc_sum ( nodes [ 3 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 3 ] - > feature . rect [ 2 ] . weight ; <nl> if ( nodes [ 4 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 4 ] = calc_sum ( nodes [ 4 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 4 ] - > feature . rect [ 2 ] . weight ; <nl> + tmp [ 4 ] = calc_sum ( nodes [ 4 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 4 ] - > feature . rect [ 2 ] . weight ; <nl> if ( nodes [ 5 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 5 ] = calc_sum ( nodes [ 5 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 5 ] - > feature . rect [ 2 ] . weight ; <nl> + tmp [ 5 ] = calc_sum ( nodes [ 5 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 5 ] - > feature . rect [ 2 ] . weight ; <nl> if ( nodes [ 6 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 6 ] = calc_sum ( nodes [ 6 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 6 ] - > feature . rect [ 2 ] . weight ; <nl> + tmp [ 6 ] = calc_sum ( nodes [ 6 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 6 ] - > feature . rect [ 2 ] . weight ; <nl> if ( nodes [ 7 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 7 ] = calc_sum ( nodes [ 7 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 7 ] - > feature . rect [ 2 ] . weight ; <nl> + tmp [ 7 ] = calc_sum ( nodes [ 7 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 7 ] - > feature . rect [ 2 ] . weight ; <nl> <nl> sum = _mm256_add_ps ( sum , _mm256_load_ps ( tmp ) ) ; <nl> <nl> - __m256 left = _mm256_set_ps ( nodes [ 7 ] - > left , nodes [ 6 ] - > left , nodes [ 5 ] - > left , nodes [ 4 ] - > left , nodes [ 3 ] - > left , nodes [ 2 ] - > left , nodes [ 1 ] - > left , nodes [ 0 ] - > left ) ; <nl> + __m256 left = _mm256_set_ps ( nodes [ 7 ] - > left , nodes [ 6 ] - > left , nodes [ 5 ] - > left , nodes [ 4 ] - > left , nodes [ 3 ] - > left , nodes [ 2 ] - > left , nodes [ 1 ] - > left , nodes [ 0 ] - > left ) ; <nl> __m256 right = _mm256_set_ps ( nodes [ 7 ] - > right , nodes [ 6 ] - > right , nodes [ 5 ] - > right , nodes [ 4 ] - > right , nodes [ 3 ] - > right , nodes [ 2 ] - > right , nodes [ 1 ] - > right , nodes [ 0 ] - > right ) ; <nl> <nl> - _mm256_store_si256 ( ( __m256i * ) idxV , _mm256_cvttps_epi32 ( _mm256_blendv_ps ( right , left , _mm256_cmp_ps ( sum , t , _CMP_LT_OQ ) ) ) ) ; <nl> + _mm256_store_si256 ( ( __m256i * ) idxV , _mm256_cvttps_epi32 ( _mm256_blendv_ps ( right , left , _mm256_cmp_ps ( sum , t , _CMP_LT_OQ ) ) ) ) ; <nl> <nl> for ( int i = 0 ; i < 8 ; i + + ) <nl> { <nl> double icvEvalHidHaarClassifierAVX ( CvHidHaarClassifier * classifier , <nl> if ( ! flags [ i ] ) <nl> { <nl> exitConditionFlag + + ; <nl> - flags [ i ] = 1 ; <nl> - res + = ( ( classifier + i ) - > alpha [ - idxV [ i ] ] ) ; <nl> + flags [ i ] = 1 ; <nl> + res + = ( classifier + i ) - > alpha [ - idxV [ i ] ] ; <nl> } <nl> idxV [ i ] = 0 ; <nl> } <nl> } <nl> - if ( exitConditionFlag = = 8 ) <nl> + if ( exitConditionFlag = = 8 ) <nl> return res ; <nl> } <nl> } <nl> - # endif <nl> + # endif / / CV_HAAR_USE_AVX <nl> <nl> CV_INLINE <nl> double icvEvalHidHaarClassifier ( CvHidHaarClassifier * classifier , <nl> static int <nl> cvRunHaarClassifierCascadeSum ( const CvHaarClassifierCascade * _cascade , <nl> CvPoint pt , double & stage_sum , int start_stage ) <nl> { <nl> - # ifdef CV_HAAR_USE_AVX <nl> - bool haveAVX = false ; <nl> - if ( cv : : checkHardwareSupport ( CV_CPU_AVX ) ) <nl> - if ( __xgetbv ( ) & 0x6 ) / / Check if the OS will save the YMM registers <nl> - { <nl> - haveAVX = true ; <nl> - } <nl> - # else <nl> - # ifdef CV_HAAR_USE_SSE <nl> - bool haveSSE2 = cv : : checkHardwareSupport ( CV_CPU_SSE2 ) ; <nl> - # endif <nl> - # endif <nl> + # ifdef CV_HAAR_USE_AVX <nl> + bool haveAVX = false ; <nl> + if ( cv : : checkHardwareSupport ( CV_CPU_AVX ) ) <nl> + if ( __xgetbv ( ) & 0x6 ) / / Check if the OS will save the YMM registers <nl> + haveAVX = true ; <nl> + # else <nl> + # ifdef CV_HAAR_USE_SSE <nl> + bool haveSSE2 = cv : : checkHardwareSupport ( CV_CPU_SSE2 ) ; <nl> + # endif <nl> + # endif <nl> <nl> int p_offset , pq_offset ; <nl> int i , j ; <nl> cvRunHaarClassifierCascadeSum ( const CvHaarClassifierCascade * _cascade , <nl> while ( ptr ) <nl> { <nl> stage_sum = 0 . 0 ; <nl> + j = 0 ; <nl> <nl> - # ifdef CV_HAAR_USE_AVX <nl> + # ifdef CV_HAAR_USE_AVX <nl> if ( haveAVX ) <nl> { <nl> - for ( ; j < cascade - > stage_classifier [ i ] . count - 8 ; j + = 8 ) <nl> + for ( ; j < = ptr - > count - 8 ; j + = 8 ) <nl> { <nl> stage_sum + = icvEvalHidHaarClassifierAVX ( <nl> - cascade - > stage_classifier [ i ] . classifier + j , <nl> + ptr - > classifier + j , <nl> variance_norm_factor , p_offset ) ; <nl> } <nl> } <nl> - # endif <nl> - for ( j = 0 ; j < ptr - > count ; j + + ) <nl> + # endif <nl> + for ( ; j < ptr - > count ; j + + ) <nl> { <nl> stage_sum + = icvEvalHidHaarClassifier ( ptr - > classifier + j , variance_norm_factor , p_offset ) ; <nl> } <nl> cvRunHaarClassifierCascadeSum ( const CvHaarClassifierCascade * _cascade , <nl> } <nl> else if ( cascade - > isStumpBased ) <nl> { <nl> - # ifdef CV_HAAR_USE_AVX <nl> - if ( haveAVX ) <nl> + # ifdef CV_HAAR_USE_AVX <nl> + if ( haveAVX ) <nl> + { <nl> + CvHidHaarClassifier * classifiers [ 8 ] ; <nl> + CvHidHaarTreeNode * nodes [ 8 ] ; <nl> + for ( i = start_stage ; i < cascade - > count ; i + + ) <nl> { <nl> - CvHidHaarClassifier * classifiers [ 8 ] ; <nl> - CvHidHaarTreeNode * nodes [ 8 ] ; <nl> - for ( i = start_stage ; i < cascade - > count ; i + + ) <nl> + stage_sum = 0 . 0 ; <nl> + j = 0 ; <nl> + float CV_DECL_ALIGNED ( 32 ) buf [ 8 ] ; <nl> + if ( cascade - > stage_classifier [ i ] . two_rects ) <nl> { <nl> - stage_sum = 0 . 0 ; <nl> - j = 0 ; <nl> - float CV_DECL_ALIGNED ( 32 ) buf [ 8 ] ; <nl> - if ( cascade - > stage_classifier [ i ] . two_rects ) <nl> + for ( ; j < = cascade - > stage_classifier [ i ] . count - 8 ; j + = 8 ) <nl> { <nl> - for ( ; j < = cascade - > stage_classifier [ i ] . count - 8 ; j + = 8 ) <nl> - { <nl> - / / __m256 stage_sumPart = _mm256_setzero_ps ( ) ; <nl> - classifiers [ 0 ] = cascade - > stage_classifier [ i ] . classifier + j ; <nl> - nodes [ 0 ] = classifiers [ 0 ] - > node ; <nl> - classifiers [ 1 ] = cascade - > stage_classifier [ i ] . classifier + j + 1 ; <nl> - nodes [ 1 ] = classifiers [ 1 ] - > node ; <nl> - classifiers [ 2 ] = cascade - > stage_classifier [ i ] . classifier + j + 2 ; <nl> - nodes [ 2 ] = classifiers [ 2 ] - > node ; <nl> - classifiers [ 3 ] = cascade - > stage_classifier [ i ] . classifier + j + 3 ; <nl> - nodes [ 3 ] = classifiers [ 3 ] - > node ; <nl> - classifiers [ 4 ] = cascade - > stage_classifier [ i ] . classifier + j + 4 ; <nl> - nodes [ 4 ] = classifiers [ 4 ] - > node ; <nl> - classifiers [ 5 ] = cascade - > stage_classifier [ i ] . classifier + j + 5 ; <nl> - nodes [ 5 ] = classifiers [ 5 ] - > node ; <nl> - classifiers [ 6 ] = cascade - > stage_classifier [ i ] . classifier + j + 6 ; <nl> - nodes [ 6 ] = classifiers [ 6 ] - > node ; <nl> - classifiers [ 7 ] = cascade - > stage_classifier [ i ] . classifier + j + 7 ; <nl> - nodes [ 7 ] = classifiers [ 7 ] - > node ; <nl> - <nl> - __m256 t = _mm256_set1_ps ( variance_norm_factor ) ; <nl> - t = _mm256_mul_ps ( t , _mm256_set_ps ( nodes [ 7 ] - > threshold , nodes [ 6 ] - > threshold , nodes [ 5 ] - > threshold , nodes [ 4 ] - > threshold , nodes [ 3 ] - > threshold , nodes [ 2 ] - > threshold , nodes [ 1 ] - > threshold , nodes [ 0 ] - > threshold ) ) ; <nl> - <nl> - __m256 offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 6 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 5 ] - > feature . rect [ 0 ] , p_offset ) , <nl> - calc_sum ( nodes [ 4 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 3 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 2 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 1 ] - > feature . rect [ 0 ] , <nl> - p_offset ) , calc_sum ( nodes [ 0 ] - > feature . rect [ 0 ] , p_offset ) ) ; <nl> - __m256 weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 0 ] . weight , nodes [ 6 ] - > feature . rect [ 0 ] . weight , nodes [ 5 ] - > feature . rect [ 0 ] . weight , <nl> - nodes [ 4 ] - > feature . rect [ 0 ] . weight , nodes [ 3 ] - > feature . rect [ 0 ] . weight , nodes [ 2 ] - > feature . rect [ 0 ] . weight , nodes [ 1 ] - > feature . rect [ 0 ] . weight , nodes [ 0 ] - > feature . rect [ 0 ] . weight ) ; <nl> - __m256 sum = _mm256_mul_ps ( offset , weight ) ; <nl> - <nl> - offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 6 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 5 ] - > feature . rect [ 1 ] , p_offset ) , <nl> - calc_sum ( nodes [ 4 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 3 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 2 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 1 ] - > feature . rect [ 1 ] , p_offset ) , <nl> - calc_sum ( nodes [ 0 ] - > feature . rect [ 1 ] , p_offset ) ) ; <nl> - weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 1 ] . weight , nodes [ 6 ] - > feature . rect [ 1 ] . weight , nodes [ 5 ] - > feature . rect [ 1 ] . weight , nodes [ 4 ] - > feature . rect [ 1 ] . weight , <nl> - nodes [ 3 ] - > feature . rect [ 1 ] . weight , nodes [ 2 ] - > feature . rect [ 1 ] . weight , nodes [ 1 ] - > feature . rect [ 1 ] . weight , nodes [ 0 ] - > feature . rect [ 1 ] . weight ) ; <nl> - sum = _mm256_add_ps ( sum , _mm256_mul_ps ( offset , weight ) ) ; <nl> - <nl> - __m256 alpha0 = _mm256_set_ps ( classifiers [ 7 ] - > alpha [ 0 ] , classifiers [ 6 ] - > alpha [ 0 ] , classifiers [ 5 ] - > alpha [ 0 ] , classifiers [ 4 ] - > alpha [ 0 ] , classifiers [ 3 ] - > alpha [ 0 ] , <nl> - classifiers [ 2 ] - > alpha [ 0 ] , classifiers [ 1 ] - > alpha [ 0 ] , classifiers [ 0 ] - > alpha [ 0 ] ) ; <nl> - __m256 alpha1 = _mm256_set_ps ( classifiers [ 7 ] - > alpha [ 1 ] , classifiers [ 6 ] - > alpha [ 1 ] , classifiers [ 5 ] - > alpha [ 1 ] , classifiers [ 4 ] - > alpha [ 1 ] , classifiers [ 3 ] - > alpha [ 1 ] , <nl> - classifiers [ 2 ] - > alpha [ 1 ] , classifiers [ 1 ] - > alpha [ 1 ] , classifiers [ 0 ] - > alpha [ 1 ] ) ; <nl> - <nl> - _mm256_store_ps ( buf , _mm256_blendv_ps ( alpha0 , alpha1 , _mm256_cmp_ps ( t , sum , _CMP_LE_OQ ) ) ) ; <nl> - stage_sum + = ( buf [ 0 ] + buf [ 1 ] + buf [ 2 ] + buf [ 3 ] + buf [ 4 ] + buf [ 5 ] + buf [ 6 ] + buf [ 7 ] ) ; <nl> - <nl> - } <nl> + classifiers [ 0 ] = cascade - > stage_classifier [ i ] . classifier + j ; <nl> + nodes [ 0 ] = classifiers [ 0 ] - > node ; <nl> + classifiers [ 1 ] = cascade - > stage_classifier [ i ] . classifier + j + 1 ; <nl> + nodes [ 1 ] = classifiers [ 1 ] - > node ; <nl> + classifiers [ 2 ] = cascade - > stage_classifier [ i ] . classifier + j + 2 ; <nl> + nodes [ 2 ] = classifiers [ 2 ] - > node ; <nl> + classifiers [ 3 ] = cascade - > stage_classifier [ i ] . classifier + j + 3 ; <nl> + nodes [ 3 ] = classifiers [ 3 ] - > node ; <nl> + classifiers [ 4 ] = cascade - > stage_classifier [ i ] . classifier + j + 4 ; <nl> + nodes [ 4 ] = classifiers [ 4 ] - > node ; <nl> + classifiers [ 5 ] = cascade - > stage_classifier [ i ] . classifier + j + 5 ; <nl> + nodes [ 5 ] = classifiers [ 5 ] - > node ; <nl> + classifiers [ 6 ] = cascade - > stage_classifier [ i ] . classifier + j + 6 ; <nl> + nodes [ 6 ] = classifiers [ 6 ] - > node ; <nl> + classifiers [ 7 ] = cascade - > stage_classifier [ i ] . classifier + j + 7 ; <nl> + nodes [ 7 ] = classifiers [ 7 ] - > node ; <nl> + <nl> + __m256 t = _mm256_set1_ps ( variance_norm_factor ) ; <nl> + t = _mm256_mul_ps ( t , _mm256_set_ps ( nodes [ 7 ] - > threshold , <nl> + nodes [ 6 ] - > threshold , <nl> + nodes [ 5 ] - > threshold , <nl> + nodes [ 4 ] - > threshold , <nl> + nodes [ 3 ] - > threshold , <nl> + nodes [ 2 ] - > threshold , <nl> + nodes [ 1 ] - > threshold , <nl> + nodes [ 0 ] - > threshold ) ) ; <nl> + <nl> + __m256 offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 6 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 5 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 4 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 3 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 2 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 1 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 0 ] - > feature . rect [ 0 ] , p_offset ) ) ; <nl> + <nl> + __m256 weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 6 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 5 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 4 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 3 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 2 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 1 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 0 ] - > feature . rect [ 0 ] . weight ) ; <nl> + <nl> + __m256 sum = _mm256_mul_ps ( offset , weight ) ; <nl> + <nl> + offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 6 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 5 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 4 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 3 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 2 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 1 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 0 ] - > feature . rect [ 1 ] , p_offset ) ) ; <nl> + <nl> + weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 6 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 5 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 4 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 3 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 2 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 1 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 0 ] - > feature . rect [ 1 ] . weight ) ; <nl> + <nl> + sum = _mm256_add_ps ( sum , _mm256_mul_ps ( offset , weight ) ) ; <nl> + <nl> + __m256 alpha0 = _mm256_set_ps ( classifiers [ 7 ] - > alpha [ 0 ] , <nl> + classifiers [ 6 ] - > alpha [ 0 ] , <nl> + classifiers [ 5 ] - > alpha [ 0 ] , <nl> + classifiers [ 4 ] - > alpha [ 0 ] , <nl> + classifiers [ 3 ] - > alpha [ 0 ] , <nl> + classifiers [ 2 ] - > alpha [ 0 ] , <nl> + classifiers [ 1 ] - > alpha [ 0 ] , <nl> + classifiers [ 0 ] - > alpha [ 0 ] ) ; <nl> + __m256 alpha1 = _mm256_set_ps ( classifiers [ 7 ] - > alpha [ 1 ] , <nl> + classifiers [ 6 ] - > alpha [ 1 ] , <nl> + classifiers [ 5 ] - > alpha [ 1 ] , <nl> + classifiers [ 4 ] - > alpha [ 1 ] , <nl> + classifiers [ 3 ] - > alpha [ 1 ] , <nl> + classifiers [ 2 ] - > alpha [ 1 ] , <nl> + classifiers [ 1 ] - > alpha [ 1 ] , <nl> + classifiers [ 0 ] - > alpha [ 1 ] ) ; <nl> + <nl> + _mm256_store_ps ( buf , _mm256_blendv_ps ( alpha0 , alpha1 , _mm256_cmp_ps ( t , sum , _CMP_LE_OQ ) ) ) ; <nl> + stage_sum + = ( buf [ 0 ] + buf [ 1 ] + buf [ 2 ] + buf [ 3 ] + buf [ 4 ] + buf [ 5 ] + buf [ 6 ] + buf [ 7 ] ) ; <nl> + } <nl> <nl> - for ( ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> - { <nl> - CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> - CvHidHaarTreeNode * node = classifier - > node ; <nl> + for ( ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> + { <nl> + CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> + CvHidHaarTreeNode * node = classifier - > node ; <nl> <nl> - double t = node - > threshold * variance_norm_factor ; <nl> - double sum = calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight ; <nl> - sum + = calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ; <nl> - stage_sum + = classifier - > alpha [ sum > = t ] ; <nl> - } <nl> + double t = node - > threshold * variance_norm_factor ; <nl> + double sum = calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight ; <nl> + sum + = calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ; <nl> + stage_sum + = classifier - > alpha [ sum > = t ] ; <nl> } <nl> - else <nl> + } <nl> + else <nl> + { <nl> + for ( ; j < = ( cascade - > stage_classifier [ i ] . count ) - 8 ; j + = 8 ) <nl> { <nl> - for ( ; j < = ( cascade - > stage_classifier [ i ] . count ) - 8 ; j + = 8 ) <nl> - { <nl> - float CV_DECL_ALIGNED ( 32 ) tmp [ 8 ] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; <nl> - <nl> - classifiers [ 0 ] = cascade - > stage_classifier [ i ] . classifier + j ; <nl> - nodes [ 0 ] = classifiers [ 0 ] - > node ; <nl> - classifiers [ 1 ] = cascade - > stage_classifier [ i ] . classifier + j + 1 ; <nl> - nodes [ 1 ] = classifiers [ 1 ] - > node ; <nl> - classifiers [ 2 ] = cascade - > stage_classifier [ i ] . classifier + j + 2 ; <nl> - nodes [ 2 ] = classifiers [ 2 ] - > node ; <nl> - classifiers [ 3 ] = cascade - > stage_classifier [ i ] . classifier + j + 3 ; <nl> - nodes [ 3 ] = classifiers [ 3 ] - > node ; <nl> - classifiers [ 4 ] = cascade - > stage_classifier [ i ] . classifier + j + 4 ; <nl> - nodes [ 4 ] = classifiers [ 4 ] - > node ; <nl> - classifiers [ 5 ] = cascade - > stage_classifier [ i ] . classifier + j + 5 ; <nl> - nodes [ 5 ] = classifiers [ 5 ] - > node ; <nl> - classifiers [ 6 ] = cascade - > stage_classifier [ i ] . classifier + j + 6 ; <nl> - nodes [ 6 ] = classifiers [ 6 ] - > node ; <nl> - classifiers [ 7 ] = cascade - > stage_classifier [ i ] . classifier + j + 7 ; <nl> - nodes [ 7 ] = classifiers [ 7 ] - > node ; <nl> - <nl> - __m256 t = _mm256_set1_ps ( variance_norm_factor ) ; <nl> - t = _mm256_mul_ps ( t , _mm256_set_ps ( nodes [ 7 ] - > threshold , nodes [ 6 ] - > threshold , nodes [ 5 ] - > threshold , nodes [ 4 ] - > threshold , nodes [ 3 ] - > threshold , nodes [ 2 ] - > threshold , nodes [ 1 ] - > threshold , nodes [ 0 ] - > threshold ) ) ; <nl> - <nl> - __m256 offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 6 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 5 ] - > feature . rect [ 0 ] , p_offset ) , <nl> - calc_sum ( nodes [ 4 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 3 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 2 ] - > feature . rect [ 0 ] , p_offset ) , calc_sum ( nodes [ 1 ] - > feature . rect [ 0 ] , <nl> - p_offset ) , calc_sum ( nodes [ 0 ] - > feature . rect [ 0 ] , p_offset ) ) ; <nl> - __m256 weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 0 ] . weight , nodes [ 6 ] - > feature . rect [ 0 ] . weight , nodes [ 5 ] - > feature . rect [ 0 ] . weight , <nl> - nodes [ 4 ] - > feature . rect [ 0 ] . weight , nodes [ 3 ] - > feature . rect [ 0 ] . weight , nodes [ 2 ] - > feature . rect [ 0 ] . weight , nodes [ 1 ] - > feature . rect [ 0 ] . weight , nodes [ 0 ] - > feature . rect [ 0 ] . weight ) ; <nl> - __m256 sum = _mm256_mul_ps ( offset , weight ) ; <nl> - <nl> - offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 6 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 5 ] - > feature . rect [ 1 ] , p_offset ) , <nl> - calc_sum ( nodes [ 4 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 3 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 2 ] - > feature . rect [ 1 ] , p_offset ) , calc_sum ( nodes [ 1 ] - > feature . rect [ 1 ] , p_offset ) , <nl> - calc_sum ( nodes [ 0 ] - > feature . rect [ 1 ] , p_offset ) ) ; <nl> - weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 1 ] . weight , nodes [ 6 ] - > feature . rect [ 1 ] . weight , nodes [ 5 ] - > feature . rect [ 1 ] . weight , nodes [ 4 ] - > feature . rect [ 1 ] . weight , <nl> - nodes [ 3 ] - > feature . rect [ 1 ] . weight , nodes [ 2 ] - > feature . rect [ 1 ] . weight , nodes [ 1 ] - > feature . rect [ 1 ] . weight , nodes [ 0 ] - > feature . rect [ 1 ] . weight ) ; <nl> - <nl> - sum = _mm256_add_ps ( sum , _mm256_mul_ps ( offset , weight ) ) ; <nl> - <nl> - if ( nodes [ 0 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 0 ] = calc_sum ( nodes [ 0 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 0 ] - > feature . rect [ 2 ] . weight ; <nl> - if ( nodes [ 1 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 1 ] = calc_sum ( nodes [ 1 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 1 ] - > feature . rect [ 2 ] . weight ; <nl> - if ( nodes [ 2 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 2 ] = calc_sum ( nodes [ 2 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 2 ] - > feature . rect [ 2 ] . weight ; <nl> - if ( nodes [ 3 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 3 ] = calc_sum ( nodes [ 3 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 3 ] - > feature . rect [ 2 ] . weight ; <nl> - if ( nodes [ 4 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 4 ] = calc_sum ( nodes [ 4 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 4 ] - > feature . rect [ 2 ] . weight ; <nl> - if ( nodes [ 5 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 5 ] = calc_sum ( nodes [ 5 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 5 ] - > feature . rect [ 2 ] . weight ; <nl> - if ( nodes [ 6 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 6 ] = calc_sum ( nodes [ 6 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 6 ] - > feature . rect [ 2 ] . weight ; <nl> - if ( nodes [ 7 ] - > feature . rect [ 2 ] . p0 ) <nl> - tmp [ 7 ] = calc_sum ( nodes [ 7 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 7 ] - > feature . rect [ 2 ] . weight ; <nl> - <nl> - sum = _mm256_add_ps ( sum , _mm256_load_ps ( tmp ) ) ; <nl> - <nl> - __m256 alpha0 = _mm256_set_ps ( classifiers [ 7 ] - > alpha [ 0 ] , classifiers [ 6 ] - > alpha [ 0 ] , classifiers [ 5 ] - > alpha [ 0 ] , classifiers [ 4 ] - > alpha [ 0 ] , classifiers [ 3 ] - > alpha [ 0 ] , <nl> - classifiers [ 2 ] - > alpha [ 0 ] , classifiers [ 1 ] - > alpha [ 0 ] , classifiers [ 0 ] - > alpha [ 0 ] ) ; <nl> - __m256 alpha1 = _mm256_set_ps ( classifiers [ 7 ] - > alpha [ 1 ] , classifiers [ 6 ] - > alpha [ 1 ] , classifiers [ 5 ] - > alpha [ 1 ] , classifiers [ 4 ] - > alpha [ 1 ] , classifiers [ 3 ] - > alpha [ 1 ] , <nl> - classifiers [ 2 ] - > alpha [ 1 ] , classifiers [ 1 ] - > alpha [ 1 ] , classifiers [ 0 ] - > alpha [ 1 ] ) ; <nl> - <nl> - __m256 outBuf = _mm256_blendv_ps ( alpha0 , alpha1 , _mm256_cmp_ps ( t , sum , _CMP_LE_OQ ) ) ; <nl> - outBuf = _mm256_hadd_ps ( outBuf , outBuf ) ; <nl> - outBuf = _mm256_hadd_ps ( outBuf , outBuf ) ; <nl> - _mm256_store_ps ( buf , outBuf ) ; <nl> - stage_sum + = ( buf [ 0 ] + buf [ 4 ] ) ; / / ( buf [ 0 ] + buf [ 1 ] + buf [ 2 ] + buf [ 3 ] + buf [ 4 ] + buf [ 5 ] + buf [ 6 ] + buf [ 7 ] ) ; <nl> - } <nl> + float CV_DECL_ALIGNED ( 32 ) tmp [ 8 ] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; <nl> + <nl> + classifiers [ 0 ] = cascade - > stage_classifier [ i ] . classifier + j ; <nl> + nodes [ 0 ] = classifiers [ 0 ] - > node ; <nl> + classifiers [ 1 ] = cascade - > stage_classifier [ i ] . classifier + j + 1 ; <nl> + nodes [ 1 ] = classifiers [ 1 ] - > node ; <nl> + classifiers [ 2 ] = cascade - > stage_classifier [ i ] . classifier + j + 2 ; <nl> + nodes [ 2 ] = classifiers [ 2 ] - > node ; <nl> + classifiers [ 3 ] = cascade - > stage_classifier [ i ] . classifier + j + 3 ; <nl> + nodes [ 3 ] = classifiers [ 3 ] - > node ; <nl> + classifiers [ 4 ] = cascade - > stage_classifier [ i ] . classifier + j + 4 ; <nl> + nodes [ 4 ] = classifiers [ 4 ] - > node ; <nl> + classifiers [ 5 ] = cascade - > stage_classifier [ i ] . classifier + j + 5 ; <nl> + nodes [ 5 ] = classifiers [ 5 ] - > node ; <nl> + classifiers [ 6 ] = cascade - > stage_classifier [ i ] . classifier + j + 6 ; <nl> + nodes [ 6 ] = classifiers [ 6 ] - > node ; <nl> + classifiers [ 7 ] = cascade - > stage_classifier [ i ] . classifier + j + 7 ; <nl> + nodes [ 7 ] = classifiers [ 7 ] - > node ; <nl> + <nl> + __m256 t = _mm256_set1_ps ( variance_norm_factor ) ; <nl> + <nl> + t = _mm256_mul_ps ( t , _mm256_set_ps ( nodes [ 7 ] - > threshold , <nl> + nodes [ 6 ] - > threshold , <nl> + nodes [ 5 ] - > threshold , <nl> + nodes [ 4 ] - > threshold , <nl> + nodes [ 3 ] - > threshold , <nl> + nodes [ 2 ] - > threshold , <nl> + nodes [ 1 ] - > threshold , <nl> + nodes [ 0 ] - > threshold ) ) ; <nl> + <nl> + __m256 offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 6 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 5 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 4 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 3 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 2 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 1 ] - > feature . rect [ 0 ] , p_offset ) , <nl> + calc_sum ( nodes [ 0 ] - > feature . rect [ 0 ] , p_offset ) ) ; <nl> + <nl> + __m256 weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 6 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 5 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 4 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 3 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 2 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 1 ] - > feature . rect [ 0 ] . weight , <nl> + nodes [ 0 ] - > feature . rect [ 0 ] . weight ) ; <nl> + <nl> + __m256 sum = _mm256_mul_ps ( offset , weight ) ; <nl> + <nl> + offset = _mm256_set_ps ( calc_sum ( nodes [ 7 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 6 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 5 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 4 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 3 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 2 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 1 ] - > feature . rect [ 1 ] , p_offset ) , <nl> + calc_sum ( nodes [ 0 ] - > feature . rect [ 1 ] , p_offset ) ) ; <nl> + <nl> + weight = _mm256_set_ps ( nodes [ 7 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 6 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 5 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 4 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 3 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 2 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 1 ] - > feature . rect [ 1 ] . weight , <nl> + nodes [ 0 ] - > feature . rect [ 1 ] . weight ) ; <nl> + <nl> + sum = _mm256_add_ps ( sum , _mm256_mul_ps ( offset , weight ) ) ; <nl> + <nl> + if ( nodes [ 0 ] - > feature . rect [ 2 ] . p0 ) <nl> + tmp [ 0 ] = calc_sum ( nodes [ 0 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 0 ] - > feature . rect [ 2 ] . weight ; <nl> + if ( nodes [ 1 ] - > feature . rect [ 2 ] . p0 ) <nl> + tmp [ 1 ] = calc_sum ( nodes [ 1 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 1 ] - > feature . rect [ 2 ] . weight ; <nl> + if ( nodes [ 2 ] - > feature . rect [ 2 ] . p0 ) <nl> + tmp [ 2 ] = calc_sum ( nodes [ 2 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 2 ] - > feature . rect [ 2 ] . weight ; <nl> + if ( nodes [ 3 ] - > feature . rect [ 2 ] . p0 ) <nl> + tmp [ 3 ] = calc_sum ( nodes [ 3 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 3 ] - > feature . rect [ 2 ] . weight ; <nl> + if ( nodes [ 4 ] - > feature . rect [ 2 ] . p0 ) <nl> + tmp [ 4 ] = calc_sum ( nodes [ 4 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 4 ] - > feature . rect [ 2 ] . weight ; <nl> + if ( nodes [ 5 ] - > feature . rect [ 2 ] . p0 ) <nl> + tmp [ 5 ] = calc_sum ( nodes [ 5 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 5 ] - > feature . rect [ 2 ] . weight ; <nl> + if ( nodes [ 6 ] - > feature . rect [ 2 ] . p0 ) <nl> + tmp [ 6 ] = calc_sum ( nodes [ 6 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 6 ] - > feature . rect [ 2 ] . weight ; <nl> + if ( nodes [ 7 ] - > feature . rect [ 2 ] . p0 ) <nl> + tmp [ 7 ] = calc_sum ( nodes [ 7 ] - > feature . rect [ 2 ] , p_offset ) * nodes [ 7 ] - > feature . rect [ 2 ] . weight ; <nl> + <nl> + sum = _mm256_add_ps ( sum , _mm256_load_ps ( tmp ) ) ; <nl> + <nl> + __m256 alpha0 = _mm256_set_ps ( classifiers [ 7 ] - > alpha [ 0 ] , <nl> + classifiers [ 6 ] - > alpha [ 0 ] , <nl> + classifiers [ 5 ] - > alpha [ 0 ] , <nl> + classifiers [ 4 ] - > alpha [ 0 ] , <nl> + classifiers [ 3 ] - > alpha [ 0 ] , <nl> + classifiers [ 2 ] - > alpha [ 0 ] , <nl> + classifiers [ 1 ] - > alpha [ 0 ] , <nl> + classifiers [ 0 ] - > alpha [ 0 ] ) ; <nl> + __m256 alpha1 = _mm256_set_ps ( classifiers [ 7 ] - > alpha [ 1 ] , <nl> + classifiers [ 6 ] - > alpha [ 1 ] , <nl> + classifiers [ 5 ] - > alpha [ 1 ] , <nl> + classifiers [ 4 ] - > alpha [ 1 ] , <nl> + classifiers [ 3 ] - > alpha [ 1 ] , <nl> + classifiers [ 2 ] - > alpha [ 1 ] , <nl> + classifiers [ 1 ] - > alpha [ 1 ] , <nl> + classifiers [ 0 ] - > alpha [ 1 ] ) ; <nl> + <nl> + __m256 outBuf = _mm256_blendv_ps ( alpha0 , alpha1 , _mm256_cmp_ps ( t , sum , _CMP_LE_OQ ) ) ; <nl> + outBuf = _mm256_hadd_ps ( outBuf , outBuf ) ; <nl> + outBuf = _mm256_hadd_ps ( outBuf , outBuf ) ; <nl> + _mm256_store_ps ( buf , outBuf ) ; <nl> + stage_sum + = ( buf [ 0 ] + buf [ 4 ] ) ; <nl> + } <nl> <nl> - for ( ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> - { <nl> - CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> - CvHidHaarTreeNode * node = classifier - > node ; <nl> - <nl> - double t = node - > threshold * variance_norm_factor ; <nl> - double sum = calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight ; <nl> - sum + = calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ; <nl> - if ( node - > feature . rect [ 2 ] . p0 ) <nl> - sum + = calc_sum ( node - > feature . rect [ 2 ] , p_offset ) * node - > feature . rect [ 2 ] . weight ; <nl> - stage_sum + = classifier - > alpha [ sum > = t ] ; <nl> - } <nl> + for ( ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> + { <nl> + CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> + CvHidHaarTreeNode * node = classifier - > node ; <nl> + <nl> + double t = node - > threshold * variance_norm_factor ; <nl> + double sum = calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight ; <nl> + sum + = calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ; <nl> + if ( node - > feature . rect [ 2 ] . p0 ) <nl> + sum + = calc_sum ( node - > feature . rect [ 2 ] , p_offset ) * node - > feature . rect [ 2 ] . weight ; <nl> + stage_sum + = classifier - > alpha [ sum > = t ] ; <nl> } <nl> - if ( stage_sum < cascade - > stage_classifier [ i ] . threshold ) <nl> - return - i ; <nl> } <nl> + if ( stage_sum < cascade - > stage_classifier [ i ] . threshold ) <nl> + return - i ; <nl> } <nl> - else <nl> - # endif <nl> - # if defined CV_HAAR_USE_SSE & & CV_HAAR_USE_SSE & & ( ! defined CV_HAAR_USE_AVX | | ! CV_HAAR_USE_AVX ) / / old SSE optimization <nl> - if ( haveSSE2 ) <nl> + } <nl> + else <nl> + # elif defined CV_HAAR_USE_SSE / / old SSE optimization <nl> + if ( haveSSE2 ) <nl> + { <nl> + for ( i = start_stage ; i < cascade - > count ; i + + ) <nl> { <nl> - for ( i = start_stage ; i < cascade - > count ; i + + ) <nl> + __m128d vstage_sum = _mm_setzero_pd ( ) ; <nl> + if ( cascade - > stage_classifier [ i ] . two_rects ) <nl> { <nl> - __m128d vstage_sum = _mm_setzero_pd ( ) ; <nl> - if ( cascade - > stage_classifier [ i ] . two_rects ) <nl> + for ( j = 0 ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> { <nl> - for ( j = 0 ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> - { <nl> - CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> - CvHidHaarTreeNode * node = classifier - > node ; <nl> - <nl> - / / ayasin - NHM perf optim . Avoid use of costly flaky jcc <nl> - __m128d t = _mm_set_sd ( node - > threshold * variance_norm_factor ) ; <nl> - __m128d a = _mm_set_sd ( classifier - > alpha [ 0 ] ) ; <nl> - __m128d b = _mm_set_sd ( classifier - > alpha [ 1 ] ) ; <nl> - __m128d sum = _mm_set_sd ( calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight + <nl> - calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ) ; <nl> - t = _mm_cmpgt_sd ( t , sum ) ; <nl> - vstage_sum = _mm_add_sd ( vstage_sum , _mm_blendv_pd ( b , a , t ) ) ; <nl> - } <nl> + CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> + CvHidHaarTreeNode * node = classifier - > node ; <nl> + <nl> + / / ayasin - NHM perf optim . Avoid use of costly flaky jcc <nl> + __m128d t = _mm_set_sd ( node - > threshold * variance_norm_factor ) ; <nl> + __m128d a = _mm_set_sd ( classifier - > alpha [ 0 ] ) ; <nl> + __m128d b = _mm_set_sd ( classifier - > alpha [ 1 ] ) ; <nl> + __m128d sum = _mm_set_sd ( calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight + <nl> + calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ) ; <nl> + t = _mm_cmpgt_sd ( t , sum ) ; <nl> + vstage_sum = _mm_add_sd ( vstage_sum , _mm_blendv_pd ( b , a , t ) ) ; <nl> } <nl> - else <nl> + } <nl> + else <nl> + { <nl> + for ( j = 0 ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> { <nl> - for ( j = 0 ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> - { <nl> - CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> - CvHidHaarTreeNode * node = classifier - > node ; <nl> - / / ayasin - NHM perf optim . Avoid use of costly flaky jcc <nl> - __m128d t = _mm_set_sd ( node - > threshold * variance_norm_factor ) ; <nl> - __m128d a = _mm_set_sd ( classifier - > alpha [ 0 ] ) ; <nl> - __m128d b = _mm_set_sd ( classifier - > alpha [ 1 ] ) ; <nl> - double _sum = calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight ; <nl> - _sum + = calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ; <nl> - if ( node - > feature . rect [ 2 ] . p0 ) <nl> - _sum + = calc_sum ( node - > feature . rect [ 2 ] , p_offset ) * node - > feature . rect [ 2 ] . weight ; <nl> - __m128d sum = _mm_set_sd ( _sum ) ; <nl> - <nl> - t = _mm_cmpgt_sd ( t , sum ) ; <nl> - vstage_sum = _mm_add_sd ( vstage_sum , _mm_blendv_pd ( b , a , t ) ) ; <nl> - } <nl> + CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> + CvHidHaarTreeNode * node = classifier - > node ; <nl> + / / ayasin - NHM perf optim . Avoid use of costly flaky jcc <nl> + __m128d t = _mm_set_sd ( node - > threshold * variance_norm_factor ) ; <nl> + __m128d a = _mm_set_sd ( classifier - > alpha [ 0 ] ) ; <nl> + __m128d b = _mm_set_sd ( classifier - > alpha [ 1 ] ) ; <nl> + double _sum = calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight ; <nl> + _sum + = calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ; <nl> + if ( node - > feature . rect [ 2 ] . p0 ) <nl> + _sum + = calc_sum ( node - > feature . rect [ 2 ] , p_offset ) * node - > feature . rect [ 2 ] . weight ; <nl> + __m128d sum = _mm_set_sd ( _sum ) ; <nl> + <nl> + t = _mm_cmpgt_sd ( t , sum ) ; <nl> + vstage_sum = _mm_add_sd ( vstage_sum , _mm_blendv_pd ( b , a , t ) ) ; <nl> } <nl> - __m128d i_threshold = _mm_set1_pd ( cascade - > stage_classifier [ i ] . threshold ) ; <nl> - if ( _mm_comilt_sd ( vstage_sum , i_threshold ) ) <nl> - return - i ; <nl> } <nl> + __m128d i_threshold = _mm_set1_pd ( cascade - > stage_classifier [ i ] . threshold ) ; <nl> + if ( _mm_comilt_sd ( vstage_sum , i_threshold ) ) <nl> + return - i ; <nl> } <nl> - else <nl> - # endif <nl> + } <nl> + else <nl> + # endif / / AVX or SSE <nl> + { <nl> + for ( i = start_stage ; i < cascade - > count ; i + + ) <nl> { <nl> - for ( i = start_stage ; i < cascade - > count ; i + + ) <nl> + stage_sum = 0 . 0 ; <nl> + if ( cascade - > stage_classifier [ i ] . two_rects ) <nl> { <nl> - stage_sum = 0 . 0 ; <nl> - if ( cascade - > stage_classifier [ i ] . two_rects ) <nl> + for ( j = 0 ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> { <nl> - for ( j = 0 ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> - { <nl> - CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> - CvHidHaarTreeNode * node = classifier - > node ; <nl> - double t = node - > threshold * variance_norm_factor ; <nl> - double sum = calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight ; <nl> - sum + = calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ; <nl> - stage_sum + = classifier - > alpha [ sum > = t ] ; <nl> - } <nl> + CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> + CvHidHaarTreeNode * node = classifier - > node ; <nl> + double t = node - > threshold * variance_norm_factor ; <nl> + double sum = calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight ; <nl> + sum + = calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ; <nl> + stage_sum + = classifier - > alpha [ sum > = t ] ; <nl> } <nl> - else <nl> + } <nl> + else <nl> + { <nl> + for ( j = 0 ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> { <nl> - for ( j = 0 ; j < cascade - > stage_classifier [ i ] . count ; j + + ) <nl> - { <nl> - CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> - CvHidHaarTreeNode * node = classifier - > node ; <nl> - double t = node - > threshold * variance_norm_factor ; <nl> - double sum = calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight ; <nl> - sum + = calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ; <nl> - if ( node - > feature . rect [ 2 ] . p0 ) <nl> - sum + = calc_sum ( node - > feature . rect [ 2 ] , p_offset ) * node - > feature . rect [ 2 ] . weight ; <nl> - stage_sum + = classifier - > alpha [ sum > = t ] ; <nl> - } <nl> + CvHidHaarClassifier * classifier = cascade - > stage_classifier [ i ] . classifier + j ; <nl> + CvHidHaarTreeNode * node = classifier - > node ; <nl> + double t = node - > threshold * variance_norm_factor ; <nl> + double sum = calc_sum ( node - > feature . rect [ 0 ] , p_offset ) * node - > feature . rect [ 0 ] . weight ; <nl> + sum + = calc_sum ( node - > feature . rect [ 1 ] , p_offset ) * node - > feature . rect [ 1 ] . weight ; <nl> + if ( node - > feature . rect [ 2 ] . p0 ) <nl> + sum + = calc_sum ( node - > feature . rect [ 2 ] , p_offset ) * node - > feature . rect [ 2 ] . weight ; <nl> + stage_sum + = classifier - > alpha [ sum > = t ] ; <nl> } <nl> - if ( stage_sum < cascade - > stage_classifier [ i ] . threshold ) <nl> - return - i ; <nl> } <nl> + if ( stage_sum < cascade - > stage_classifier [ i ] . threshold ) <nl> + return - i ; <nl> } <nl> + } <nl> } <nl> - <nl> else <nl> { <nl> for ( i = start_stage ; i < cascade - > count ; i + + ) <nl> { <nl> stage_sum = 0 . 0 ; <nl> int k = 0 ; <nl> - # ifdef CV_HAAR_USE_AVX <nl> + <nl> + # ifdef CV_HAAR_USE_AVX <nl> if ( haveAVX ) <nl> { <nl> - for ( ; k < cascade - > stage_classifier [ i ] . count - 8 ; k + = 8 ) <nl> + for ( ; k < cascade - > stage_classifier [ i ] . count - 8 ; k + = 8 ) <nl> { <nl> stage_sum + = icvEvalHidHaarClassifierAVX ( <nl> - cascade - > stage_classifier [ i ] . classifier + k , <nl> + cascade - > stage_classifier [ i ] . classifier + k , <nl> variance_norm_factor , p_offset ) ; <nl> } <nl> } <nl> - # endif <nl> - for ( ; k < cascade - > stage_classifier [ i ] . count ; k + + ) <nl> - { <nl> + # endif <nl> + for ( ; k < cascade - > stage_classifier [ i ] . count ; k + + ) <nl> + { <nl> <nl> - stage_sum + = icvEvalHidHaarClassifier ( <nl> - cascade - > stage_classifier [ i ] . classifier + k , <nl> - variance_norm_factor , p_offset ) ; <nl> - } <nl> + stage_sum + = icvEvalHidHaarClassifier ( <nl> + cascade - > stage_classifier [ i ] . classifier + k , <nl> + variance_norm_factor , p_offset ) ; <nl> + } <nl> <nl> if ( stage_sum < cascade - > stage_classifier [ i ] . threshold ) <nl> return - i ; <nl> } <nl> } <nl> - / / _mm256_zeroupper ( ) ; <nl> return 1 ; <nl> } <nl> <nl> struct HaarDetectObjects_ScaleImage_Invoker <nl> Size ssz ( sum1 . cols - 1 - winSize0 . width , y2 - y1 ) ; <nl> int x , y , ystep = factor > 2 ? 1 : 2 ; <nl> <nl> - # ifdef HAVE_IPP <nl> + # ifdef HAVE_IPP <nl> if ( cascade - > hid_cascade - > ipp_stages ) <nl> { <nl> IppiRect iequRect = { equRect . x , equRect . y , equRect . width , equRect . height } ; <nl> struct HaarDetectObjects_ScaleImage_Invoker <nl> } <nl> } <nl> else <nl> - # endif <nl> + # endif / / IPP <nl> for ( y = y1 ; y < y2 ; y + = ystep ) <nl> for ( x = 0 ; x < ssz . width ; x + = ystep ) <nl> { <nl> cvReleaseHaarClassifierCascade ( CvHaarClassifierCascade * * _cascade ) <nl> <nl> # define ICV_HAAR_SIZE_NAME " size " <nl> # define ICV_HAAR_STAGES_NAME " stages " <nl> - # define ICV_HAAR_TREES_NAME " trees " <nl> - # define ICV_HAAR_FEATURE_NAME " feature " <nl> - # define ICV_HAAR_RECTS_NAME " rects " <nl> - # define ICV_HAAR_TILTED_NAME " tilted " <nl> - # define ICV_HAAR_THRESHOLD_NAME " threshold " <nl> - # define ICV_HAAR_LEFT_NODE_NAME " left_node " <nl> - # define ICV_HAAR_LEFT_VAL_NAME " left_val " <nl> - # define ICV_HAAR_RIGHT_NODE_NAME " right_node " <nl> - # define ICV_HAAR_RIGHT_VAL_NAME " right_val " <nl> - # define ICV_HAAR_STAGE_THRESHOLD_NAME " stage_threshold " <nl> - # define ICV_HAAR_PARENT_NAME " parent " <nl> - # define ICV_HAAR_NEXT_NAME " next " <nl> + # define ICV_HAAR_TREES_NAME " trees " <nl> + # define ICV_HAAR_FEATURE_NAME " feature " <nl> + # define ICV_HAAR_RECTS_NAME " rects " <nl> + # define ICV_HAAR_TILTED_NAME " tilted " <nl> + # define ICV_HAAR_THRESHOLD_NAME " threshold " <nl> + # define ICV_HAAR_LEFT_NODE_NAME " left_node " <nl> + # define ICV_HAAR_LEFT_VAL_NAME " left_val " <nl> + # define ICV_HAAR_RIGHT_NODE_NAME " right_node " <nl> + # define ICV_HAAR_RIGHT_VAL_NAME " right_val " <nl> + # define ICV_HAAR_STAGE_THRESHOLD_NAME " stage_threshold " <nl> + # define ICV_HAAR_PARENT_NAME " parent " <nl> + # define ICV_HAAR_NEXT_NAME " next " <nl> <nl> static int <nl> icvIsHaarClassifier ( const void * struct_ptr ) <nl> CvType haar_type ( CV_TYPE_NAME_HAAR , icvIsHaarClassifier , <nl> icvReadHaarClassifier , icvWriteHaarClassifier , <nl> icvCloneHaarClassifier ) ; <nl> <nl> - # if 0 <nl> - namespace cv <nl> - { <nl> - <nl> - HaarClassifierCascade : : HaarClassifierCascade ( ) { } <nl> - HaarClassifierCascade : : HaarClassifierCascade ( const String & filename ) <nl> - { load ( filename ) ; } <nl> - <nl> - bool HaarClassifierCascade : : load ( const String & filename ) <nl> - { <nl> - cascade = Ptr < CvHaarClassifierCascade > ( ( CvHaarClassifierCascade * ) cvLoad ( filename . c_str ( ) , 0 , 0 , 0 ) ) ; <nl> - return ( CvHaarClassifierCascade * ) cascade ! = 0 ; <nl> - } <nl> - <nl> - void HaarClassifierCascade : : detectMultiScale ( const Mat & image , <nl> - Vector < Rect > & objects , double scaleFactor , <nl> - int minNeighbors , int flags , <nl> - Size minSize ) <nl> - { <nl> - MemStorage storage ( cvCreateMemStorage ( 0 ) ) ; <nl> - CvMat _image = image ; <nl> - CvSeq * _objects = cvHaarDetectObjects ( & _image , cascade , storage , scaleFactor , <nl> - minNeighbors , flags , minSize ) ; <nl> - Seq < Rect > ( _objects ) . copyTo ( objects ) ; <nl> - } <nl> - <nl> - int HaarClassifierCascade : : runAt ( Point pt , int startStage , int ) const <nl> - { <nl> - return cvRunHaarClassifierCascade ( cascade , pt , startStage ) ; <nl> - } <nl> - <nl> - void HaarClassifierCascade : : setImages ( const Mat & sum , const Mat & sqsum , <nl> - const Mat & tilted , double scale ) <nl> - { <nl> - CvMat _sum = sum , _sqsum = sqsum , _tilted = tilted ; <nl> - cvSetImagesForHaarClassifierCascade ( cascade , & _sum , & _sqsum , & _tilted , scale ) ; <nl> - } <nl> - <nl> - } <nl> - # endif <nl> - <nl> / * End of file . * / <nl>
|
Fix copy - paste bug in AVX optimization of haar
|
opencv/opencv
|
089de14ed760cd40dc62e960c937ef93e70d1799
|
2012-09-17T09:30:28Z
|
mmm a / THCCachingAllocator . cpp <nl> ppp b / THCCachingAllocator . cpp <nl> struct THCCachingAllocator <nl> } else { <nl> void * ptr ; <nl> size_t alloc_size = small ? kSmallAlloc : size ; <nl> - cudaError_t err = cuda_malloc_retry ( device , & ptr , alloc_size ) ; <nl> + err = cuda_malloc_retry ( device , & ptr , alloc_size ) ; <nl> if ( err ! = cudaSuccess ) { <nl> return err ; <nl> } <nl>
|
avoid shadowing warnings
|
pytorch/pytorch
|
861a3f3a30cdd36050ec33d4de0927a020e40dc1
|
2016-12-17T22:01:11Z
|
Binary files a / images / logo . png and b / images / logo . png differ <nl> mmm a / images / logo . svg <nl> ppp b / images / logo . svg <nl> <nl> xmlns : xlink = " http : / / www . w3 . org / 1999 / xlink " <nl> xmlns : sodipodi = " http : / / sodipodi . sourceforge . net / DTD / sodipodi - 0 . dtd " <nl> xmlns : inkscape = " http : / / www . inkscape . org / namespaces / inkscape " <nl> - sodipodi : docname = " logo . svg " <nl> - inkscape : version = " 1 . 0beta2 ( 2b71d25 , 2019 - 12 - 03 ) " <nl> - sodipodi : version = " 0 . 32 " <nl> - id = " svg1328 " <nl> - height = " 38 . 990997 " <nl> - width = " 38 . 990215 " <nl> - inkscape : output_extension = " org . inkscape . output . svg . inkscape " <nl> + inkscape : export - ydpi = " 96 " <nl> + inkscape : export - xdpi = " 96 " <nl> + inkscape : export - filename = " . / logo . png " <nl> version = " 1 . 1 " <nl> - inkscape : export - filename = " logo . png " <nl> - inkscape : export - xdpi = " 2363 . 6699 " <nl> - inkscape : export - ydpi = " 2363 . 6699 " > <nl> + inkscape : output_extension = " org . inkscape . output . svg . inkscape " <nl> + width = " 256 " <nl> + height = " 256 " <nl> + id = " svg1328 " <nl> + sodipodi : version = " 0 . 32 " <nl> + inkscape : version = " 1 . 0 ( unknown ) " <nl> + sodipodi : docname = " logo . svg " > <nl> + < title <nl> + id = " title917 " > logo < / title > <nl> < defs <nl> id = " defs3 " > <nl> - < inkscape : perspective <nl> - sodipodi : type = " inkscape : persp3d " <nl> - inkscape : vp_x = " 0 : 24 : 1 " <nl> - inkscape : vp_y = " 0 : 1000 : 0 " <nl> - inkscape : vp_z = " 48 : 24 : 1 " <nl> - inkscape : persp3d - origin = " 24 : 16 : 1 " <nl> - id = " perspective51 " / > <nl> < linearGradient <nl> id = " linearGradient6932 " > <nl> < stop <nl> - style = " stop - color : # a2a2a2 ; stop - opacity : 1 ; " <nl> + id = " stop6934 " <nl> offset = " 0 " <nl> - id = " stop6934 " / > <nl> + style = " stop - color : # a2a2a2 ; stop - opacity : 1 ; " / > <nl> < stop <nl> - style = " stop - color : # 4e4e4e ; stop - opacity : 1 ; " <nl> + id = " stop6936 " <nl> offset = " 1 " <nl> - id = " stop6936 " / > <nl> + style = " stop - color : # 4e4e4e ; stop - opacity : 1 ; " / > <nl> < / linearGradient > <nl> < linearGradient <nl> - id = " linearGradient6924 " <nl> - inkscape : collect = " always " > <nl> + inkscape : collect = " always " <nl> + id = " linearGradient6924 " > <nl> < stop <nl> - id = " stop6926 " <nl> + style = " stop - color : # ffffff ; stop - opacity : 1 ; " <nl> offset = " 0 " <nl> - style = " stop - color : # ffffff ; stop - opacity : 1 ; " / > <nl> + id = " stop6926 " / > <nl> < stop <nl> - id = " stop6928 " <nl> + style = " stop - color : # ffffff ; stop - opacity : 0 ; " <nl> offset = " 1 " <nl> - style = " stop - color : # ffffff ; stop - opacity : 0 ; " / > <nl> + id = " stop6928 " / > <nl> < / linearGradient > <nl> < linearGradient <nl> - id = " linearGradient4206 " > <nl> + id = " linearGradient4162 " > <nl> < stop <nl> - id = " stop4208 " <nl> - offset = " 0 . 0000000 " <nl> - style = " stop - color : # 7d4b01 ; stop - opacity : 1 . 0000000 ; " / > <nl> + style = " stop - color : # ababab ; stop - opacity : 1 ; " <nl> + offset = " 0 " <nl> + id = " stop4164 " / > <nl> < stop <nl> - id = " stop4210 " <nl> - offset = " 1 . 0000000 " <nl> - style = " stop - color : # 535353 ; stop - opacity : 1 . 0000000 ; " / > <nl> - < / linearGradient > <nl> - < linearGradient <nl> - id = " linearGradient4176 " <nl> - inkscape : collect = " always " > <nl> + id = " stop4170 " <nl> + offset = " 0 . 19415782 " <nl> + style = " stop - color : # f6f6f6 ; stop - opacity : 1 ; " / > <nl> < stop <nl> - id = " stop4178 " <nl> - offset = " 0 " <nl> - style = " stop - color : # ffffff ; stop - opacity : 1 ; " / > <nl> + style = " stop - color : # b0b0b0 ; stop - opacity : 1 ; " <nl> + offset = " 0 . 39749253 " <nl> + id = " stop4172 " / > <nl> < stop <nl> - id = " stop4180 " <nl> + style = " stop - color : # 585858 ; stop - opacity : 1 ; " <nl> offset = " 1 " <nl> - style = " stop - color : # ffffff ; stop - opacity : 0 ; " / > <nl> + id = " stop4166 " / > <nl> < / linearGradient > <nl> < linearGradient <nl> - id = " linearGradient4162 " > <nl> + id = " linearGradient4162 - 2 " > <nl> < stop <nl> - id = " stop4164 " <nl> + style = " stop - color : # ababab ; stop - opacity : 1 ; " <nl> offset = " 0 " <nl> - style = " stop - color : # ababab ; stop - opacity : 1 ; " / > <nl> + id = " stop4164 - 3 " / > <nl> < stop <nl> - style = " stop - color : # f6f6f6 ; stop - opacity : 1 ; " <nl> + id = " stop4170 - 1 " <nl> offset = " 0 . 19415782 " <nl> - id = " stop4170 " / > <nl> + style = " stop - color : # f6f6f6 ; stop - opacity : 1 ; " / > <nl> < stop <nl> - id = " stop4172 " <nl> + style = " stop - color : # b0b0b0 ; stop - opacity : 1 ; " <nl> offset = " 0 . 39749253 " <nl> - style = " stop - color : # b0b0b0 ; stop - opacity : 1 ; " / > <nl> + id = " stop4172 - 6 " / > <nl> < stop <nl> - id = " stop4166 " <nl> + style = " stop - color : # 585858 ; stop - opacity : 1 ; " <nl> offset = " 1 " <nl> - style = " stop - color : # 585858 ; stop - opacity : 1 ; " / > <nl> + id = " stop4166 - 8 " / > <nl> < / linearGradient > <nl> < linearGradient <nl> - id = " linearGradient4134 " > <nl> + id = " linearGradient6932 - 2 " > <nl> < stop <nl> - id = " stop4136 " <nl> - offset = " 0 . 0000000 " <nl> - style = " stop - color : # 7e807a ; stop - opacity : 1 . 0000000 ; " / > <nl> + id = " stop6934 - 7 " <nl> + offset = " 0 " <nl> + style = " stop - color : # a2a2a2 ; stop - opacity : 1 ; " / > <nl> < stop <nl> - style = " stop - color : # babbb8 ; stop - opacity : 1 . 0000000 ; " <nl> - offset = " 0 . 25000000 " <nl> - id = " stop4148 " / > <nl> + id = " stop6936 - 7 " <nl> + offset = " 1 " <nl> + style = " stop - color : # 4e4e4e ; stop - opacity : 1 ; " / > <nl> + < / linearGradient > <nl> + < linearGradient <nl> + inkscape : collect = " always " <nl> + id = " linearGradient6924 - 2 " > <nl> < stop <nl> - style = " stop - color : # a5a6a3 ; stop - opacity : 1 . 0000000 ; " <nl> - offset = " 0 . 50000000 " <nl> - id = " stop4142 " / > <nl> + style = " stop - color : # ffffff ; stop - opacity : 1 ; " <nl> + offset = " 0 " <nl> + id = " stop6926 - 6 " / > <nl> < stop <nl> - id = " stop4138 " <nl> - offset = " 1 . 0000000 " <nl> - style = " stop - color : # 333432 ; stop - opacity : 1 . 0000000 ; " / > <nl> + style = " stop - color : # ffffff ; stop - opacity : 0 ; " <nl> + offset = " 1 " <nl> + id = " stop6928 - 0 " / > <nl> < / linearGradient > <nl> < linearGradient <nl> - id = " linearGradient4126 " <nl> - inkscape : collect = " always " > <nl> + id = " linearGradient4162 - 3 " > <nl> < stop <nl> - id = " stop4128 " <nl> + style = " stop - color : # ababab ; stop - opacity : 1 ; " <nl> offset = " 0 " <nl> - style = " stop - color : # 000000 ; stop - opacity : 1 ; " / > <nl> + id = " stop4164 - 6 " / > <nl> < stop <nl> - id = " stop4130 " <nl> + id = " stop4170 - 2 " <nl> + offset = " 0 . 19415782 " <nl> + style = " stop - color : # f6f6f6 ; stop - opacity : 1 ; " / > <nl> + < stop <nl> + style = " stop - color : # b0b0b0 ; stop - opacity : 1 ; " <nl> + offset = " 0 . 39749253 " <nl> + id = " stop4172 - 4 " / > <nl> + < stop <nl> + style = " stop - color : # 585858 ; stop - opacity : 1 ; " <nl> offset = " 1 " <nl> - style = " stop - color : # 000000 ; stop - opacity : 0 ; " / > <nl> + id = " stop4166 - 5 " / > <nl> < / linearGradient > <nl> - < radialGradient <nl> - gradientUnits = " userSpaceOnUse " <nl> - gradientTransform = " matrix ( 1 , 0 , 0 , 0 . 5 , 0 , 20 ) " <nl> - r = " 17 . 142857 " <nl> - fy = " 40 " <nl> - fx = " 23 . 857143 " <nl> - cy = " 40 " <nl> - cx = " 23 . 857143 " <nl> - id = " radialGradient4132 " <nl> - xlink : href = " # linearGradient4126 " <nl> - inkscape : collect = " always " / > <nl> < linearGradient <nl> - gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> - gradientUnits = " userSpaceOnUse " <nl> - y2 = " 26 . 71875 " <nl> - x2 = " 38 . 826412 " <nl> - y1 = " 26 . 71875 " <nl> - x1 = " 9 . 3030529 " <nl> - id = " linearGradient4140 " <nl> - xlink : href = " # linearGradient4134 " <nl> - inkscape : collect = " always " / > <nl> + id = " linearGradient6932 - 1 " > <nl> + < stop <nl> + id = " stop6934 - 2 " <nl> + offset = " 0 " <nl> + style = " stop - color : # a2a2a2 ; stop - opacity : 1 ; " / > <nl> + < stop <nl> + id = " stop6936 - 1 " <nl> + offset = " 1 " <nl> + style = " stop - color : # 4e4e4e ; stop - opacity : 1 ; " / > <nl> + < / linearGradient > <nl> < linearGradient <nl> - gradientUnits = " userSpaceOnUse " <nl> - y2 = " 13 . 284962 " <nl> - x2 = " 24 " <nl> - y1 = " 15 . 149456 " <nl> - x1 = " 24 " <nl> - id = " linearGradient4160 " <nl> - xlink : href = " # linearGradient6932 " <nl> - inkscape : collect = " always " / > <nl> + inkscape : collect = " always " <nl> + id = " linearGradient6924 - 9 " > <nl> + < stop <nl> + style = " stop - color : # ffffff ; stop - opacity : 1 ; " <nl> + offset = " 0 " <nl> + id = " stop6926 - 8 " / > <nl> + < stop <nl> + style = " stop - color : # ffffff ; stop - opacity : 0 ; " <nl> + offset = " 1 " <nl> + id = " stop6928 - 2 " / > <nl> + < / linearGradient > <nl> < linearGradient <nl> - gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> - gradientUnits = " userSpaceOnUse " <nl> y2 = " 17 . 511776 " <nl> x2 = " 38 . 013393 " <nl> y1 = " 17 . 511776 " <nl> x1 = " 10 . 116071 " <nl> - id = " linearGradient4168 " <nl> - xlink : href = " # linearGradient4162 " <nl> - inkscape : collect = " always " / > <nl> - < linearGradient <nl> gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> gradientUnits = " userSpaceOnUse " <nl> - y2 = " 56 . 575912 " <nl> - x2 = " 37 . 969398 " <nl> - y1 = " 14 . 004482 " <nl> - x1 = " 17 . 160095 " <nl> - id = " linearGradient4182 " <nl> - xlink : href = " # linearGradient4176 " <nl> + id = " linearGradient3933 " <nl> + xlink : href = " # linearGradient4162 - 3 " <nl> inkscape : collect = " always " / > <nl> < linearGradient <nl> - gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> + y2 = " 13 . 284962 " <nl> + x2 = " 24 " <nl> + y1 = " 15 . 149456 " <nl> + x1 = " 24 " <nl> gradientUnits = " userSpaceOnUse " <nl> - y2 = " 25 . 428572 " <nl> - x2 = " 25 . 207588 " <nl> - y1 = " 21 . 857143 " <nl> - x1 = " 25 . 064732 " <nl> - id = " linearGradient4198 " <nl> - xlink : href = " # linearGradient4206 " <nl> + id = " linearGradient3935 " <nl> + xlink : href = " # linearGradient6932 - 1 " <nl> inkscape : collect = " always " / > <nl> < linearGradient <nl> - gradientTransform = " translate ( - 0 . 142857 , 0 . 928571 ) " <nl> - gradientUnits = " userSpaceOnUse " <nl> y2 = " 24 . 0401 " <nl> x2 = " 16 . 189775 " <nl> y1 = " 19 . 5 " <nl> x1 = " 16 . 07143 " <nl> - id = " linearGradient6930 " <nl> - xlink : href = " # linearGradient6924 " <nl> - inkscape : collect = " always " / > <nl> - < linearGradient <nl> - y2 = " 13 . 284962 " <nl> - x2 = " 24 " <nl> - y1 = " 16 . 525082 " <nl> - x1 = " 24 " <nl> - gradientUnits = " userSpaceOnUse " <nl> - id = " linearGradient6942 " <nl> - xlink : href = " # linearGradient6932 " <nl> - inkscape : collect = " always " / > <nl> - < radialGradient <nl> - r = " 17 . 142857 " <nl> - fy = " 40 " <nl> - fx = " 23 . 857143 " <nl> - cy = " 40 " <nl> - cx = " 23 . 857143 " <nl> - gradientTransform = " matrix ( 1 , 0 , 0 , 0 . 5 , 0 , 20 ) " <nl> + gradientTransform = " translate ( - 0 . 142857 , 0 . 928571 ) " <nl> gradientUnits = " userSpaceOnUse " <nl> - id = " radialGradient6946 " <nl> - xlink : href = " # linearGradient4126 " <nl> + id = " linearGradient3937 " <nl> + xlink : href = " # linearGradient6924 - 9 " <nl> inkscape : collect = " always " / > <nl> < linearGradient <nl> - gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> - gradientUnits = " userSpaceOnUse " <nl> y2 = " 17 . 511776 " <nl> x2 = " 38 . 013393 " <nl> y1 = " 17 . 511776 " <nl> x1 = " 10 . 116071 " <nl> - id = " linearGradient4168 - 5 " <nl> + gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> + gradientUnits = " userSpaceOnUse " <nl> + id = " linearGradient3939 " <nl> xlink : href = " # linearGradient4162 - 2 " <nl> inkscape : collect = " always " / > <nl> < linearGradient <nl> - id = " linearGradient4162 - 2 " > <nl> - < stop <nl> - id = " stop4164 - 3 " <nl> - offset = " 0 " <nl> - style = " stop - color : # ababab ; stop - opacity : 1 ; " / > <nl> - < stop <nl> - style = " stop - color : # f6f6f6 ; stop - opacity : 1 ; " <nl> - offset = " 0 . 19415782 " <nl> - id = " stop4170 - 1 " / > <nl> - < stop <nl> - id = " stop4172 - 6 " <nl> - offset = " 0 . 39749253 " <nl> - style = " stop - color : # b0b0b0 ; stop - opacity : 1 ; " / > <nl> - < stop <nl> - id = " stop4166 - 8 " <nl> - offset = " 1 " <nl> - style = " stop - color : # 585858 ; stop - opacity : 1 ; " / > <nl> - < / linearGradient > <nl> - < linearGradient <nl> - gradientUnits = " userSpaceOnUse " <nl> y2 = " 13 . 284962 " <nl> x2 = " 24 " <nl> y1 = " 15 . 149456 " <nl> x1 = " 24 " <nl> - id = " linearGradient4160 - 8 " <nl> - xlink : href = " # linearGradient6932 - 2 " <nl> - inkscape : collect = " always " / > <nl> - < linearGradient <nl> - id = " linearGradient6932 - 2 " > <nl> - < stop <nl> - style = " stop - color : # a2a2a2 ; stop - opacity : 1 ; " <nl> - offset = " 0 " <nl> - id = " stop6934 - 7 " / > <nl> - < stop <nl> - style = " stop - color : # 4e4e4e ; stop - opacity : 1 ; " <nl> - offset = " 1 " <nl> - id = " stop6936 - 7 " / > <nl> - < / linearGradient > <nl> - < linearGradient <nl> - gradientTransform = " translate ( - 0 . 142857 , 0 . 928571 ) " <nl> gradientUnits = " userSpaceOnUse " <nl> - y2 = " 24 . 0401 " <nl> - x2 = " 16 . 189775 " <nl> - y1 = " 19 . 5 " <nl> - x1 = " 16 . 07143 " <nl> - id = " linearGradient6930 - 1 " <nl> - xlink : href = " # linearGradient6924 - 2 " <nl> + id = " linearGradient3941 " <nl> + xlink : href = " # linearGradient6932 - 2 " <nl> inkscape : collect = " always " / > <nl> - < linearGradient <nl> - id = " linearGradient6924 - 2 " <nl> - inkscape : collect = " always " > <nl> - < stop <nl> - id = " stop6926 - 6 " <nl> - offset = " 0 " <nl> - style = " stop - color : # ffffff ; stop - opacity : 1 ; " / > <nl> - < stop <nl> - id = " stop6928 - 0 " <nl> - offset = " 1 " <nl> - style = " stop - color : # ffffff ; stop - opacity : 0 ; " / > <nl> - < / linearGradient > <nl> < linearGradient <nl> y2 = " 24 . 0401 " <nl> x2 = " 16 . 189775 " <nl> <nl> x1 = " 16 . 07143 " <nl> gradientTransform = " translate ( - 0 . 142857 , 0 . 928571 ) " <nl> gradientUnits = " userSpaceOnUse " <nl> - id = " linearGradient3828 " <nl> + id = " linearGradient3943 " <nl> xlink : href = " # linearGradient6924 - 2 " <nl> inkscape : collect = " always " / > <nl> < linearGradient <nl> - gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> - gradientUnits = " userSpaceOnUse " <nl> y2 = " 17 . 511776 " <nl> x2 = " 38 . 013393 " <nl> y1 = " 17 . 511776 " <nl> x1 = " 10 . 116071 " <nl> - id = " linearGradient4168 - 0 " <nl> - xlink : href = " # linearGradient4162 - 3 " <nl> + gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> + gradientUnits = " userSpaceOnUse " <nl> + id = " linearGradient3945 " <nl> + xlink : href = " # linearGradient4162 " <nl> inkscape : collect = " always " / > <nl> < linearGradient <nl> - id = " linearGradient4162 - 3 " > <nl> - < stop <nl> - id = " stop4164 - 6 " <nl> - offset = " 0 " <nl> - style = " stop - color : # ababab ; stop - opacity : 1 ; " / > <nl> - < stop <nl> - style = " stop - color : # f6f6f6 ; stop - opacity : 1 ; " <nl> - offset = " 0 . 19415782 " <nl> - id = " stop4170 - 2 " / > <nl> - < stop <nl> - id = " stop4172 - 4 " <nl> - offset = " 0 . 39749253 " <nl> - style = " stop - color : # b0b0b0 ; stop - opacity : 1 ; " / > <nl> - < stop <nl> - id = " stop4166 - 5 " <nl> - offset = " 1 " <nl> - style = " stop - color : # 585858 ; stop - opacity : 1 ; " / > <nl> - < / linearGradient > <nl> - < linearGradient <nl> - gradientUnits = " userSpaceOnUse " <nl> y2 = " 13 . 284962 " <nl> x2 = " 24 " <nl> y1 = " 15 . 149456 " <nl> x1 = " 24 " <nl> - id = " linearGradient4160 - 88 " <nl> - xlink : href = " # linearGradient6932 - 1 " <nl> - inkscape : collect = " always " / > <nl> - < linearGradient <nl> - id = " linearGradient6932 - 1 " > <nl> - < stop <nl> - style = " stop - color : # a2a2a2 ; stop - opacity : 1 ; " <nl> - offset = " 0 " <nl> - id = " stop6934 - 2 " / > <nl> - < stop <nl> - style = " stop - color : # 4e4e4e ; stop - opacity : 1 ; " <nl> - offset = " 1 " <nl> - id = " stop6936 - 1 " / > <nl> - < / linearGradient > <nl> - < linearGradient <nl> - gradientTransform = " translate ( - 0 . 142857 , 0 . 928571 ) " <nl> gradientUnits = " userSpaceOnUse " <nl> - y2 = " 24 . 0401 " <nl> - x2 = " 16 . 189775 " <nl> - y1 = " 19 . 5 " <nl> - x1 = " 16 . 07143 " <nl> - id = " linearGradient6930 - 4 " <nl> - xlink : href = " # linearGradient6924 - 9 " <nl> + id = " linearGradient3947 " <nl> + xlink : href = " # linearGradient6932 " <nl> inkscape : collect = " always " / > <nl> - < linearGradient <nl> - id = " linearGradient6924 - 9 " <nl> - inkscape : collect = " always " > <nl> - < stop <nl> - id = " stop6926 - 8 " <nl> - offset = " 0 " <nl> - style = " stop - color : # ffffff ; stop - opacity : 1 ; " / > <nl> - < stop <nl> - id = " stop6928 - 2 " <nl> - offset = " 1 " <nl> - style = " stop - color : # ffffff ; stop - opacity : 0 ; " / > <nl> - < / linearGradient > <nl> < linearGradient <nl> y2 = " 24 . 0401 " <nl> x2 = " 16 . 189775 " <nl> <nl> x1 = " 16 . 07143 " <nl> gradientTransform = " translate ( - 0 . 142857 , 0 . 928571 ) " <nl> gradientUnits = " userSpaceOnUse " <nl> - id = " linearGradient3828 - 4 " <nl> - xlink : href = " # linearGradient6924 - 9 " <nl> - inkscape : collect = " always " / > <nl> - < linearGradient <nl> - inkscape : collect = " always " <nl> - xlink : href = " # linearGradient4162 - 3 " <nl> - id = " linearGradient3933 " <nl> - gradientUnits = " userSpaceOnUse " <nl> - gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> - x1 = " 10 . 116071 " <nl> - y1 = " 17 . 511776 " <nl> - x2 = " 38 . 013393 " <nl> - y2 = " 17 . 511776 " / > <nl> - < linearGradient <nl> - inkscape : collect = " always " <nl> - xlink : href = " # linearGradient6932 - 1 " <nl> - id = " linearGradient3935 " <nl> - gradientUnits = " userSpaceOnUse " <nl> - x1 = " 24 " <nl> - y1 = " 15 . 149456 " <nl> - x2 = " 24 " <nl> - y2 = " 13 . 284962 " / > <nl> - < linearGradient <nl> - inkscape : collect = " always " <nl> - xlink : href = " # linearGradient6924 - 9 " <nl> - id = " linearGradient3937 " <nl> - gradientUnits = " userSpaceOnUse " <nl> - gradientTransform = " translate ( - 0 . 142857 , 0 . 928571 ) " <nl> - x1 = " 16 . 07143 " <nl> - y1 = " 19 . 5 " <nl> - x2 = " 16 . 189775 " <nl> - y2 = " 24 . 0401 " / > <nl> - < linearGradient <nl> - inkscape : collect = " always " <nl> - xlink : href = " # linearGradient4162 - 2 " <nl> - id = " linearGradient3939 " <nl> - gradientUnits = " userSpaceOnUse " <nl> - gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> - x1 = " 10 . 116071 " <nl> - y1 = " 17 . 511776 " <nl> - x2 = " 38 . 013393 " <nl> - y2 = " 17 . 511776 " / > <nl> - < linearGradient <nl> - inkscape : collect = " always " <nl> - xlink : href = " # linearGradient6932 - 2 " <nl> - id = " linearGradient3941 " <nl> - gradientUnits = " userSpaceOnUse " <nl> - x1 = " 24 " <nl> - y1 = " 15 . 149456 " <nl> - x2 = " 24 " <nl> - y2 = " 13 . 284962 " / > <nl> - < linearGradient <nl> - inkscape : collect = " always " <nl> - xlink : href = " # linearGradient6924 - 2 " <nl> - id = " linearGradient3943 " <nl> - gradientUnits = " userSpaceOnUse " <nl> - gradientTransform = " translate ( - 0 . 142857 , 0 . 928571 ) " <nl> - x1 = " 16 . 07143 " <nl> - y1 = " 19 . 5 " <nl> - x2 = " 16 . 189775 " <nl> - y2 = " 24 . 0401 " / > <nl> - < linearGradient <nl> - inkscape : collect = " always " <nl> - xlink : href = " # linearGradient4162 " <nl> - id = " linearGradient3945 " <nl> - gradientUnits = " userSpaceOnUse " <nl> - gradientTransform = " translate ( - 1 . 142857e - 6 , - 1 . 714284 ) " <nl> - x1 = " 10 . 116071 " <nl> - y1 = " 17 . 511776 " <nl> - x2 = " 38 . 013393 " <nl> - y2 = " 17 . 511776 " / > <nl> - < linearGradient <nl> - inkscape : collect = " always " <nl> - xlink : href = " # linearGradient6932 " <nl> - id = " linearGradient3947 " <nl> - gradientUnits = " userSpaceOnUse " <nl> - x1 = " 24 " <nl> - y1 = " 15 . 149456 " <nl> - x2 = " 24 " <nl> - y2 = " 13 . 284962 " / > <nl> - < linearGradient <nl> - inkscape : collect = " always " <nl> - xlink : href = " # linearGradient6924 " <nl> id = " linearGradient3949 " <nl> - gradientUnits = " userSpaceOnUse " <nl> - gradientTransform = " translate ( - 0 . 142857 , 0 . 928571 ) " <nl> - x1 = " 16 . 07143 " <nl> - y1 = " 19 . 5 " <nl> - x2 = " 16 . 189775 " <nl> - y2 = " 24 . 0401 " / > <nl> + xlink : href = " # linearGradient6924 " <nl> + inkscape : collect = " always " / > <nl> < / defs > <nl> < sodipodi : namedview <nl> - stroke = " # a40000 " <nl> - inkscape : window - y = " 23 " <nl> - inkscape : window - x = " 0 " <nl> - inkscape : window - height = " 1005 " <nl> - inkscape : window - width = " 1680 " <nl> - fill = " # cc0000 " <nl> - inkscape : showpageshadow = " false " <nl> - inkscape : document - units = " px " <nl> - inkscape : grid - bbox = " true " <nl> - showgrid = " false " <nl> - inkscape : current - layer = " layer1 " <nl> - inkscape : cy = " 19 . 331142 " <nl> - inkscape : cx = " 12 . 375417 " <nl> - inkscape : zoom = " 9 . 8994949 " <nl> - inkscape : pageshadow = " 2 " <nl> - inkscape : pageopacity = " 0 . 0 " <nl> - borderopacity = " 0 . 25490196 " <nl> - bordercolor = " # 666666 " <nl> - pagecolor = " # ffffff " <nl> - id = " base " <nl> - inkscape : window - maximized = " 1 " <nl> - fit - margin - top = " 0 . 22 " <nl> - fit - margin - left = " 1 . 9 " <nl> - fit - margin - right = " 1 . 9 " <nl> + inkscape : document - rotation = " 0 " <nl> fit - margin - bottom = " 0 . 5 " <nl> - inkscape : document - rotation = " 0 " / > <nl> + fit - margin - right = " 1 . 9 " <nl> + fit - margin - left = " 1 . 9 " <nl> + fit - margin - top = " 0 . 22 " <nl> + inkscape : window - maximized = " 1 " <nl> + id = " base " <nl> + pagecolor = " # ffffff " <nl> + bordercolor = " # 666666 " <nl> + borderopacity = " 0 . 25490196 " <nl> + inkscape : pageopacity = " 0 . 0 " <nl> + inkscape : pageshadow = " 2 " <nl> + inkscape : zoom = " 1 . 75 " <nl> + inkscape : cx = " 124 . 25477 " <nl> + inkscape : cy = " 48 . 766398 " <nl> + inkscape : current - layer = " layer1 " <nl> + showgrid = " false " <nl> + inkscape : grid - bbox = " true " <nl> + inkscape : document - units = " px " <nl> + inkscape : showpageshadow = " false " <nl> + fill = " # cc0000 " <nl> + inkscape : window - width = " 1680 " <nl> + inkscape : window - height = " 1005 " <nl> + inkscape : window - x = " 0 " <nl> + inkscape : window - y = " 23 " <nl> + stroke = " # a40000 " / > <nl> < metadata <nl> id = " metadata4 " > <nl> < rdf : RDF > <nl> <nl> < dc : format > image / svg + xml < / dc : format > <nl> < dc : type <nl> rdf : resource = " http : / / purl . org / dc / dcmitype / StillImage " / > <nl> - < dc : title / > <nl> + < dc : title > logo < / dc : title > <nl> < dc : creator > <nl> < cc : Agent > <nl> - < dc : title > Jakub Steiner < / dc : title > <nl> + < dc : title > < / dc : title > <nl> < / cc : Agent > <nl> < / dc : creator > <nl> - < dc : source > http : / / jimmac . musichall . cz < / dc : source > <nl> + < dc : source > https : / / sqlitebrowser . org < / dc : source > <nl> < dc : subject > <nl> - < rdf : Bag > <nl> - < rdf : li > battery < / rdf : li > <nl> - < rdf : li > apm < / rdf : li > <nl> - < rdf : li > acpi < / rdf : li > <nl> - < rdf : li > power management < / rdf : li > <nl> - < / rdf : Bag > <nl> + < rdf : Bag / > <nl> < / dc : subject > <nl> < cc : license <nl> - rdf : resource = " http : / / creativecommons . org / publicdomain / zero / 1 . 0 / " / > <nl> + rdf : resource = " http : / / creativecommons . org / licenses / by / 4 . 0 / " / > <nl> + < dc : description > DB Browser for SQLite Logo < / dc : description > <nl> + < dc : date > 2020Jun05 < / dc : date > <nl> + < dc : rights > <nl> + < cc : Agent > <nl> + < dc : title > GPL3 + < / dc : title > <nl> + < / cc : Agent > <nl> + < / dc : rights > <nl> < / cc : Work > <nl> < cc : License <nl> - rdf : about = " http : / / creativecommons . org / publicdomain / zero / 1 . 0 / " > <nl> + rdf : about = " http : / / creativecommons . org / licenses / by / 4 . 0 / " > <nl> < cc : permits <nl> rdf : resource = " http : / / creativecommons . org / ns # Reproduction " / > <nl> < cc : permits <nl> rdf : resource = " http : / / creativecommons . org / ns # Distribution " / > <nl> + < cc : requires <nl> + rdf : resource = " http : / / creativecommons . org / ns # Notice " / > <nl> + < cc : requires <nl> + rdf : resource = " http : / / creativecommons . org / ns # Attribution " / > <nl> < cc : permits <nl> rdf : resource = " http : / / creativecommons . org / ns # DerivativeWorks " / > <nl> < / cc : License > <nl> < / rdf : RDF > <nl> < / metadata > <nl> < g <nl> - inkscape : groupmode = " layer " <nl> - inkscape : label = " Battery " <nl> + transform = " translate ( - 4 . 9016066 , 212 . 3059 ) " <nl> id = " layer1 " <nl> - transform = " translate ( - 4 . 9016066 , - 4 . 7031054 ) " > <nl> + inkscape : label = " Battery " <nl> + inkscape : groupmode = " layer " > <nl> < g <nl> - id = " g3916 " <nl> - transform = " matrix ( 1 . 2605247 , 0 , 0 , 1 , - 5 . 9483559 , - 2 . 525382 ) " > <nl> + transform = " matrix ( 8 . 5968764 , 0 , 0 , 6 . 3004722 , - 74 . 054128 , - 252 . 36013 ) " <nl> + id = " g3916 " > <nl> < g <nl> - id = " g3795 - 5 " <nl> - transform = " translate ( 0 . 01853025 , 20 . 001561 ) " > <nl> + transform = " translate ( 0 . 01853025 , 20 . 001561 ) " <nl> + id = " g3795 - 5 " > <nl> < path <nl> - style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : url ( # linearGradient3933 ) ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : none ; stroke - width : 0 . 769 ; marker : none " <nl> - d = " m 23 . 941292 , 8 . 0370051 c - 7 . 625145 , 0 - 13 . 825221 , 2 . 1304449 - 13 . 825222 , 5 . 4751769 v 6 . 557844 c 0 , 3 . 344734 6 . 200076 , 5 . 647898 13 . 825222 , 5 . 647898 7 . 625146 , 0 14 . 072102 , - 2 . 303164 14 . 0721 , - 5 . 647898 v - 6 . 557844 c 0 , - 3 . 344733 - 6 . 446955 , - 5 . 4751769 - 14 . 0721 , - 5 . 4751769 z " <nl> - id = " path4152 - 2 " <nl> + inkscape : connector - curvature = " 0 " <nl> sodipodi : nodetypes = " zsszssz " <nl> - inkscape : connector - curvature = " 0 " / > <nl> + id = " path4152 - 2 " <nl> + d = " m 23 . 941292 , 8 . 0370051 c - 7 . 625145 , 0 - 13 . 825221 , 2 . 1304449 - 13 . 825222 , 5 . 4751769 v 6 . 557844 c 0 , 3 . 344734 6 . 200076 , 5 . 647898 13 . 825222 , 5 . 647898 7 . 625146 , 0 14 . 072102 , - 2 . 303164 14 . 0721 , - 5 . 647898 v - 6 . 557844 c 0 , - 3 . 344733 - 6 . 446955 , - 5 . 4751769 - 14 . 0721 , - 5 . 4751769 z " <nl> + style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : url ( # linearGradient3933 ) ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : none ; stroke - width : 0 . 769 ; marker : none " / > <nl> < ellipse <nl> - ry = " 5 . 5 " <nl> - rx = " 12 . 857142 " <nl> - cy = " 14 . 071428 " <nl> - cx = " 24 " <nl> - transform = " matrix ( 1 . 037291 , 0 , 0 , 0 . 954619 , - 0 . 894979 , - 0 . 0757206 ) " <nl> + style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : # c3c3c3 ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : url ( # linearGradient3935 ) ; stroke - width : 1 . 00493 ; stroke - linecap : butt ; stroke - linejoin : miter ; stroke - miterlimit : 10 ; stroke - dasharray : none ; stroke - dashoffset : 0 ; stroke - opacity : 1 ; marker : none " <nl> id = " path3364 - 9 " <nl> - style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : # c3c3c3 ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : url ( # linearGradient3935 ) ; stroke - width : 1 . 00493 ; stroke - linecap : butt ; stroke - linejoin : miter ; stroke - miterlimit : 10 ; stroke - dasharray : none ; stroke - dashoffset : 0 ; stroke - opacity : 1 ; marker : none " / > <nl> + transform = " matrix ( 1 . 037291 , 0 , 0 , 0 . 954619 , - 0 . 894979 , - 0 . 0757206 ) " <nl> + cx = " 24 " <nl> + cy = " 14 . 071428 " <nl> + rx = " 12 . 857142 " <nl> + ry = " 5 . 5 " / > <nl> < path <nl> - sodipodi : nodetypes = " ccccccc " <nl> - id = " path6922 - 9 " <nl> - d = " m 13 . 642858 , 17 . 999999 0 . 256127 , 5 . 876067 4 . 672444 , 1 . 083684 - 0 . 142857 , - 5 . 602608 c 0 , 0 2 . 071428 , - 0 . 03993 5 . 428571 , - 0 . 254216 - 5 . 215743 , - 0 . 233073 - 11 . 183373 , - 2 . 725109 - 13 . 214285 , - 4 . 179 1 . 416899 , 2 . 092176 3 , 3 . 076073 3 , 3 . 076073 z " <nl> + inkscape : connector - curvature = " 0 " <nl> style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; opacity : 0 . 493671 ; fill : url ( # linearGradient3937 ) ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : none ; stroke - width : 1 ; marker : none " <nl> - inkscape : connector - curvature = " 0 " / > <nl> + d = " m 13 . 642858 , 17 . 999999 0 . 256127 , 5 . 876067 4 . 672444 , 1 . 083684 - 0 . 142857 , - 5 . 602608 c 0 , 0 2 . 071428 , - 0 . 03993 5 . 428571 , - 0 . 254216 - 5 . 215743 , - 0 . 233073 - 11 . 183373 , - 2 . 725109 - 13 . 214285 , - 4 . 179 1 . 416899 , 2 . 092176 3 , 3 . 076073 3 , 3 . 076073 z " <nl> + id = " path6922 - 9 " <nl> + sodipodi : nodetypes = " ccccccc " / > <nl> < / g > <nl> < g <nl> - id = " g3795 - 4 " <nl> - transform = " translate ( - 0 . 00126425 , 9 . 9604398 ) " > <nl> + transform = " translate ( - 0 . 00126425 , 9 . 9604398 ) " <nl> + id = " g3795 - 4 " > <nl> < path <nl> - style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : url ( # linearGradient3939 ) ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : none ; stroke - width : 0 . 769 ; marker : none " <nl> - d = " m 23 . 941292 , 8 . 0359216 c - 7 . 625145 , 0 - 13 . 825221 , 2 . 1315284 - 13 . 825222 , 5 . 4762604 v 6 . 557844 c 0 , 3 . 344734 6 . 200076 , 5 . 647898 13 . 825222 , 5 . 647898 7 . 625146 , 0 14 . 072102 , - 2 . 303164 14 . 0721 , - 5 . 647898 v - 6 . 557844 c 0 , - 3 . 344733 - 6 . 446955 , - 5 . 4762604 - 14 . 0721 , - 5 . 4762604 z " <nl> - id = " path4152 - 9 " <nl> + inkscape : connector - curvature = " 0 " <nl> sodipodi : nodetypes = " zsszssz " <nl> - inkscape : connector - curvature = " 0 " / > <nl> + id = " path4152 - 9 " <nl> + d = " m 23 . 941292 , 8 . 0359216 c - 7 . 625145 , 0 - 13 . 825221 , 2 . 1315284 - 13 . 825222 , 5 . 4762604 v 6 . 557844 c 0 , 3 . 344734 6 . 200076 , 5 . 647898 13 . 825222 , 5 . 647898 7 . 625146 , 0 14 . 072102 , - 2 . 303164 14 . 0721 , - 5 . 647898 v - 6 . 557844 c 0 , - 3 . 344733 - 6 . 446955 , - 5 . 4762604 - 14 . 0721 , - 5 . 4762604 z " <nl> + style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : url ( # linearGradient3939 ) ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : none ; stroke - width : 0 . 769 ; marker : none " / > <nl> < ellipse <nl> - ry = " 5 . 5 " <nl> - rx = " 12 . 857142 " <nl> - cy = " 14 . 071428 " <nl> - cx = " 24 " <nl> - transform = " matrix ( 1 . 037291 , 0 , 0 , 0 . 954619 , - 0 . 894979 , - 0 . 0757206 ) " <nl> + style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : # c3c3c3 ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : url ( # linearGradient3941 ) ; stroke - width : 1 . 00493 ; stroke - linecap : butt ; stroke - linejoin : miter ; stroke - miterlimit : 10 ; stroke - dasharray : none ; stroke - dashoffset : 0 ; stroke - opacity : 1 ; marker : none " <nl> id = " path3364 - 4 " <nl> - style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : # c3c3c3 ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : url ( # linearGradient3941 ) ; stroke - width : 1 . 00493 ; stroke - linecap : butt ; stroke - linejoin : miter ; stroke - miterlimit : 10 ; stroke - dasharray : none ; stroke - dashoffset : 0 ; stroke - opacity : 1 ; marker : none " / > <nl> + transform = " matrix ( 1 . 037291 , 0 , 0 , 0 . 954619 , - 0 . 894979 , - 0 . 0757206 ) " <nl> + cx = " 24 " <nl> + cy = " 14 . 071428 " <nl> + rx = " 12 . 857142 " <nl> + ry = " 5 . 5 " / > <nl> < path <nl> - sodipodi : nodetypes = " ccccccc " <nl> - id = " path6922 - 6 " <nl> - d = " m 13 . 642858 , 17 . 999999 0 . 256127 , 5 . 876067 4 . 672444 , 1 . 083684 - 0 . 142857 , - 5 . 602608 c 0 , 0 2 . 071428 , - 0 . 03981 5 . 428571 , - 0 . 254094 - 5 . 215743 , - 0 . 233073 - 11 . 183373 , - 2 . 725109 - 13 . 214285 , - 4 . 179 1 . 416899 , 2 . 092176 3 , 3 . 075951 3 , 3 . 075951 z " <nl> + inkscape : connector - curvature = " 0 " <nl> style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; opacity : 0 . 493671 ; fill : url ( # linearGradient3943 ) ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : none ; stroke - width : 1 ; marker : none " <nl> - inkscape : connector - curvature = " 0 " / > <nl> + d = " m 13 . 642858 , 17 . 999999 0 . 256127 , 5 . 876067 4 . 672444 , 1 . 083684 - 0 . 142857 , - 5 . 602608 c 0 , 0 2 . 071428 , - 0 . 03981 5 . 428571 , - 0 . 254094 - 5 . 215743 , - 0 . 233073 - 11 . 183373 , - 2 . 725109 - 13 . 214285 , - 4 . 179 1 . 416899 , 2 . 092176 3 , 3 . 075951 3 , 3 . 075951 z " <nl> + id = " path6922 - 6 " <nl> + sodipodi : nodetypes = " ccccccc " / > <nl> < / g > <nl> < g <nl> id = " g3795 " > <nl> < path <nl> - style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : url ( # linearGradient3945 ) ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : none ; stroke - width : 0 . 769 ; marker : none " <nl> - d = " m 23 . 941292 , 8 . 0373063 c - 7 . 625145 , 0 - 13 . 825221 , 2 . 1301437 - 13 . 825222 , 5 . 4748757 v 6 . 557844 c 0 , 3 . 344734 6 . 200076 , 5 . 647898 13 . 825222 , 5 . 647898 7 . 625146 , 0 14 . 072102 , - 2 . 303164 14 . 0721 , - 5 . 647898 v - 6 . 557844 c 0 , - 3 . 344733 - 6 . 446955 , - 5 . 4748757 - 14 . 0721 , - 5 . 4748757 z " <nl> - id = " path4152 " <nl> + inkscape : connector - curvature = " 0 " <nl> sodipodi : nodetypes = " zsszssz " <nl> - inkscape : connector - curvature = " 0 " / > <nl> + id = " path4152 " <nl> + d = " m 23 . 941292 , 8 . 0373063 c - 7 . 625145 , 0 - 13 . 825221 , 2 . 1301437 - 13 . 825222 , 5 . 4748757 v 6 . 557844 c 0 , 3 . 344734 6 . 200076 , 5 . 647898 13 . 825222 , 5 . 647898 7 . 625146 , 0 14 . 072102 , - 2 . 303164 14 . 0721 , - 5 . 647898 v - 6 . 557844 c 0 , - 3 . 344733 - 6 . 446955 , - 5 . 4748757 - 14 . 0721 , - 5 . 4748757 z " <nl> + style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : url ( # linearGradient3945 ) ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : none ; stroke - width : 0 . 769 ; marker : none " / > <nl> < ellipse <nl> - ry = " 5 . 5 " <nl> - rx = " 12 . 857142 " <nl> - cy = " 14 . 071428 " <nl> - cx = " 24 " <nl> - transform = " matrix ( 1 . 037291 , 0 , 0 , 0 . 954619 , - 0 . 894979 , - 0 . 0757206 ) " <nl> + style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : # c3c3c3 ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : url ( # linearGradient3947 ) ; stroke - width : 1 . 00493 ; stroke - linecap : butt ; stroke - linejoin : miter ; stroke - miterlimit : 10 ; stroke - dasharray : none ; stroke - dashoffset : 0 ; stroke - opacity : 1 ; marker : none " <nl> id = " path3364 " <nl> - style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; fill : # c3c3c3 ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : url ( # linearGradient3947 ) ; stroke - width : 1 . 00493 ; stroke - linecap : butt ; stroke - linejoin : miter ; stroke - miterlimit : 10 ; stroke - dasharray : none ; stroke - dashoffset : 0 ; stroke - opacity : 1 ; marker : none " / > <nl> + transform = " matrix ( 1 . 037291 , 0 , 0 , 0 . 954619 , - 0 . 894979 , - 0 . 0757206 ) " <nl> + cx = " 24 " <nl> + cy = " 14 . 071428 " <nl> + rx = " 12 . 857142 " <nl> + ry = " 5 . 5 " / > <nl> < path <nl> - sodipodi : nodetypes = " ccccccc " <nl> - id = " path6922 " <nl> - d = " m 13 . 642858 , 17 . 999999 0 . 256127 , 5 . 876067 4 . 672444 , 1 . 083684 - 0 . 142857 , - 5 . 602608 c 0 , 0 2 . 071428 , - 0 . 04037 5 . 428571 , - 0 . 254655 - 5 . 215743 , - 0 . 233073 - 11 . 183373 , - 2 . 724109 - 13 . 214285 , - 4 . 178 1 . 416899 , 2 . 092176 3 , 3 . 075512 3 , 3 . 075512 z " <nl> + inkscape : connector - curvature = " 0 " <nl> style = " color : # 000000 ; display : block ; overflow : visible ; visibility : visible ; opacity : 0 . 493671 ; fill : url ( # linearGradient3949 ) ; fill - opacity : 1 ; fill - rule : nonzero ; stroke : none ; stroke - width : 1 ; marker : none " <nl> - inkscape : connector - curvature = " 0 " / > <nl> + d = " m 13 . 642858 , 17 . 999999 0 . 256127 , 5 . 876067 4 . 672444 , 1 . 083684 - 0 . 142857 , - 5 . 602608 c 0 , 0 2 . 071428 , - 0 . 04037 5 . 428571 , - 0 . 254655 - 5 . 215743 , - 0 . 233073 - 11 . 183373 , - 2 . 724109 - 13 . 214285 , - 4 . 178 1 . 416899 , 2 . 092176 3 , 3 . 075512 3 , 3 . 075512 z " <nl> + id = " path6922 " <nl> + sodipodi : nodetypes = " ccccccc " / > <nl> < / g > <nl> < / g > <nl> < / g > <nl> Binary files a / src / icons / sqlitebrowser . png and b / src / icons / sqlitebrowser . png differ <nl>
|
Merge pull request from scottfurry / icon_cleanup
|
sqlitebrowser/sqlitebrowser
|
454f182d28173079a8a1f01e9888aa6714b8d701
|
2020-06-06T03:30:19Z
|
mmm a / aten / src / ATen / native / TensorShape . cpp <nl> ppp b / aten / src / ATen / native / TensorShape . cpp <nl> Tensor repeat ( const Tensor & self , IntArrayRef repeats ) { <nl> std : : vector < int64_t > padded_size ( num_new_dimensions , 1 ) ; <nl> padded_size . insert ( padded_size . end ( ) , self . sizes ( ) . begin ( ) , self . sizes ( ) . end ( ) ) ; <nl> std : : vector < int64_t > target_size ( repeats . size ( ) ) ; <nl> + bool zero_tensor = false ; <nl> for ( size_t idx = 0 ; idx < repeats . size ( ) ; + + idx ) { <nl> + if ( repeats [ idx ] = = 0 ) { <nl> + zero_tensor = true ; <nl> + } <nl> target_size [ idx ] = padded_size [ idx ] * repeats [ idx ] ; <nl> } <nl> <nl> Tensor xtensor = self . expand ( padded_size ) ; <nl> <nl> Tensor result = at : : empty ( target_size , self . options ( ) ) ; <nl> + <nl> + / / return an empty tensor if one of the repeat dimensions is zero <nl> + if ( zero_tensor ) { <nl> + return result ; <nl> + } <nl> + <nl> Tensor urtensor = at : : alias ( result ) ; <nl> for ( int64_t i = 0 ; i < xtensor . dim ( ) ; + + i ) { <nl> / / can ' t unfold with step 0 , so make sure step is at least 1 <nl> mmm a / test / test_torch . py <nl> ppp b / test / test_torch . py <nl> def test_expand ( self ) : <nl> self . assertEqual ( torch . zeros ( 0 ) . expand ( ( 0 , ) ) , torch . zeros ( 0 ) ) <nl> <nl> def test_repeat ( self ) : <nl> - <nl> initial_shape = ( 8 , 4 ) <nl> tensor = torch . rand ( * initial_shape ) <nl> <nl> def test_repeat ( self ) : <nl> self . assertEqual ( result . size ( ) , target , ' Error in repeat using result and LongStorage ' ) <nl> self . assertEqual ( result . mean ( 0 ) . view ( 8 , 4 ) , tensor , ' Error in repeat ( not equal ) ' ) <nl> <nl> + zeroDimTarget = torch . Size ( [ 24 , 0 ] ) <nl> + self . assertEqual ( tensor . repeat ( ( 3 , 0 ) ) . size ( ) , zeroDimTarget , " Error when calling with 0 repeats " ) <nl> + <nl> def test_repeat_interleave ( self ) : <nl> x = torch . tensor ( [ 0 , 1 , 2 , 3 ] ) <nl> expected = torch . tensor ( [ 1 , 2 , 2 , 3 , 3 , 3 ] ) <nl>
|
fix crash on torch . Tensor . repeat ( ) for 0 repeats ( )
|
pytorch/pytorch
|
10b1254edd9bcb4d3ab6a47f2bab31edef6485d0
|
2019-08-07T16:16:00Z
|
mmm a / src / properties / propertieswidget . cpp <nl> ppp b / src / properties / propertieswidget . cpp <nl> void PropertiesWidget : : openFile ( const QModelIndex & index ) { <nl> / / Flush data <nl> h . flush_cache ( ) ; <nl> if ( QFile : : exists ( file_path ) ) { <nl> - / / Hack to access samba shares with QDesktopServices : : openUrl <nl> - const QString p = file_path . startsWith ( " / / " ) ? QString ( " file : " ) + file_path : file_path ; <nl> - QDesktopServices : : openUrl ( QUrl : : fromLocalFile ( p ) ) ; <nl> + if ( file_path . startsWith ( " / / " ) ) <nl> + QDesktopServices : : openUrl ( fsutils : : toNativePath ( " file : " + file_path ) ) ; <nl> + else <nl> + QDesktopServices : : openUrl ( QUrl : : fromLocalFile ( file_path ) ) ; <nl> } <nl> else { <nl> QMessageBox : : warning ( this , tr ( " I / O Error " ) , tr ( " This file does not exist yet . " ) ) ; <nl> void PropertiesWidget : : openFolder ( const QModelIndex & index , bool containing_fold <nl> } <nl> if ( path_items . isEmpty ( ) ) <nl> return ; <nl> + <nl> + # ifndef Q_OS_WIN <nl> if ( containing_folder ) <nl> path_items . removeLast ( ) ; <nl> + # endif <nl> + <nl> const QDir saveDir ( h . save_path ( ) ) ; <nl> const QString filename = path_items . join ( " / " ) ; <nl> const QString file_path = fsutils : : expandPath ( saveDir . absoluteFilePath ( filename ) ) ; <nl> qDebug ( " Trying to open folder at % s " , qPrintable ( file_path ) ) ; <nl> / / Flush data <nl> h . flush_cache ( ) ; <nl> - if ( QFile : : exists ( file_path ) ) { <nl> - / / Hack to access samba shares with QDesktopServices : : openUrl <nl> - const QString p = file_path . startsWith ( " / / " ) ? QString ( " file : " ) + file_path : file_path ; <nl> - QDesktopServices : : openUrl ( QUrl : : fromLocalFile ( p ) ) ; <nl> + <nl> + # ifdef Q_OS_WIN <nl> + if ( containing_folder ) { <nl> + / / Syntax is : explorer / select , " C : \ Folder1 \ Folder2 \ file_to_select " <nl> + / / Dir separators MUST be win - style slashes <nl> + QProcess : : startDetached ( " explorer . exe " , QStringList ( ) < < " / select , " < < fsutils : : toNativePath ( file_path ) ) ; <nl> } else { <nl> - QMessageBox : : warning ( this , tr ( " I / O Error " ) , tr ( " This folder does not exist yet . " ) ) ; <nl> + # endif <nl> + if ( QFile : : exists ( file_path ) ) { <nl> + / / Hack to access samba shares with QDesktopServices : : openUrl <nl> + if ( file_path . startsWith ( " / / " ) ) <nl> + QDesktopServices : : openUrl ( fsutils : : toNativePath ( " file : " + file_path ) ) ; <nl> + else <nl> + QDesktopServices : : openUrl ( QUrl : : fromLocalFile ( file_path ) ) ; <nl> + } else { <nl> + QMessageBox : : warning ( this , tr ( " I / O Error " ) , tr ( " This folder does not exist yet . " ) ) ; <nl> + } <nl> + # ifdef Q_OS_WIN <nl> } <nl> + # endif <nl> } <nl> <nl> void PropertiesWidget : : displayFilesListMenu ( const QPoint & ) { <nl> void PropertiesWidget : : displayFilesListMenu ( const QPoint & ) { <nl> QAction * actOpenContainingFolder = 0 ; <nl> QAction * actRename = 0 ; <nl> if ( selectedRows . size ( ) = = 1 ) { <nl> - actOpen = myFilesLlistMenu . addAction ( tr ( " Open " ) ) ; <nl> + actOpen = myFilesLlistMenu . addAction ( IconProvider : : instance ( ) - > getIcon ( " folder - documents " ) , tr ( " Open " ) ) ; <nl> actOpenContainingFolder = myFilesLlistMenu . addAction ( IconProvider : : instance ( ) - > getIcon ( " inode - directory " ) , tr ( " Open Containing Folder " ) ) ; <nl> actRename = myFilesLlistMenu . addAction ( IconProvider : : instance ( ) - > getIcon ( " edit - rename " ) , tr ( " Rename . . . " ) ) ; <nl> myFilesLlistMenu . addSeparator ( ) ; <nl> mmm a / src / transferlistwidget . cpp <nl> ppp b / src / transferlistwidget . cpp <nl> void TransferListWidget : : askNewLabelForSelection ( ) { <nl> bool TransferListWidget : : openUrl ( const QString & _path ) const { <nl> const QString path = fsutils : : fromNativePath ( _path ) ; <nl> / / Hack to access samba shares with QDesktopServices : : openUrl <nl> - const QString p = path . startsWith ( " / / " ) ? QString ( " file : " ) + path : path ; <nl> - return QDesktopServices : : openUrl ( QUrl : : fromLocalFile ( p ) ) ; <nl> + if ( path . startsWith ( " / / " ) ) <nl> + return QDesktopServices : : openUrl ( fsutils : : toNativePath ( " file : " + path ) ) ; <nl> + else <nl> + return QDesktopServices : : openUrl ( QUrl : : fromLocalFile ( path ) ) ; <nl> } <nl> <nl> void TransferListWidget : : renameSelectedTorrent ( ) { <nl>
|
Merge pull request from Gelmir / open_select
|
qbittorrent/qBittorrent
|
bba8e188125432c2c772f6ebb92a0f5c4c19daec
|
2014-11-16T18:44:22Z
|
deleted file mode 100644 <nl> index a45b29a380f9 . . 000000000000 <nl> mmm a / licenses / LICENSE_FontLabel . txt <nl> ppp / dev / null <nl> <nl> - FontLabel <nl> mmmmmmmmm - <nl> - <nl> - Copyright © 2009 Zynga Game Networks . <nl> - <nl> - <nl> - License <nl> mmmmmm - - <nl> - <nl> - Apache License , Version 2 . 0 <nl> - <nl> - Apache License <nl> - Version 2 . 0 , January 2004 <nl> - http : / / www . apache . org / licenses / <nl> - <nl> - TERMS AND CONDITIONS FOR USE , REPRODUCTION , AND DISTRIBUTION <nl> - <nl> - 1 . Definitions . <nl> - <nl> - " License " shall mean the terms and conditions for use , reproduction , and distribution as defined by Sections 1 through 9 of this document . <nl> - <nl> - " Licensor " shall mean the copyright owner or entity authorized by the copyright owner that is granting the License . <nl> - <nl> - " Legal Entity " shall mean the union of the acting entity and all other entities that control , are controlled by , or are under common control with that entity . For the purposes of this definition , " control " means ( i ) the power , direct or indirect , to cause the direction or management of such entity , whether by contract or otherwise , or ( ii ) ownership of fifty percent ( 50 % ) or more of the outstanding shares , or ( iii ) beneficial ownership of such entity . <nl> - <nl> - " You " ( or " Your " ) shall mean an individual or Legal Entity exercising permissions granted by this License . <nl> - <nl> - " Source " form shall mean the preferred form for making modifications , including but not limited to software source code , documentation source , and configuration files . <nl> - <nl> - " Object " form shall mean any form resulting from mechanical transformation or translation of a Source form , including but not limited to compiled object code , generated documentation , and conversions to other media types . <nl> - <nl> - " Work " shall mean the work of authorship , whether in Source or Object form , made available under the License , as indicated by a copyright notice that is included in or attached to the work ( an example is provided in the Appendix below ) . <nl> - <nl> - " Derivative Works " shall mean any work , whether in Source or Object form , that is based on ( or derived from ) the Work and for which the editorial revisions , annotations , elaborations , or other modifications represent , as a whole , an original work of authorship . For the purposes of this License , Derivative Works shall not include works that remain separable from , or merely link ( or bind by name ) to the interfaces of , the Work and Derivative Works thereof . <nl> - <nl> - " Contribution " shall mean any work of authorship , including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof , that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner . For the purposes of this definition , " submitted " means any form of electronic , verbal , or written communication sent to the Licensor or its representatives , including but not limited to communication on electronic mailing lists , source code control systems , and issue tracking systems that are managed by , or on behalf of , the Licensor for the purpose of discussing and improving the Work , but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as " Not a Contribution . " <nl> - <nl> - " Contributor " shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work . <nl> - <nl> - 2 . Grant of Copyright License . <nl> - <nl> - Subject to the terms and conditions of this License , each Contributor hereby grants to You a perpetual , worldwide , non - exclusive , no - charge , royalty - free , irrevocable copyright license to reproduce , prepare Derivative Works of , publicly display , publicly perform , sublicense , and distribute the Work and such Derivative Works in Source or Object form . <nl> - <nl> - 3 . Grant of Patent License . <nl> - <nl> - Subject to the terms and conditions of this License , each Contributor hereby grants to You a perpetual , worldwide , non - exclusive , no - charge , royalty - free , irrevocable ( except as stated in this section ) patent license to make , have made , use , offer to sell , sell , import , and otherwise transfer the Work , where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution ( s ) alone or by combination of their Contribution ( s ) with the Work to which such Contribution ( s ) was submitted . If You institute patent litigation against any entity ( including a cross - claim or counterclaim in a lawsuit ) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement , then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed . <nl> - <nl> - 4 . Redistribution . <nl> - <nl> - You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium , with or without modifications , and in Source or Object form , provided that You meet the following conditions : <nl> - <nl> - 1 . You must give any other recipients of the Work or Derivative Works a copy of this License ; and <nl> - 2 . You must cause any modified files to carry prominent notices stating that You changed the files ; and <nl> - 3 . You must retain , in the Source form of any Derivative Works that You distribute , all copyright , patent , trademark , and attribution notices from the Source form of the Work , excluding those notices that do not pertain to any part of the Derivative Works ; and <nl> - 4 . If the Work includes a " NOTICE " text file as part of its distribution , then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file , excluding those notices that do not pertain to any part of the Derivative Works , in at least one of the following places : within a NOTICE text file distributed as part of the Derivative Works ; within the Source form or documentation , if provided along with the Derivative Works ; or , within a display generated by the Derivative Works , if and wherever such third - party notices normally appear . The contents of the NOTICE file are for informational purposes only and do not modify the License . You may add Your own attribution notices within Derivative Works that You distribute , alongside or as an addendum to the NOTICE text from the Work , provided that such additional attribution notices cannot be construed as modifying the License . <nl> - <nl> - You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use , reproduction , or distribution of Your modifications , or for any such Derivative Works as a whole , provided Your use , reproduction , and distribution of the Work otherwise complies with the conditions stated in this License . <nl> - <nl> - 5 . Submission of Contributions . <nl> - <nl> - Unless You explicitly state otherwise , any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License , without any additional terms or conditions . Notwithstanding the above , nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions . <nl> - <nl> - 6 . Trademarks . <nl> - <nl> - This License does not grant permission to use the trade names , trademarks , service marks , or product names of the Licensor , except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file . <nl> - <nl> - 7 . Disclaimer of Warranty . <nl> - <nl> - Unless required by applicable law or agreed to in writing , Licensor provides the Work ( and each Contributor provides its Contributions ) on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied , including , without limitation , any warranties or conditions of TITLE , NON - INFRINGEMENT , MERCHANTABILITY , or FITNESS FOR A PARTICULAR PURPOSE . You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License . <nl> - <nl> - 8 . Limitation of Liability . <nl> - <nl> - In no event and under no legal theory , whether in tort ( including negligence ) , contract , or otherwise , unless required by applicable law ( such as deliberate and grossly negligent acts ) or agreed to in writing , shall any Contributor be liable to You for damages , including any direct , indirect , special , incidental , or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work ( including but not limited to damages for loss of goodwill , work stoppage , computer failure or malfunction , or any and all other commercial damages or losses ) , even if such Contributor has been advised of the possibility of such damages . <nl> - <nl> - 9 . Accepting Warranty or Additional Liability . <nl> - <nl> - While redistributing the Work or Derivative Works thereof , You may choose to offer , and charge a fee for , acceptance of support , warranty , indemnity , or other liability obligations and / or rights consistent with this License . However , in accepting such obligations , You may act only on Your own behalf and on Your sole responsibility , not on behalf of any other Contributor , and only if You agree to indemnify , defend , and hold each Contributor harmless for any liability incurred by , or claims asserted against , such Contributor by reason of your accepting any such warranty or additional liability . <nl> - <nl> - END OF TERMS AND CONDITIONS <nl>
|
Delete LICENSE_FontLabel . txt
|
cocos2d/cocos2d-x
|
210aae9243a51ae0be14d83a13e5818a8fb8e126
|
2014-01-02T07:29:09Z
|
mmm a / docs / tools / requirements . txt <nl> ppp b / docs / tools / requirements . txt <nl> soupsieve = = 2 . 0 <nl> termcolor = = 1 . 1 . 0 <nl> tornado = = 5 . 1 . 1 <nl> Unidecode = = 1 . 1 . 1 <nl> - urllib3 = = 1 . 25 . 8 <nl> + urllib3 = = 1 . 25 . 9 <nl> mmm a / docs / tools / translate / requirements . txt <nl> ppp b / docs / tools / translate / requirements . txt <nl> python - slugify = = 4 . 0 . 0 <nl> PyYAML = = 5 . 3 . 1 <nl> requests = = 2 . 23 . 0 <nl> text - unidecode = = 1 . 3 <nl> - urllib3 = = 1 . 25 . 8 <nl> + urllib3 = = 1 . 25 . 9 <nl>
|
Bump urllib3 from 1 . 25 . 8 to 1 . 25 . 9 in / docs / tools
|
ClickHouse/ClickHouse
|
22bc75d63187d88d46a975ba39852686750d654d
|
2020-04-17T07:46:34Z
|
mmm a / src / operator / dropout - inl . h <nl> ppp b / src / operator / dropout - inl . h <nl> struct DropoutParam : public dmlc : : Parameter < DropoutParam > { <nl> DMLC_DECLARE_PARAMETER ( DropoutParam ) { <nl> DMLC_DECLARE_FIELD ( p ) . set_default ( 0 . 5 ) <nl> . set_range ( 0 , 1 ) <nl> - . describe ( " Fraction of the input that gets dropped out at training time " ) ; <nl> + . describe ( " Fraction of the input that gets dropped out during training time . " ) ; <nl> } <nl> } ; / / struct DropoutParam <nl> <nl> class DropoutProp : public OperatorProperty { <nl> } / / namespace op <nl> } / / namespace mxnet <nl> # endif / / MXNET_OPERATOR_DROPOUT_INL_H_ <nl> - <nl> mmm a / src / operator / dropout . cc <nl> ppp b / src / operator / dropout . cc <nl> Operator * DropoutProp : : CreateOperatorEx ( Context ctx , std : : vector < TShape > * in_sha <nl> DMLC_REGISTER_PARAMETER ( DropoutParam ) ; <nl> <nl> MXNET_REGISTER_OP_PROPERTY ( Dropout , DropoutProp ) <nl> - . describe ( R " ( Applies dropout to input . <nl> - During training , each element of the input is randomly set to zero with probability p . <nl> - And then the whole tensor is rescaled by 1 / ( 1 - p ) to keep the expectation the same as <nl> - before applying dropout . During the test time , this behaves as an identity map . <nl> - ) " ) <nl> - . add_argument ( " data " , " NDArray - or - Symbol " , " Input data to dropout . " ) <nl> + . describe ( R " ( Applies dropout operation to input array . <nl> + <nl> + - During training , each element of the input is set to zero with probability p . <nl> + The whole array is rescaled by : math : ` 1 / ( 1 - p ) ` to keep the expected <nl> + sum of the input unchanged . <nl> + <nl> + - During testing , this operator does not change the input . <nl> + <nl> + Example : : <nl> + <nl> + random . seed ( 998 ) <nl> + input_array = array ( [ [ 3 . , 0 . 5 , - 0 . 5 , 2 . , 7 . ] , <nl> + [ 2 . , - 0 . 4 , 7 . , 3 . , 0 . 2 ] ] ) <nl> + a = symbol . Variable ( ' a ' ) <nl> + dropout = symbol . Dropout ( a , p = 0 . 2 ) <nl> + executor = dropout . simple_bind ( a = input_array . shape ) <nl> + <nl> + # # If training <nl> + executor . forward ( is_train = True , a = input_array ) <nl> + executor . outputs <nl> + [ [ 3 . 75 0 . 625 - 0 . 2 . 5 8 . 75 ] <nl> + [ 2 . 5 - 0 . 5 8 . 75 3 . 75 0 . ] ] <nl> + <nl> + # # If testing <nl> + executor . forward ( is_train = False , a = input_array ) <nl> + executor . outputs <nl> + [ [ 3 . 0 . 5 - 0 . 5 2 . 7 . ] <nl> + [ 2 . - 0 . 4 7 . 3 . 0 . 2 ] ] <nl> + ) " ADD_FILELINE ) <nl> + . add_argument ( " data " , " NDArray - or - Symbol " , " Input array to which dropout will be applied . " ) <nl> . add_arguments ( DropoutParam : : __FIELDS__ ( ) ) ; <nl> <nl> } / / namespace op <nl> } / / namespace mxnet <nl> - <nl> - <nl> mmm a / src / operator / softmax_activation - inl . h <nl> ppp b / src / operator / softmax_activation - inl . h <nl> struct SoftmaxActivationParam : public dmlc : : Parameter < SoftmaxActivationParam > { <nl> . add_enum ( " instance " , softmax_activation : : kInstance ) <nl> . add_enum ( " channel " , softmax_activation : : kChannel ) <nl> . set_default ( softmax_activation : : kInstance ) <nl> - . describe ( " Softmax Mode . If set to instance , this operator will compute a " <nl> - " softmax for each instance in the batch ; this is the default mode . " <nl> - " If set to channel , this operator will compute a num_channel - class softmax at " <nl> - " each position of each instance ; this can be used for fully convolutional network , " <nl> - " image segmentation , etc . " ) ; <nl> + . describe ( " Specifies how to compute the softmax . If set to ` ` instance ` ` , " <nl> + " it computes softmax for each instance . If set to ` ` channel ` ` , " <nl> + " It computes cross channel softmax for each position of each instance . " ) ; <nl> } <nl> } ; <nl> <nl> mmm a / src / operator / softmax_activation . cc <nl> ppp b / src / operator / softmax_activation . cc <nl> Operator * SoftmaxActivationProp : : CreateOperator ( Context ctx ) const { <nl> DMLC_REGISTER_PARAMETER ( SoftmaxActivationParam ) ; <nl> <nl> MXNET_REGISTER_OP_PROPERTY ( SoftmaxActivation , SoftmaxActivationProp ) <nl> - . describe ( " Applies softmax activation to input . This is intended for internal layers . " <nl> - " For output ( loss layer ) please use SoftmaxOutput . If mode = instance , " <nl> - " this operator will compute a softmax for each instance in the batch ; " <nl> - " this is the default mode . If mode = channel , this operator will compute " <nl> - " a num_channel - class softmax at each position of each instance ; this can " <nl> - " be used for fully convolutional network , image segmentation , etc . " ) <nl> - . add_argument ( " data " , " NDArray - or - Symbol " , " Input data to activation function . " ) <nl> + . describe ( R " code ( Applies softmax activation to input . This is intended for internal layers . <nl> + <nl> + . . note : : <nl> + <nl> + This operator has been depreated , please use ` softmax ` . <nl> + <nl> + If ` mode ` = ` ` instance ` ` , this operator will compute a softmax for each instance in the batch . <nl> + This is the default mode . <nl> + <nl> + If ` mode ` = ` ` channel ` ` , this operator will compute a k - class softmax at each position <nl> + of each instance , where ` k ` = ` ` num_channel ` ` . This mode can only be used when the input array <nl> + has at least 3 dimensions . <nl> + This can be used for ` fully convolutional network ` , ` image segmentation ` , etc . <nl> + <nl> + Example : : <nl> + <nl> + > > > input_array = mx . nd . array ( [ [ 3 . , 0 . 5 , - 0 . 5 , 2 . , 7 . ] , <nl> + > > > [ 2 . , - . 4 , 7 . , 3 . , 0 . 2 ] ] ) <nl> + > > > softmax_act = mx . nd . SoftmaxActivation ( input_array ) <nl> + > > > print softmax_act . asnumpy ( ) <nl> + [ [ 1 . 78322066e - 02 1 . 46375655e - 03 5 . 38485940e - 04 6 . 56010211e - 03 9 . 73605454e - 01 ] <nl> + [ 6 . 56221947e - 03 5 . 95310994e - 04 9 . 73919690e - 01 1 . 78379621e - 02 1 . 08472735e - 03 ] ] <nl> + <nl> + ) code " ADD_FILELINE ) <nl> + . add_argument ( " data " , " NDArray - or - Symbol " , " Input array to activation function . " ) <nl> . add_arguments ( SoftmaxActivationParam : : __FIELDS__ ( ) ) ; <nl> <nl> } / / namespace op <nl> } / / namespace mxnet <nl> - <nl>
|
API doc improvement Dropout and SoftmaxActivation ( )
|
apache/incubator-mxnet
|
c08503af6b7babb6262dda6a85a9b4c8ff7fa91b
|
2017-05-10T00:14:57Z
|
mmm a / arangod / V8Server / v8 - query . cpp <nl> ppp b / arangod / V8Server / v8 - query . cpp <nl> <nl> # include " FulltextIndex / fulltext - result . h " <nl> # include " FulltextIndex / fulltext - query . h " <nl> # include " SkipLists / skiplistIndex . h " <nl> - # include " Utilities / ResourceHolder . h " <nl> # include " Utils / Barrier . h " <nl> # include " Utils / CollectionNameResolver . h " <nl> # include " Utils / EmbeddableTransaction . h " <nl> mmm a / lib / ProgramOptions / program - options . c <nl> ppp b / lib / ProgramOptions / program - options . c <nl> TRI_program_options_t * TRI_CreateProgramOptions ( TRI_PO_section_t * desc ) { <nl> po_visit_functions_t optionBuilders ; <nl> struct option nullOpt ; <nl> <nl> - po = ( TRI_program_options_t * ) ( TRI_Allocate ( TRI_CORE_MEM_ZONE , sizeof ( TRI_program_options_t ) , false ) ) ; <nl> - <nl> - / / TODO : not safe since po could be 0 <nl> + po = ( TRI_program_options_t * ) TRI_Allocate ( TRI_CORE_MEM_ZONE , sizeof ( TRI_program_options_t ) , false ) ; <nl> <nl> + if ( po = = NULL ) { <nl> + / / this should never happen in CORE_MEM_ZONE <nl> + return NULL ; <nl> + } <nl> + <nl> TRI_InitVector ( & po - > _longopts , TRI_CORE_MEM_ZONE , sizeof ( struct option ) ) ; <nl> TRI_InitVector ( & po - > _items , TRI_CORE_MEM_ZONE , sizeof ( TRI_PO_item_t ) ) ; <nl> <nl>
|
removed unused elements
|
arangodb/arangodb
|
384438ec7f67252e1bc8bb5715268ce68f0890da
|
2013-07-26T22:57:02Z
|
mmm a / src / wasm / wasm - serialization . cc <nl> ppp b / src / wasm / wasm - serialization . cc <nl> MaybeHandle < WasmModuleObject > DeserializeNativeModule ( <nl> & export_wrappers ) ; <nl> <nl> Handle < Script > script = <nl> - wasm_engine - > GetOrCreateScript ( isolate , shared_native_module ) ; <nl> + wasm_engine - > GetOrCreateScript ( isolate , shared_native_module , source_url ) ; <nl> Handle < WasmModuleObject > module_object = WasmModuleObject : : New ( <nl> isolate , std : : move ( shared_native_module ) , script , export_wrappers ) ; <nl> <nl> mmm a / test / cctest / wasm / test - wasm - serialization . cc <nl> ppp b / test / cctest / wasm / test - wasm - serialization . cc <nl> class WasmSerializationTest { <nl> base : : WriteUnalignedValue < uint32_t > ( num_functions_slot , 0 ) ; <nl> } <nl> <nl> - MaybeHandle < WasmModuleObject > Deserialize ( ) { <nl> + MaybeHandle < WasmModuleObject > Deserialize ( <nl> + Vector < const char > source_url = { } ) { <nl> return DeserializeNativeModule ( CcTest : : i_isolate ( ) , <nl> VectorOf ( serialized_bytes_ ) , <nl> - VectorOf ( wire_bytes_ ) , { } ) ; <nl> + VectorOf ( wire_bytes_ ) , source_url ) ; <nl> } <nl> <nl> void DeserializeAndRun ( ) { <nl> TEST ( DeserializeValidModule ) { <nl> test . CollectGarbage ( ) ; <nl> } <nl> <nl> + TEST ( DeserializeWithSourceUrl ) { <nl> + WasmSerializationTest test ; <nl> + { <nl> + HandleScope scope ( CcTest : : i_isolate ( ) ) ; <nl> + const std : : string url = " http : / / example . com / example . wasm " ; <nl> + Handle < WasmModuleObject > module_object ; <nl> + CHECK ( test . Deserialize ( VectorOf ( url ) ) . ToHandle ( & module_object ) ) ; <nl> + String source_url = String : : cast ( module_object - > script ( ) . source_url ( ) ) ; <nl> + CHECK_EQ ( url , source_url . ToCString ( ) . get ( ) ) ; <nl> + } <nl> + test . CollectGarbage ( ) ; <nl> + } <nl> + <nl> TEST ( DeserializeMismatchingVersion ) { <nl> WasmSerializationTest test ; <nl> { <nl>
|
[ wasm ] Set source url when deserializing wasm module
|
v8/v8
|
ec3cadc41e49246c99103abedb6a6ec3fd551d63
|
2020-04-22T07:12:18Z
|
new file mode 100644 <nl> index 00000000000 . . aaaf9ebf966 <nl> mmm / dev / null <nl> ppp b / test / inspector / debugger / async - console - count - doesnt - crash - expected . txt <nl> @ @ - 0 , 0 + 1 @ @ <nl> + setTimeout ( console . count , 0 ) doesn ' t crash with enabled async stacks . <nl> new file mode 100644 <nl> index 00000000000 . . 8eace1eaa61 <nl> mmm / dev / null <nl> ppp b / test / inspector / debugger / async - console - count - doesnt - crash . js <nl> <nl> + / / Copyright 2016 the V8 project authors . All rights reserved . <nl> + / / Use of this source code is governed by a BSD - style license that can be <nl> + / / found in the LICENSE file . <nl> + <nl> + print ( " setTimeout ( console . count , 0 ) doesn ' t crash with enabled async stacks . " ) <nl> + <nl> + InspectorTest . sendCommand ( " Debugger . enable " , { } ) ; <nl> + InspectorTest . sendCommand ( " Debugger . setAsyncCallStackDepth " , { maxDepth : 1 } ) ; <nl> + InspectorTest . sendCommand ( " Runtime . evaluate " , { expression : " setTimeout ( console . count , 0 ) " } ) ; <nl> + InspectorTest . completeTestAfterPendingTimeouts ( ) ; <nl> mmm a / test / inspector / protocol - test . js <nl> ppp b / test / inspector / protocol - test . js <nl> InspectorTest . logMessage = function ( message ) <nl> <nl> InspectorTest . completeTest = quit . bind ( null ) ; <nl> <nl> + InspectorTest . completeTestAfterPendingTimeouts = function ( ) <nl> + { <nl> + InspectorTest . sendCommand ( " Runtime . evaluate " , { <nl> + expression : " new Promise ( resolve = > setTimeout ( resolve , 0 ) ) " , <nl> + awaitPromise : true } , InspectorTest . completeTest ) ; <nl> + } <nl> + <nl> InspectorTest . evaluateInPage = function ( string , callback ) <nl> { <nl> InspectorTest . sendCommand ( " Runtime . evaluate " , { " expression " : string } , function ( message ) { <nl>
|
[ inspector ] test for fixed empty stack processing in console . count
|
v8/v8
|
759581ea933acd5b72d3d2c61048be9377cf6c19
|
2016-10-03T21:10:53Z
|
mmm a / lib / SILPasses / Utils / SimplifyInstruction . cpp <nl> ppp b / lib / SILPasses / Utils / SimplifyInstruction . cpp <nl> SILValue InstSimplifier : : simplifyOverflowBuiltin ( ApplyInst * AI , <nl> SILValue Result ; <nl> / / CheckedConversion ( ExtOrBitCast ( x ) ) - > x <nl> if ( match ( AI , m_CheckedConversion ( m_ExtOrBitCast ( m_SILValue ( Result ) ) ) ) ) <nl> - if ( Result - > getType ( 0 ) = = AI - > getType ( ) . getTupleElementType ( 0 ) ) <nl> - if ( auto signBit = computeSignBit ( Result ) ) <nl> - if ( ! signBit . getValue ( ) ) <nl> - return Result ; <nl> + if ( Result - > getType ( 0 ) = = AI - > getType ( ) . getTupleElementType ( 0 ) ) { <nl> + assert ( ! computeSignBit ( Result ) . getValue ( ) & & " Sign bit should be 0 " ) ; <nl> + return Result ; <nl> + } <nl> } <nl> break ; <nl> <nl>
|
[ sil - simplify ] Replace condition by an assert as it is supposed to be always true .
|
apple/swift
|
31727d7453f598d3e6942009b48dcbd15eb00b29
|
2014-09-04T11:18:08Z
|
mmm a / cocos / scripting / lua - bindings / auto / lua_cocos2dx_auto . cpp <nl> ppp b / cocos / scripting / lua - bindings / auto / lua_cocos2dx_auto . cpp <nl> int lua_register_cocos2dx_Image ( lua_State * tolua_S ) <nl> return 1 ; <nl> } <nl> <nl> + int lua_cocos2dx_ShaderCache_removeUnusedShader ( lua_State * tolua_S ) <nl> + { <nl> + int argc = 0 ; <nl> + cocos2d : : backend : : ShaderCache * cobj = nullptr ; <nl> + bool ok = true ; <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + tolua_Error tolua_err ; <nl> + # endif <nl> + <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + if ( ! tolua_isusertype ( tolua_S , 1 , " cc . ShaderCache " , 0 , & tolua_err ) ) goto tolua_lerror ; <nl> + # endif <nl> + <nl> + cobj = ( cocos2d : : backend : : ShaderCache * ) tolua_tousertype ( tolua_S , 1 , 0 ) ; <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + if ( ! cobj ) <nl> + { <nl> + tolua_error ( tolua_S , " invalid ' cobj ' in function ' lua_cocos2dx_ShaderCache_removeUnusedShader ' " , nullptr ) ; <nl> + return 0 ; <nl> + } <nl> + # endif <nl> + <nl> + argc = lua_gettop ( tolua_S ) - 1 ; <nl> + if ( argc = = 0 ) <nl> + { <nl> + if ( ! ok ) <nl> + { <nl> + tolua_error ( tolua_S , " invalid arguments in function ' lua_cocos2dx_ShaderCache_removeUnusedShader ' " , nullptr ) ; <nl> + return 0 ; <nl> + } <nl> + cobj - > removeUnusedShader ( ) ; <nl> + lua_settop ( tolua_S , 1 ) ; <nl> + return 1 ; <nl> + } <nl> + luaL_error ( tolua_S , " % s has wrong number of arguments : % d , was expecting % d \ n " , " cc . ShaderCache : removeUnusedShader " , argc , 0 ) ; <nl> + return 0 ; <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + tolua_lerror : <nl> + tolua_error ( tolua_S , " # ferror in function ' lua_cocos2dx_ShaderCache_removeUnusedShader ' . " , & tolua_err ) ; <nl> + # endif <nl> + <nl> + return 0 ; <nl> + } <nl> + int lua_cocos2dx_ShaderCache_destroyInstance ( lua_State * tolua_S ) <nl> + { <nl> + int argc = 0 ; <nl> + bool ok = true ; <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + tolua_Error tolua_err ; <nl> + # endif <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + if ( ! tolua_isusertable ( tolua_S , 1 , " cc . ShaderCache " , 0 , & tolua_err ) ) goto tolua_lerror ; <nl> + # endif <nl> + <nl> + argc = lua_gettop ( tolua_S ) - 1 ; <nl> + <nl> + if ( argc = = 0 ) <nl> + { <nl> + if ( ! ok ) <nl> + { <nl> + tolua_error ( tolua_S , " invalid arguments in function ' lua_cocos2dx_ShaderCache_destroyInstance ' " , nullptr ) ; <nl> + return 0 ; <nl> + } <nl> + cocos2d : : backend : : ShaderCache : : destroyInstance ( ) ; <nl> + lua_settop ( tolua_S , 1 ) ; <nl> + return 1 ; <nl> + } <nl> + luaL_error ( tolua_S , " % s has wrong number of arguments : % d , was expecting % d \ n " , " cc . ShaderCache : destroyInstance " , argc , 0 ) ; <nl> + return 0 ; <nl> + # if COCOS2D_DEBUG > = 1 <nl> + tolua_lerror : <nl> + tolua_error ( tolua_S , " # ferror in function ' lua_cocos2dx_ShaderCache_destroyInstance ' . " , & tolua_err ) ; <nl> + # endif <nl> + return 0 ; <nl> + } <nl> + int lua_cocos2dx_ShaderCache_newVertexShaderModule ( lua_State * tolua_S ) <nl> + { <nl> + int argc = 0 ; <nl> + bool ok = true ; <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + tolua_Error tolua_err ; <nl> + # endif <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + if ( ! tolua_isusertable ( tolua_S , 1 , " cc . ShaderCache " , 0 , & tolua_err ) ) goto tolua_lerror ; <nl> + # endif <nl> + <nl> + argc = lua_gettop ( tolua_S ) - 1 ; <nl> + <nl> + if ( argc = = 1 ) <nl> + { <nl> + std : : string arg0 ; <nl> + ok & = luaval_to_std_string ( tolua_S , 2 , & arg0 , " cc . ShaderCache : newVertexShaderModule " ) ; <nl> + if ( ! ok ) <nl> + { <nl> + tolua_error ( tolua_S , " invalid arguments in function ' lua_cocos2dx_ShaderCache_newVertexShaderModule ' " , nullptr ) ; <nl> + return 0 ; <nl> + } <nl> + cocos2d : : backend : : ShaderModule * ret = cocos2d : : backend : : ShaderCache : : newVertexShaderModule ( arg0 ) ; <nl> + object_to_luaval < cocos2d : : backend : : ShaderModule > ( tolua_S , " cc . ShaderModule " , ( cocos2d : : backend : : ShaderModule * ) ret ) ; <nl> + return 1 ; <nl> + } <nl> + luaL_error ( tolua_S , " % s has wrong number of arguments : % d , was expecting % d \ n " , " cc . ShaderCache : newVertexShaderModule " , argc , 1 ) ; <nl> + return 0 ; <nl> + # if COCOS2D_DEBUG > = 1 <nl> + tolua_lerror : <nl> + tolua_error ( tolua_S , " # ferror in function ' lua_cocos2dx_ShaderCache_newVertexShaderModule ' . " , & tolua_err ) ; <nl> + # endif <nl> + return 0 ; <nl> + } <nl> + int lua_cocos2dx_ShaderCache_newFragmentShaderModule ( lua_State * tolua_S ) <nl> + { <nl> + int argc = 0 ; <nl> + bool ok = true ; <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + tolua_Error tolua_err ; <nl> + # endif <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + if ( ! tolua_isusertable ( tolua_S , 1 , " cc . ShaderCache " , 0 , & tolua_err ) ) goto tolua_lerror ; <nl> + # endif <nl> + <nl> + argc = lua_gettop ( tolua_S ) - 1 ; <nl> + <nl> + if ( argc = = 1 ) <nl> + { <nl> + std : : string arg0 ; <nl> + ok & = luaval_to_std_string ( tolua_S , 2 , & arg0 , " cc . ShaderCache : newFragmentShaderModule " ) ; <nl> + if ( ! ok ) <nl> + { <nl> + tolua_error ( tolua_S , " invalid arguments in function ' lua_cocos2dx_ShaderCache_newFragmentShaderModule ' " , nullptr ) ; <nl> + return 0 ; <nl> + } <nl> + cocos2d : : backend : : ShaderModule * ret = cocos2d : : backend : : ShaderCache : : newFragmentShaderModule ( arg0 ) ; <nl> + object_to_luaval < cocos2d : : backend : : ShaderModule > ( tolua_S , " cc . ShaderModule " , ( cocos2d : : backend : : ShaderModule * ) ret ) ; <nl> + return 1 ; <nl> + } <nl> + luaL_error ( tolua_S , " % s has wrong number of arguments : % d , was expecting % d \ n " , " cc . ShaderCache : newFragmentShaderModule " , argc , 1 ) ; <nl> + return 0 ; <nl> + # if COCOS2D_DEBUG > = 1 <nl> + tolua_lerror : <nl> + tolua_error ( tolua_S , " # ferror in function ' lua_cocos2dx_ShaderCache_newFragmentShaderModule ' . " , & tolua_err ) ; <nl> + # endif <nl> + return 0 ; <nl> + } <nl> + int lua_cocos2dx_ShaderCache_getInstance ( lua_State * tolua_S ) <nl> + { <nl> + int argc = 0 ; <nl> + bool ok = true ; <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + tolua_Error tolua_err ; <nl> + # endif <nl> + <nl> + # if COCOS2D_DEBUG > = 1 <nl> + if ( ! tolua_isusertable ( tolua_S , 1 , " cc . ShaderCache " , 0 , & tolua_err ) ) goto tolua_lerror ; <nl> + # endif <nl> + <nl> + argc = lua_gettop ( tolua_S ) - 1 ; <nl> + <nl> + if ( argc = = 0 ) <nl> + { <nl> + if ( ! ok ) <nl> + { <nl> + tolua_error ( tolua_S , " invalid arguments in function ' lua_cocos2dx_ShaderCache_getInstance ' " , nullptr ) ; <nl> + return 0 ; <nl> + } <nl> + cocos2d : : backend : : ShaderCache * ret = cocos2d : : backend : : ShaderCache : : getInstance ( ) ; <nl> + object_to_luaval < cocos2d : : backend : : ShaderCache > ( tolua_S , " cc . ShaderCache " , ( cocos2d : : backend : : ShaderCache * ) ret ) ; <nl> + return 1 ; <nl> + } <nl> + luaL_error ( tolua_S , " % s has wrong number of arguments : % d , was expecting % d \ n " , " cc . ShaderCache : getInstance " , argc , 0 ) ; <nl> + return 0 ; <nl> + # if COCOS2D_DEBUG > = 1 <nl> + tolua_lerror : <nl> + tolua_error ( tolua_S , " # ferror in function ' lua_cocos2dx_ShaderCache_getInstance ' . " , & tolua_err ) ; <nl> + # endif <nl> + return 0 ; <nl> + } <nl> + static int lua_cocos2dx_ShaderCache_finalize ( lua_State * tolua_S ) <nl> + { <nl> + printf ( " luabindings : finalizing LUA object ( ShaderCache ) " ) ; <nl> + return 0 ; <nl> + } <nl> + <nl> + int lua_register_cocos2dx_ShaderCache ( lua_State * tolua_S ) <nl> + { <nl> + tolua_usertype ( tolua_S , " cc . ShaderCache " ) ; <nl> + tolua_cclass ( tolua_S , " ShaderCache " , " cc . ShaderCache " , " cc . Ref " , nullptr ) ; <nl> + <nl> + tolua_beginmodule ( tolua_S , " ShaderCache " ) ; <nl> + tolua_function ( tolua_S , " removeUnusedShader " , lua_cocos2dx_ShaderCache_removeUnusedShader ) ; <nl> + tolua_function ( tolua_S , " destroyInstance " , lua_cocos2dx_ShaderCache_destroyInstance ) ; <nl> + tolua_function ( tolua_S , " newVertexShaderModule " , lua_cocos2dx_ShaderCache_newVertexShaderModule ) ; <nl> + tolua_function ( tolua_S , " newFragmentShaderModule " , lua_cocos2dx_ShaderCache_newFragmentShaderModule ) ; <nl> + tolua_function ( tolua_S , " getInstance " , lua_cocos2dx_ShaderCache_getInstance ) ; <nl> + tolua_endmodule ( tolua_S ) ; <nl> + std : : string typeName = typeid ( cocos2d : : backend : : ShaderCache ) . name ( ) ; <nl> + g_luaType [ typeName ] = " cc . ShaderCache " ; <nl> + g_typeCast [ " ShaderCache " ] = " cc . ShaderCache " ; <nl> + return 1 ; <nl> + } <nl> + <nl> int lua_cocos2dx_PolygonInfo_getFilename ( lua_State * tolua_S ) <nl> { <nl> int argc = 0 ; <nl> TOLUA_API int register_all_cocos2dx ( lua_State * tolua_S ) <nl> lua_register_cocos2dx_JumpBy ( tolua_S ) ; <nl> lua_register_cocos2dx_EventListener ( tolua_S ) ; <nl> lua_register_cocos2dx_EventListenerKeyboard ( tolua_S ) ; <nl> - lua_register_cocos2dx_ActionEase ( tolua_S ) ; <nl> - lua_register_cocos2dx_EaseBounceIn ( tolua_S ) ; <nl> + lua_register_cocos2dx_EventListenerMouse ( tolua_S ) ; <nl> lua_register_cocos2dx_TransitionRotoZoom ( tolua_S ) ; <nl> lua_register_cocos2dx_Event ( tolua_S ) ; <nl> lua_register_cocos2dx_EventController ( tolua_S ) ; <nl> lua_register_cocos2dx_Director ( tolua_S ) ; <nl> lua_register_cocos2dx_Scheduler ( tolua_S ) ; <nl> + lua_register_cocos2dx_ActionEase ( tolua_S ) ; <nl> lua_register_cocos2dx_EaseElastic ( tolua_S ) ; <nl> lua_register_cocos2dx_EaseElasticOut ( tolua_S ) ; <nl> lua_register_cocos2dx_EaseQuadraticActionInOut ( tolua_S ) ; <nl> TOLUA_API int register_all_cocos2dx ( lua_State * tolua_S ) <nl> lua_register_cocos2dx_Image ( tolua_S ) ; <nl> lua_register_cocos2dx_LayerMultiplex ( tolua_S ) ; <nl> lua_register_cocos2dx_Blink ( tolua_S ) ; <nl> + lua_register_cocos2dx_ShaderCache ( tolua_S ) ; <nl> lua_register_cocos2dx_JumpTo ( tolua_S ) ; <nl> lua_register_cocos2dx_ParticleExplosion ( tolua_S ) ; <nl> lua_register_cocos2dx_TransitionJumpZoom ( tolua_S ) ; <nl> TOLUA_API int register_all_cocos2dx ( lua_State * tolua_S ) <nl> lua_register_cocos2dx_NodeGrid ( tolua_S ) ; <nl> lua_register_cocos2dx_TMXLayerInfo ( tolua_S ) ; <nl> lua_register_cocos2dx_EaseSineIn ( tolua_S ) ; <nl> - lua_register_cocos2dx_EventListenerMouse ( tolua_S ) ; <nl> + lua_register_cocos2dx_EaseBounceIn ( tolua_S ) ; <nl> lua_register_cocos2dx_Camera ( tolua_S ) ; <nl> lua_register_cocos2dx_TMXObjectGroup ( tolua_S ) ; <nl> lua_register_cocos2dx_ParticleGalaxy ( tolua_S ) ; <nl> mmm a / cocos / scripting / lua - bindings / auto / lua_cocos2dx_auto . hpp <nl> ppp b / cocos / scripting / lua - bindings / auto / lua_cocos2dx_auto . hpp <nl> int register_all_cocos2dx ( lua_State * tolua_S ) ; <nl> <nl> <nl> <nl> + <nl> + <nl> + <nl> + <nl> + <nl> + <nl> <nl> <nl> <nl>
|
Merge pull request from CocosRobot / update_lua_bindings_1552443257
|
cocos2d/cocos2d-x
|
fd679e3c3b529260d73f235db2c865b54e09bfef
|
2019-03-13T02:20:09Z
|
mmm a / src / callback . jl <nl> ppp b / src / callback . jl <nl> A convenient function to construct a callback that runs every ` n ` mini - batches . <nl> For example , the [ ` speedometer ` ] ( @ ref ) callback is defined as <nl> <nl> ` ` ` julia <nl> - every_n_iter ( frequency , call_on_0 = true ) do state : : OptimizationState <nl> + every_n_batch ( frequency , call_on_0 = true ) do state : : OptimizationState <nl> if state . curr_batch = = 0 <nl> # reset timer <nl> else <nl> A convenient function to construct a callback that runs every ` n ` full data - pass <nl> yet . This is useful if you want to inspect the randomly initialized model <nl> that has not seen any data yet . <nl> <nl> - See also [ ` every_n_iter ` ] ( @ ref ) . <nl> + See also [ ` every_n_batch ` ] ( @ ref ) . <nl> " " " <nl> function every_n_epoch ( callback : : Function , n : : Int ; call_on_0 : : Bool = false ) <nl> EpochCallback ( n , call_on_0 , callback ) <nl>
|
docs : update renamed ` every_n_batch `
|
apache/incubator-mxnet
|
9dd329168313a248b56617897e6aa08b2b545834
|
2017-04-02T06:31:06Z
|
mmm a / src / dbg / commandline . cpp <nl> ppp b / src / dbg / commandline . cpp <nl> void CmdLineCacheLoad ( JSON Root ) <nl> <nl> / / Return if there was nothing to load <nl> if ( ! jsonCmdLine ) <nl> - { <nl> - json_decref ( jsonCmdLine ) ; <nl> return ; <nl> - } <nl> <nl> const char * cmdLine = json_string_value ( json_object_get ( jsonCmdLine , " cmdLine " ) ) ; <nl> <nl>
|
Minor fix : no need to free a null json object . . .
|
x64dbg/x64dbg
|
4407f93bc28368c149888b6ed751d470d93d8050
|
2015-12-02T22:32:32Z
|
mmm a / lib / Sema / CSFix . cpp <nl> ppp b / lib / Sema / CSFix . cpp <nl> getStructuralTypeContext ( const Solution & solution , ConstraintLocator * locator ) { <nl> solution . getType ( coerceExpr - > getSubExpr ( ) ) , <nl> solution . getType ( coerceExpr ) ) ; <nl> } else if ( auto * assignExpr = getAsExpr < AssignExpr > ( locator - > getAnchor ( ) ) ) { <nl> - return std : : make_tuple ( CTP_AssignSource , <nl> + auto CTP = isa < SubscriptExpr > ( assignExpr - > getDest ( ) ) ? CTP_SubscriptAssignSource <nl> + : CTP_AssignSource ; <nl> + return std : : make_tuple ( CTP , <nl> solution . getType ( assignExpr - > getSrc ( ) ) , <nl> - solution . getType ( assignExpr - > getDest ( ) ) ) ; <nl> + solution . getType ( assignExpr - > getDest ( ) ) - > getRValueType ( ) ) ; <nl> } else if ( auto * call = getAsExpr < CallExpr > ( locator - > getAnchor ( ) ) ) { <nl> assert ( isa < TypeExpr > ( call - > getFn ( ) ) ) ; <nl> return std : : make_tuple ( <nl> bool AllowTupleTypeMismatch : : coalesceAndDiagnose ( <nl> return false ; <nl> } <nl> <nl> - TupleContextualFailure failure ( solution , purpose , fromType , toType , indices , <nl> - locator ) ; <nl> + TupleContextualFailure failure ( solution , purpose , <nl> + fromType - > lookThroughAllOptionalTypes ( ) , <nl> + toType - > lookThroughAllOptionalTypes ( ) , <nl> + indices , locator ) ; <nl> return failure . diagnose ( asNote ) ; <nl> } <nl> <nl> mmm a / lib / Sema / CSSimplify . cpp <nl> ppp b / lib / Sema / CSSimplify . cpp <nl> bool ConstraintSystem : : repairFailures ( <nl> / / related to immutability , otherwise it ' s a type mismatch . <nl> auto result = matchTypes ( lhs , rhs , ConstraintKind : : Conversion , <nl> TMF_ApplyingFix , locator ) ; <nl> - <nl> + <nl> + auto * loc = getConstraintLocator ( locator ) ; <nl> if ( getType ( destExpr ) - > is < LValueType > ( ) | | result . isFailure ( ) ) { <nl> - conversionsOrFixes . push_back ( IgnoreAssignmentDestinationType : : create ( <nl> - * this , lhs , rhs , getConstraintLocator ( locator ) ) ) ; <nl> - } else { <nl> + / / Let this asignment failure be diagnosed by the AllowTupleTypeMismatch <nl> + / / fix already recorded . <nl> + if ( hasFixFor ( loc , FixKind : : AllowTupleTypeMismatch ) ) <nl> + return true ; <nl> + <nl> conversionsOrFixes . push_back ( <nl> - TreatRValueAsLValue : : create ( * this , getConstraintLocator ( locator ) ) ) ; <nl> + IgnoreAssignmentDestinationType : : create ( * this , lhs , rhs , loc ) ) ; <nl> + } else { <nl> + conversionsOrFixes . push_back ( TreatRValueAsLValue : : create ( * this , loc ) ) ; <nl> } <nl> <nl> return true ; <nl> ConstraintSystem : : simplifyRestrictedConstraintImpl ( <nl> CoerceToCheckedCast : : attempt ( * this , fromType , toType , loc ) ) <nl> return ! recordFix ( fix , impact ) ; <nl> } <nl> + <nl> + / / We already have a fix for this locator indicating a <nl> + / / tuple mismatch . <nl> + if ( hasFixFor ( loc , FixKind : : AllowTupleTypeMismatch ) ) <nl> + return true ; <nl> <nl> if ( restriction = = ConversionRestrictionKind : : ValueToOptional | | <nl> restriction = = ConversionRestrictionKind : : OptionalToOptional ) <nl> mmm a / test / Constraints / tuple . swift <nl> ppp b / test / Constraints / tuple . swift <nl> struct DupLabelSubscript { <nl> <nl> let dupLabelSubscriptStruct = DupLabelSubscript ( ) <nl> let _ = dupLabelSubscriptStruct [ foo : 5 , foo : 5 ] / / ok <nl> + <nl> + / / SR - 12869 <nl> + <nl> + var dict : [ String : ( Int , Int ) ] = [ : ] <nl> + let bignum : Int64 = 1337 <nl> + dict [ " test " ] = ( bignum , 1 ) / / expected - error { { cannot assign value of type ' ( Int64 , Int ) ' to subscript of type ' ( Int , Int ) ' } } <nl> + <nl> + var tuple : ( Int , Int ) <nl> + tuple = ( bignum , 1 ) / / expected - error { { cannot assign value of type ' ( Int64 , Int ) ' to type ' ( Int , Int ) ' } } <nl> + <nl> + var optionalTuple : ( Int , Int ) ? <nl> + var optionalTuple2 : ( Int64 , Int ) ? = ( bignum , 1 ) <nl> + var optionalTuple3 : ( UInt64 , Int ) ? = ( bignum , 1 ) / / expected - error { { cannot convert value of type ' ( Int64 , Int ) ' to specified type ' ( UInt64 , Int ) ? ' } } <nl> + <nl> + optionalTuple = ( bignum , 1 ) / / expected - error { { cannot assign value of type ' ( Int64 , Int ) ' to type ' ( Int , Int ) ' } } <nl> + / / Optional to Optional <nl> + optionalTuple = optionalTuple2 / / expected - error { { cannot assign value of type ' ( Int64 , Int ) ? ' to type ' ( Int , Int ) ? ' } } <nl>
|
Merge remote - tracking branch ' origin / master ' into master - next
|
apple/swift
|
2b14c0ac0f05ca8be623ecff3decc06c5dc15b83
|
2020-05-26T16:37:38Z
|
mmm a / include / swift / AST / Diagnostics . def <nl> ppp b / include / swift / AST / Diagnostics . def <nl> ERROR ( isa_is_always_true , sema_tcc , none , <nl> ( Type , Type ) ) <nl> ERROR ( downcast_to_unrelated , sema_tcc , none , <nl> " downcast from % 0 to unrelated type % 1 " , ( Type , Type ) ) <nl> - ERROR ( downcast_to_existential , sema_tcc , none , <nl> - " cannot downcast from % 0 to protocol type % 1 " , <nl> + ERROR ( downcast_to_non_objc_existential , sema_tcc , none , <nl> + " cannot downcast from % 0 to non - @ objc protocol type % 1 " , <nl> ( Type , Type ) ) <nl> ERROR ( downcast_from_existential_to_unrelated , sema_tcc , none , <nl> " cannot cast from protocol type % 0 to non - conforming type % 1 " , <nl> ERROR ( downcast_from_archetype_to_unrelated , sema_tcc , none , <nl> " cannot cast from type variable % 0 to type % 1 that does not match " <nl> " its constraints " , <nl> ( Type , Type ) ) <nl> + ERROR ( downcast_from_concrete_to_unrelated_archetype , sema_tcc , none , <nl> + " cannot cast from concrete type % 0 to type variable % 1 for which it " <nl> + " does not match constraints " , <nl> + ( Type , Type ) ) <nl> ERROR ( pattern_in_expr , sema_tcc , none , <nl> " % 0 cannot appear in an expression " , ( PatternKind ) ) <nl> NOTE ( note_call_to_operator , sema_tcc , none , <nl> mmm a / lib / Sema / TypeCheckConstraints . cpp <nl> ppp b / lib / Sema / TypeCheckConstraints . cpp <nl> CheckedCastKind TypeChecker : : typeCheckCheckedCast ( Type fromType , <nl> Type origFromType = fromType ; <nl> bool toArchetype = toType - > is < ArchetypeType > ( ) ; <nl> bool fromArchetype = fromType - > is < ArchetypeType > ( ) ; <nl> - bool toExistential = toType - > isExistentialType ( ) ; <nl> - bool fromExistential = fromType - > isExistentialType ( ) ; <nl> + SmallVector < ProtocolDecl * , 2 > toProtocols ; <nl> + bool toExistential = toType - > isExistentialType ( toProtocols ) ; <nl> + SmallVector < ProtocolDecl * , 2 > fromProtocols ; <nl> + bool fromExistential = fromType - > isExistentialType ( fromProtocols ) ; <nl> <nl> / / If the from / to types are equivalent or implicitly convertible , <nl> / / this should have been a coercion rather than a <nl> CheckedCastKind TypeChecker : : typeCheckCheckedCast ( Type fromType , <nl> return CheckedCastKind : : InvalidCoercible ; <nl> } <nl> <nl> - / / We can ' t downcast to an existential . <nl> + / / We can only downcast to an existential if the destination protocols are <nl> + / / objc and the source type is an objc class or an existential bounded by objc <nl> + / / protocols . <nl> if ( toExistential ) { <nl> - diagnose ( diagLoc , diag : : downcast_to_existential , <nl> + if ( fromExistential ) { <nl> + for ( auto fromProtocol : fromProtocols ) { <nl> + if ( ! fromProtocol - > isObjC ( ) ) <nl> + goto unsupported_existential_cast ; <nl> + } <nl> + } else { <nl> + auto fromClass = fromType - > getClassOrBoundGenericClass ( ) ; <nl> + if ( ! fromClass | | ! fromClass - > isObjC ( ) ) <nl> + goto unsupported_existential_cast ; <nl> + } <nl> + <nl> + for ( auto toProtocol : toProtocols ) { <nl> + if ( ! toProtocol - > isObjC ( ) ) <nl> + goto unsupported_existential_cast ; <nl> + } <nl> + <nl> + return CheckedCastKind : : ConcreteToUnrelatedExistential ; <nl> + <nl> + unsupported_existential_cast : <nl> + diagnose ( diagLoc , diag : : downcast_to_non_objc_existential , <nl> origFromType , toType ) <nl> . highlight ( diagFromRange ) <nl> . highlight ( diagToRange ) ; <nl> CheckedCastKind TypeChecker : : typeCheckCheckedCast ( Type fromType , <nl> return CheckedCastKind : : ArchetypeToConcrete ; <nl> } <nl> <nl> - / / - convert from a superclass to an archetype . <nl> if ( toArchetype ) { <nl> - auto toSuperType = toType - > castTo < ArchetypeType > ( ) - > getSuperclass ( ) ; <nl> - <nl> - / / Coerce to the supertype of the archetype . <nl> - if ( convertToType ( toSuperType ) ) <nl> - return CheckedCastKind : : Unresolved ; <nl> + / / - convert from a superclass to an archetype . <nl> + if ( auto toSuperType = toType - > castTo < ArchetypeType > ( ) - > getSuperclass ( ) ) { <nl> + / / Coerce to the supertype of the archetype . <nl> + if ( convertToType ( toSuperType ) ) <nl> + return CheckedCastKind : : Unresolved ; <nl> + <nl> + return CheckedCastKind : : SuperToArchetype ; <nl> + } <nl> + <nl> + / / - convert a concrete type to an archetype for which it fulfills <nl> + / / constraints . <nl> + if ( isSubstitutableFor ( fromType , toType - > castTo < ArchetypeType > ( ) , dc ) ) { <nl> + return CheckedCastKind : : ConcreteToArchetype ; <nl> + } <nl> <nl> - return CheckedCastKind : : SuperToArchetype ; <nl> + diagnose ( diagLoc , <nl> + diag : : downcast_from_concrete_to_unrelated_archetype , <nl> + origFromType , toType ) <nl> + . highlight ( diagFromRange ) <nl> + . highlight ( diagToRange ) ; <nl> + return CheckedCastKind : : Unresolved ; <nl> } <nl> <nl> / / The remaining case is a class downcast . <nl>
|
Sema : Type - check concrete - to - archetype and concrete - to - existential casts .
|
apple/swift
|
cbe05e245268d99a8a37cdbcb63d5fa5d2dc2aac
|
2013-10-16T00:10:14Z
|
mmm a / CMakeLists . txt <nl> ppp b / CMakeLists . txt <nl> OCV_OPTION ( WITH_GSTREAMER " Include Gstreamer support " ON <nl> OCV_OPTION ( WITH_GSTREAMER_0_10 " Enable Gstreamer 0 . 10 support ( instead of 1 . x ) " OFF ) <nl> OCV_OPTION ( WITH_GTK " Include GTK support " ON IF ( UNIX AND NOT APPLE AND NOT ANDROID ) ) <nl> OCV_OPTION ( WITH_GTK_2_X " Use GTK version 2 " OFF IF ( UNIX AND NOT APPLE AND NOT ANDROID ) ) <nl> - OCV_OPTION ( WITH_IPP " Include Intel IPP support " NOT MINGW IF ( X86_64 OR X86 ) AND NOT WINRT ) <nl> + OCV_OPTION ( WITH_IPP " Include Intel IPP support " NOT MINGW IF ( X86_64 OR X86 ) AND NOT WINRT AND NOT IOS ) <nl> OCV_OPTION ( WITH_HALIDE " Include Halide support " OFF ) <nl> OCV_OPTION ( WITH_JASPER " Include JPEG2K support " ON IF ( NOT IOS ) ) <nl> OCV_OPTION ( WITH_JPEG " Include JPEG support " ON ) <nl>
|
cmake : disable IPP on iOS
|
opencv/opencv
|
1bd865120c6581a82306e4cee982238a84217111
|
2017-11-02T14:36:53Z
|
mmm a / src / Functions / MatchImpl . h <nl> ppp b / src / Functions / MatchImpl . h <nl> struct MatchImpl <nl> { <nl> size_t size = offsets . size ( ) ; <nl> <nl> - const auto & regexp = Regexps : : get < like , true > ( pattern ) ; <nl> + auto regexp = Regexps : : get < like , true > ( pattern ) ; <nl> <nl> std : : string required_substring ; <nl> bool is_trivial ; <nl> struct MatchImpl <nl> { <nl> size_t size = data . size ( ) / n ; <nl> <nl> - const auto & regexp = Regexps : : get < like , true > ( pattern ) ; <nl> + auto regexp = Regexps : : get < like , true > ( pattern ) ; <nl> <nl> std : : string required_substring ; <nl> bool is_trivial ; <nl> mmm a / src / Functions / extractAllGroups . h <nl> ppp b / src / Functions / extractAllGroups . h <nl> class FunctionExtractAllGroups : public IFunction <nl> throw Exception ( " Length of ' needle ' argument must be greater than 0 . " , ErrorCodes : : BAD_ARGUMENTS ) ; <nl> <nl> using StringPiece = typename Regexps : : Regexp : : StringPieceType ; <nl> - const auto & regexp = Regexps : : get < false , false > ( needle ) - > getRE2 ( ) ; <nl> + auto holder = Regexps : : get < false , false > ( needle ) ; <nl> + const auto & regexp = holder - > getRE2 ( ) ; <nl> <nl> if ( ! regexp ) <nl> throw Exception ( " There are no groups in regexp : " + needle , ErrorCodes : : BAD_ARGUMENTS ) ; <nl> mmm a / src / Functions / extractGroups . cpp <nl> ppp b / src / Functions / extractGroups . cpp <nl> class FunctionExtractGroups : public IFunction <nl> if ( needle . empty ( ) ) <nl> throw Exception ( getName ( ) + " length of ' needle ' argument must be greater than 0 . " , ErrorCodes : : BAD_ARGUMENTS ) ; <nl> <nl> - const auto regexp = Regexps : : get < false , false > ( needle ) ; <nl> + auto regexp = Regexps : : get < false , false > ( needle ) ; <nl> const auto & re2 = regexp - > getRE2 ( ) ; <nl> <nl> if ( ! re2 ) <nl>
|
Merge pull request from ClickHouse / fix - race - condition - extract - all - groups
|
ClickHouse/ClickHouse
|
b041479d90746dde80e863d88b962efeb1ffec7d
|
2020-06-25T21:52:29Z
|
new file mode 100644 <nl> index 000000000 . . d4008aed8 <nl> mmm / dev / null <nl> ppp b / libs / DB4S_PATCH_03 <nl> <nl> pppmmm a / libs / qscintilla / Qt4Qt5 / Qsci / qsciscintilla . h <nl> ppp + b / libs / qscintilla / Qt4Qt5 / Qsci / qsciscintilla . h <nl> + public slots : <nl> + / / ! \ sa zoomIn ( ) , zoomOut ( ) <nl> + virtual void zoomTo ( int size ) ; <nl> + <nl> + + / / ! For performance , Scintilla does not measure the display width <nl> + + / / ! of the document to determine the properties of the horizontal <nl> + + / / ! scroll bar . Instead , an assumed width is used . This sets the <nl> + + / / ! document width in pixels assumed by Scintilla to \ a <nl> + + / / ! pixelWidth . The default value is 2000 . <nl> + + / / ! <nl> + + / / ! \ sa getScrollWidth ( ) , setScrollWidthTracking ( ) <nl> + + virtual void setScrollWidth ( int pixelWidth ) ; <nl> + + <nl> + + / / ! Gets the document width in pixels assumed by Scintilla . <nl> + + / / ! <nl> + + / / ! \ sa setScrollWidth ( ) , setScrollWidthTracking ( ) <nl> + + virtual int getScrollWidth ( ) const ; <nl> + + <nl> + + / / ! If scroll width tracking is enabled then the scroll width is <nl> + + / / ! adjusted to ensure that all of the lines currently displayed <nl> + + / / ! can be completely scrolled . This mode never adjusts the scroll <nl> + + / / ! width to be narrower . <nl> + + / / ! Sets the scroll width tracking to \ a enabled . <nl> + + / / ! <nl> + + / / ! \ sa setScrollWidth ( ) , getScrollWidthTracking ( ) <nl> + + virtual void setScrollWidthTracking ( bool enabled ) ; <nl> + + <nl> + + / / ! Gets the current scroll width tracking mode . <nl> + + / / ! <nl> + + / / ! \ sa getScrollWidth ( ) , setScrollWidthTracking ( ) <nl> + + virtual bool getScrollWidthTracking ( ) const ; <nl> + + <nl> + signals : <nl> + / / ! This signal is emitted whenever the cursor position changes . \ a line <nl> + / / ! contains the line number and \ a index contains the character index <nl> pppmmm a / libs / qscintilla / Qt4Qt5 / qsciscintilla . cpp <nl> ppp + b / libs / qscintilla / Qt4Qt5 / qsciscintilla . cpp <nl> + static QColor asQColor ( long sci_colour ) <nl> + ( ( int ) ( sci_colour > > 8 ) ) & 0x00ff , <nl> + ( ( int ) ( sci_colour > > 16 ) ) & 0x00ff ) ; <nl> + } <nl> + + <nl> + + void QsciScintilla : : setScrollWidth ( int pixelWidth ) <nl> + + { <nl> + + SendScintilla ( SCI_SETSCROLLWIDTH , pixelWidth ) ; <nl> + + } <nl> + + <nl> + + int QsciScintilla : : getScrollWidth ( ) const <nl> + + { <nl> + + return SendScintilla ( SCI_GETSCROLLWIDTH ) ; <nl> + + } <nl> + + <nl> + + void QsciScintilla : : setScrollWidthTracking ( bool enabled ) <nl> + + { <nl> + + SendScintilla ( SCI_SETSCROLLWIDTHTRACKING , enabled ) ; <nl> + + } <nl> + + <nl> + + bool QsciScintilla : : getScrollWidthTracking ( ) const <nl> + + { <nl> + + return SendScintilla ( SCI_GETSCROLLWIDTHTRACKING ) ; <nl> + + } <nl> + + <nl> + + <nl> + + <nl> mmm a / libs / qscintilla / Qt4Qt5 / Qsci / qsciscintilla . h <nl> ppp b / libs / qscintilla / Qt4Qt5 / Qsci / qsciscintilla . h <nl> public slots : <nl> / / ! \ sa zoomIn ( ) , zoomOut ( ) <nl> virtual void zoomTo ( int size ) ; <nl> <nl> + / / ! For performance , Scintilla does not measure the display width <nl> + / / ! of the document to determine the properties of the horizontal <nl> + / / ! scroll bar . Instead , an assumed width is used . This sets the <nl> + / / ! document width in pixels assumed by Scintilla to \ a <nl> + / / ! pixelWidth . The default value is 2000 . <nl> + / / ! <nl> + / / ! \ sa getScrollWidth ( ) , setScrollWidthTracking ( ) <nl> + virtual void setScrollWidth ( int pixelWidth ) ; <nl> + <nl> + / / ! Gets the document width in pixels assumed by Scintilla . <nl> + / / ! <nl> + / / ! \ sa setScrollWidth ( ) , setScrollWidthTracking ( ) <nl> + virtual int getScrollWidth ( ) const ; <nl> + <nl> + / / ! If scroll width tracking is enabled then the scroll width is <nl> + / / ! adjusted to ensure that all of the lines currently displayed <nl> + / / ! can be completely scrolled . This mode never adjusts the scroll <nl> + / / ! width to be narrower . <nl> + / / ! Sets the scroll width tracking to \ a enabled . <nl> + / / ! <nl> + / / ! \ sa setScrollWidth ( ) , getScrollWidthTracking ( ) <nl> + virtual void setScrollWidthTracking ( bool enabled ) ; <nl> + <nl> + / / ! Gets the current scroll width tracking mode . <nl> + / / ! <nl> + / / ! \ sa getScrollWidth ( ) , setScrollWidthTracking ( ) <nl> + virtual bool getScrollWidthTracking ( ) const ; <nl> + <nl> signals : <nl> / / ! This signal is emitted whenever the cursor position changes . \ a line <nl> / / ! contains the line number and \ a index contains the character index <nl> mmm a / libs / qscintilla / Qt4Qt5 / qsciscintilla . cpp <nl> ppp b / libs / qscintilla / Qt4Qt5 / qsciscintilla . cpp <nl> static QColor asQColor ( long sci_colour ) <nl> ( ( int ) ( sci_colour > > 8 ) ) & 0x00ff , <nl> ( ( int ) ( sci_colour > > 16 ) ) & 0x00ff ) ; <nl> } <nl> + <nl> + void QsciScintilla : : setScrollWidth ( int pixelWidth ) <nl> + { <nl> + SendScintilla ( SCI_SETSCROLLWIDTH , pixelWidth ) ; <nl> + } <nl> + <nl> + int QsciScintilla : : getScrollWidth ( ) const <nl> + { <nl> + return SendScintilla ( SCI_GETSCROLLWIDTH ) ; <nl> + } <nl> + <nl> + void QsciScintilla : : setScrollWidthTracking ( bool enabled ) <nl> + { <nl> + SendScintilla ( SCI_SETSCROLLWIDTHTRACKING , enabled ) ; <nl> + } <nl> + <nl> + bool QsciScintilla : : getScrollWidthTracking ( ) const <nl> + { <nl> + return SendScintilla ( SCI_GETSCROLLWIDTHTRACKING ) ; <nl> + } <nl> mmm a / src / sqltextedit . cpp <nl> ppp b / src / sqltextedit . cpp <nl> SqlTextEdit : : SqlTextEdit ( QWidget * parent ) : <nl> errorIndicatorNumber = indicatorDefine ( QsciScintilla : : SquiggleIndicator ) ; <nl> setIndicatorForegroundColor ( Qt : : red , errorIndicatorNumber ) ; <nl> <nl> + / / Set a sensible scroll width , so the scroll bar is avoided in <nl> + / / most cases . <nl> + setScrollWidth ( 80 ) ; <nl> + <nl> + / / Scroll width is adjusted to ensure that all of the lines <nl> + / / currently displayed can be completely scrolled . This mode never <nl> + / / adjusts the scroll width to be narrower . <nl> + setScrollWidthTracking ( true ) ; <nl> + <nl> / / Do rest of initialisation <nl> reloadSettings ( ) ; <nl> <nl>
|
Avoid displaying an unnecessary horizontal scrollbar in SQL editor widgets
|
sqlitebrowser/sqlitebrowser
|
d8aeae1a6ff0f4d721b4a806b01a9e77ae3f27f1
|
2017-11-12T13:32:14Z
|
mmm a / validation - test / SIL / crashers_fixed / 014 - swift - sildeclref - sildeclref . sil <nl> ppp b / validation - test / SIL / crashers_fixed / 014 - swift - sildeclref - sildeclref . sil <nl> <nl> / / RUN : not % target - sil - opt % s <nl> - / / REQUIRES : asserts <nl> class C } sil_vtable C { # C <nl>
|
[ gardening ] Remove " REQUIRES : asserts " from fixed crashers .
|
apple/swift
|
f280b69153b356ae602bf2bbe22effb367cebb6d
|
2017-05-09T18:46:35Z
|
new file mode 100644 <nl> index 00000000000 . . 496d7487314 <nl> mmm / dev / null <nl> ppp b / PULL_REQUEST_TEMPLATE . md <nl> <nl> + resolves # XXXX <nl> + <nl> + # # # What does this PR change ? <nl> + Please add your changes here . <nl>
|
Create a Pull Request template
|
opencv/opencv
|
7ff93600b88cf348c6c6d52499da539cb88d2de6
|
2016-02-19T13:29:59Z
|
mmm a / xbmc / cores / VideoPlayer / VideoPlayer . cpp <nl> ppp b / xbmc / cores / VideoPlayer / VideoPlayer . cpp <nl> void CVideoPlayer : : GetVideoStreamInfo ( int streamId , VideoStreamInfo & info ) <nl> info . codecName = s . codec ; <nl> info . videoAspectRatio = s . aspect_ratio ; <nl> info . stereoMode = s . stereo_mode ; <nl> + info . flags = s . flags ; <nl> } <nl> <nl> int CVideoPlayer : : GetSourceBitrate ( ) <nl> mmm a / xbmc / video / dialogs / GUIDialogVideoSettings . cpp <nl> ppp b / xbmc / video / dialogs / GUIDialogVideoSettings . cpp <nl> void CGUIDialogVideoSettings : : VideoStreamsOptionFiller ( std : : shared_ptr < const CSe <nl> else <nl> strItem + = " ) " ; <nl> <nl> + strItem + = FormatFlags ( info . flags ) ; <nl> strItem + = StringUtils : : Format ( " ( % i / % i ) " , i + 1 , videoStreamCount ) ; <nl> list . push_back ( make_pair ( strItem , i ) ) ; <nl> } <nl> void CGUIDialogVideoSettings : : VideoStreamsOptionFiller ( std : : shared_ptr < const CSe <nl> current = - 1 ; <nl> } <nl> } <nl> + <nl> + std : : string CGUIDialogVideoSettings : : FormatFlags ( StreamFlags flags ) <nl> + { <nl> + std : : vector < std : : string > localizedFlags ; <nl> + if ( flags & StreamFlags : : FLAG_DEFAULT ) <nl> + localizedFlags . emplace_back ( g_localizeStrings . Get ( 39104 ) ) ; <nl> + if ( flags & StreamFlags : : FLAG_FORCED ) <nl> + localizedFlags . emplace_back ( g_localizeStrings . Get ( 39105 ) ) ; <nl> + if ( flags & StreamFlags : : FLAG_HEARING_IMPAIRED ) <nl> + localizedFlags . emplace_back ( g_localizeStrings . Get ( 39106 ) ) ; <nl> + if ( flags & StreamFlags : : FLAG_VISUAL_IMPAIRED ) <nl> + localizedFlags . emplace_back ( g_localizeStrings . Get ( 39107 ) ) ; <nl> + <nl> + std : : string formated = StringUtils : : Join ( localizedFlags , " , " ) ; <nl> + <nl> + if ( ! formated . empty ( ) ) <nl> + formated = StringUtils : : Format ( " [ % s ] " , formated ) ; <nl> + <nl> + return formated ; <nl> + } <nl> \ No newline at end of file <nl> mmm a / xbmc / video / dialogs / GUIDialogVideoSettings . h <nl> ppp b / xbmc / video / dialogs / GUIDialogVideoSettings . h <nl> <nl> # include < vector > <nl> <nl> # include " settings / dialogs / GUIDialogSettingsManualBase . h " <nl> + # include " cores / VideoPlayer / Interface / StreamInfo . h " <nl> <nl> class CGUIDialogVideoSettings : public CGUIDialogSettingsManualBase <nl> { <nl> class CGUIDialogVideoSettings : public CGUIDialogSettingsManualBase <nl> void AddVideoStreams ( std : : shared_ptr < CSettingGroup > group , const std : : string & settingId ) ; <nl> static void VideoStreamsOptionFiller ( std : : shared_ptr < const CSetting > setting , std : : vector < std : : pair < std : : string , int > > & list , int & current , void * data ) ; <nl> <nl> + static std : : string FormatFlags ( StreamFlags flags ) ; <nl> + <nl> / / specialization of CGUIDialogSettingsBase <nl> bool AllowResettingSettings ( ) const override { return false ; } <nl> void Save ( ) override ; <nl>
|
[ videoplayer / gui ] Show flags ( forced , default , etc . ) in the video dialog .
|
xbmc/xbmc
|
2a85edb3961842ee24b0212b1695cf58d7a2b0a8
|
2017-11-27T19:53:44Z
|
mmm a / src / searchengine / searchengine . cpp <nl> ppp b / src / searchengine / searchengine . cpp <nl> <nl> <nl> / * SEARCH ENGINE START * / <nl> SearchEngine : : SearchEngine ( MainWindow * parent ) <nl> - : QWidget ( parent ) <nl> - , search_pattern ( new LineEdit ) <nl> - , mp_mainWindow ( parent ) <nl> + : QWidget ( parent ) <nl> + , search_pattern ( new LineEdit ) <nl> + , mp_mainWindow ( parent ) <nl> { <nl> setupUi ( this ) ; <nl> searchBarLayout - > insertWidget ( 0 , search_pattern ) ; <nl> SearchEngine : : SearchEngine ( MainWindow * parent ) <nl> fillEngineComboBox ( ) ; <nl> <nl> connect ( search_pattern , SIGNAL ( textEdited ( QString ) ) , this , SLOT ( searchTextEdited ( QString ) ) ) ; <nl> - connect ( selectEngine , SIGNAL ( currentIndexChanged ( const QString & ) ) , this , SLOT ( selectMultipleBox ( const QString & ) ) ) ; <nl> + connect ( selectEngine , SIGNAL ( currentIndexChanged ( const QString & ) ) , this , SLOT ( selectMultipleBox ( const QString & ) ) ) ; <nl> } <nl> <nl> - void SearchEngine : : fillCatCombobox ( ) { <nl> + void SearchEngine : : fillCatCombobox ( ) <nl> + { <nl> comboCategory - > clear ( ) ; <nl> comboCategory - > addItem ( full_cat_names [ " all " ] , QVariant ( " all " ) ) ; <nl> QStringList supported_cat = supported_engines - > supportedCategories ( ) ; <nl> foreach ( QString cat , supported_cat ) { <nl> qDebug ( " Supported category : % s " , qPrintable ( cat ) ) ; <nl> comboCategory - > addItem ( full_cat_names [ cat ] , QVariant ( cat ) ) ; <nl> - } <nl> + } <nl> } <nl> <nl> - void SearchEngine : : fillEngineComboBox ( ) { <nl> + void SearchEngine : : fillEngineComboBox ( ) <nl> + { <nl> selectEngine - > clear ( ) ; <nl> selectEngine - > addItem ( tr ( " All enabled " ) , QVariant ( " enabled " ) ) ; <nl> selectEngine - > addItem ( tr ( " All engines " ) , QVariant ( " all " ) ) ; <nl> void SearchEngine : : fillEngineComboBox ( ) { <nl> selectEngine - > addItem ( tr ( " Multiple . . . " ) , QVariant ( " multi " ) ) ; <nl> } <nl> <nl> - QString SearchEngine : : selectedCategory ( ) const { <nl> + QString SearchEngine : : selectedCategory ( ) const <nl> + { <nl> return comboCategory - > itemData ( comboCategory - > currentIndex ( ) ) . toString ( ) ; <nl> } <nl> <nl> - QString SearchEngine : : selectedEngine ( ) const { <nl> + QString SearchEngine : : selectedEngine ( ) const <nl> + { <nl> return selectEngine - > itemData ( selectEngine - > currentIndex ( ) ) . toString ( ) ; <nl> } <nl> <nl> - SearchEngine : : ~ SearchEngine ( ) { <nl> + SearchEngine : : ~ SearchEngine ( ) <nl> + { <nl> qDebug ( " Search destruction " ) ; <nl> searchProcess - > kill ( ) ; <nl> searchProcess - > waitForFinished ( ) ; <nl> SearchEngine : : ~ SearchEngine ( ) { <nl> } <nl> <nl> void SearchEngine : : tab_changed ( int t ) <nl> - { / / when we switch from a tab that is not empty to another that is empty the download button <nl> - / / doesn ' t have to be available <nl> - if ( t > - 1 ) { / / - 1 = no more tab <nl> + { <nl> + / / when we switch from a tab that is not empty to another that is empty the download button <nl> + / / doesn ' t have to be available <nl> + if ( t > - 1 ) { <nl> + / / - 1 = no more tab <nl> currentSearchTab = all_tab . at ( tabWidget - > currentIndex ( ) ) ; <nl> if ( currentSearchTab - > getCurrentSearchListModel ( ) - > rowCount ( ) ) { <nl> download_button - > setEnabled ( true ) ; <nl> void SearchEngine : : tab_changed ( int t ) <nl> } <nl> } <nl> <nl> - void SearchEngine : : selectMultipleBox ( const QString & text ) { <nl> + void SearchEngine : : selectMultipleBox ( const QString & text ) <nl> + { <nl> if ( text = = tr ( " Multiple . . . " ) ) on_enginesButton_clicked ( ) ; <nl> } <nl> <nl> - void SearchEngine : : on_enginesButton_clicked ( ) { <nl> + void SearchEngine : : on_enginesButton_clicked ( ) <nl> + { <nl> engineSelectDlg * dlg = new engineSelectDlg ( this , supported_engines ) ; <nl> connect ( dlg , SIGNAL ( enginesChanged ( ) ) , this , SLOT ( fillCatCombobox ( ) ) ) ; <nl> connect ( dlg , SIGNAL ( enginesChanged ( ) ) , this , SLOT ( fillEngineComboBox ( ) ) ) ; <nl> } <nl> <nl> - void SearchEngine : : searchTextEdited ( QString ) { <nl> + void SearchEngine : : searchTextEdited ( QString ) <nl> + { <nl> / / Enable search button <nl> search_button - > setText ( tr ( " Search " ) ) ; <nl> } <nl> <nl> - void SearchEngine : : giveFocusToSearchInput ( ) { <nl> + void SearchEngine : : giveFocusToSearchInput ( ) <nl> + { <nl> search_pattern - > setFocus ( ) ; <nl> } <nl> <nl> / / Function called when we click on search button <nl> - void SearchEngine : : on_search_button_clicked ( ) { <nl> + void SearchEngine : : on_search_button_clicked ( ) <nl> + { <nl> if ( Utils : : Misc : : pythonVersion ( ) < 0 ) { <nl> mp_mainWindow - > showNotificationBaloon ( tr ( " Search Engine " ) , tr ( " Please install Python to use the Search Engine . " ) ) ; <nl> return ; <nl> void SearchEngine : : on_search_button_clicked ( ) { <nl> searchProcess - > terminate ( ) ; <nl> # endif <nl> search_stopped = true ; <nl> - if ( searchTimeout - > isActive ( ) ) { <nl> + if ( searchTimeout - > isActive ( ) ) <nl> searchTimeout - > stop ( ) ; <nl> - } <nl> if ( search_button - > text ( ) ! = tr ( " Search " ) ) { <nl> search_button - > setText ( tr ( " Search " ) ) ; <nl> return ; <nl> void SearchEngine : : on_search_button_clicked ( ) { <nl> nb_search_results = 0 ; <nl> search_result_line_truncated . clear ( ) ; <nl> / / Changing the text of the current label <nl> - currentSearchTab - > getCurrentLabel ( ) - > setText ( tr ( " Results " ) + " < i > ( 0 ) < / i > : " ) ; <nl> + currentSearchTab - > getCurrentLabel ( ) - > setText ( tr ( " Results " ) + " < i > ( 0 ) < / i > : " ) ; <nl> / / Launch search <nl> searchProcess - > start ( Utils : : Misc : : pythonExecutable ( ) , params , QIODevice : : ReadOnly ) ; <nl> searchTimeout - > start ( 180000 ) ; / / 3min <nl> } <nl> <nl> - void SearchEngine : : saveResultsColumnsWidth ( ) { <nl> + void SearchEngine : : saveResultsColumnsWidth ( ) <nl> + { <nl> if ( all_tab . isEmpty ( ) ) <nl> return ; <nl> QTreeView * treeview = all_tab . first ( ) - > getCurrentTreeView ( ) ; <nl> Preferences * const pref = Preferences : : instance ( ) ; <nl> QStringList new_width_list ; <nl> short nbColumns = all_tab . first ( ) - > getCurrentSearchListModel ( ) - > columnCount ( ) ; <nl> - for ( short i = 0 ; i < nbColumns ; + + i ) { <nl> + for ( short i = 0 ; i < nbColumns ; + + i ) <nl> if ( treeview - > columnWidth ( i ) > 0 ) <nl> new_width_list < < QString : : number ( treeview - > columnWidth ( i ) ) ; <nl> - } <nl> / / Don ' t save the width of the last column ( auto column width ) <nl> new_width_list . removeLast ( ) ; <nl> pref - > setSearchColsWidth ( new_width_list . join ( " " ) ) ; <nl> } <nl> <nl> - void SearchEngine : : downloadTorrent ( QString engine_url , QString torrent_url ) { <nl> + void SearchEngine : : downloadTorrent ( QString engine_url , QString torrent_url ) <nl> + { <nl> if ( torrent_url . startsWith ( " bc : / / bt / " , Qt : : CaseInsensitive ) ) { <nl> qDebug ( " Converting bc link to magnet link " ) ; <nl> torrent_url = Utils : : Misc : : bcLinkToMagnet ( torrent_url ) ; <nl> void SearchEngine : : downloadTorrent ( QString engine_url , QString torrent_url ) { <nl> QStringList urls ; <nl> urls < < torrent_url ; <nl> mp_mainWindow - > downloadFromURLList ( urls ) ; <nl> - } else { <nl> + } <nl> + else { <nl> QProcess * downloadProcess = new QProcess ( this ) ; <nl> downloadProcess - > setEnvironment ( QProcess : : systemEnvironment ( ) ) ; <nl> connect ( downloadProcess , SIGNAL ( finished ( int , QProcess : : ExitStatus ) ) , this , SLOT ( downloadFinished ( int , QProcess : : ExitStatus ) ) ) ; <nl> void SearchEngine : : downloadTorrent ( QString engine_url , QString torrent_url ) { <nl> } <nl> } <nl> <nl> - void SearchEngine : : searchStarted ( ) { <nl> + void SearchEngine : : searchStarted ( ) <nl> + { <nl> / / Update SearchEngine widgets <nl> activeSearchTab - > status = tr ( " Searching . . . " ) ; <nl> search_status - > setText ( activeSearchTab - > status ) ; <nl> void SearchEngine : : searchStarted ( ) { <nl> / / search Qprocess return output as soon as it gets new <nl> / / stuff to read . We split it into lines and add each <nl> / / line to search results calling appendSearchResult ( ) . <nl> - void SearchEngine : : readSearchOutput ( ) { <nl> + void SearchEngine : : readSearchOutput ( ) <nl> + { <nl> QByteArray output = searchProcess - > readAllStandardOutput ( ) ; <nl> output . replace ( " \ r " , " " ) ; <nl> QList < QByteArray > lines_list = output . split ( ' \ n ' ) ; <nl> if ( ! search_result_line_truncated . isEmpty ( ) ) { <nl> QByteArray end_of_line = lines_list . takeFirst ( ) ; <nl> - lines_list . prepend ( search_result_line_truncated + end_of_line ) ; <nl> + lines_list . prepend ( search_result_line_truncated + end_of_line ) ; <nl> } <nl> search_result_line_truncated = lines_list . takeLast ( ) . trimmed ( ) ; <nl> - foreach ( const QByteArray & line , lines_list ) { <nl> + foreach ( const QByteArray & line , lines_list ) <nl> appendSearchResult ( QString : : fromUtf8 ( line ) ) ; <nl> - } <nl> if ( activeSearchTab ) <nl> - activeSearchTab - > getCurrentLabel ( ) - > setText ( tr ( " Results " ) + QString : : fromUtf8 ( " < i > ( " ) + QString : : number ( nb_search_results ) + QString : : fromUtf8 ( " ) < / i > : " ) ) ; <nl> + activeSearchTab - > getCurrentLabel ( ) - > setText ( tr ( " Results " ) + QString : : fromUtf8 ( " < i > ( " ) + QString : : number ( nb_search_results ) + QString : : fromUtf8 ( " ) < / i > : " ) ) ; <nl> } <nl> <nl> - void SearchEngine : : downloadFinished ( int exitcode , QProcess : : ExitStatus ) { <nl> + void SearchEngine : : downloadFinished ( int exitcode , QProcess : : ExitStatus ) <nl> + { <nl> QProcess * downloadProcess = ( QProcess * ) sender ( ) ; <nl> if ( exitcode = = 0 ) { <nl> QString line = QString : : fromUtf8 ( downloadProcess - > readAllStandardOutput ( ) ) . trimmed ( ) ; <nl> static inline void removePythonScriptIfExists ( const QString & script_path ) <nl> } <nl> <nl> / / Update nova . py search plugin if necessary <nl> - void SearchEngine : : updateNova ( ) { <nl> + void SearchEngine : : updateNova ( ) <nl> + { <nl> qDebug ( " Updating nova " ) ; <nl> / / create nova directory if necessary <nl> QDir search_dir ( Utils : : Fs : : searchEngineLocation ( ) ) ; <nl> void SearchEngine : : updateNova ( ) { <nl> QFile package_file ( search_dir . absoluteFilePath ( " __init__ . py " ) ) ; <nl> package_file . open ( QIODevice : : WriteOnly | QIODevice : : Text ) ; <nl> package_file . close ( ) ; <nl> - if ( ! search_dir . exists ( " engines " ) ) { <nl> + if ( ! search_dir . exists ( " engines " ) ) <nl> search_dir . mkdir ( " engines " ) ; <nl> - } <nl> Utils : : Fs : : removeDirRecursive ( search_dir . absoluteFilePath ( " __pycache__ " ) ) ; <nl> <nl> QFile package_file2 ( search_dir . absolutePath ( ) + " / engines / __init__ . py " ) ; <nl> void SearchEngine : : updateNova ( ) { <nl> package_file2 . close ( ) ; <nl> / / Copy search plugin files ( if necessary ) <nl> QString filePath = search_dir . absoluteFilePath ( " nova2 . py " ) ; <nl> - if ( getPluginVersion ( " : / " + nova_folder + " / nova2 . py " ) > getPluginVersion ( filePath ) ) { <nl> + if ( getPluginVersion ( " : / " + nova_folder + " / nova2 . py " ) > getPluginVersion ( filePath ) ) { <nl> removePythonScriptIfExists ( filePath ) ; <nl> - QFile : : copy ( " : / " + nova_folder + " / nova2 . py " , filePath ) ; <nl> + QFile : : copy ( " : / " + nova_folder + " / nova2 . py " , filePath ) ; <nl> } <nl> <nl> filePath = search_dir . absoluteFilePath ( " nova2dl . py " ) ; <nl> - if ( getPluginVersion ( " : / " + nova_folder + " / nova2dl . py " ) > getPluginVersion ( filePath ) ) { <nl> + if ( getPluginVersion ( " : / " + nova_folder + " / nova2dl . py " ) > getPluginVersion ( filePath ) ) { <nl> removePythonScriptIfExists ( filePath ) ; <nl> - QFile : : copy ( " : / " + nova_folder + " / nova2dl . py " , filePath ) ; <nl> + QFile : : copy ( " : / " + nova_folder + " / nova2dl . py " , filePath ) ; <nl> } <nl> <nl> filePath = search_dir . absoluteFilePath ( " novaprinter . py " ) ; <nl> - if ( getPluginVersion ( " : / " + nova_folder + " / novaprinter . py " ) > getPluginVersion ( filePath ) ) { <nl> + if ( getPluginVersion ( " : / " + nova_folder + " / novaprinter . py " ) > getPluginVersion ( filePath ) ) { <nl> removePythonScriptIfExists ( filePath ) ; <nl> - QFile : : copy ( " : / " + nova_folder + " / novaprinter . py " , filePath ) ; <nl> + QFile : : copy ( " : / " + nova_folder + " / novaprinter . py " , filePath ) ; <nl> } <nl> <nl> filePath = search_dir . absoluteFilePath ( " helpers . py " ) ; <nl> - if ( getPluginVersion ( " : / " + nova_folder + " / helpers . py " ) > getPluginVersion ( filePath ) ) { <nl> + if ( getPluginVersion ( " : / " + nova_folder + " / helpers . py " ) > getPluginVersion ( filePath ) ) { <nl> removePythonScriptIfExists ( filePath ) ; <nl> - QFile : : copy ( " : / " + nova_folder + " / helpers . py " , filePath ) ; <nl> + QFile : : copy ( " : / " + nova_folder + " / helpers . py " , filePath ) ; <nl> } <nl> <nl> filePath = search_dir . absoluteFilePath ( " socks . py " ) ; <nl> removePythonScriptIfExists ( filePath ) ; <nl> - QFile : : copy ( " : / " + nova_folder + " / socks . py " , filePath ) ; <nl> + QFile : : copy ( " : / " + nova_folder + " / socks . py " , filePath ) ; <nl> <nl> if ( nova_folder = = " nova " ) { <nl> filePath = search_dir . absoluteFilePath ( " fix_encoding . py " ) ; <nl> removePythonScriptIfExists ( filePath ) ; <nl> - QFile : : copy ( " : / " + nova_folder + " / fix_encoding . py " , filePath ) ; <nl> + QFile : : copy ( " : / " + nova_folder + " / fix_encoding . py " , filePath ) ; <nl> } <nl> else if ( nova_folder = = " nova3 " ) { <nl> filePath = search_dir . absoluteFilePath ( " sgmllib3 . py " ) ; <nl> removePythonScriptIfExists ( filePath ) ; <nl> - QFile : : copy ( " : / " + nova_folder + " / sgmllib3 . py " , filePath ) ; <nl> + QFile : : copy ( " : / " + nova_folder + " / sgmllib3 . py " , filePath ) ; <nl> } <nl> QDir destDir ( QDir ( Utils : : Fs : : searchEngineLocation ( ) ) . absoluteFilePath ( " engines " ) ) ; <nl> Utils : : Fs : : removeDirRecursive ( destDir . absoluteFilePath ( " __pycache__ " ) ) ; <nl> - QDir shipped_subDir ( " : / " + nova_folder + " / engines / " ) ; <nl> + QDir shipped_subDir ( " : / " + nova_folder + " / engines / " ) ; <nl> QStringList files = shipped_subDir . entryList ( ) ; <nl> foreach ( const QString & file , files ) { <nl> QString shipped_file = shipped_subDir . absoluteFilePath ( file ) ; <nl> void SearchEngine : : updateNova ( ) { <nl> qDebug ( " % s copied to % s " , qPrintable ( shipped_file ) , qPrintable ( dest_file ) ) ; <nl> QFile : : copy ( shipped_file , dest_file ) ; <nl> } <nl> - } else { <nl> - / / Copy icons <nl> - if ( file . endsWith ( " . png " ) ) { <nl> - if ( ! QFile : : exists ( destDir . absoluteFilePath ( file ) ) ) { <nl> + } <nl> + else { <nl> + / / Copy icons <nl> + if ( file . endsWith ( " . png " ) ) <nl> + if ( ! QFile : : exists ( destDir . absoluteFilePath ( file ) ) ) <nl> QFile : : copy ( shipped_file , destDir . absoluteFilePath ( file ) ) ; <nl> - } <nl> - } <nl> } <nl> } <nl> } <nl> void SearchEngine : : updateNova ( ) { <nl> / / Slot called when search is Finished <nl> / / Search can be finished for 3 reasons : <nl> / / Error | Stopped by user | Finished normally <nl> - void SearchEngine : : searchFinished ( int exitcode , QProcess : : ExitStatus ) { <nl> - if ( searchTimeout - > isActive ( ) ) { <nl> + void SearchEngine : : searchFinished ( int exitcode , QProcess : : ExitStatus ) <nl> + { <nl> + if ( searchTimeout - > isActive ( ) ) <nl> searchTimeout - > stop ( ) ; <nl> - } <nl> bool useNotificationBalloons = Preferences : : instance ( ) - > useProgramNotification ( ) ; <nl> - if ( useNotificationBalloons & & mp_mainWindow - > getCurrentTabWidget ( ) ! = this ) { <nl> + if ( useNotificationBalloons & & mp_mainWindow - > getCurrentTabWidget ( ) ! = this ) <nl> mp_mainWindow - > showNotificationBaloon ( tr ( " Search Engine " ) , tr ( " Search has finished " ) ) ; <nl> - } <nl> if ( exitcode ) { <nl> # ifdef Q_OS_WIN <nl> activeSearchTab - > status = tr ( " Search aborted " ) ; <nl> # else <nl> activeSearchTab - > status = tr ( " An error occurred during search . . . " ) ; <nl> # endif <nl> - } else { <nl> + } <nl> + else { <nl> if ( search_stopped ) { <nl> activeSearchTab - > status = tr ( " Search aborted " ) ; <nl> - } else { <nl> - if ( no_search_results ) { <nl> + } <nl> + else { <nl> + if ( no_search_results ) <nl> activeSearchTab - > status = tr ( " Search returned no results " ) ; <nl> - } else { <nl> + else <nl> activeSearchTab - > status = tr ( " Search has finished " ) ; <nl> - } <nl> } <nl> } <nl> <nl> if ( activeSearchTab ) <nl> if ( currentSearchTab = = activeSearchTab ) search_status - > setText ( activeSearchTab - > status ) ; <nl> - activeSearchTab - > getCurrentLabel ( ) - > setText ( tr ( " Results " , " i . e : Search results " ) + QString : : fromUtf8 ( " < i > ( " ) + QString : : number ( nb_search_results ) + QString : : fromUtf8 ( " ) < / i > : " ) ) ; <nl> - activeSearchTab - > isActive = false ; <nl> - activeSearchTab = 0 ; <nl> + activeSearchTab - > getCurrentLabel ( ) - > setText ( tr ( " Results " , " i . e : Search results " ) + QString : : fromUtf8 ( " < i > ( " ) + QString : : number ( nb_search_results ) + QString : : fromUtf8 ( " ) < / i > : " ) ) ; <nl> + activeSearchTab - > isActive = false ; <nl> + activeSearchTab = 0 ; <nl> <nl> search_button - > setText ( tr ( " Search " ) ) ; <nl> } <nl> void SearchEngine : : searchFinished ( int exitcode , QProcess : : ExitStatus ) { <nl> / / SLOT to append one line to search results list <nl> / / Line is in the following form : <nl> / / file url | file name | file size | nb seeds | nb leechers | Search engine url <nl> - void SearchEngine : : appendSearchResult ( const QString & line ) { <nl> + void SearchEngine : : appendSearchResult ( const QString & line ) <nl> + { <nl> if ( ! activeSearchTab ) { <nl> - if ( searchProcess - > state ( ) ! = QProcess : : NotRunning ) { <nl> + if ( searchProcess - > state ( ) ! = QProcess : : NotRunning ) <nl> searchProcess - > terminate ( ) ; <nl> - } <nl> - if ( searchTimeout - > isActive ( ) ) { <nl> + if ( searchTimeout - > isActive ( ) ) <nl> searchTimeout - > stop ( ) ; <nl> - } <nl> search_stopped = true ; <nl> return ; <nl> } <nl> const QStringList parts = line . split ( " | " ) ; <nl> const int nb_fields = parts . size ( ) ; <nl> - if ( nb_fields < NB_PLUGIN_COLUMNS - 1 ) { / / - 1 because desc_link is optional <nl> + if ( nb_fields < NB_PLUGIN_COLUMNS - 1 ) / / - 1 because desc_link is optional <nl> return ; <nl> - } <nl> Q_ASSERT ( activeSearchTab ) ; <nl> / / Add item to search result list <nl> QStandardItemModel * cur_model = activeSearchTab - > getCurrentSearchListModel ( ) ; <nl> void SearchEngine : : appendSearchResult ( const QString & line ) { <nl> cur_model - > setData ( cur_model - > index ( row , SearchSortModel : : SIZE ) , parts . at ( PL_SIZE ) . trimmed ( ) . toLongLong ( ) ) ; / / Size <nl> bool ok = false ; <nl> qlonglong nb_seeders = parts . at ( PL_SEEDS ) . trimmed ( ) . toLongLong ( & ok ) ; <nl> - if ( ! ok | | nb_seeders < 0 ) { <nl> + if ( ! ok | | nb_seeders < 0 ) <nl> cur_model - > setData ( cur_model - > index ( row , SearchSortModel : : SEEDS ) , - 1 ) ; / / Seeders <nl> - } else { <nl> + else <nl> cur_model - > setData ( cur_model - > index ( row , SearchSortModel : : SEEDS ) , nb_seeders ) ; / / Seeders <nl> - } <nl> qlonglong nb_leechers = parts . at ( PL_LEECHS ) . trimmed ( ) . toLongLong ( & ok ) ; <nl> - if ( ! ok | | nb_leechers < 0 ) { <nl> + if ( ! ok | | nb_leechers < 0 ) <nl> cur_model - > setData ( cur_model - > index ( row , SearchSortModel : : LEECHS ) , - 1 ) ; / / Leechers <nl> - } else { <nl> + else <nl> cur_model - > setData ( cur_model - > index ( row , SearchSortModel : : LEECHS ) , nb_leechers ) ; / / Leechers <nl> - } <nl> cur_model - > setData ( cur_model - > index ( row , SearchSortModel : : ENGINE_URL ) , parts . at ( PL_ENGINE_URL ) . trimmed ( ) ) ; / / Engine URL <nl> / / Description Link <nl> if ( nb_fields = = NB_PLUGIN_COLUMNS ) <nl> void SearchEngine : : appendSearchResult ( const QString & line ) { <nl> goToDescBtn - > setEnabled ( true ) ; <nl> } <nl> <nl> - void SearchEngine : : closeTab ( int index ) { <nl> + void SearchEngine : : closeTab ( int index ) <nl> + { <nl> / / Search is run for active tab so if user decided to close it , then stop search <nl> if ( activeSearchTab & & index = = tabWidget - > indexOf ( activeSearchTab ) ) { <nl> qDebug ( " Closed active search Tab " ) ; <nl> - if ( searchProcess - > state ( ) ! = QProcess : : NotRunning ) { <nl> + if ( searchProcess - > state ( ) ! = QProcess : : NotRunning ) <nl> searchProcess - > terminate ( ) ; <nl> - } <nl> - if ( searchTimeout - > isActive ( ) ) { <nl> + if ( searchTimeout - > isActive ( ) ) <nl> searchTimeout - > stop ( ) ; <nl> - } <nl> search_stopped = true ; <nl> if ( currentSearchTab = = activeSearchTab ) currentSearchTab = 0 ; <nl> activeSearchTab = 0 ; <nl> void SearchEngine : : closeTab ( int index ) { <nl> } <nl> <nl> / / Download selected items in search results list <nl> - void SearchEngine : : on_download_button_clicked ( ) { <nl> + void SearchEngine : : on_download_button_clicked ( ) <nl> + { <nl> / / QModelIndexList selectedIndexes = currentSearchTab - > getCurrentTreeView ( ) - > selectionModel ( ) - > selectedIndexes ( ) ; <nl> QModelIndexList selectedIndexes = all_tab . at ( tabWidget - > currentIndex ( ) ) - > getCurrentTreeView ( ) - > selectionModel ( ) - > selectedIndexes ( ) ; <nl> foreach ( const QModelIndex & index , selectedIndexes ) { <nl> void SearchEngine : : on_goToDescBtn_clicked ( ) <nl> <nl> inline void SearchEngine : : allTabsSetActiveState ( bool newState ) <nl> { <nl> - foreach ( SearchTab * tab , all_tab ) { <nl> + foreach ( SearchTab * tab , all_tab ) <nl> tab - > isActive = newState ; <nl> - } <nl> } <nl>
|
Follow project coding style . Issue .
|
qbittorrent/qBittorrent
|
885eb64df337513c1519af176703cb760a8ca40d
|
2015-07-29T17:58:22Z
|
mmm a / modules / core / src / gpumat . cpp <nl> ppp b / modules / core / src / gpumat . cpp <nl> namespace <nl> int Cores ; <nl> } SMtoCores ; <nl> <nl> - SMtoCores gpuArchCoresPerSM [ ] = { { 0x10 , 8 } , { 0x11 , 8 } , { 0x12 , 8 } , { 0x13 , 8 } , { 0x20 , 32 } , { 0x21 , 48 } , { 0x30 , 192 } , { - 1 , - 1 } } ; <nl> + SMtoCores gpuArchCoresPerSM [ ] = { { 0x10 , 8 } , { 0x11 , 8 } , { 0x12 , 8 } , { 0x13 , 8 } , { 0x20 , 32 } , { 0x21 , 48 } , { 0x30 , 192 } , { 0x35 , 192 } , { - 1 , - 1 } } ; <nl> <nl> int index = 0 ; <nl> while ( gpuArchCoresPerSM [ index ] . SM ! = - 1 ) <nl> namespace <nl> return gpuArchCoresPerSM [ index ] . Cores ; <nl> index + + ; <nl> } <nl> - printf ( " MapSMtoCores undefined SMversion % d . % d ! \ n " , major , minor ) ; <nl> + <nl> return - 1 ; <nl> } <nl> } <nl> void cv : : gpu : : printCudaDeviceInfo ( int device ) <nl> printf ( " CUDA Driver Version / Runtime Version % d . % d / % d . % d \ n " , driverVersion / 1000 , driverVersion % 100 , runtimeVersion / 1000 , runtimeVersion % 100 ) ; <nl> printf ( " CUDA Capability Major / Minor version number : % d . % d \ n " , prop . major , prop . minor ) ; <nl> printf ( " Total amount of global memory : % . 0f MBytes ( % llu bytes ) \ n " , ( float ) prop . totalGlobalMem / 1048576 . 0f , ( unsigned long long ) prop . totalGlobalMem ) ; <nl> - printf ( " ( % 2d ) Multiprocessors x ( % 2d ) CUDA Cores / MP : % d CUDA Cores \ n " , <nl> - prop . multiProcessorCount , convertSMVer2Cores ( prop . major , prop . minor ) , <nl> - convertSMVer2Cores ( prop . major , prop . minor ) * prop . multiProcessorCount ) ; <nl> + <nl> + int cores = convertSMVer2Cores ( prop . major , prop . minor ) ; <nl> + if ( cores > 0 ) <nl> + printf ( " ( % 2d ) Multiprocessors x ( % 2d ) CUDA Cores / MP : % d CUDA Cores \ n " , prop . multiProcessorCount , cores , cores * prop . multiProcessorCount ) ; <nl> + <nl> printf ( " GPU Clock Speed : % . 2f GHz \ n " , prop . clockRate * 1e - 6f ) ; <nl> <nl> printf ( " Max Texture Dimension Size ( x , y , z ) 1D = ( % d ) , 2D = ( % d , % d ) , 3D = ( % d , % d , % d ) \ n " , <nl>
|
fixed printCudaDeviceInfo for 3 . 5 CC ( Patch )
|
opencv/opencv
|
bac94f85c13f960934301d73be0f285b2f0071c2
|
2012-12-18T09:50:19Z
|
mmm a / lib / Sema / TypeCheckDecl . cpp <nl> ppp b / lib / Sema / TypeCheckDecl . cpp <nl> checkExtensionGenericParams ( TypeChecker & tc , ExtensionDecl * ext , Type type , <nl> / * allowConcreteGenericParams = * / true , <nl> inferExtendedTypeReqs ) ; <nl> <nl> - / / Validate the generic parameters for the last time . <nl> + / / Validate the generic parameters for the penultimate time to get an <nl> + / / environment where we have the parent archetypes . <nl> tc . revertGenericParamList ( genericParams ) ; <nl> ArchetypeBuilder builder = tc . createArchetypeBuilder ( ext - > getModuleContext ( ) ) ; <nl> - PartialGenericTypeToArchetypeResolver resolver ; <nl> + DependentGenericTypeResolver completeResolver ( builder ) ; <nl> tc . checkGenericParamList ( & builder , genericParams , parentSig , parentEnv , <nl> - & resolver ) ; <nl> + & completeResolver ) ; <nl> inferExtendedTypeReqs ( builder ) ; <nl> + ( void ) builder . finalize ( genericParams - > getSourceRange ( ) . Start , <nl> + / * allowConcreteGenericParams = * / true ) ; <nl> <nl> auto * env = builder . getGenericEnvironment ( sig ) ; <nl> - <nl> tc . recordArchetypeContexts ( sig , env , ext ) ; <nl> <nl> + / / Validate the generic parameters for the last time , to splat down <nl> + / / actual archetypes . <nl> + tc . revertGenericParamList ( genericParams ) ; <nl> + GenericTypeToArchetypeResolver archetypeResolver ( env ) ; <nl> + tc . checkGenericParamList ( nullptr , genericParams , parentSig , parentEnv , <nl> + & archetypeResolver ) ; <nl> + <nl> + <nl> / / Compute the final extended type . <nl> Type resultType ; <nl> <nl> mmm a / test / Generics / same_type_constraints . swift <nl> ppp b / test / Generics / same_type_constraints . swift <nl> protocol P9 { <nl> struct X7 < T : P9 > where T . A : C { } <nl> <nl> extension X7 where T . A = = Int { } / / expected - error 2 { { ' T . A ' requires that ' Int ' inherit from ' C ' } } <nl> - <nl> struct X8 < T : C > { } <nl> <nl> extension X8 where T = = Int { } / / expected - error 2 { { ' T ' requires that ' Int ' inherit from ' C ' } } <nl> mmm a / test / decl / ext / generic . swift <nl> ppp b / test / decl / ext / generic . swift <nl> struct S4 < Q > : P4 { <nl> init ( _ : Q ) { } <nl> } <nl> <nl> - extension S4 where T : P5 { } / / expected - error { { type ' T ' in conformance requirement does not refer to a generic parameter or associated type } } <nl> + extension S4 where T : P5 { } <nl>
|
[ Type checker ] Eliminate use of PartialGenericTypeToArchetypeResolver .
|
apple/swift
|
3184d8463821a26d99d2328022f1505a83800ece
|
2016-12-06T06:42:04Z
|
mmm a / src / script . h <nl> ppp b / src / script . h <nl> class CScript : public std : : vector < unsigned char > <nl> / / Immediate operand <nl> if ( opcode < = OP_PUSHDATA4 ) <nl> { <nl> - unsigned int nSize ; <nl> + unsigned int nSize = 0 ; <nl> if ( opcode < OP_PUSHDATA1 ) <nl> { <nl> nSize = opcode ; <nl> class CScriptCompressor <nl> <nl> template < typename Stream > <nl> void Unserialize ( Stream & s , int nType , int nVersion ) { <nl> - unsigned int nSize ; <nl> + unsigned int nSize = 0 ; <nl> s > > VARINT ( nSize ) ; <nl> if ( nSize < nSpecialScripts ) { <nl> std : : vector < unsigned char > vch ( GetSpecialSize ( nSize ) , 0x00 ) ; <nl>
|
Fix clang warnings
|
bitcoin/bitcoin
|
5f04881618a6d6f8deec4fad4899f46c060caa91
|
2013-01-15T22:27:29Z
|
mmm a / tensorflow / core / kernels / sparse_fill_empty_rows_op . cc <nl> ppp b / tensorflow / core / kernels / sparse_fill_empty_rows_op . cc <nl> class SparseFillEmptyRowsGradOp : public OpKernel { <nl> context , TensorShapeUtils : : IsVector ( reverse_index_map_t - > shape ( ) ) , <nl> errors : : InvalidArgument ( " reverse_index_map must be a vector , saw : " , <nl> reverse_index_map_t - > shape ( ) . DebugString ( ) ) ) ; <nl> + OP_REQUIRES ( context , TensorShapeUtils : : IsVector ( grad_values_t - > shape ( ) ) , <nl> + errors : : InvalidArgument ( " grad_values must be a vector , saw : " , <nl> + grad_values_t - > shape ( ) . DebugString ( ) ) ) ; <nl> <nl> const auto reverse_index_map = reverse_index_map_t - > vec < int64 > ( ) ; <nl> const auto grad_values = grad_values_t - > vec < T > ( ) ; <nl> class SparseFillEmptyRowsGradOp : public OpKernel { <nl> / / Locate the index of the output of the forward prop associated <nl> / / with this location in the input of the forward prop . Copy <nl> / / the gradient into it . Mark it as visited . <nl> - d_values ( i ) = grad_values ( reverse_index_map ( i ) ) ; <nl> - visited ( reverse_index_map ( i ) ) = true ; <nl> + int64 reverse_index = reverse_index_map ( i ) ; <nl> + OP_REQUIRES ( <nl> + context , 0 < = reverse_index & & reverse_index < N_full , <nl> + errors : : InvalidArgument ( " Elements in reverse index must be in [ 0 , " , <nl> + N_full , " ) but got " , reverse_index ) ) ; <nl> + d_values ( i ) = grad_values ( reverse_index ) ; <nl> + visited ( reverse_index ) = true ; <nl> } <nl> for ( int j = 0 ; j < N_full ; + + j ) { <nl> / / The default value gradient gets the accumulated remainder of <nl> mmm a / tensorflow / python / ops / sparse_ops_test . py <nl> ppp b / tensorflow / python / ops / sparse_ops_test . py <nl> <nl> from absl . testing import parameterized <nl> import numpy as np <nl> <nl> + from tensorflow . python . eager import context <nl> from tensorflow . python . framework import constant_op <nl> from tensorflow . python . framework import dtypes <nl> from tensorflow . python . framework import errors <nl> <nl> # Need array_grad to register gradient for Identity . <nl> from tensorflow . python . ops import array_grad # pylint : disable = unused - import <nl> from tensorflow . python . ops import array_ops <nl> + from tensorflow . python . ops import gen_sparse_ops <nl> from tensorflow . python . ops import gradient_checker_v2 as gradient_checker <nl> from tensorflow . python . ops import math_ops <nl> # Need sparse_grad to register gradient for SparseToDense . <nl> def testConstantStringToSparse ( self ) : <nl> self . assertAllEqual ( [ 5 ] , result . dense_shape ) <nl> <nl> <nl> + @ test_util . run_all_in_graph_and_eager_modes <nl> + class RawOpsTest ( test_util . TensorFlowTestCase , parameterized . TestCase ) : <nl> + <nl> + def testSparseFillEmptyRowsGrad ( self ) : <nl> + reverse_index_map = [ 2 , 1 ] <nl> + grad_values = [ 0 , 1 , 2 , 3 ] <nl> + d_values , d_default_value = self . evaluate ( <nl> + gen_sparse_ops . SparseFillEmptyRowsGrad ( <nl> + reverse_index_map = reverse_index_map , grad_values = grad_values ) ) <nl> + self . assertAllEqual ( [ 2 , 1 ] , d_values ) <nl> + self . assertEqual ( 3 , d_default_value ) <nl> + <nl> + def testSparseFillEmptyRowsGradNegativeIndexMapValue ( self ) : <nl> + reverse_index_map = [ 2 , - 1 ] <nl> + grad_values = [ 0 , 1 , 2 , 3 ] <nl> + with self . assertRaisesRegex ( <nl> + errors . InvalidArgumentError , <nl> + r ' Elements in reverse index must be in \ [ 0 , 4 \ ) ' ) : <nl> + self . evaluate ( <nl> + gen_sparse_ops . SparseFillEmptyRowsGrad ( <nl> + reverse_index_map = reverse_index_map , grad_values = grad_values ) ) <nl> + <nl> + def testSparseFillEmptyRowsGradLargeIndexMapValue ( self ) : <nl> + reverse_index_map = [ 2 , 10 ] <nl> + grad_values = [ 0 , 1 , 2 , 3 ] <nl> + with self . assertRaisesRegex ( <nl> + errors . InvalidArgumentError , <nl> + r ' Elements in reverse index must be in \ [ 0 , 4 \ ) ' ) : <nl> + self . evaluate ( <nl> + gen_sparse_ops . SparseFillEmptyRowsGrad ( <nl> + reverse_index_map = reverse_index_map , grad_values = grad_values ) ) <nl> + <nl> + def testSparseFillEmptyRowsGradMatrix ( self ) : <nl> + reverse_index_map = [ 0 , 1 ] <nl> + grad_values = [ [ 0 , 1 ] , [ 2 , 3 ] ] <nl> + # Note : Eager mode and graph mode throw different errors here . Graph mode <nl> + # will fail with a ValueError from the shape checking logic , while Eager <nl> + # will fail with an InvalidArgumentError from the kernel itself . <nl> + if context . executing_eagerly ( ) : <nl> + with self . assertRaisesRegex ( errors . InvalidArgumentError , <nl> + r ' grad_values must be a vector ' ) : <nl> + self . evaluate ( <nl> + gen_sparse_ops . SparseFillEmptyRowsGrad ( <nl> + reverse_index_map = reverse_index_map , grad_values = grad_values ) ) <nl> + else : <nl> + with self . assertRaisesRegex ( ValueError , <nl> + r ' Shape must be rank 1 but is rank 2 ' ) : <nl> + self . evaluate ( <nl> + gen_sparse_ops . SparseFillEmptyRowsGrad ( <nl> + reverse_index_map = reverse_index_map , grad_values = grad_values ) ) <nl> + <nl> + <nl> if __name__ = = ' __main__ ' : <nl> googletest . main ( ) <nl>
|
Fix heap buffer overflow in ` tf . raw_ops . SparseFillEmptyRowsGrad ` .
|
tensorflow/tensorflow
|
390611e0d45c5793c7066110af37c8514e6a6c54
|
2020-09-19T01:53:02Z
|
mmm a / swoole_http_server . c <nl> ppp b / swoole_http_server . c <nl> static void http_global_merge ( zval * val , zval * zrequest_object , int type ) <nl> { <nl> return ; <nl> } <nl> - <nl> - array_init ( zrequest ) ; <nl> - zend_update_property ( swoole_http_request_class_entry_ptr , zrequest_object , ZEND_STRL ( " request " ) , zrequest TSRMLS_CC ) ; <nl> - ctx - > request . zheader = sw_zend_read_property ( swoole_http_request_class_entry_ptr , zrequest_object , ZEND_STRL ( " request " ) , 0 TSRMLS_CC ) ; <nl> - sw_copy_to_stack ( ctx - > request . zrequest , ctx - > request . _zrequest ) ; <nl> - sw_zval_ptr_dtor ( & zrequest ) ; <nl> + http_server_array_init ( request , request ) ; <nl> } <nl> sw_php_array_merge ( Z_ARRVAL_P ( zrequest ) , Z_ARRVAL_P ( val ) ) ; <nl> } <nl> static PHP_METHOD ( swoole_http_server , on ) <nl> return ; <nl> } <nl> <nl> + # ifdef PHP_SWOOLE_CHECK_CALLBACK <nl> char * func_name = NULL ; <nl> if ( ! sw_zend_is_callable ( callback , 0 , & func_name TSRMLS_CC ) ) <nl> { <nl> static PHP_METHOD ( swoole_http_server , on ) <nl> RETURN_FALSE ; <nl> } <nl> efree ( func_name ) ; <nl> + # endif <nl> <nl> if ( strncasecmp ( " request " , Z_STRVAL_P ( event_name ) , Z_STRLEN_P ( event_name ) ) = = 0 ) <nl> { <nl>
|
fix swoole_http_server - > setGlobal crash .
|
swoole/swoole-src
|
3747c13c366beee586407a51f870574a50796518
|
2016-06-03T10:09:39Z
|
mmm a / utils / build - script - impl <nl> ppp b / utils / build - script - impl <nl> for host in " $ { ALL_HOSTS [ @ ] } " ; do <nl> - DFILECHECK_EXECUTABLE : PATH = " $ ( build_directory_bin $ { LOCAL_HOST } llvm ) / FileCheck " <nl> - DCMAKE_BUILD_TYPE : STRING = " $ { LLBUILD_BUILD_TYPE } " <nl> - DLLVM_ENABLE_ASSERTIONS : BOOL = $ ( true_false " $ { LLBUILD_ENABLE_ASSERTIONS } " ) <nl> - - DLLBUILD_SUPPORT_BINDINGS : = Swift <nl> ) <nl> ; ; <nl> swiftpm ) <nl>
|
Merge remote - tracking branch ' origin / master ' into master - next
|
apple/swift
|
3ecfbaae5cb58d77933d4c8817423dafff661934
|
2018-03-06T21:29:23Z
|
mmm a / modules / gapi / CMakeLists . txt <nl> ppp b / modules / gapi / CMakeLists . txt <nl> if ( MSVC ) <nl> endif ( ) <nl> endif ( ) <nl> <nl> - if ( CMAKE_CXX_COMPILER_ID STREQUAL " AppleClang " ) # don ' t add Clang here : issue should be investigated and fixed ( workaround for Apple only ) <nl> - ocv_warnings_disable ( CMAKE_CXX_FLAGS - Wrange - loop - analysis ) # https : / / github . com / opencv / opencv / issues / 18928 <nl> - endif ( ) <nl> - <nl> file ( GLOB gapi_ext_hdrs <nl> " $ { CMAKE_CURRENT_LIST_DIR } / include / opencv2 / * . hpp " <nl> " $ { CMAKE_CURRENT_LIST_DIR } / include / opencv2 / $ { name } / * . hpp " <nl> mmm a / modules / gapi / src / backends / common / gcompoundkernel . cpp <nl> ppp b / modules / gapi / src / backends / common / gcompoundkernel . cpp <nl> <nl> cv : : detail : : GCompoundContext : : GCompoundContext ( const cv : : GArgs & in_args ) <nl> { <nl> m_args . resize ( in_args . size ( ) ) ; <nl> - for ( const auto & it : ade : : util : : indexed ( in_args ) ) <nl> + for ( const auto it : ade : : util : : indexed ( in_args ) ) <nl> { <nl> const auto & i = ade : : util : : index ( it ) ; <nl> const auto & in_arg = ade : : util : : value ( it ) ; <nl> mmm a / modules / gapi / src / backends / common / serialization . cpp <nl> ppp b / modules / gapi / src / backends / common / serialization . cpp <nl> void linkNodes ( ade : : Graph & g ) { <nl> for ( const auto & nh : g . nodes ( ) ) { <nl> if ( gm . metadata ( nh ) . get < cv : : gimpl : : NodeType > ( ) . t = = cv : : gimpl : : NodeType : : OP ) { <nl> const auto & op = gm . metadata ( nh ) . get < gimpl : : Op > ( ) ; <nl> - for ( const auto & in : ade : : util : : indexed ( op . args ) ) { <nl> + for ( const auto in : ade : : util : : indexed ( op . args ) ) { <nl> const auto & arg = ade : : util : : value ( in ) ; <nl> if ( arg . kind = = cv : : detail : : ArgKind : : GOBJREF ) { <nl> const auto idx = ade : : util : : index ( in ) ; <nl> void linkNodes ( ade : : Graph & g ) { <nl> } <nl> } <nl> <nl> - for ( const auto & out : ade : : util : : indexed ( op . outs ) ) { <nl> - const auto idx = ade : : util : : index ( out ) ; <nl> - const auto rc = ade : : util : : value ( out ) ; <nl> + for ( const auto out : ade : : util : : indexed ( op . outs ) ) { <nl> + const auto idx = ade : : util : : index ( out ) ; <nl> + const auto & rc = ade : : util : : value ( out ) ; <nl> const auto & out_nh = dataNodes . at ( rc ) ; <nl> const auto & out_eh = g . link ( nh , out_nh ) ; <nl> gm . metadata ( out_eh ) . set ( cv : : gimpl : : Output { idx } ) ; <nl> mmm a / modules / gapi / src / backends / cpu / gcpubackend . cpp <nl> ppp b / modules / gapi / src / backends / cpu / gcpubackend . cpp <nl> void cv : : gimpl : : GCPUExecutable : : run ( std : : vector < InObj > & & input_objs , <nl> <nl> / / - Output parameters . <nl> / / FIXME : pre - allocate internal Mats , etc , according to the known meta <nl> - for ( const auto & out_it : ade : : util : : indexed ( op . outs ) ) <nl> + for ( const auto out_it : ade : : util : : indexed ( op . outs ) ) <nl> { <nl> / / FIXME : Can the same GArg type resolution mechanism be reused here ? <nl> - const auto out_port = ade : : util : : index ( out_it ) ; <nl> - const auto out_desc = ade : : util : : value ( out_it ) ; <nl> + const auto out_port = ade : : util : : index ( out_it ) ; <nl> + const auto & out_desc = ade : : util : : value ( out_it ) ; <nl> context . m_results [ out_port ] = magazine : : getObjPtr ( m_res , out_desc ) ; <nl> } <nl> <nl> void cv : : gimpl : : GCPUExecutable : : run ( std : : vector < InObj > & & input_objs , <nl> / / FIXME : unify with cv : : detail : : ensure_out_mats_not_reallocated <nl> / / FIXME : when it ' s done , remove can_describe ( const GMetaArg & , const GRunArgP & ) <nl> / / and descr_of ( const cv : : GRunArgP & argp ) <nl> - for ( const auto & out_it : ade : : util : : indexed ( op_info . expected_out_metas ) ) <nl> + for ( const auto out_it : ade : : util : : indexed ( op_info . expected_out_metas ) ) <nl> { <nl> - const auto out_index = ade : : util : : index ( out_it ) ; <nl> - const auto expected_meta = ade : : util : : value ( out_it ) ; <nl> + const auto out_index = ade : : util : : index ( out_it ) ; <nl> + const auto & expected_meta = ade : : util : : value ( out_it ) ; <nl> <nl> if ( ! can_describe ( expected_meta , context . m_results [ out_index ] ) ) <nl> { <nl> mmm a / modules / gapi / src / backends / fluid / gfluidbackend . cpp <nl> ppp b / modules / gapi / src / backends / fluid / gfluidbackend . cpp <nl> void cv : : gimpl : : FluidAgent : : reset ( ) <nl> { <nl> m_producedLines = 0 ; <nl> <nl> - for ( const auto & it : ade : : util : : indexed ( in_views ) ) <nl> + for ( const auto it : ade : : util : : indexed ( in_views ) ) <nl> { <nl> auto & v = ade : : util : : value ( it ) ; <nl> if ( v ) <nl> void cv : : gimpl : : FluidAgent : : doWork ( ) <nl> <nl> k . m_f ( in_args , out_buffers ) ; <nl> <nl> - for ( const auto & it : ade : : util : : indexed ( in_views ) ) <nl> + for ( const auto it : ade : : util : : indexed ( in_views ) ) <nl> { <nl> auto & in_view = ade : : util : : value ( it ) ; <nl> <nl> void cv : : gimpl : : FluidAgent : : doWork ( ) <nl> } ; <nl> } <nl> <nl> - for ( auto out_buf : out_buffers ) <nl> + for ( auto * out_buf : out_buffers ) <nl> { <nl> out_buf - > priv ( ) . writeDone ( ) ; <nl> / / FIXME WARNING : Scratch buffers rotated here too ! <nl> void cv : : gimpl : : GFluidExecutable : : initBufferRois ( std : : vector < int > & readStarts , <nl> } <nl> <nl> / / First , initialize rois for output nodes , add them to traversal stack <nl> - for ( const auto & it : ade : : util : : indexed ( proto . out_nhs ) ) <nl> + for ( const auto it : ade : : util : : indexed ( proto . out_nhs ) ) <nl> { <nl> const auto idx = ade : : util : : index ( it ) ; <nl> - const auto nh = ade : : util : : value ( it ) ; <nl> + const auto & nh = ade : : util : : value ( it ) ; <nl> <nl> const auto & d = m_gm . metadata ( nh ) . get < Data > ( ) ; <nl> <nl> std : : size_t cv : : gimpl : : GFluidExecutable : : total_buffers_size ( ) const <nl> { <nl> GConstFluidModel fg ( m_g ) ; <nl> std : : size_t total_size = 0 ; <nl> - for ( const auto & i : ade : : util : : indexed ( m_buffers ) ) <nl> + for ( const auto i : ade : : util : : indexed ( m_buffers ) ) <nl> { <nl> / / Check that all internal and scratch buffers are allocated <nl> const auto idx = ade : : util : : index ( i ) ; <nl> void cv : : gimpl : : GFluidExecutable : : run ( std : : vector < InObj > & input_objs , <nl> agent - > reset ( ) ; <nl> / / Pass input cv : : Scalar ' s to agent argument <nl> const auto & op = m_gm . metadata ( agent - > op_handle ) . get < Op > ( ) ; <nl> - for ( const auto & it : ade : : util : : indexed ( op . args ) ) <nl> + for ( const auto it : ade : : util : : indexed ( op . args ) ) <nl> { <nl> const auto & arg = ade : : util : : value ( it ) ; <nl> packArg ( agent - > in_args [ ade : : util : : index ( it ) ] , arg ) ; <nl> mmm a / modules / gapi / src / backends / ocl / goclbackend . cpp <nl> ppp b / modules / gapi / src / backends / ocl / goclbackend . cpp <nl> void cv : : gimpl : : GOCLExecutable : : run ( std : : vector < InObj > & & input_objs , <nl> <nl> / / - Output parameters . <nl> / / FIXME : pre - allocate internal Mats , etc , according to the known meta <nl> - for ( const auto & out_it : ade : : util : : indexed ( op . outs ) ) <nl> + for ( const auto out_it : ade : : util : : indexed ( op . outs ) ) <nl> { <nl> / / FIXME : Can the same GArg type resolution mechanism be reused here ? <nl> - const auto out_port = ade : : util : : index ( out_it ) ; <nl> - const auto out_desc = ade : : util : : value ( out_it ) ; <nl> + const auto out_port = ade : : util : : index ( out_it ) ; <nl> + const auto & out_desc = ade : : util : : value ( out_it ) ; <nl> context . m_results [ out_port ] = magazine : : getObjPtr ( m_res , out_desc , true ) ; <nl> } <nl> <nl> / / Now trigger the executable unit <nl> k . apply ( context ) ; <nl> <nl> - for ( const auto & out_it : ade : : util : : indexed ( op_info . expected_out_metas ) ) <nl> + for ( const auto out_it : ade : : util : : indexed ( op_info . expected_out_metas ) ) <nl> { <nl> - const auto out_index = ade : : util : : index ( out_it ) ; <nl> - const auto expected_meta = ade : : util : : value ( out_it ) ; <nl> + const auto out_index = ade : : util : : index ( out_it ) ; <nl> + const auto & expected_meta = ade : : util : : value ( out_it ) ; <nl> <nl> if ( ! can_describe ( expected_meta , context . m_results [ out_index ] ) ) <nl> { <nl> void cv : : gimpl : : GOCLExecutable : : run ( std : : vector < InObj > & & input_objs , <nl> <nl> for ( auto & it : output_objs ) <nl> { <nl> - auto & rc = it . first ; <nl> - auto & g_arg = it . second ; <nl> + const auto & rc = it . first ; <nl> + auto & g_arg = it . second ; <nl> magazine : : writeBack ( m_res , rc , g_arg ) ; <nl> if ( rc . shape = = GShape : : GMAT ) <nl> { <nl> mmm a / modules / gapi / src / compiler / gcompiler . cpp <nl> ppp b / modules / gapi / src / compiler / gcompiler . cpp <nl> void cv : : gimpl : : GCompiler : : validateInputMeta ( ) <nl> return false ; / / should never happen <nl> } ; <nl> <nl> - for ( const auto & meta_arg_idx : ade : : util : : indexed ( ade : : util : : zip ( m_metas , c_expr . m_ins ) ) ) <nl> + for ( const auto meta_arg_idx : ade : : util : : indexed ( ade : : util : : zip ( m_metas , c_expr . m_ins ) ) ) <nl> { <nl> const auto & meta = std : : get < 0 > ( ade : : util : : value ( meta_arg_idx ) ) ; <nl> const auto & proto = std : : get < 1 > ( ade : : util : : value ( meta_arg_idx ) ) ; <nl> void cv : : gimpl : : GCompiler : : validateOutProtoArgs ( ) <nl> return ; <nl> } <nl> const auto & c_expr = util : : get < cv : : GComputation : : Priv : : Expr > ( m_c . priv ( ) . m_shape ) ; <nl> - for ( const auto & out_pos : ade : : util : : indexed ( c_expr . m_outs ) ) <nl> + for ( const auto out_pos : ade : : util : : indexed ( c_expr . m_outs ) ) <nl> { <nl> const auto & node = proto : : origin_of ( ade : : util : : value ( out_pos ) ) . node ; <nl> if ( node . shape ( ) ! = cv : : GNode : : NodeShape : : CALL ) <nl> mmm a / modules / gapi / src / compiler / gmodelbuilder . cpp <nl> ppp b / modules / gapi / src / compiler / gmodelbuilder . cpp <nl> cv : : gimpl : : Unrolled cv : : gimpl : : unrollExpr ( const GProtoArgs & ins , <nl> / / Put the outputs object description of the node <nl> / / so that they are not lost if they are not consumed by other operations <nl> GAPI_Assert ( call_p . m_k . outCtors . size ( ) = = call_p . m_k . outShapes . size ( ) ) ; <nl> - for ( const auto & it : ade : : util : : indexed ( call_p . m_k . outShapes ) ) <nl> + for ( const auto it : ade : : util : : indexed ( call_p . m_k . outShapes ) ) <nl> { <nl> std : : size_t port = ade : : util : : index ( it ) ; <nl> GShape shape = ade : : util : : value ( it ) ; <nl> cv : : gimpl : : GModelBuilder : : put ( const GProtoArgs & ins , const GProtoArgs & outs ) <nl> const GCall : : Priv & call_p = call . priv ( ) ; <nl> ade : : NodeHandle call_h = put_OpNode ( op_expr_node ) ; <nl> <nl> - for ( const auto & it : ade : : util : : indexed ( call_p . m_args ) ) <nl> + for ( const auto it : ade : : util : : indexed ( call_p . m_args ) ) <nl> { <nl> const auto in_port = ade : : util : : index ( it ) ; <nl> const auto & in_arg = ade : : util : : value ( it ) ; <nl> mmm a / modules / gapi / src / compiler / passes / kernels . cpp <nl> ppp b / modules / gapi / src / compiler / passes / kernels . cpp <nl> namespace <nl> <nl> / / Reconnect expanded kernels from graph data objects <nl> / / to subgraph data objects , then drop that graph data objects <nl> - for ( const auto & it : ade : : util : : zip ( in_nhs , sorted_in_nhs ) ) <nl> + for ( const auto it : ade : : util : : zip ( in_nhs , sorted_in_nhs ) ) <nl> { <nl> const auto & subgr_in_nh = std : : get < 0 > ( it ) ; <nl> const auto & comp_in_nh = std : : get < 1 > ( it ) ; <nl> namespace <nl> <nl> gr . erase ( nh ) ; <nl> <nl> - for ( const auto & it : ade : : util : : zip ( out_nhs , sorted_out_nhs ) ) <nl> + for ( const auto it : ade : : util : : zip ( out_nhs , sorted_out_nhs ) ) <nl> { <nl> const auto & subgr_out_nh = std : : get < 0 > ( it ) ; <nl> const auto & comp_out_nh = std : : get < 1 > ( it ) ; <nl> mmm a / modules / gapi / src / compiler / passes / meta . cpp <nl> ppp b / modules / gapi / src / compiler / passes / meta . cpp <nl> void cv : : gimpl : : passes : : initMeta ( ade : : passes : : PassContext & ctx , const GMetaArgs <nl> <nl> const auto & proto = gr . metadata ( ) . get < Protocol > ( ) ; <nl> <nl> - for ( const auto & it : ade : : util : : indexed ( proto . in_nhs ) ) <nl> + for ( const auto it : ade : : util : : indexed ( proto . in_nhs ) ) <nl> { <nl> auto & data = gr . metadata ( ade : : util : : value ( it ) ) . get < Data > ( ) ; <nl> data . meta = metas . at ( ade : : util : : index ( it ) ) ; <nl> void cv : : gimpl : : passes : : storeResultingMeta ( ade : : passes : : PassContext & ctx ) <nl> const auto & proto = gr . metadata ( ) . get < Protocol > ( ) ; <nl> GMetaArgs output_metas ( proto . out_nhs . size ( ) ) ; <nl> <nl> - for ( const auto & it : ade : : util : : indexed ( proto . out_nhs ) ) <nl> + for ( const auto it : ade : : util : : indexed ( proto . out_nhs ) ) <nl> { <nl> auto & data = gr . metadata ( ade : : util : : value ( it ) ) . get < Data > ( ) ; <nl> output_metas [ ade : : util : : index ( it ) ] = data . meta ; <nl> mmm a / modules / gapi / test / gapi_gcomputation_tests . cpp <nl> ppp b / modules / gapi / test / gapi_gcomputation_tests . cpp <nl> namespace opencv_test <nl> <nl> void check ( const std : : vector < cv : : Mat > & out_mats ) <nl> { <nl> - for ( const auto & it : ade : : util : : zip ( ref_mats , out_mats ) ) <nl> + for ( const auto it : ade : : util : : zip ( ref_mats , out_mats ) ) <nl> { <nl> const auto & ref_mat = std : : get < 0 > ( it ) ; <nl> const auto & out_mat = std : : get < 1 > ( it ) ; <nl> mmm a / modules / gapi / test / internal / gapi_int_gmodel_builder_test . cpp <nl> ppp b / modules / gapi / test / internal / gapi_int_gmodel_builder_test . cpp <nl> TEST ( GModelBuilder , Check_Multiple_Outputs ) <nl> EXPECT_EQ ( 0u , gm . metadata ( p . out_nhs [ 1 ] - > inEdges ( ) . front ( ) ) . get < cv : : gimpl : : Output > ( ) . port ) ; <nl> EXPECT_EQ ( 1u , gm . metadata ( p . out_nhs [ 2 ] - > inEdges ( ) . front ( ) ) . get < cv : : gimpl : : Output > ( ) . port ) ; <nl> EXPECT_EQ ( 0u , gm . metadata ( p . out_nhs [ 3 ] - > inEdges ( ) . front ( ) ) . get < cv : : gimpl : : Output > ( ) . port ) ; <nl> - for ( const auto & it : ade : : util : : indexed ( p . out_nhs ) ) <nl> + for ( const auto it : ade : : util : : indexed ( p . out_nhs ) ) <nl> { <nl> const auto & out_nh = ade : : util : : value ( it ) ; <nl> <nl>
|
GAPI : fix Clang warning for dangling references in for loop variable
|
opencv/opencv
|
da5bfefc78eed582764258d14997086e4e7e65a3
|
2020-12-08T11:18:46Z
|
mmm a / test / test262 / test262 . status <nl> ppp b / test / test262 / test262 . status <nl> <nl> <nl> # # # # # # # # # # # # # # # # # # # # # # MISSING ES6 FEATURES # # # # # # # # # # # # # # # # # # # # # # # <nl> <nl> - # Functions in blocks are var - declared and hoisted in sloppy mode <nl> - # https : / / code . google . com / p / v8 / issues / detail ? id = 3305 <nl> - ' language / block - scope / shadowing / dynamic - lookup - from - closure ' : [ PASS ] , <nl> - ' language / block - scope / shadowing / lookup - from - closure ' : [ PASS ] , <nl> - ' language / block - scope / syntax / redeclaration - in - block / attempt - to - redeclare - function - declaration - with - function - declaration ' : [ PASS ] , <nl> - ' language / block - scope / syntax / redeclaration - in - block / attempt - to - redeclare - function - declaration - with - var ' : [ PASS ] , <nl> - ' language / block - scope / syntax / redeclaration - in - block / attempt - to - redeclare - var - with - function - declaration ' : [ PASS ] , <nl> - ' language / statements / let / block - local - closure - set - before - initialization ' : [ PASS ] , <nl> - <nl> - # https : / / code . google . com / p / v8 / issues / detail ? id = 4405 <nl> - ' language / block - scope / leave / outermost - binding - updated - in - catch - block - nested - block - let - declaration - unseen - outside - of - block ' : [ PASS , FAIL ] , <nl> - <nl> # It ' s unclear what the right behavior for [ [ Enumerate ] ] is ; we ' re awaiting <nl> # clarification in the spec . Currently , our for - in implementation for <nl> # Proxies checks all trap result values for being strings . . . <nl>
|
[ test262 ] Remove stale status lines
|
v8/v8
|
92610888ddf0070fd01fb668df7f7f78c2d8774e
|
2016-01-14T01:03:41Z
|
mmm a / TARGETS <nl> ppp b / TARGETS <nl> cpp_library ( <nl> compiler_flags = compiler_flags , <nl> deps = [ <nl> " / / common / db / mysql_client : mysql_client " , <nl> + " / / manifold / blobstore / if : blobstore - cpp2 " , <nl> + " / / servicerouter / client / cpp2 : cpp2 " , <nl> ] , <nl> ) <nl> <nl>
|
Add manifold client for saved state
|
facebook/watchman
|
68b6cac22abe6e1cc764adff3401a2a25a68478a
|
2018-08-02T22:08:00Z
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.