From d45ecf42cadec60d119789117d8a2286b3a0433a Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Wed, 11 Jul 2012 21:55:10 +0900 Subject: [PATCH] allowing alternate exponent markers d, f, s, l --- sexp.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/sexp.c b/sexp.c index 00218517..ac7c66bc 100644 --- a/sexp.c +++ b/sexp.c @@ -39,6 +39,11 @@ static int hex_digit (int n) { return ((n<=9) ? ('0' + n) : ('A' + n - 10)); } +static int is_precision_indicator(int c) { + return c=='d' || c=='D' || c=='e' || c=='E' || c=='f' || c=='F' + || c=='l' || c=='L' || c=='s' || c=='S'; +} + int sexp_is_separator(int c) { return 0