Peter Johnson | 08fc544 | 2003-06-02 00:23:33 +0000 | [diff] [blame] | 1 | /** |
| 2 | * \file libyasm.h |
| 3 | * \brief YASM library primary header file. |
| 4 | * |
Peter Johnson | 3de47f7 | 2003-06-28 17:38:08 +0000 | [diff] [blame] | 5 | * \license |
Peter Johnson | 469e54f | 2007-04-22 05:09:49 +0000 | [diff] [blame] | 6 | * Copyright (C) 2003-2007 Peter Johnson |
Peter Johnson | 0786a76 | 2003-03-15 05:07:49 +0000 | [diff] [blame] | 7 | * |
| 8 | * Redistribution and use in source and binary forms, with or without |
| 9 | * modification, are permitted provided that the following conditions |
| 10 | * are met: |
Peter Johnson | 08fc544 | 2003-06-02 00:23:33 +0000 | [diff] [blame] | 11 | * - Redistributions of source code must retain the above copyright |
Peter Johnson | 0786a76 | 2003-03-15 05:07:49 +0000 | [diff] [blame] | 12 | * notice, this list of conditions and the following disclaimer. |
Peter Johnson | 08fc544 | 2003-06-02 00:23:33 +0000 | [diff] [blame] | 13 | * - Redistributions in binary form must reproduce the above copyright |
Peter Johnson | 0786a76 | 2003-03-15 05:07:49 +0000 | [diff] [blame] | 14 | * notice, this list of conditions and the following disclaimer in the |
| 15 | * documentation and/or other materials provided with the distribution. |
| 16 | * |
| 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND OTHER CONTRIBUTORS ``AS IS'' |
| 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE |
| 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 27 | * POSSIBILITY OF SUCH DAMAGE. |
Peter Johnson | 3de47f7 | 2003-06-28 17:38:08 +0000 | [diff] [blame] | 28 | * \endlicense |
Peter Johnson | 0786a76 | 2003-03-15 05:07:49 +0000 | [diff] [blame] | 29 | */ |
Peter Johnson | 08fc544 | 2003-06-02 00:23:33 +0000 | [diff] [blame] | 30 | #ifndef YASM_LIB_H |
| 31 | #define YASM_LIB_H |
Peter Johnson | 0786a76 | 2003-03-15 05:07:49 +0000 | [diff] [blame] | 32 | |
Peter Johnson | 0c34470 | 2007-01-29 03:32:37 +0000 | [diff] [blame] | 33 | #ifdef YASM_PYXELATOR |
| 34 | typedef struct __FILE FILE; |
| 35 | typedef struct __va_list va_list; |
| 36 | typedef unsigned long size_t; |
Peter Johnson | 8aa68a2 | 2007-02-18 20:42:55 +0000 | [diff] [blame] | 37 | typedef unsigned long uintptr_t; |
Peter Johnson | 0c34470 | 2007-01-29 03:32:37 +0000 | [diff] [blame] | 38 | #else |
Peter Johnson | cfc6bf0 | 2003-05-05 03:42:12 +0000 | [diff] [blame] | 39 | #include <stdio.h> |
| 40 | #include <stdarg.h> |
Peter Johnson | 8aa68a2 | 2007-02-18 20:42:55 +0000 | [diff] [blame] | 41 | #include <libyasm-stdint.h> |
Peter Johnson | 0c34470 | 2007-01-29 03:32:37 +0000 | [diff] [blame] | 42 | #endif |
Peter Johnson | cfc6bf0 | 2003-05-05 03:42:12 +0000 | [diff] [blame] | 43 | |
Peter Johnson | ab13bd7 | 2007-07-14 03:11:32 +0000 | [diff] [blame] | 44 | #include <libyasm/compat-queue.h> |
Peter Johnson | cfc6bf0 | 2003-05-05 03:42:12 +0000 | [diff] [blame] | 45 | |
| 46 | #include <libyasm/coretype.h> |
| 47 | #include <libyasm/valparam.h> |
| 48 | |
Peter Johnson | 26c808a | 2006-11-26 21:02:59 +0000 | [diff] [blame] | 49 | #include <libyasm/linemap.h> |
Peter Johnson | 0786a76 | 2003-03-15 05:07:49 +0000 | [diff] [blame] | 50 | |
Peter Johnson | ddc08a6 | 2003-03-26 05:07:57 +0000 | [diff] [blame] | 51 | #include <libyasm/errwarn.h> |
| 52 | #include <libyasm/intnum.h> |
| 53 | #include <libyasm/floatnum.h> |
| 54 | #include <libyasm/expr.h> |
Peter Johnson | 9fa87cd | 2006-03-19 04:18:10 +0000 | [diff] [blame] | 55 | #include <libyasm/value.h> |
Peter Johnson | ddc08a6 | 2003-03-26 05:07:57 +0000 | [diff] [blame] | 56 | #include <libyasm/symrec.h> |
Peter Johnson | 0786a76 | 2003-03-15 05:07:49 +0000 | [diff] [blame] | 57 | |
Peter Johnson | ddc08a6 | 2003-03-26 05:07:57 +0000 | [diff] [blame] | 58 | #include <libyasm/bytecode.h> |
| 59 | #include <libyasm/section.h> |
Peter Johnson | fb8b8b8 | 2007-07-08 05:31:59 +0000 | [diff] [blame] | 60 | #include <libyasm/insn.h> |
Peter Johnson | 0786a76 | 2003-03-15 05:07:49 +0000 | [diff] [blame] | 61 | |
Peter Johnson | ddc08a6 | 2003-03-26 05:07:57 +0000 | [diff] [blame] | 62 | #include <libyasm/arch.h> |
| 63 | #include <libyasm/dbgfmt.h> |
| 64 | #include <libyasm/objfmt.h> |
Peter Johnson | 2d0119c | 2004-10-02 06:18:30 +0000 | [diff] [blame] | 65 | #include <libyasm/listfmt.h> |
Peter Johnson | ddc08a6 | 2003-03-26 05:07:57 +0000 | [diff] [blame] | 66 | #include <libyasm/parser.h> |
| 67 | #include <libyasm/preproc.h> |
Peter Johnson | 0786a76 | 2003-03-15 05:07:49 +0000 | [diff] [blame] | 68 | |
Peter Johnson | 22d86be | 2003-03-30 21:27:25 +0000 | [diff] [blame] | 69 | #include <libyasm/file.h> |
Peter Johnson | 882738b | 2004-12-01 07:49:18 +0000 | [diff] [blame] | 70 | #include <libyasm/module.h> |
Peter Johnson | 22d86be | 2003-03-30 21:27:25 +0000 | [diff] [blame] | 71 | |
Peter Johnson | ddc08a6 | 2003-03-26 05:07:57 +0000 | [diff] [blame] | 72 | #include <libyasm/hamt.h> |
Peter Johnson | 93660bd | 2006-03-27 02:15:19 +0000 | [diff] [blame] | 73 | #include <libyasm/md5.h> |
Peter Johnson | 0786a76 | 2003-03-15 05:07:49 +0000 | [diff] [blame] | 74 | |
| 75 | #endif |