sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 1 | |
| 2 | /*--------------------------------------------------------------------*/ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 3 | /*--- Header imported directly by every tool asm file, and ---*/ |
| 4 | /*--- (via pub_tool_basics.h) by every tool C file. ---*/ |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 5 | /*--- pub_tool_basics_asm.h ---*/ |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 6 | /*--------------------------------------------------------------------*/ |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 7 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 8 | /* |
njn | b9c427c | 2004-12-01 14:14:42 +0000 | [diff] [blame] | 9 | This file is part of Valgrind, a dynamic binary instrumentation |
| 10 | framework. |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 11 | |
sewardj | 4d474d0 | 2008-02-11 11:34:59 +0000 | [diff] [blame] | 12 | Copyright (C) 2000-2008 Julian Seward |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 13 | jseward@acm.org |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 14 | |
| 15 | This program is free software; you can redistribute it and/or |
| 16 | modify it under the terms of the GNU General Public License as |
| 17 | published by the Free Software Foundation; either version 2 of the |
| 18 | License, or (at your option) any later version. |
| 19 | |
| 20 | This program is distributed in the hope that it will be useful, but |
| 21 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 23 | General Public License for more details. |
| 24 | |
| 25 | You should have received a copy of the GNU General Public License |
| 26 | along with this program; if not, write to the Free Software |
| 27 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 28 | 02111-1307, USA. |
| 29 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 30 | The GNU General Public License is contained in the file COPYING. |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 31 | */ |
| 32 | |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 33 | #ifndef __PUB_TOOL_BASICS_ASM_H |
| 34 | #define __PUB_TOOL_BASICS_ASM_H |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 35 | |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 36 | /* All symbols externally visible from Valgrind are prefixed |
| 37 | as specified here to avoid namespace conflict problems. */ |
njn | 767eb42 | 2005-06-10 23:09:45 +0000 | [diff] [blame] | 38 | |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 39 | #define VGAPPEND(str1,str2) str1##str2 |
njn | f536bbb | 2005-06-13 04:21:38 +0000 | [diff] [blame] | 40 | |
sewardj | 7eb7c58 | 2005-06-23 01:02:53 +0000 | [diff] [blame] | 41 | /* VG_ is for symbols exported from modules. ML_ (module-local) is |
| 42 | for symbols which are not intended to be visible outside modules, |
| 43 | but which cannot be declared as C 'static's since they need to be |
| 44 | visible across C files within a given module. It is a mistake for |
| 45 | a ML_ name to appear in a pub_core_*.h or pub_tool_*.h file. |
| 46 | Likewise it is a mistake for a VG_ name to appear in a priv_*.h |
| 47 | file. |
| 48 | */ |
| 49 | #define VG_(str) VGAPPEND(vgPlain_, str) |
| 50 | #define ML_(str) VGAPPEND(vgModuleLocal_, str) |
| 51 | |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 52 | #endif /* __PUB_TOOL_BASICS_ASM_H */ |
nethercote | c06e213 | 2004-09-03 13:45:29 +0000 | [diff] [blame] | 53 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 54 | /*--------------------------------------------------------------------*/ |
nethercote | 109d0df | 2004-09-02 08:10:13 +0000 | [diff] [blame] | 55 | /*--- end ---*/ |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 56 | /*--------------------------------------------------------------------*/ |