From b3a5266c00ab0349dda333eda78fea8e08603e1f Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 18 Aug 2001 23:05:37 +0000 Subject: [PATCH] Add "error when reading from file" error. svn path=/trunk/yasm/; revision=131 --- libyasm/errwarn.c | 5 +++-- libyasm/errwarn.h | 5 +++-- src/errwarn.c | 5 +++-- src/errwarn.h | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/libyasm/errwarn.c b/libyasm/errwarn.c index eaf6292a..1b2e818b 100644 --- a/libyasm/errwarn.c +++ b/libyasm/errwarn.c @@ -1,4 +1,4 @@ -/* $Id: errwarn.c,v 1.18 2001/08/18 22:15:12 peter Exp $ +/* $Id: errwarn.c,v 1.19 2001/08/18 23:05:37 peter Exp $ * Error and warning reporting and related functions. * * Copyright (C) 2001 Peter Johnson @@ -73,7 +73,8 @@ static char *err_msgs[] = { "expression syntax error", "floating-point constant encountered in `%s'", "non-floating-point value encountered in `%s'", - "could not open file `%s'" + "could not open file `%s'", + "error when reading from file" }; /* Warning messages. Match up with warn_num enum in errwarn.h. */ diff --git a/libyasm/errwarn.h b/libyasm/errwarn.h index 5c76a17b..13a2d751 100644 --- a/libyasm/errwarn.h +++ b/libyasm/errwarn.h @@ -1,4 +1,4 @@ -/* $Id: errwarn.h,v 1.12 2001/08/18 22:15:12 peter Exp $ +/* $Id: errwarn.h,v 1.13 2001/08/18 23:05:37 peter Exp $ * Error and warning reporting and related functions header file. * * Copyright (C) 2001 Peter Johnson @@ -51,7 +51,8 @@ typedef enum { ERR_EXPR_SYNTAX, ERR_DECLDATA_FLOAT, ERR_DECLDATA_EXPR, - ERR_FILE_OPEN + ERR_FILE_OPEN, + ERR_FILE_READ } err_num; /* Warning constants. Match up with warn_msgs in errwarn.c. */ diff --git a/src/errwarn.c b/src/errwarn.c index eaf6292a..1b2e818b 100644 --- a/src/errwarn.c +++ b/src/errwarn.c @@ -1,4 +1,4 @@ -/* $Id: errwarn.c,v 1.18 2001/08/18 22:15:12 peter Exp $ +/* $Id: errwarn.c,v 1.19 2001/08/18 23:05:37 peter Exp $ * Error and warning reporting and related functions. * * Copyright (C) 2001 Peter Johnson @@ -73,7 +73,8 @@ static char *err_msgs[] = { "expression syntax error", "floating-point constant encountered in `%s'", "non-floating-point value encountered in `%s'", - "could not open file `%s'" + "could not open file `%s'", + "error when reading from file" }; /* Warning messages. Match up with warn_num enum in errwarn.h. */ diff --git a/src/errwarn.h b/src/errwarn.h index 5c76a17b..13a2d751 100644 --- a/src/errwarn.h +++ b/src/errwarn.h @@ -1,4 +1,4 @@ -/* $Id: errwarn.h,v 1.12 2001/08/18 22:15:12 peter Exp $ +/* $Id: errwarn.h,v 1.13 2001/08/18 23:05:37 peter Exp $ * Error and warning reporting and related functions header file. * * Copyright (C) 2001 Peter Johnson @@ -51,7 +51,8 @@ typedef enum { ERR_EXPR_SYNTAX, ERR_DECLDATA_FLOAT, ERR_DECLDATA_EXPR, - ERR_FILE_OPEN + ERR_FILE_OPEN, + ERR_FILE_READ } err_num; /* Warning constants. Match up with warn_msgs in errwarn.c. */ -- 2.40.0