MCPcopy Create free account
hub / github.com/audacity/audacity / decimalSubFunc

Function decimalSubFunc

lib-src/sqlite/shell.c:4958–4972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4956 decimal_free(pB);
4957}
4958static void decimalSubFunc(
4959 sqlite3_context *context,
4960 int argc,
4961 sqlite3_value **argv
4962){
4963 Decimal *pA = decimal_new(context, argv[0], 0, 0);
4964 Decimal *pB = decimal_new(context, argv[1], 0, 0);
4965 UNUSED_PARAMETER(argc);
4966 if( pB==0 ) return;
4967 pB->sign = !pB->sign;
4968 decimal_add(pA, pB);
4969 decimal_result(context, pA);
4970 decimal_free(pA);
4971 decimal_free(pB);
4972}
4973
4974/* Aggregate funcion: decimal_sum(X)
4975**

Callers

nothing calls this directly

Calls 4

decimal_newFunction · 0.85
decimal_addFunction · 0.85
decimal_resultFunction · 0.85
decimal_freeFunction · 0.85

Tested by

no test coverage detected