added useful readme and added includes

This commit is contained in:
2017-08-08 22:24:00 +02:00
parent 381bd6acff
commit 7fe73e879e
13 changed files with 443 additions and 25 deletions

18
inc/includes.h Normal file
View File

@@ -0,0 +1,18 @@
/*
* includes.h
*
* Created on: 08.08.2017
* Author: julian
*/
#ifndef INC_INCLUDES_H_
#define INC_INCLUDES_H_
#include <nhtml_string.h>
#include <stdio.h>
void include_add_path(const char * path);
int include_file(string_t *filename, FILE * output);
#endif /* INC_INCLUDES_H_ */

View File

@@ -24,10 +24,18 @@ typedef struct {
*/
int string_append(string_t *str, char c);
/**
* \brief append src to dest
* will enlarge dest to accommodate src
* \return -1 on failure (check errno)
* \return 0 on success
*/
int string_concat(string_t * dest, string_t * src);
/**
* \brief Erase the String from memory
*/
void string_destroy(string_t s);
void string_destroy(string_t *s);
/**
* \brief copy the contents of a string
@@ -36,5 +44,10 @@ void string_destroy(string_t s);
*/
string_t string_copy(string_t old);
/**
* \brief creates copy of str
* \return a copy of str
*/
string_t string_from_cstr(const char * str);
#endif /* NHTML_STRING_H_ */

17
inc/parser.h Normal file
View File

@@ -0,0 +1,17 @@
/*
* parser.h
*
* Created on: 08.08.2017
* Author: julian
*/
#ifndef INC_PARSER_H_
#define INC_PARSER_H_
#include <stdio.h>
int strip(FILE * input);
int parse_node(int current, FILE * stream, FILE * output);
#endif /* INC_PARSER_H_ */