build platform files.
While here, fix a few warnings by pushing uintptr_t to a few more register
usages.
Noticed by: rugxulo@gmail.com
svn path=/trunk/yasm/; revision=1786
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "expr.h"
fprintf(f, "\n");
break;
}
- fprintf(f, "%*sTargetMod=%lx\n", indent_level+1, "", op->targetmod);
+ fprintf(f, "%*sTargetMod=%lx\n", indent_level+1, "",
+ (unsigned long)op->targetmod);
fprintf(f, "%*sSize=%u\n", indent_level+1, "", op->size);
fprintf(f, "%*sDeref=%d, Strict=%d\n", indent_level+1, "", (int)op->deref,
(int)op->strict);
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "errwarn.h"
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "errwarn.h"
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "linemap.h"
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "errwarn.h"
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "file.h"
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "errwarn.h"
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "errwarn.h"
yasm_expr *expn;
yasm_intnum *intn;
yasm_floatnum *flt;
- unsigned long reg;
+ uintptr_t reg;
unsigned int subst;
} data;
};
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "bitvect.h"
}
yasm_expr__item *
-yasm_expr_reg(unsigned long reg)
+yasm_expr_reg(uintptr_t reg)
{
yasm_expr__item *e = expr_get_item();
e->type = YASM_EXPR_REG;
/*@=unqualifiedtrans =nullderef -nullstate -onlytrans@*/
/*@-unqualifiedtrans -nullderef -nullstate -onlytrans@*/
-const unsigned long *
+const uintptr_t *
yasm_expr_get_reg(yasm_expr **ep, int simplify)
{
if (simplify)
* \param reg register
* \return Newly allocated expression item.
*/
-/*@only@*/ yasm_expr__item *yasm_expr_reg(unsigned long reg);
+/*@only@*/ yasm_expr__item *yasm_expr_reg(uintptr_t reg);
/** Create a new expression tree e=l op r.
* \param l expression for left side of new expression
* \return NULL if the expression is too complex; otherwise the register value
* of the expression.
*/
-/*@dependent@*/ /*@null@*/ const unsigned long *yasm_expr_get_reg
+/*@dependent@*/ /*@null@*/ const uintptr_t *yasm_expr_get_reg
(yasm_expr **ep, int simplify);
/** Print an expression. For debugging purposes.
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "hamt.h"
#include <limits.h>
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "valparam.h"
#include "assocdat.h"
# include <limits.h>
#endif
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "hamt.h"
#include "assocdat.h"
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "valparam.h"
#include "util.h"
/*@unused@*/ RCSID("$Id$");
+#include "libyasm-stdint.h"
#include "coretype.h"
#include "bitvect.h"
{
yasm_valparam *vp = yasm_vps_first(valparams);
coff_unwind_code *code;
- const unsigned long *reg;
+ const uintptr_t *reg;
if (!procframe_checkstate(objfmt_coff, "PUSHREG"))
return;
{
yasm_valparam *vp = yasm_vps_first(valparams);
coff_unwind_code *code;
- const unsigned long *reg;
+ const uintptr_t *reg;
yasm_expr *off = NULL;
if (!procframe_checkstate(objfmt_coff, "SETFRAME"))
{
yasm_valparam *vp = yasm_vps_first(valparams);
coff_unwind_code *code;
- const unsigned long *reg;
+ const uintptr_t *reg;
if (!procframe_checkstate(objfmt_coff, name))
return;
* initial version 27/iii/95 by Simon Tatham
*/
#include <util.h>
+#include <libyasm-stdint.h>
#include <libyasm/coretype.h>
#include <libyasm/intnum.h>
#include <libyasm/expr.h>
* detoken is used to convert the line back to text
*/
#include <util.h>
+#include <libyasm-stdint.h>
#include <libyasm/coretype.h>
#include <libyasm/intnum.h>
#include <libyasm/expr.h>
#include <string.h>
#include <assert.h>
-#include <libyasm-stdint.h>
-
#include <libyasm/coretype.h>
#ifdef lint