Skip to content
Snippets Groups Projects
Select Git revision
  • e7097540cf2c99abbc0983980e3796ced35e6935
  • master default protected
  • 9.0
  • marcus/wix3
  • 8.0
  • nt-tools
  • 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
  • rosuav/async-annotations
  • rosuav/pgsql-ssl
  • rxnpatch/rxnpatch-broken/2023-10-06T094250
  • grubba/fdlib
  • v8.0.2020
  • v8.0.2018
  • v8.0.2016
  • v8.0.2014
  • v8.0.2012
  • v8.0.2008
  • v8.0.2006
  • v8.0.2004
  • v8.0.2002
  • 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
41 results

operators.h

Blame
  • operators.h 1.19 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.
    \*/
    #ifndef OPERATORS_H
    #define OPERATORS_H
    
    #define COMPARISON(ID,NAME,X) void ID(INT32 num_arg);
    
    /* Prototypes begin here */
    COMPARISON(f_eq,"`==", is_eq(sp-2,sp-1))
    COMPARISON(f_ne,"`!=",!is_eq(sp-2,sp-1))
    COMPARISON(f_lt,"`<" , is_lt(sp-2,sp-1))
    COMPARISON(f_le,"`<=",!is_gt(sp-2,sp-1))
    COMPARISON(f_gt,"`>" , is_gt(sp-2,sp-1))
    COMPARISON(f_ge,"`>=",!is_lt(sp-2,sp-1))
    
    void f_add(INT32 args);
    void o_subtract();
    void f_minus(INT32 args);
    void o_and();
    void f_and(INT32 args);
    void o_or();
    void f_or(INT32 args);
    void o_xor();
    void f_xor(INT32 args);
    void o_lsh();
    void f_lsh(INT32 args);
    void o_rsh();
    void f_rsh(INT32 args);
    void o_multiply();
    void f_multiply(INT32 args);
    void o_divide();
    void f_divide(INT32 args);
    void o_mod();
    void f_mod(INT32 args);
    void o_not();
    void f_not(INT32 args);
    void o_compl();
    void f_compl(INT32 args);
    void o_negate();
    void o_range();
    void f_index(INT32 args);
    void f_arrow(INT32 args);
    void f_sizeof(INT32 args);
    void init_operators();
    /* Prototypes end here */
    
    #undef COMPARISON
    #endif