Skip to content
Snippets Groups Projects
Select Git revision
  • a72ad7790f10c4d9192476f3eff0fceddda9a0c5
  • 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

encode.c

Blame
  • constants.h 1.41 KiB
    /*\
    ||| This file a part of Pike, and is copyright by Fredrik Hubinette
    ||| Pike is distributed as GPL (General Public License)
    ||| See the files COPYING and DISCLAIMER for more information.
    \*/
    
    /*
     * $Id: constants.h,v 1.7 1998/06/06 03:14:42 hubbe Exp $
     */
    #ifndef ADD_EFUN_H
    #define ADD_EFUN_H
    
    #include "svalue.h"
    #include "hashtable.h"
    #include "las.h" /* For OPT_SIDE_EFFECT etc. */
    
    typedef int (*docode_fun)(node *n);
    typedef node *(*optimize_fun)(node *n);
    
    struct callable
    {
      INT32 refs;
      c_fun function;
      struct pike_string *type;
      struct pike_string *name;
      INT16 flags;
      optimize_fun optimize;
      docode_fun docode;
    };
    
    /* Prototypes begin here */
    struct mapping *get_builtin_constants(void);
    void low_add_efun(struct pike_string *name, struct svalue *fun);
    void low_add_constant(char *name, struct svalue *fun);
    void add_global_program(char *name, struct program *p);
    struct callable *make_callable(c_fun fun,
    			       char *name,
    			       char *type,
    			       INT16 flags,
    			       optimize_fun optimize,
    			       docode_fun docode);
    void really_free_callable(struct callable *fun);
    void add_efun2(char *name,
    	       c_fun fun,
    	       char *type,
    	       INT16 flags,
    	       optimize_fun optimize,
    	       docode_fun docode);
    void add_efun(char *name, c_fun fun, char *type, INT16 flags);
    void cleanup_added_efuns(void);
    void count_memory_in_callables(INT32 *num_, INT32 *size_);
    /* Prototypes end here */
    
    #endif