From 651c6e5cbf29645fd38522e7a6b2524e5bb308e4 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 6 Jun 2004 10:49:59 +0000 Subject: [PATCH] Add predefined type strings for float and double git-svn-id: svn://svn.cc65.org/cc65/trunk@3105 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/datatype.c | 16 +++++++++------- src/cc65/datatype.h | 16 +++++++++------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/cc65/datatype.c b/src/cc65/datatype.c index 7aa50ad64..c57ba62ab 100644 --- a/src/cc65/datatype.c +++ b/src/cc65/datatype.c @@ -57,13 +57,15 @@ /* Predefined type strings */ -type type_uchar [] = { T_UCHAR, T_END }; -type type_int [] = { T_INT, T_END }; -type type_uint [] = { T_UINT, T_END }; -type type_long [] = { T_LONG, T_END }; -type type_ulong [] = { T_ULONG, T_END }; -type type_void [] = { T_VOID, T_END }; -type type_size_t [] = { T_SIZE_T, T_END }; +type type_uchar[] = { T_UCHAR, T_END }; +type type_int[] = { T_INT, T_END }; +type type_uint[] = { T_UINT, T_END }; +type type_long[] = { T_LONG, T_END }; +type type_ulong[] = { T_ULONG, T_END }; +type type_void[] = { T_VOID, T_END }; +type type_size_t[] = { T_SIZE_T, T_END }; +type type_float[] = { T_FLOAT, T_END }; +type type_double[] = { T_DOUBLE, T_END }; diff --git a/src/cc65/datatype.h b/src/cc65/datatype.h index f921a8e45..180654133 100644 --- a/src/cc65/datatype.h +++ b/src/cc65/datatype.h @@ -161,13 +161,15 @@ typedef unsigned short type; #define SIZEOF_PTR 2 /* Predefined type strings */ -extern type type_uchar []; -extern type type_int []; -extern type type_uint []; -extern type type_long []; -extern type type_ulong []; -extern type type_void []; -extern type type_size_t []; +extern type type_uchar[]; +extern type type_int[]; +extern type type_uint[]; +extern type type_long[]; +extern type type_ulong[]; +extern type type_void[]; +extern type type_size_t[]; +extern type type_float[]; +extern type type_double[]; -- 2.39.5