Lines Matching refs:R

82 __orc_rt_CWrapperFunctionResultInit(__orc_rt_CWrapperFunctionResult *R) {  in __orc_rt_CWrapperFunctionResultInit()  argument
83 R->Size = 0; in __orc_rt_CWrapperFunctionResultInit()
84 R->Data.ValuePtr = 0; in __orc_rt_CWrapperFunctionResultInit()
93 __orc_rt_CWrapperFunctionResult R; in __orc_rt_CWrapperFunctionResultAllocate() local
94 R.Size = Size; in __orc_rt_CWrapperFunctionResultAllocate()
96 R.Data.ValuePtr = 0; in __orc_rt_CWrapperFunctionResultAllocate()
97 if (Size > sizeof(R.Data.Value)) in __orc_rt_CWrapperFunctionResultAllocate()
98 R.Data.ValuePtr = (char *)malloc(Size); in __orc_rt_CWrapperFunctionResultAllocate()
99 return R; in __orc_rt_CWrapperFunctionResultAllocate()
107 __orc_rt_CWrapperFunctionResult R; in __orc_rt_CreateCWrapperFunctionResultFromRange() local
108 R.Size = Size; in __orc_rt_CreateCWrapperFunctionResultFromRange()
109 if (R.Size > sizeof(R.Data.Value)) { in __orc_rt_CreateCWrapperFunctionResultFromRange()
112 R.Data.ValuePtr = Tmp; in __orc_rt_CreateCWrapperFunctionResultFromRange()
114 memcpy(R.Data.Value, Data, Size); in __orc_rt_CreateCWrapperFunctionResultFromRange()
115 return R; in __orc_rt_CreateCWrapperFunctionResultFromRange()
140 __orc_rt_CWrapperFunctionResult R; in __orc_rt_CreateCWrapperFunctionResultFromOutOfBandError() local
141 R.Size = 0; in __orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
144 R.Data.ValuePtr = Tmp; in __orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
145 return R; in __orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
153 __orc_rt_DisposeCWrapperFunctionResult(__orc_rt_CWrapperFunctionResult *R) { in __orc_rt_DisposeCWrapperFunctionResult() argument
154 if (R->Size > sizeof(R->Data.Value) || in __orc_rt_DisposeCWrapperFunctionResult()
155 (R->Size == 0 && R->Data.ValuePtr)) in __orc_rt_DisposeCWrapperFunctionResult()
156 free(R->Data.ValuePtr); in __orc_rt_DisposeCWrapperFunctionResult()
164 __orc_rt_CWrapperFunctionResultData(__orc_rt_CWrapperFunctionResult *R) { in __orc_rt_CWrapperFunctionResultData() argument
165 assert((R->Size != 0 || R->Data.ValuePtr == NULL) && in __orc_rt_CWrapperFunctionResultData()
167 return R->Size > sizeof(R->Data.Value) ? R->Data.ValuePtr : R->Data.Value; in __orc_rt_CWrapperFunctionResultData()
176 __orc_rt_CWrapperFunctionResultSize(const __orc_rt_CWrapperFunctionResult *R) { in __orc_rt_CWrapperFunctionResultSize() argument
177 assert((R->Size != 0 || R->Data.ValuePtr == NULL) && in __orc_rt_CWrapperFunctionResultSize()
179 return R->Size; in __orc_rt_CWrapperFunctionResultSize()
187 __orc_rt_CWrapperFunctionResultEmpty(const __orc_rt_CWrapperFunctionResult *R) { in __orc_rt_CWrapperFunctionResultEmpty() argument
188 return R->Size == 0 && R->Data.ValuePtr == 0; in __orc_rt_CWrapperFunctionResultEmpty()
199 const __orc_rt_CWrapperFunctionResult *R) { in __orc_rt_CWrapperFunctionResultGetOutOfBandError() argument
200 return R->Size == 0 ? R->Data.ValuePtr : 0; in __orc_rt_CWrapperFunctionResultGetOutOfBandError()