Logo Search packages:      
Sourcecode: yasm version File versions  Download package

coretype.h File Reference


Detailed Description

YASM core types and utility functions.

Id
coretype.h 1168 2004-10-31 01:07:52Z peter

Copyright (C) 2001 Peter Johnson

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND OTHER CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file coretype.h.

Go to the source code of this file.

Classes

struct  yasm_assoc_data_callback

Typedefs

typedef struct yasm_arch yasm_arch
typedef struct yasm_bytecode yasm_bytecode
typedef yasm_intnum *(* yasm_calc_bc_dist_func )(yasm_bytecode *precbc1, yasm_bytecode *precbc2)
typedef struct yasm_dbgfmt yasm_dbgfmt
typedef struct yasm_expr yasm_expr
typedef struct yasm_floatnum yasm_floatnum
typedef struct yasm_intnum yasm_intnum
typedef struct yasm_linemap yasm_linemap
typedef struct yasm_listfmt yasm_listfmt
typedef struct yasm_object yasm_object
typedef struct yasm_objfmt yasm_objfmt
typedef struct yasm_optimizer yasm_optimizer
typedef int(* yasm_output_expr_func )(yasm_expr **ep, unsigned char *buf, size_t destsize, size_t valsize, int shift, unsigned long offset, yasm_bytecode *bc, int rel, int warn, void *d)
typedef int(* yasm_output_reloc_func )(yasm_symrec *sym, yasm_bytecode *bc, unsigned char *buf, size_t destsize, size_t valsize, int warn, void *d)
typedef struct yasm_parser yasm_parser
typedef struct yasm_preproc yasm_preproc
typedef struct yasm_section yasm_section
typedef struct yasm_symrec yasm_symrec
typedef struct yasm_symtab yasm_symtab
typedef struct yasm_valparam yasm_valparam
typedef struct yasm_valparamhead yasm_valparamhead

Enumerations

enum  yasm_expr_op {
  YASM_EXPR_IDENT, YASM_EXPR_ADD, YASM_EXPR_SUB, YASM_EXPR_MUL,
  YASM_EXPR_DIV, YASM_EXPR_SIGNDIV, YASM_EXPR_MOD, YASM_EXPR_SIGNMOD,
  YASM_EXPR_NEG, YASM_EXPR_NOT, YASM_EXPR_OR, YASM_EXPR_AND,
  YASM_EXPR_XOR, YASM_EXPR_SHL, YASM_EXPR_SHR, YASM_EXPR_LOR,
  YASM_EXPR_LAND, YASM_EXPR_LNOT, YASM_EXPR_LT, YASM_EXPR_GT,
  YASM_EXPR_EQ, YASM_EXPR_LE, YASM_EXPR_GE, YASM_EXPR_NE,
  YASM_EXPR_NONNUM, YASM_EXPR_SEG, YASM_EXPR_WRT, YASM_EXPR_SEGOFF
}
enum  yasm_sym_vis { YASM_SYM_LOCAL = 0, YASM_SYM_GLOBAL = 1 << 0, YASM_SYM_COMMON = 1 << 1, YASM_SYM_EXTERN = 1 << 2 }

Functions

int yasm__mergesort (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
int yasm__strcasecmp (const char *s1, const char *s2)
int yasm__strncasecmp (const char *s1, const char *s2, size_t n)
char * yasm__strsep (char **stringp, const char *delim)
char * yasm__xstrdup (const char *str)
char * yasm__xstrndup (const char *str, size_t len)

Variables

void *(* yasm_xcalloc )(size_t nelem, size_t elsize)
void(* yasm_xfree )(void *p)
void *(* yasm_xmalloc )(size_t size)
void *(* yasm_xrealloc )(void *oldmem, size_t size)


Generated by  Doxygen 1.6.0   Back to index