145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org/**
245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * \file libyasm.h
345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * \brief YASM library primary header file.
445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *
545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * \license
645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *  Copyright (C) 2003-2007  Peter Johnson
745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *
845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * Redistribution and use in source and binary forms, with or without
945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * modification, are permitted provided that the following conditions
1045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * are met:
1145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *  - Redistributions of source code must retain the above copyright
1245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *    notice, this list of conditions and the following disclaimer.
1345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *  - Redistributions in binary form must reproduce the above copyright
1445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *    notice, this list of conditions and the following disclaimer in the
1545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *    documentation and/or other materials provided with the distribution.
1645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *
1745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND OTHER CONTRIBUTORS ``AS IS''
1845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE
2145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * POSSIBILITY OF SUCH DAMAGE.
2845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org * \endlicense
2945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org */
3045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#ifndef YASM_LIB_H
3145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#define YASM_LIB_H
3245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
3345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#ifdef YASM_PYXELATOR
3445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgtypedef struct __FILE FILE;
3545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgtypedef struct __va_list va_list;
3645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgtypedef unsigned long size_t;
3745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgtypedef unsigned long uintptr_t;
3845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#else
3945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <stdio.h>
4045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <stdarg.h>
4145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm-stdint.h>
4245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#endif
4345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
4445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/compat-queue.h>
4545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
4645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/coretype.h>
4745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/valparam.h>
4845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
4945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/linemap.h>
5045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
5145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/errwarn.h>
5245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/intnum.h>
5345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/floatnum.h>
5445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/expr.h>
5545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/value.h>
5645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/symrec.h>
5745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
5845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/bytecode.h>
5945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/section.h>
6045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/insn.h>
6145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
6245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/arch.h>
6345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/dbgfmt.h>
6445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/objfmt.h>
6545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/listfmt.h>
6645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/parser.h>
6745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/preproc.h>
6845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
6945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/file.h>
7045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/module.h>
7145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
7245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/hamt.h>
7345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <libyasm/md5.h>
7445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
7545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#endif
76