OLD | NEW |
1 #line 10 "messagelexer.l" | 1 #line 10 "messagelexer.l" |
2 /* | 2 /* |
3 * This file is part of Wireless Display Software for Linux OS | 3 * This file is part of Wireless Display Software for Linux OS |
4 * | 4 * |
5 * Copyright (C) 2015 Intel Corporation. | 5 * Copyright (C) 2015 Intel Corporation. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
11 * | 11 * |
12 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Lesser General Public License for more details. | 15 * Lesser General Public License for more details. |
16 * | 16 * |
17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
18 * License along with this library; if not, write to the Free Software | 18 * License along with this library; if not, write to the Free Software |
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
20 * 02110-1301 USA | 20 * 02110-1301 USA |
21 */ | 21 */ |
22 | 22 |
| 23 #include <stdint.h> |
| 24 |
| 25 #define YY_NO_UNISTD_H 1 |
23 | 26 |
24 | 27 |
25 #line 26 "gen/messagescanner.cpp" | 28 |
| 29 #line 30 "gen/messagescanner.cpp" |
26 | 30 |
27 #define YY_INT_ALIGNED short int | 31 #define YY_INT_ALIGNED short int |
28 | 32 |
29 /* A lexical scanner generated by flex */ | 33 /* A lexical scanner generated by flex */ |
30 | 34 |
31 #define FLEX_SCANNER | 35 #define FLEX_SCANNER |
32 #define YY_FLEX_MAJOR_VERSION 2 | 36 #define YY_FLEX_MAJOR_VERSION 2 |
33 #define YY_FLEX_MINOR_VERSION 5 | 37 #define YY_FLEX_MINOR_VERSION 5 |
34 #define YY_FLEX_SUBMINOR_VERSION 35 | 38 #define YY_FLEX_SUBMINOR_VERSION 35 |
35 #if YY_FLEX_SUBMINOR_VERSION > 0 | 39 #if YY_FLEX_SUBMINOR_VERSION > 0 |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 | 1807 |
1804 /* The intent behind this definition is that it'll catch | 1808 /* The intent behind this definition is that it'll catch |
1805 * any uses of REJECT which flex missed. | 1809 * any uses of REJECT which flex missed. |
1806 */ | 1810 */ |
1807 #define REJECT reject_used_but_not_detected | 1811 #define REJECT reject_used_but_not_detected |
1808 #define yymore() yymore_used_but_not_detected | 1812 #define yymore() yymore_used_but_not_detected |
1809 #define YY_MORE_ADJ 0 | 1813 #define YY_MORE_ADJ 0 |
1810 #define YY_RESTORE_YY_MORE_OFFSET | 1814 #define YY_RESTORE_YY_MORE_OFFSET |
1811 | 1815 |
1812 #include <string> | 1816 #include <string> |
| 1817 |
1813 #include "parser.h" | 1818 #include "parser.h" |
1814 #define yyterminate() return(END) | 1819 #define yyterminate() return(END) |
1815 | 1820 |
1816 #define INITIAL 0 | 1821 #define INITIAL 0 |
1817 #define MATCH_STRING_STATE 1 | 1822 #define MATCH_STRING_STATE 1 |
1818 #define MATCH_RESPONSE_CODE_STATE 2 | 1823 #define MATCH_RESPONSE_CODE_STATE 2 |
1819 #define SUPPORTED_METHODS_STATE 3 | 1824 #define SUPPORTED_METHODS_STATE 3 |
1820 #define CONTENT_TYPE_STATE 4 | 1825 #define CONTENT_TYPE_STATE 4 |
1821 #define SESSION_STATE 5 | 1826 #define SESSION_STATE 5 |
1822 #define MATCH_PRESENTATION_URL 6 | 1827 #define MATCH_PRESENTATION_URL 6 |
(...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3711 return (void *) realloc( (char *) ptr, size ); | 3716 return (void *) realloc( (char *) ptr, size ); |
3712 } | 3717 } |
3713 | 3718 |
3714 void message_free (void * ptr , yyscan_t yyscanner) | 3719 void message_free (void * ptr , yyscan_t yyscanner) |
3715 { | 3720 { |
3716 free( (char *) ptr ); /* see message_realloc() for (char *) cast */ | 3721 free( (char *) ptr ); /* see message_realloc() for (char *) cast */ |
3717 } | 3722 } |
3718 | 3723 |
3719 #define YYTABLES_NAME "yytables" | 3724 #define YYTABLES_NAME "yytables" |
3720 | 3725 |
OLD | NEW |