xref: /openbsd/gnu/usr.bin/perl/overload.h (revision e0680481)
1*e0680481Safresh1 /* -*- mode: C; buffer-read-only: t -*-
2850e2753Smillert  *
3850e2753Smillert  *    overload.h
4850e2753Smillert  *
5898184e3Ssthen  *    Copyright (C) 1997, 1998, 2000, 2001, 2005, 2006, 2007, 2011
6898184e3Ssthen  *    by Larry Wall and others
7850e2753Smillert  *
8850e2753Smillert  *    You may distribute under the terms of either the GNU General Public
9850e2753Smillert  *    License or the Artistic License, as specified in the README file.
10850e2753Smillert  *
11850e2753Smillert  * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
12898184e3Ssthen  * This file is built by regen/overload.pl.
13898184e3Ssthen  * Any changes made here will be lost!
14850e2753Smillert  */
15850e2753Smillert 
16850e2753Smillert enum {
17898184e3Ssthen     fallback_amg,	/* 0x00 fallback */
18898184e3Ssthen     to_sv_amg,		/* 0x01 ${}      */
19898184e3Ssthen     to_av_amg,		/* 0x02 @{}      */
20898184e3Ssthen     to_hv_amg,		/* 0x03 %{}      */
21898184e3Ssthen     to_gv_amg,		/* 0x04 *{}      */
22898184e3Ssthen     to_cv_amg,		/* 0x05 &{}      */
23898184e3Ssthen     inc_amg,		/* 0x06 ++       */
24898184e3Ssthen     dec_amg,		/* 0x07 --       */
25898184e3Ssthen     bool__amg,		/* 0x08 bool     */
26898184e3Ssthen     numer_amg,		/* 0x09 0+       */
27898184e3Ssthen     string_amg,		/* 0x0a ""       */
28898184e3Ssthen     not_amg,		/* 0x0b !        */
29898184e3Ssthen     copy_amg,		/* 0x0c =        */
30898184e3Ssthen     abs_amg,		/* 0x0d abs      */
31898184e3Ssthen     neg_amg,		/* 0x0e neg      */
32898184e3Ssthen     iter_amg,		/* 0x0f <>       */
33898184e3Ssthen     int_amg,		/* 0x10 int      */
34898184e3Ssthen     lt_amg,		/* 0x11 <        */
35898184e3Ssthen     le_amg,		/* 0x12 <=       */
36898184e3Ssthen     gt_amg,		/* 0x13 >        */
37898184e3Ssthen     ge_amg,		/* 0x14 >=       */
38898184e3Ssthen     eq_amg,		/* 0x15 ==       */
39898184e3Ssthen     ne_amg,		/* 0x16 !=       */
40898184e3Ssthen     slt_amg,		/* 0x17 lt       */
41898184e3Ssthen     sle_amg,		/* 0x18 le       */
42898184e3Ssthen     sgt_amg,		/* 0x19 gt       */
43898184e3Ssthen     sge_amg,		/* 0x1a ge       */
44898184e3Ssthen     seq_amg,		/* 0x1b eq       */
45898184e3Ssthen     sne_amg,		/* 0x1c ne       */
46898184e3Ssthen     nomethod_amg,	/* 0x1d nomethod */
47898184e3Ssthen     add_amg,		/* 0x1e +        */
48898184e3Ssthen     add_ass_amg,	/* 0x1f +=       */
49898184e3Ssthen     subtr_amg,		/* 0x20 -        */
50898184e3Ssthen     subtr_ass_amg,	/* 0x21 -=       */
51898184e3Ssthen     mult_amg,		/* 0x22 *        */
52898184e3Ssthen     mult_ass_amg,	/* 0x23 *=       */
53898184e3Ssthen     div_amg,		/* 0x24 /        */
54898184e3Ssthen     div_ass_amg,	/* 0x25 /=       */
55898184e3Ssthen     modulo_amg,		/* 0x26 %        */
56898184e3Ssthen     modulo_ass_amg,	/* 0x27 %=       */
57898184e3Ssthen     pow_amg,		/* 0x28 **       */
58898184e3Ssthen     pow_ass_amg,	/* 0x29 **=      */
59898184e3Ssthen     lshift_amg,		/* 0x2a <<       */
60898184e3Ssthen     lshift_ass_amg,	/* 0x2b <<=      */
61898184e3Ssthen     rshift_amg,		/* 0x2c >>       */
62898184e3Ssthen     rshift_ass_amg,	/* 0x2d >>=      */
63898184e3Ssthen     band_amg,		/* 0x2e &        */
64898184e3Ssthen     band_ass_amg,	/* 0x2f &=       */
65b8851fccSafresh1     sband_amg,		/* 0x30 &.       */
66b8851fccSafresh1     sband_ass_amg,	/* 0x31 &.=      */
67b8851fccSafresh1     bor_amg,		/* 0x32 |        */
68b8851fccSafresh1     bor_ass_amg,	/* 0x33 |=       */
69b8851fccSafresh1     sbor_amg,		/* 0x34 |.       */
70b8851fccSafresh1     sbor_ass_amg,	/* 0x35 |.=      */
71b8851fccSafresh1     bxor_amg,		/* 0x36 ^        */
72b8851fccSafresh1     bxor_ass_amg,	/* 0x37 ^=       */
73b8851fccSafresh1     sbxor_amg,		/* 0x38 ^.       */
74b8851fccSafresh1     sbxor_ass_amg,	/* 0x39 ^.=      */
75b8851fccSafresh1     ncmp_amg,		/* 0x3a <=>      */
76b8851fccSafresh1     scmp_amg,		/* 0x3b cmp      */
77b8851fccSafresh1     compl_amg,		/* 0x3c ~        */
78b8851fccSafresh1     scompl_amg,		/* 0x3d ~.       */
79b8851fccSafresh1     atan2_amg,		/* 0x3e atan2    */
80b8851fccSafresh1     cos_amg,		/* 0x3f cos      */
81b8851fccSafresh1     sin_amg,		/* 0x40 sin      */
82b8851fccSafresh1     exp_amg,		/* 0x41 exp      */
83b8851fccSafresh1     log_amg,		/* 0x42 log      */
84b8851fccSafresh1     sqrt_amg,		/* 0x43 sqrt     */
85b8851fccSafresh1     repeat_amg,		/* 0x44 x        */
86b8851fccSafresh1     repeat_ass_amg,	/* 0x45 x=       */
87b8851fccSafresh1     concat_amg,		/* 0x46 .        */
88b8851fccSafresh1     concat_ass_amg,	/* 0x47 .=       */
89b8851fccSafresh1     smart_amg,		/* 0x48 ~~       */
90b8851fccSafresh1     ftest_amg,		/* 0x49 -X       */
91b8851fccSafresh1     regexp_amg,		/* 0x4a qr       */
92850e2753Smillert     max_amg_code
93850e2753Smillert     /* Do not leave a trailing comma here.  C9X allows it, C89 doesn't. */
94850e2753Smillert };
95850e2753Smillert 
96850e2753Smillert #define NofAMmeth max_amg_code
97850e2753Smillert 
98*e0680481Safresh1 /* ex: set ro ft=c: */
99