diff --git a/source/mycss/property/parser_background.c b/source/mycss/property/parser_background.c index 0900ca7..f992cab 100644 --- a/source/mycss/property/parser_background.c +++ b/source/mycss/property/parser_background.c @@ -18,7 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "mycss/property/parser.h" +#include "mycss/property/parser_background.h" bool mycss_property_parser_background_position_check(mycss_values_background_position_t *position) { diff --git a/source/mycss/property/parser_background.h b/source/mycss/property/parser_background.h new file mode 100644 index 0000000..0d1f8a5 --- /dev/null +++ b/source/mycss/property/parser_background.h @@ -0,0 +1,35 @@ +/* + Copyright (C) 2015-2017 Alexander Borisov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Authors: lex.borisov@gmail.com (Alexander Borisov) +*/ + +#ifndef MyCSS_PROPERTY_PARSER_BACKGROUND_H +#define MyCSS_PROPERTY_PARSER_BACKGROUND_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "mycss/property/parser.h" + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyCSS_PROPERTY_PARSER_BACKGROUND_H */ diff --git a/source/mycss/property/parser_image.c b/source/mycss/property/parser_image.c index 751a719..4874b55 100644 --- a/source/mycss/property/parser_image.c +++ b/source/mycss/property/parser_image.c @@ -18,7 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "mycss/property/parser.h" +#include "mycss/property/parser_image.h" 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) { diff --git a/source/mycss/property/parser_image.h b/source/mycss/property/parser_image.h new file mode 100644 index 0000000..7dcb869 --- /dev/null +++ b/source/mycss/property/parser_image.h @@ -0,0 +1,35 @@ +/* + Copyright (C) 2015-2017 Alexander Borisov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Authors: lex.borisov@gmail.com (Alexander Borisov) +*/ + +#ifndef MyCSS_PROPERTY_PARSER_IMAGE_H +#define MyCSS_PROPERTY_PARSER_IMAGE_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "mycss/property/parser.h" + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyCSS_PROPERTY_PARSER_IMAGE_H */ diff --git a/source/mycss/property/parser_text_decoration.c b/source/mycss/property/parser_text_decoration.c index 824796b..2118cee 100644 --- a/source/mycss/property/parser_text_decoration.c +++ b/source/mycss/property/parser_text_decoration.c @@ -18,7 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "mycss/property/parser.h" +#include "mycss/property/parser_text_decoration.h" static void mycss_property_parser_text_decoration_parser_switch(mycss_entry_t* entry) { diff --git a/source/mycss/property/parser_text_decoration.h b/source/mycss/property/parser_text_decoration.h new file mode 100644 index 0000000..2487462 --- /dev/null +++ b/source/mycss/property/parser_text_decoration.h @@ -0,0 +1,35 @@ +/* + Copyright (C) 2015-2017 Alexander Borisov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Authors: lex.borisov@gmail.com (Alexander Borisov) +*/ + +#ifndef MyCSS_PROPERTY_PARSER_TEXT_DECORATION_H +#define MyCSS_PROPERTY_PARSER_TEXT_DECORATION_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "mycss/property/parser.h" + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyCSS_PROPERTY_PARSER_TEXT_DECORATION_H */ diff --git a/source/mycss/property/parser_url.c b/source/mycss/property/parser_url.c index 3fe2c70..dcc2182 100644 --- a/source/mycss/property/parser_url.c +++ b/source/mycss/property/parser_url.c @@ -18,7 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "mycss/property/parser.h" +#include "mycss/property/parser_url.h" static void mycss_values_parser_url_switch(mycss_entry_t* entry) { diff --git a/source/mycss/property/parser_url.h b/source/mycss/property/parser_url.h new file mode 100644 index 0000000..f074b56 --- /dev/null +++ b/source/mycss/property/parser_url.h @@ -0,0 +1,35 @@ +/* + Copyright (C) 2015-2017 Alexander Borisov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Authors: lex.borisov@gmail.com (Alexander Borisov) +*/ + +#ifndef MyCSS_PROPERTY_PARSER_URL_H +#define MyCSS_PROPERTY_PARSER_URL_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "mycss/property/parser.h" + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyCSS_PROPERTY_PARSER_URL_H */ diff --git a/source/myencoding/detect.c b/source/myencoding/detect.c index 3382eea..a056eeb 100644 --- a/source/myencoding/detect.c +++ b/source/myencoding/detect.c @@ -18,9 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "myencoding/encoding.h" -#include "myencoding/detect_resource.h" -#include "mycore/utils/resources.h" +#include "myencoding/detect.h" myencoding_trigram_result_t myencoding_detect_by_trigram(unsigned const char *u_text, size_t length, const myencoding_trigram_t *list, size_t list_length, diff --git a/source/myencoding/detect.h b/source/myencoding/detect.h new file mode 100644 index 0000000..fc98f3b --- /dev/null +++ b/source/myencoding/detect.h @@ -0,0 +1,37 @@ +/* + Copyright (C) 2015-2017 Alexander Borisov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Authors: lex.borisov@gmail.com (Alexander Borisov) +*/ + +#ifndef MyENCODING_DETECT_H +#define MyENCODING_DETECT_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "myencoding/encoding.h" +#include "myencoding/detect_resource.h" +#include "mycore/utils/resources.h" + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyENCODING_DETECT_H */ diff --git a/source/myhtml/myhtml.c b/source/myhtml/myhtml.c index 217f356..9a0c2c0 100644 --- a/source/myhtml/myhtml.c +++ b/source/myhtml/myhtml.c @@ -18,7 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "myhtml/myhtml.h" +#include void myhtml_init_marker(myhtml_t* myhtml) { diff --git a/source/myhtml/myhtml.h b/source/myhtml/myhtml.h index e7208cc..77cd041 100644 --- a/source/myhtml/myhtml.h +++ b/source/myhtml/myhtml.h @@ -20,28 +20,23 @@ #ifndef MyHTML_MYHTML_H #define MyHTML_MYHTML_H -#pragma once -#ifdef __cplusplus -extern "C" { -#endif - -#include "myhtml/myosi.h" - -#include "mycore/utils/mctree.h" -#include "mycore/utils/mcobject_async.h" -#include "mycore/mythread.h" -#include "mycore/incoming.h" -#include "myencoding/encoding.h" -#include "myhtml/tree.h" -#include "myhtml/tag.h" -#include "myhtml/def.h" -#include "myhtml/parser.h" -#include "myhtml/tokenizer.h" -#include "myhtml/rules.h" -#include "myhtml/token.h" -#include "myhtml/charef.h" -#include "myhtml/callback.h" +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #define mh_queue_current() tree->queue #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 /* version */ myhtml_version_t myhtml_version(void); -#ifdef __cplusplus -} /* extern "C" */ -#endif - #endif diff --git a/source/myhtml/tag_init.c b/source/myhtml/tag_init.c index d96e62f..f806559 100755 --- a/source/myhtml/tag_init.c +++ b/source/myhtml/tag_init.c @@ -18,8 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "mycore/utils/resources.h" -#include "myhtml/tag.h" +#include "myhtml/tag_init.h" static const myhtml_tag_context_t myhtml_tag_base_list[MyHTML_TAG_LAST_ENTRY] = { diff --git a/source/myhtml/tag_init.h b/source/myhtml/tag_init.h new file mode 100644 index 0000000..b7ff9fa --- /dev/null +++ b/source/myhtml/tag_init.h @@ -0,0 +1,36 @@ +/* + Copyright (C) 2015-2017 Alexander Borisov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Authors: lex.borisov@gmail.com (Alexander Borisov) +*/ + +#ifndef MyHTML_TAG_INIT_H +#define MyHTML_TAG_INIT_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "mycore/utils/resources.h" +#include "myhtml/tag.h" + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyHTML_TAG_INIT_H */ diff --git a/source/myport/posix/mycore/io.c b/source/myport/posix/mycore/io.c index 135f101..360c7df 100644 --- a/source/myport/posix/mycore/io.c +++ b/source/myport/posix/mycore/io.c @@ -18,8 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "mycore/myosi.h" -#include +#include "myport/posix/mycore/io.h" /* FILE */ FILE * mycore_fopen(const char *filename, const char *mode) diff --git a/source/myport/posix/mycore/io.h b/source/myport/posix/mycore/io.h new file mode 100644 index 0000000..5220d90 --- /dev/null +++ b/source/myport/posix/mycore/io.h @@ -0,0 +1,16 @@ +#ifndef MyPORT_POSIX_MYCORE_IO_H +#define MyPORT_POSIX_MYCORE_IO_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "mycore/myosi.h" +#include + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyPORT_POSIX_MYCORE_IO_H */ diff --git a/source/myport/posix/mycore/memory.c b/source/myport/posix/mycore/memory.c index 4cfd1e0..79ac208 100644 --- a/source/myport/posix/mycore/memory.c +++ b/source/myport/posix/mycore/memory.c @@ -18,7 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "mycore/myosi.h" +#include "myport/posix/mycore/memory.h" void * mycore_malloc(size_t size) { diff --git a/source/myport/posix/mycore/memory.h b/source/myport/posix/mycore/memory.h new file mode 100644 index 0000000..6fe68c4 --- /dev/null +++ b/source/myport/posix/mycore/memory.h @@ -0,0 +1,35 @@ +/* + Copyright (C) 2015-2017 Alexander Borisov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Authors: lex.borisov@gmail.com (Alexander Borisov) +*/ + +#ifndef MyPORT_POSIX_MYCORE_MEMORY_H +#define MyPORT_POSIX_MYCORE_MEMORY_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyPORT_POSIX_MYCORE_MEMORY_H */ diff --git a/source/myport/posix/mycore/perf.c b/source/myport/posix/mycore/perf.c index eff7a5c..ccfeee8 100644 --- a/source/myport/posix/mycore/perf.c +++ b/source/myport/posix/mycore/perf.c @@ -18,8 +18,7 @@ Authors: lex.borisov@gmail.com (Alexander Borisov) */ -#include "mycore/myosi.h" -#include "mycore/perf.h" +#include "myport/posix/mycore/perf.h" #ifdef MyCORE_WITH_PERF diff --git a/source/myport/posix/mycore/perf.h b/source/myport/posix/mycore/perf.h new file mode 100644 index 0000000..b2614b8 --- /dev/null +++ b/source/myport/posix/mycore/perf.h @@ -0,0 +1,36 @@ +/* + Copyright (C) 2015-2017 Alexander Borisov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Authors: lex.borisov@gmail.com (Alexander Borisov) +*/ + +#ifndef MyPORT_POSIX_MYCORE_PERF_H +#define MyPORT_POSIX_MYCORE_PERF_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "mycore/myosi.h" +#include "mycore/perf.h" + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyPORT_POSIX_MYCORE_PERF_H */ diff --git a/source/myport/posix/mycore/thread.c b/source/myport/posix/mycore/thread.c index c1bf95f..d328195 100644 --- a/source/myport/posix/mycore/thread.c +++ b/source/myport/posix/mycore/thread.c @@ -18,8 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "mycore/mythread.h" -#include "mycore/utils/mcsync.h" +#include "myport/posix/mycore/thread.h" #ifndef MyCORE_BUILD_WITHOUT_THREADS #include diff --git a/source/myport/posix/mycore/thread.h b/source/myport/posix/mycore/thread.h new file mode 100644 index 0000000..25c67f4 --- /dev/null +++ b/source/myport/posix/mycore/thread.h @@ -0,0 +1,36 @@ +/* + Copyright (C) 2015-2017 Alexander Borisov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Authors: lex.borisov@gmail.com (Alexander Borisov) +*/ + +#ifndef MyPORT_POSIX_MYCORE_THREAD_H +#define MyPORT_POSIX_MYCORE_THREAD_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "mycore/mythread.h" +#include "mycore/utils/mcsync.h" + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyPORT_POSIX_MYCORE_THREAD_H */ diff --git a/source/myport/posix/mycore/utils/mcsync.c b/source/myport/posix/mycore/utils/mcsync.c index 65c5097..e284688 100644 --- a/source/myport/posix/mycore/utils/mcsync.c +++ b/source/myport/posix/mycore/utils/mcsync.c @@ -18,7 +18,7 @@ Author: lex.borisov@gmail.com (Alexander Borisov) */ -#include "mycore/utils/mcsync.h" +#include "myport/posix/mycore/utils/mcsync.h" #ifndef MyCORE_BUILD_WITHOUT_THREADS #include diff --git a/source/myport/posix/mycore/utils/mcsync.h b/source/myport/posix/mycore/utils/mcsync.h new file mode 100644 index 0000000..09b5818 --- /dev/null +++ b/source/myport/posix/mycore/utils/mcsync.h @@ -0,0 +1,35 @@ +/* + Copyright (C) 2015-2017 Alexander Borisov + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Authors: lex.borisov@gmail.com (Alexander Borisov) +*/ + +#ifndef MyPORT_POSIX_MYCORE_UTILS_MCSYNC_H +#define MyPORT_POSIX_MYCORE_UTILS_MCSYNC_H +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "mycore/utils/mcsync.h" + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* MyPORT_POSIX_MYCORE_UTILS_MCSYNC_H */