Artifact f4b8446b57d9127845eba520ef719332ec4864fa:


0000: 2f 2a 20 53 61 6d 70 6c 65 20 70 72 6f 74 6f 74  /* Sample protot
0010: 79 70 65 20 66 6f 72 20 61 20 74 72 61 6d 70 6f  ype for a trampo
0020: 6c 69 6e 65 2e 20 2a 2f 0a 0a 2f 2a 0a 20 2a 20  line. */../*. * 
0030: 43 6f 70 79 72 69 67 68 74 20 31 39 39 35 20 42  Copyright 1995 B
0040: 72 75 6e 6f 20 48 61 69 62 6c 65 2c 20 3c 62 72  runo Haible, <br
0050: 75 6e 6f 40 63 6c 69 73 70 2e 6f 72 67 3e 0a 20  uno@clisp.org>. 
0060: 2a 0a 20 2a 20 54 68 69 73 20 69 73 20 66 72 65  *. * This is fre
0070: 65 20 73 6f 66 74 77 61 72 65 20 64 69 73 74 72  e software distr
0080: 69 62 75 74 65 64 20 75 6e 64 65 72 20 74 68 65  ibuted under the
0090: 20 47 4e 55 20 47 65 6e 65 72 61 6c 20 50 75 62   GNU General Pub
00a0: 6c 69 63 20 4c 69 63 65 6e 63 65 0a 20 2a 20 64  lic Licence. * d
00b0: 65 73 63 72 69 62 65 64 20 69 6e 20 74 68 65 20  escribed in the 
00c0: 66 69 6c 65 20 43 4f 50 59 49 4e 47 2e 20 43 6f  file COPYING. Co
00d0: 6e 74 61 63 74 20 74 68 65 20 61 75 74 68 6f 72  ntact the author
00e0: 20 69 66 20 79 6f 75 20 64 6f 6e 27 74 20 68 61   if you don't ha
00f0: 76 65 20 74 68 69 73 0a 20 2a 20 6f 72 20 63 61  ve this. * or ca
0100: 6e 27 74 20 6c 69 76 65 20 77 69 74 68 20 69 74  n't live with it
0110: 2e 20 54 68 65 72 65 20 69 73 20 41 42 53 4f 4c  . There is ABSOL
0120: 55 54 45 4c 59 20 4e 4f 20 57 41 52 52 41 4e 54  UTELY NO WARRANT
0130: 59 2c 20 65 78 70 6c 69 63 69 74 20 6f 72 20 69  Y, explicit or i
0140: 6d 70 6c 69 65 64 2c 0a 20 2a 20 6f 6e 20 74 68  mplied,. * on th
0150: 69 73 20 73 6f 66 74 77 61 72 65 2e 0a 20 2a 2f  is software.. */
0160: 0a 0a 23 64 65 66 69 6e 65 20 66 75 6e 63 74 69  ..#define functi
0170: 6f 6e 20 20 28 69 6e 74 20 28 2a 29 20 28 29 29  on  (int (*) ())
0180: 20 30 78 62 61 62 65 62 65 63 30 0a 23 64 65 66   0xbabebec0.#def
0190: 69 6e 65 20 76 61 72 69 61 62 6c 65 20 20 2a 28  ine variable  *(
01a0: 76 6f 69 64 2a 2a 29 20 20 20 20 30 78 31 32 33  void**)    0x123
01b0: 34 35 36 37 38 0a 23 64 65 66 69 6e 65 20 64 61  45678.#define da
01c0: 74 61 20 20 20 20 20 20 28 76 6f 69 64 2a 29 20  ta      (void*) 
01d0: 20 20 20 20 20 30 78 37 33 35 35 34 37 31 31 0a       0x73554711.
01e0: 0a 69 6e 74 20 74 72 61 6d 70 20 28 29 0a 7b 20  .int tramp ().{ 
01f0: 76 61 72 69 61 62 6c 65 20 3d 20 64 61 74 61 3b  variable = data;
0200: 0a 20 20 72 65 74 75 72 6e 20 28 2a 66 75 6e 63  .  return (*func
0210: 74 69 6f 6e 29 28 29 3b 0a 7d 0a 0a 69 6e 74 20  tion)();.}..int 
0220: 6a 75 6d 70 20 28 29 0a 7b 20 67 6f 74 6f 20 2a  jump ().{ goto *
0230: 66 75 6e 63 74 69 6f 6e 3b 20 7d 0a 0a           function; }..