Merge remote branch 'upstream/master'
| | |
| | | extern "C" { |
| | | #endif |
| | | |
| | | /* Compiler specific */ |
| | | |
| | | /* PIC24 */ |
| | | #if defined(__C30__) |
| | | #define HAVE_STRNLEN 0 |
| | | #define HAVE_STRNCASECMP 0 |
| | | #endif |
| | | |
| | | /* ======== test strnlen ======== */ |
| | | #ifndef HAVE_STRNLEN |
| | | #define HAVE_STRNLEN 1 |
| | |
| | | extern "C" { |
| | | #endif |
| | | |
| | | #define FALSE false |
| | | #define TRUE true |
| | | #ifndef FALSE |
| | | #define FALSE 0 |
| | | #endif |
| | | #ifndef TRUE |
| | | #define TRUE (!FALSE) |
| | | #endif |
| | | |
| | | /* basic data types */ |
| | | typedef bool bool_t; |
| | |
| | | } |
| | | |
| | | /** |
| | | * Parse boolean parameter |
| | | * Parse boolean parameter as described in the spec SCPI-99 7.3 Boolean Program Data |
| | | * @param context |
| | | * @param value |
| | | * @param mandatory |