Skip to content
Snippets Groups Projects
Select Git revision
  • 37f25f066869f4f5645288a9913ed65d53b14cfd
  • master default protected
  • 9.0
  • 8.0
  • 7.8
  • 7.6
  • 7.4
  • 7.2
  • 7.0
  • 0.6
  • rosuav/latex-markdown-renderer
  • rxnpatch/rxnpatch
  • marcus/gobject-introspection
  • rxnpatch/8.0
  • rosuav/pre-listening-ports
  • nt-tools
  • rosuav/async-annotations
  • rosuav/pgsql-ssl
  • rxnpatch/rxnpatch-broken/2023-10-06T094250
  • grubba/fdlib
  • grubba/wip/sakura/8.0
  • v8.0.2000
  • v8.0.1998
  • v8.0.1996
  • v8.0.1994
  • v8.0.1992
  • v8.0.1990
  • v8.0.1988
  • v8.0.1986
  • rxnpatch/clusters/8.0/2025-04-29T124414
  • rxnpatch/2025-04-29T124414
  • v8.0.1984
  • v8.0.1982
  • v8.0.1980
  • v8.0.1978
  • v8.0.1976
  • v8.0.1974
  • v8.0.1972
  • v8.0.1970
  • v8.0.1968
  • v8.0.1966
41 results

cpp.h

Blame
  • cpp.h 1.23 KiB
    /*
    || This file is part of Pike. For copyright information see COPYRIGHT.
    || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
    || for more information.
    */
    
    #ifndef CPP_H
    #define CPP_H
    
    #ifndef STRUCT_HASH_ENTRY_DECLARED
    struct hash_entry;
    #define STRUCT_HASH_ENTRY_DECLARED
    #endif
    
    /* Prototypes begin here */
    struct define_part;
    struct define_argument;
    struct define;
    struct cpp;
    static void cpp_error(struct cpp *this, const char *err);
    static void cpp_error_vsprintf (struct cpp *this, const char *fmt,
    				va_list args);
    static void cpp_error_sprintf(struct cpp *this, const char *fmt, ...);
    static void cpp_handle_exception(struct cpp *this,
    				 const char *cpp_error_fmt, ...);
    static void cpp_warning(struct cpp *this, const char *cpp_warn_fmt, ...);
    void PUSH_STRING(char *str,
    		 INT32 len,
    		 dynamic_buffer *buf);
    void free_one_define(struct hash_entry *h);
    void f_cpp(INT32 args);
    void init_cpp(void);
    void add_predefine(char *s);
    void exit_cpp(void);
    /* Prototypes end here */
    
    /* Return true if compat version is equal or less than MAJOR.MINOR */
    #define CPP_TEST_COMPAT(THIS,MAJOR,MINOR)      \
      (THIS->compat_major < (MAJOR) ||	       \
       (THIS->compat_major == (MAJOR) &&	       \
        THIS->compat_minor <= (MINOR)))
    
    #endif