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

operators.h

Blame
  • operators.h 2.07 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.
    || $Id: operators.h,v 1.15 2003/11/14 09:27:29 mast Exp $
    */
    
    #ifndef OPERATORS_H
    #define OPERATORS_H
    
    #define COMPARISON(ID,NAME,X) PMOD_EXPORT void ID(INT32 num_arg);
    
    #include "svalue.h"
    
    extern struct program *string_assignment_program;
    struct string_assignment_storage
    {
      struct svalue lval[2];
      struct pike_string *s;
    };
    
    /* Prototypes begin here */
    void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind);
    void o_index(void);
    void o_cast_to_int(void);
    void o_cast_to_string(void);
    void o_cast(struct pike_type *type, INT32 run_time_type);
    PMOD_EXPORT void f_cast(void);
    
    PMOD_EXPORT void f_ne(INT32 args);
    COMPARISON(f_eq,"`==", is_eq)
    COMPARISON(f_lt,"`<" , is_lt)
    COMPARISON(f_le,"`<=",!is_gt)
    COMPARISON(f_gt,"`>" , is_gt)
    COMPARISON(f_ge,"`>=",!is_lt)
    
    PMOD_EXPORT void f_add(INT32 args);
    PMOD_EXPORT void o_subtract(void);
    PMOD_EXPORT void f_minus(INT32 args);
    PMOD_EXPORT void o_and(void);
    PMOD_EXPORT void f_and(INT32 args);
    PMOD_EXPORT void o_or(void);
    PMOD_EXPORT void f_or(INT32 args);
    PMOD_EXPORT void o_xor(void);
    PMOD_EXPORT void f_xor(INT32 args);
    PMOD_EXPORT void o_lsh(void);
    PMOD_EXPORT void f_lsh(INT32 args);
    PMOD_EXPORT void o_rsh(void);
    PMOD_EXPORT void f_rsh(INT32 args);
    PMOD_EXPORT void o_multiply(void);
    PMOD_EXPORT void f_multiply(INT32 args);
    PMOD_EXPORT void o_divide(void);
    PMOD_EXPORT void f_divide(INT32 args);
    PMOD_EXPORT void o_mod(void);
    PMOD_EXPORT void f_mod(INT32 args);
    PMOD_EXPORT void o_not(void);
    PMOD_EXPORT void f_not(INT32 args);
    PMOD_EXPORT void o_compl(void);
    PMOD_EXPORT void f_compl(INT32 args);
    PMOD_EXPORT void o_negate(void);
    PMOD_EXPORT void o_range(void);
    PMOD_EXPORT void f_index(INT32 args);
    PMOD_EXPORT void f_index_assign(INT32 args);
    PMOD_EXPORT void f_arrow(INT32 args);
    PMOD_EXPORT void f_arrow_assign(INT32 args);
    PMOD_EXPORT void f_sizeof(INT32 args);
    void init_operators(void);
    void exit_operators(void);
    /* Prototypes end here */
    
    #undef COMPARISON
    #endif