Mercurial > mplayer.hg
comparison stream/freesdp/parser.c @ 21202:8ed444639678
spurious () like in ({code;}) probably is not valid C, icc 9, definitely
will not compile it, and whatever it is supposed to be good for it
does not seem to be needed.
author | reimar |
---|---|
date | Sat, 25 Nov 2006 13:39:21 +0000 |
parents | 64d82a45a05d |
children | f9a95c04844a |
comparison
equal
deleted
inserted
replaced
21201:2c1b7fe05973 | 21202:8ed444639678 |
---|---|
42 * @param c char pointer to pointer | 42 * @param c char pointer to pointer |
43 * @retval FSDPE_ILLEGAL_CHARACTER, when an illegal '\r' character | 43 * @retval FSDPE_ILLEGAL_CHARACTER, when an illegal '\r' character |
44 * (not followed by a '\n') is found, returns | 44 * (not followed by a '\n') is found, returns |
45 */ | 45 */ |
46 #define NEXT_LINE(c) \ | 46 #define NEXT_LINE(c) \ |
47 ({ \ | 47 { \ |
48 while ((*(c) != '\0') && (*(c) != '\r') && (*(c) != '\n')) { \ | 48 while ((*(c) != '\0') && (*(c) != '\r') && (*(c) != '\n')) { \ |
49 (c)++; \ | 49 (c)++; \ |
50 } \ | 50 } \ |
51 if (*(c) == '\n') { \ | 51 if (*(c) == '\n') { \ |
52 (c)++; \ | 52 (c)++; \ |
56 (c)++; \ | 56 (c)++; \ |
57 } else { \ | 57 } else { \ |
58 return FSDPE_ILLEGAL_CHARACTER; \ | 58 return FSDPE_ILLEGAL_CHARACTER; \ |
59 } \ | 59 } \ |
60 } \ | 60 } \ |
61 }) | 61 } |
62 | 62 |
63 fsdp_error_t | 63 fsdp_error_t |
64 fsdp_parse (const char *text_description, fsdp_description_t * dsc) | 64 fsdp_parse (const char *text_description, fsdp_description_t * dsc) |
65 { | 65 { |
66 fsdp_error_t result; | 66 fsdp_error_t result; |