added useful readme and added includes
This commit is contained in:
18
inc/includes.h
Normal file
18
inc/includes.h
Normal 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_ */
|
||||
@@ -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
17
inc/parser.h
Normal 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_ */
|
||||
Reference in New Issue
Block a user