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

Function decimalAddFunc

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

** SQL Function: decimal_add(X, Y) ** decimal_sub(X, Y) ** ** Return the sum or difference of X and Y. */

Source from the content-addressed store, hash-verified

4943** Return the sum or difference of X and Y.
4944*/
4945static void decimalAddFunc(
4946 sqlite3_context *context,
4947 int argc,
4948 sqlite3_value **argv
4949){
4950 Decimal *pA = decimal_new(context, argv[0], 0, 0);
4951 Decimal *pB = decimal_new(context, argv[1], 0, 0);
4952 UNUSED_PARAMETER(argc);
4953 decimal_add(pA, pB);
4954 decimal_result(context, pA);
4955 decimal_free(pA);
4956 decimal_free(pB);
4957}
4958static void decimalSubFunc(
4959 sqlite3_context *context,
4960 int argc,

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