Skip to content

Commit eaead00

Browse files
committed
Add posix port headers for ib build tool support
Add missing header files to misc implementations for ib build tool
1 parent d021b90 commit eaead00

24 files changed

+399
-43
lines changed

source/mycss/property/parser_background.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Author: [email protected] (Alexander Borisov)
1919
*/
2020

21-
#include "mycss/property/parser.h"
21+
#include "mycss/property/parser_background.h"
2222

2323
bool mycss_property_parser_background_position_check(mycss_values_background_position_t *position)
2424
{
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
Copyright (C) 2015-2017 Alexander Borisov
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+
18+
Authors: [email protected] (Alexander Borisov)
19+
*/
20+
21+
#ifndef MyCSS_PROPERTY_PARSER_BACKGROUND_H
22+
#define MyCSS_PROPERTY_PARSER_BACKGROUND_H
23+
#pragma once
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
#include "mycss/property/parser.h"
30+
31+
#ifdef __cplusplus
32+
} /* extern "C" */
33+
#endif
34+
35+
#endif /* MyCSS_PROPERTY_PARSER_BACKGROUND_H */

source/mycss/property/parser_image.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Author: [email protected] (Alexander Borisov)
1919
*/
2020

21-
#include "mycss/property/parser.h"
21+
#include "mycss/property/parser_image.h"
2222

2323
mycss_values_image_image_set_option_t * mycss_property_parser_image_function_get_next_option(mycss_entry_t* entry, mycss_values_image_image_set_t *ii_set)
2424
{

source/mycss/property/parser_image.h

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
Copyright (C) 2015-2017 Alexander Borisov
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+
18+
Authors: [email protected] (Alexander Borisov)
19+
*/
20+
21+
#ifndef MyCSS_PROPERTY_PARSER_IMAGE_H
22+
#define MyCSS_PROPERTY_PARSER_IMAGE_H
23+
#pragma once
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
#include "mycss/property/parser.h"
30+
31+
#ifdef __cplusplus
32+
} /* extern "C" */
33+
#endif
34+
35+
#endif /* MyCSS_PROPERTY_PARSER_IMAGE_H */

source/mycss/property/parser_text_decoration.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Author: [email protected] (Alexander Borisov)
1919
*/
2020

21-
#include "mycss/property/parser.h"
21+
#include "mycss/property/parser_text_decoration.h"
2222

2323
static void mycss_property_parser_text_decoration_parser_switch(mycss_entry_t* entry)
2424
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
Copyright (C) 2015-2017 Alexander Borisov
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+
18+
Authors: [email protected] (Alexander Borisov)
19+
*/
20+
21+
#ifndef MyCSS_PROPERTY_PARSER_TEXT_DECORATION_H
22+
#define MyCSS_PROPERTY_PARSER_TEXT_DECORATION_H
23+
#pragma once
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
#include "mycss/property/parser.h"
30+
31+
#ifdef __cplusplus
32+
} /* extern "C" */
33+
#endif
34+
35+
#endif /* MyCSS_PROPERTY_PARSER_TEXT_DECORATION_H */

source/mycss/property/parser_url.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Author: [email protected] (Alexander Borisov)
1919
*/
2020

21-
#include "mycss/property/parser.h"
21+
#include "mycss/property/parser_url.h"
2222

2323
static void mycss_values_parser_url_switch(mycss_entry_t* entry)
2424
{

source/mycss/property/parser_url.h

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
Copyright (C) 2015-2017 Alexander Borisov
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+
18+
Authors: [email protected] (Alexander Borisov)
19+
*/
20+
21+
#ifndef MyCSS_PROPERTY_PARSER_URL_H
22+
#define MyCSS_PROPERTY_PARSER_URL_H
23+
#pragma once
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
#include "mycss/property/parser.h"
30+
31+
#ifdef __cplusplus
32+
} /* extern "C" */
33+
#endif
34+
35+
#endif /* MyCSS_PROPERTY_PARSER_URL_H */

source/myencoding/detect.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
Author: [email protected] (Alexander Borisov)
1919
*/
2020

21-
#include "myencoding/encoding.h"
22-
#include "myencoding/detect_resource.h"
23-
#include "mycore/utils/resources.h"
21+
#include "myencoding/detect.h"
2422

2523
myencoding_trigram_result_t myencoding_detect_by_trigram(unsigned const char *u_text, size_t length,
2624
const myencoding_trigram_t *list, size_t list_length,

source/myencoding/detect.h

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
Copyright (C) 2015-2017 Alexander Borisov
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+
18+
Authors: [email protected] (Alexander Borisov)
19+
*/
20+
21+
#ifndef MyENCODING_DETECT_H
22+
#define MyENCODING_DETECT_H
23+
#pragma once
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
#include "myencoding/encoding.h"
30+
#include "myencoding/detect_resource.h"
31+
#include "mycore/utils/resources.h"
32+
33+
#ifdef __cplusplus
34+
} /* extern "C" */
35+
#endif
36+
37+
#endif /* MyENCODING_DETECT_H */

source/myhtml/myhtml.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Author: [email protected] (Alexander Borisov)
1919
*/
2020

21-
#include "myhtml/myhtml.h"
21+
#include <myhtml/myhtml.h>
2222

2323
void myhtml_init_marker(myhtml_t* myhtml)
2424
{

source/myhtml/myhtml.h

+16-25
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,23 @@
2020

2121
#ifndef MyHTML_MYHTML_H
2222
#define MyHTML_MYHTML_H
23-
#pragma once
2423

25-
#ifdef __cplusplus
26-
extern "C" {
27-
#endif
28-
29-
#include "myhtml/myosi.h"
30-
31-
#include "mycore/utils/mctree.h"
32-
#include "mycore/utils/mcobject_async.h"
33-
#include "mycore/mythread.h"
34-
#include "mycore/incoming.h"
35-
#include "myencoding/encoding.h"
36-
#include "myhtml/tree.h"
37-
#include "myhtml/tag.h"
38-
#include "myhtml/def.h"
39-
#include "myhtml/parser.h"
40-
#include "myhtml/tokenizer.h"
41-
#include "myhtml/rules.h"
42-
#include "myhtml/token.h"
43-
#include "myhtml/charef.h"
44-
#include "myhtml/callback.h"
24+
#include <myhtml/myosi.h>
25+
26+
#include <mycore/utils/mctree.h>
27+
#include <mycore/utils/mcobject_async.h>
28+
#include <mycore/mythread.h>
29+
#include <mycore/incoming.h>
30+
#include <myencoding/encoding.h>
31+
#include <myhtml/tree.h>
32+
#include <myhtml/tag.h>
33+
#include <myhtml/def.h>
34+
#include <myhtml/parser.h>
35+
#include <myhtml/tokenizer.h>
36+
#include <myhtml/rules.h>
37+
#include <myhtml/token.h>
38+
#include <myhtml/charef.h>
39+
#include <myhtml/callback.h>
4540

4641
#define mh_queue_current() tree->queue
4742
#define myhtml_tokenizer_state_set(tree) myhtml_tree_set(tree, state)
@@ -221,8 +216,4 @@ mystatus_t myhtml_queue_add(myhtml_tree_t *tree, size_t begin, myhtml_token_node
221216
/* version */
222217
myhtml_version_t myhtml_version(void);
223218

224-
#ifdef __cplusplus
225-
} /* extern "C" */
226-
#endif
227-
228219
#endif

source/myhtml/tag_init.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
Author: [email protected] (Alexander Borisov)
1919
*/
2020

21-
#include "mycore/utils/resources.h"
22-
#include "myhtml/tag.h"
21+
#include "myhtml/tag_init.h"
2322

2423
static const myhtml_tag_context_t myhtml_tag_base_list[MyHTML_TAG_LAST_ENTRY] =
2524
{

source/myhtml/tag_init.h

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
Copyright (C) 2015-2017 Alexander Borisov
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+
18+
Authors: [email protected] (Alexander Borisov)
19+
*/
20+
21+
#ifndef MyHTML_TAG_INIT_H
22+
#define MyHTML_TAG_INIT_H
23+
#pragma once
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
#include "mycore/utils/resources.h"
30+
#include "myhtml/tag.h"
31+
32+
#ifdef __cplusplus
33+
} /* extern "C" */
34+
#endif
35+
36+
#endif /* MyHTML_TAG_INIT_H */

source/myport/posix/mycore/io.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
Author: [email protected] (Alexander Borisov)
1919
*/
2020

21-
#include "mycore/myosi.h"
22-
#include <stdarg.h>
21+
#include "myport/posix/mycore/io.h"
2322

2423
/* FILE */
2524
FILE * mycore_fopen(const char *filename, const char *mode)

source/myport/posix/mycore/io.h

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef MyPORT_POSIX_MYCORE_IO_H
2+
#define MyPORT_POSIX_MYCORE_IO_H
3+
#pragma once
4+
5+
#ifdef __cplusplus
6+
extern "C" {
7+
#endif
8+
9+
#include "mycore/myosi.h"
10+
#include <stdarg.h>
11+
12+
#ifdef __cplusplus
13+
} /* extern "C" */
14+
#endif
15+
16+
#endif /* MyPORT_POSIX_MYCORE_IO_H */

source/myport/posix/mycore/memory.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Author: [email protected] (Alexander Borisov)
1919
*/
2020

21-
#include "mycore/myosi.h"
21+
#include "myport/posix/mycore/memory.h"
2222

2323
void * mycore_malloc(size_t size)
2424
{

0 commit comments

Comments
 (0)