Artifact 5c0b6ed26ca3e8e21548d1dc3800d862743e2afc:


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 2d 31  Copyright 1995-1
0040: 39 39 36 20 42 72 75 6e 6f 20 48 61 69 62 6c 65  996 Bruno Haible
0050: 2c 20 3c 62 72 75 6e 6f 40 63 6c 69 73 70 2e 6f  , <bruno@clisp.o
0060: 72 67 3e 0a 20 2a 0a 20 2a 20 54 68 69 73 20 69  rg>. *. * This i
0070: 73 20 66 72 65 65 20 73 6f 66 74 77 61 72 65 20  s free software 
0080: 64 69 73 74 72 69 62 75 74 65 64 20 75 6e 64 65  distributed unde
0090: 72 20 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61  r the GNU Genera
00a0: 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 63 65  l Public Licence
00b0: 0a 20 2a 20 64 65 73 63 72 69 62 65 64 20 69 6e  . * described in
00c0: 20 74 68 65 20 66 69 6c 65 20 43 4f 50 59 49 4e   the file COPYIN
00d0: 47 2e 20 43 6f 6e 74 61 63 74 20 74 68 65 20 61  G. Contact the a
00e0: 75 74 68 6f 72 20 69 66 20 79 6f 75 20 64 6f 6e  uthor if you don
00f0: 27 74 20 68 61 76 65 20 74 68 69 73 0a 20 2a 20  't have this. * 
0100: 6f 72 20 63 61 6e 27 74 20 6c 69 76 65 20 77 69  or can't live wi
0110: 74 68 20 69 74 2e 20 54 68 65 72 65 20 69 73 20  th it. There is 
0120: 41 42 53 4f 4c 55 54 45 4c 59 20 4e 4f 20 57 41  ABSOLUTELY NO WA
0130: 52 52 41 4e 54 59 2c 20 65 78 70 6c 69 63 69 74  RRANTY, explicit
0140: 20 6f 72 20 69 6d 70 6c 69 65 64 2c 0a 20 2a 20   or implied,. * 
0150: 6f 6e 20 74 68 69 73 20 73 6f 66 74 77 61 72 65  on this software
0160: 2e 0a 20 2a 2f 0a 0a 23 64 65 66 69 6e 65 20 66  .. */..#define f
0170: 75 6e 63 74 69 6f 6e 20 20 28 69 6e 74 20 28 2a  unction  (int (*
0180: 29 20 28 29 29 20 30 78 62 61 62 65 62 65 63 30  ) ()) 0xbabebec0
0190: 64 65 61 30 66 66 61 62 4c 0a 23 64 65 66 69 6e  dea0ffabL.#defin
01a0: 65 20 76 61 72 69 61 62 6c 65 20 20 2a 28 76 6f  e variable  *(vo
01b0: 69 64 2a 2a 29 20 20 20 20 30 78 31 32 33 34 35  id**)    0x12345
01c0: 36 37 38 31 33 35 37 38 37 36 35 4c 0a 23 64 65  67813578765L.#de
01d0: 66 69 6e 65 20 64 61 74 61 20 20 20 20 20 20 28  fine data      (
01e0: 76 6f 69 64 2a 29 20 20 20 20 20 20 30 78 37 33  void*)      0x73
01f0: 35 35 34 37 31 31 34 33 36 32 32 31 35 35 4c 0a  55471143622155L.
0200: 0a 69 6e 74 20 74 72 61 6d 70 20 28 29 0a 7b 20  .int tramp ().{ 
0210: 76 61 72 69 61 62 6c 65 20 3d 20 64 61 74 61 3b  variable = data;
0220: 0a 20 20 72 65 74 75 72 6e 20 28 2a 66 75 6e 63  .  return (*func
0230: 74 69 6f 6e 29 28 29 3b 0a 7d 0a 0a 69 6e 74 20  tion)();.}..int 
0240: 6a 75 6d 70 20 28 29 0a 7b 20 67 6f 74 6f 20 2a  jump ().{ goto *
0250: 66 75 6e 63 74 69 6f 6e 3b 20 7d 0a 0a           function; }..