From f592ea46c04ec607551c2ecf627ee8440f5b0fc1 Mon Sep 17 00:00:00 2001 From: eeh Date: Fri, 5 Oct 2001 22:36:02 +0000 Subject: [PATCH] Let 32-bit platforms generate 64-bit fcode too. --- usr.bin/fgen/fgen.h | 4 ++-- usr.bin/fgen/fgen.l | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.bin/fgen/fgen.h b/usr.bin/fgen/fgen.h index 06f1cf83b915..e8c6319040e4 100644 --- a/usr.bin/fgen/fgen.h +++ b/usr.bin/fgen/fgen.h @@ -1,4 +1,4 @@ -/* $NetBSD: fgen.h,v 1.4 2001/06/13 10:46:05 wiz Exp $ */ +/* $NetBSD: fgen.h,v 1.5 2001/10/05 22:36:02 eeh Exp $ */ /* * fgen.h -- stuff for the fcode tokenizer. * @@ -32,7 +32,7 @@ */ /* Type of a Cell */ -typedef long Cell; +typedef int64_t Cell; /* Token from the scanner. */ struct tok { diff --git a/usr.bin/fgen/fgen.l b/usr.bin/fgen/fgen.l index 1007aff2c9cb..1483cf732ad2 100644 --- a/usr.bin/fgen/fgen.l +++ b/usr.bin/fgen/fgen.l @@ -1,5 +1,5 @@ %{ -/* $NetBSD: fgen.l,v 1.13 2001/10/04 18:53:15 eeh Exp $ */ +/* $NetBSD: fgen.l,v 1.14 2001/10/05 22:36:02 eeh Exp $ */ /* FLEX input for FORTH input file scanner */ /* * Copyright (c) 1998 Eduardo Horvath. @@ -725,12 +725,12 @@ struct macro macros[] = { * ASCII -> long int converter, eats `.'s */ #define strtol(x, y, z) cvt(x, y, z) -long +Cell cvt(s, e, base) char *s, **e; int base; { - long v = 0; + Cell v = 0; int c, n = 0; c = *s;