repo: rename and update docs
This commit is contained in:
parent
f879e75636
commit
630b6f2cbb
4
Makefile
4
Makefile
|
@ -1,8 +1,8 @@
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-g3
|
CFLAGS=-g3
|
||||||
CFILES=tinyparser.c strings.c
|
CFILES=parslib.c strings.c
|
||||||
CFILES_STREECMP=streecmp/streecmp.c
|
CFILES_STREECMP=streecmp/streecmp.c
|
||||||
OUTPUT=tinyparser
|
OUTPUT=parslib
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(CC) $(CFLAGS) $(CFILES) $(CFILES_STREECMP) -o $(OUTPUT)
|
$(CC) $(CFLAGS) $(CFILES) $(CFILES_STREECMP) -o $(OUTPUT)
|
||||||
|
|
12
README
12
README
|
@ -1,12 +1,13 @@
|
||||||
+================+
|
+=============+
|
||||||
| tinyparser |
|
| parslib |
|
||||||
+================+
|
+=============+
|
||||||
|
|
||||||
HTTP parsing prototype and algorithm development
|
HTTP/s parse C library and algorithm development
|
||||||
environment for tinyproxy - my new proxy.
|
environment for - my proxy library - proxlib.
|
||||||
|
|
||||||
RES: github.com/tinyproxy/tinyproxy
|
RES: github.com/tinyproxy/tinyproxy
|
||||||
RES: github.com/nginx/nginx
|
RES: github.com/nginx/nginx
|
||||||
|
RES: git.0xdeadbeer.xyz/0xdeadbeer/proxlib
|
||||||
|
|
||||||
TECHNICALS
|
TECHNICALS
|
||||||
|
|
||||||
|
@ -16,6 +17,7 @@ TECHNICALS
|
||||||
int parshfield(char **offset, int len, /* out */ struct point *hentries);
|
int parshfield(char **offset, int len, /* out */ struct point *hentries);
|
||||||
int parstitle(char *offset, int len, /* out */ struct httitle *titl);
|
int parstitle(char *offset, int len, /* out */ struct httitle *titl);
|
||||||
int parsme(char **buff, /* out */ struct httpars *pars);
|
int parsme(char **buff, /* out */ struct httpars *pars);
|
||||||
|
void printfpars(struct httpars *pars);
|
||||||
|
|
||||||
Library is designed to follow source input unaltering.
|
Library is designed to follow source input unaltering.
|
||||||
Which suggests, that it does not directly alter the input
|
Which suggests, that it does not directly alter the input
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "tinyparser.h"
|
#include "parslib.h"
|
||||||
#include "streecmp/streecmp.h"
|
#include "streecmp/streecmp.h"
|
||||||
|
|
||||||
extern char *methods;
|
extern char *methods;
|
||||||
|
@ -10,7 +10,7 @@ extern char *headers;
|
||||||
static struct nod *method_tree = NULL;
|
static struct nod *method_tree = NULL;
|
||||||
static struct nod *header_tree = NULL;
|
static struct nod *header_tree = NULL;
|
||||||
|
|
||||||
static void debug_stats(struct httpars *pars) {
|
void printfpars(struct httpars *pars) {
|
||||||
fprintf(stderr, "\tstats:\n"
|
fprintf(stderr, "\tstats:\n"
|
||||||
"\t\tmethod\t: %d\n"
|
"\t\tmethod\t: %d\n"
|
||||||
"\t\turi\t: %.*s\n"
|
"\t\turi\t: %.*s\n"
|
|
@ -160,5 +160,6 @@ int readlin(char **buff, char **buff_lim);
|
||||||
int parshfield(char *offset, int len, /* out */ struct point *hentries);
|
int parshfield(char *offset, int len, /* out */ struct point *hentries);
|
||||||
int parstitle(char *offset, int len, /* out */ struct httitle *titl);
|
int parstitle(char *offset, int len, /* out */ struct httitle *titl);
|
||||||
int parsme(char *buff, /* out */ struct httpars *pars);
|
int parsme(char *buff, /* out */ struct httpars *pars);
|
||||||
|
void printfpars(struct httpars *pars);
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user