>From abe61be31f45f5f8bfed2c97ec73a8cfc82efccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 16 Dec 2010 23:57:52 +0100 Subject: [PATCH 2/3] Replace () with a do..while(0) in NEXT_LINE --- src/parser.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/parser.c b/src/parser.c index b67e798..ca41b04 100755 --- a/src/parser.c +++ b/src/parser.c @@ -39,8 +39,7 @@ * @retval FSDPE_ILLEGAL_CHARACTER, when an illegal '\r' character * (not followed by a '\n') is found, returns */ -#define NEXT_LINE(c) \ -({ \ +#define NEXT_LINE(c) do { \ while ((*(c) != '\0') && (*(c) != '\r') && (*(c) != '\n')) { \ (c)++; \ } \ @@ -54,7 +53,7 @@ return FSDPE_ILLEGAL_CHARACTER; \ } \ } \ -}) +} while (0) fsdp_error_t fsdp_parse(const char *text_description, fsdp_description_t *dsc) -- 1.7.3.3