We must include the file that has _FILE_OFFSET_SIZE before other headers

To get the correct definition for _FILE_OFFSET_SIZE we must include
the header that loads this before calling the other system headers.
This patch also fixes a minor spacing issues.
This commit is contained in:
Cary R 2011-04-21 09:20:39 -07:00 committed by Stephen Williams
parent d9253e77c9
commit 7eb60c9802
3 changed files with 4 additions and 4 deletions

View File

@ -16,10 +16,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "sys_priv.h"
#include <assert.h>
#include <inttypes.h>
#include <stdlib.h>
#include "sys_priv.h"
#include "ivl_alloc.h"
/*

View File

@ -16,12 +16,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "sys_priv.h"
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sys_priv.h"
#include "table_mod.h"
#include "ivl_alloc.h"

View File

@ -59,13 +59,13 @@ SCALE [afpnumkKMGT]
/* Recognize a real value with a Verilog-AMS scale. */
[+-]?[0-9][0-9_]*(\.[0-9][0-9_]*)?{SCALE} {
yylval.real = get_scaled_real(yytext);
return REAL;
return REAL;
}
/* Recognize and other numeric value. */
[+-]?[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)? {
yylval.real = get_real(yytext);
return REAL;
return REAL;
}
%%