Skip to content

Commit

Permalink
Add posix port headers for ib build tool support
Browse files Browse the repository at this point in the history
Add missing header files to misc implementations for ib build tool
  • Loading branch information
hooddanielc committed Oct 20, 2018
1 parent d021b90 commit eaead00
Show file tree
Hide file tree
Showing 24 changed files with 399 additions and 43 deletions.
2 changes: 1 addition & 1 deletion source/mycss/property/parser_background.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Author: [email protected] (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)
{
Expand Down
35 changes: 35 additions & 0 deletions source/mycss/property/parser_background.h
Original file line number Diff line number Diff line change
@@ -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: [email protected] (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 */
2 changes: 1 addition & 1 deletion source/mycss/property/parser_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Author: [email protected] (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)
{
Expand Down
35 changes: 35 additions & 0 deletions source/mycss/property/parser_image.h
Original file line number Diff line number Diff line change
@@ -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: [email protected] (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 */
2 changes: 1 addition & 1 deletion source/mycss/property/parser_text_decoration.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Author: [email protected] (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)
{
Expand Down
35 changes: 35 additions & 0 deletions source/mycss/property/parser_text_decoration.h
Original file line number Diff line number Diff line change
@@ -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: [email protected] (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 */
2 changes: 1 addition & 1 deletion source/mycss/property/parser_url.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Author: [email protected] (Alexander Borisov)
*/

#include "mycss/property/parser.h"
#include "mycss/property/parser_url.h"

static void mycss_values_parser_url_switch(mycss_entry_t* entry)
{
Expand Down
35 changes: 35 additions & 0 deletions source/mycss/property/parser_url.h
Original file line number Diff line number Diff line change
@@ -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: [email protected] (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 */
4 changes: 1 addition & 3 deletions source/myencoding/detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
Author: [email protected] (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,
Expand Down
37 changes: 37 additions & 0 deletions source/myencoding/detect.h
Original file line number Diff line number Diff line change
@@ -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: [email protected] (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 */
2 changes: 1 addition & 1 deletion source/myhtml/myhtml.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Author: [email protected] (Alexander Borisov)
*/

#include "myhtml/myhtml.h"
#include <myhtml/myhtml.h>

void myhtml_init_marker(myhtml_t* myhtml)
{
Expand Down
41 changes: 16 additions & 25 deletions source/myhtml/myhtml.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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>

#define mh_queue_current() tree->queue
#define myhtml_tokenizer_state_set(tree) myhtml_tree_set(tree, state)
Expand Down Expand Up @@ -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
3 changes: 1 addition & 2 deletions source/myhtml/tag_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
Author: [email protected] (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] =
{
Expand Down
36 changes: 36 additions & 0 deletions source/myhtml/tag_init.h
Original file line number Diff line number Diff line change
@@ -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: [email protected] (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 */
3 changes: 1 addition & 2 deletions source/myport/posix/mycore/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
Author: [email protected] (Alexander Borisov)
*/

#include "mycore/myosi.h"
#include <stdarg.h>
#include "myport/posix/mycore/io.h"

/* FILE */
FILE * mycore_fopen(const char *filename, const char *mode)
Expand Down
16 changes: 16 additions & 0 deletions source/myport/posix/mycore/io.h
Original file line number Diff line number Diff line change
@@ -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 <stdarg.h>

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* MyPORT_POSIX_MYCORE_IO_H */
2 changes: 1 addition & 1 deletion source/myport/posix/mycore/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Author: [email protected] (Alexander Borisov)
*/

#include "mycore/myosi.h"
#include "myport/posix/mycore/memory.h"

void * mycore_malloc(size_t size)
{
Expand Down
Loading

0 comments on commit eaead00

Please sign in to comment.