]> git.proxmox.com Git - grub2.git/blame - include/grub/symbol.h
Initial revision
[grub2.git] / include / grub / symbol.h
CommitLineData
6a161fa9 1/*
2 * PUPA -- Preliminary Universal Programming Architecture for GRUB
3 * Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc.
4 * Copyright (C) 2002 Yoshinori K. Okuji <okuji@enbug.org>
5 *
6 * PUPA is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with PUPA; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21#ifndef PUPA_SYMBOL_HEADER
22#define PUPA_SYMBOL_HEADER 1
23
24#include <config.h>
25
26/* Add an underscore to a C symbol in assembler code if needed. */
27#ifdef HAVE_ASM_USCORE
28# define EXT_C(sym) _ ## sym
29#else
30# define EXT_C(sym) sym
31#endif
32
33#define FUNCTION(x) .globl EXT_C(x) ; EXT_C(x):
34#define VARIABLE(x) FUNCTION(x)
35
36/* Mark an exported symbol. */
37#define EXPORT_FUNC(x) x
38#define EXPORT_VAR(x) x
39
40#endif /* ! PUPA_SYMBOL_HEADER */