@@ -646,13 +646,16 @@ class component_converter(CConverter):
646
646
The Window Object
647
647
******************************************************************************/
648
648
649
- /* Function prototype macros for Window object
650
-
651
- X - function name (may be a macro or a C function)
652
- TYPE - parameter Type
653
- ERGSTR - format string for construction of the return value
654
- PARSESTR - format string for argument parsing
655
- */
649
+ /*
650
+ * Macros for creating a PyCursesWindowObject object's method.
651
+ *
652
+ * Parameters
653
+ *
654
+ * X The name of the curses C function or macro to invoke.
655
+ * TYPE The function parameter(s) type.
656
+ * ERGSTR The format string for construction of the return value.
657
+ * PARSESTR The format string for argument parsing.
658
+ */
656
659
657
660
#define Window_NoArgNoReturnFunction (X ) \
658
661
static PyObject *PyCursesWindow_ ## X \
@@ -2734,12 +2737,12 @@ static PyType_Spec PyCursesWindow_Type_spec = {
2734
2737
/* -------------------------------------------------------*/
2735
2738
2736
2739
/*
2737
- * Function Body Macros - They are ugly but very, very useful. ;-)
2740
+ * Macros for implementing simple module's methods.
2738
2741
*
2739
2742
* Parameters
2740
2743
*
2741
- * X The name of the curses function to invoke.
2742
- * flag When false, prefixes the function name with 'no' at runtime,
2744
+ * X The name of the curses C function or macro to invoke.
2745
+ * FLAG When false, prefixes the function name with 'no' at runtime,
2743
2746
* This parameter is present in the signature and auto-generated
2744
2747
* by Argument Clinic.
2745
2748
*
@@ -2753,10 +2756,10 @@ static PyType_Spec PyCursesWindow_Type_spec = {
2753
2756
return PyCursesCheckERR(module, X(), # X); \
2754
2757
}
2755
2758
2756
- #define NoArgOrFlagNoReturnFunctionBody (X , flag ) \
2759
+ #define NoArgOrFlagNoReturnFunctionBody (X , FLAG ) \
2757
2760
{ \
2758
2761
PyCursesStatefulInitialised(module); \
2759
- int rtn = (flag ) ? X() : no ## X(); \
2762
+ int rtn = (FLAG ) ? X() : no ## X(); \
2760
2763
return PyCursesCheckERR(module, rtn, # X); \
2761
2764
}
2762
2765
0 commit comments