"Fossies" - the Fresh Open Source Software Archive

Member "cheetah3-3.2.6.post2/Cheetah/c/_filters.h" (20 Apr 2021, 647 Bytes) of package /linux/www/cheetah3-3.2.6.post2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "_filters.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * (c) 2009, R. Tyler Ballance <tyler@slide.com>
    3  */
    4 
    5 #ifndef _CHEETAH_H_
    6 #define _CHEETAH_H_
    7 
    8 #include <Python.h>
    9 
   10 #ifdef __cplusplus
   11 extern "C" {
   12 #endif
   13 
   14 /*
   15  * Python 2.3 compatibility
   16  */
   17 #ifndef Py_RETURN_TRUE
   18 #define Py_RETURN_TRUE Py_INCREF(Py_True);\
   19     return Py_True
   20 #endif
   21 #ifndef Py_RETURN_FALSE
   22 #define Py_RETURN_FALSE Py_INCREF(Py_False);\
   23     return Py_False
   24 #endif
   25 #ifndef Py_RETURN_NONE
   26 #define Py_RETURN_NONE Py_INCREF(Py_None);\
   27     return Py_None
   28 #endif
   29 
   30 
   31 /*
   32  * Filter Module
   33  */
   34 typedef struct {
   35     PyObject_HEAD
   36     /* type specific fields */
   37 } PyFilter;
   38 
   39 /*
   40  * End Filter Module
   41  */
   42 
   43 #ifdef __cplusplus
   44 }
   45 #endif
   46 
   47 #endif