Typically, a C extension module that uses the decimal API will do these
steps in its init function:
-.. code-block::
+.. code-block:: c
#include "pydecimal.h"
The conversion functions use the following status codes and data structures:
-.. code-block::
+.. code-block:: c
/* status cases for getting a triple */
enum mpd_triple_class {
For simplicity, the usage of the function and all special cases are
explained in code form and comments:
-.. code-block::
+.. code-block:: c
triple = PyDec_AsUint128Triple(dec);
switch (triple.tag) {