pyToC.c File Reference
This file provides a set of functions to ease calling C functions from Python.
More...
#include "pyToC.h"
#include <limits.h>
Go to the source code of this file.
Detailed Description
This file provides a set of functions to ease calling C functions from Python.
Definition in file pyToC.c.
Function Documentation
Get a boolean value from a Python object. Raises errors as necessary.
- Parameters:
-
| ppo | A Python object. |
| pb_bool | Pointer to resulting boolean value extracted. |
- Returns:
- Standard Python return value.
Definition at line 100 of file pyToC.c.
Get a floating-point value from a Python object. Raises errors as necessary.
- Parameters:
-
| ppo | A Python object. |
| pf_val | Pointer to resulting floating-point value extracted. |
- Returns:
- Standard Python return value.
Definition at line 28 of file pyToC.c.
Get an signed, 16-bit value from a Python object. Raises errors as necessary.
- Parameters:
-
| ppo | A Python object. |
| pi16_val | Pointer to resulting int16 value extracted. |
- Returns:
- Standard Python return value.
Definition at line 89 of file pyToC.c.
Get a signed, 32-bit value from a Python object. Raises errors as necessary.
- Parameters:
-
| ppo | A Python object. |
| pi32_val | Pointer to resulting int32 value extracted. |
- Returns:
- Standard Python return value.
Definition at line 13 of file pyToC.c.
Get an integer from a Python object, requiring that the integer lie winin a minimum and minimum value. Raises errors as necessary.
- Parameters:
-
| ppo | A Python object. |
| i32_min | Minimum allowable value. |
| i32_max | Maximum allowable value. |
| pi32_val | Pointer to resulting int32 value extracted. |
- Returns:
- Standard Python return value.
Definition at line 60 of file pyToC.c.
Get an unsigned, 16-bit value from a Python object. Raises errors as necessary.
- Parameters:
-
| ppo | A Python object. |
| pu16_val | Pointer to resulting uint16 value extracted. |
- Returns:
- Standard Python return value.
Definition at line 78 of file pyToC.c.
Get an unsigned, 32-bit value from a Python object. Raises errors as necessary.
- Parameters:
-
| ppo | A Python object. |
| pu32_val | Pointer to resulting int32 value extracted. |
- Returns:
- Standard Python return value.
Definition at line 43 of file pyToC.c.