1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00:00
elinks/src/protocol/header.h
Witold Filipczyk 1f57e72212 [mozjs24] Allow build elinks with g++
SpiderMonkey was updated to mozjs24. If you want to build elinks
with ecmascript support, you must compile using g++ with -fpermissive .
There is a lot of warnings.
There are some memleaks in ecmascript code, especially related to JSAutoCompartment.
I don't know yet, where and how to free it.

Debian does not support mozjs24, so I'm going to gradually update SpiderMonkey version.
2020-10-05 20:14:55 +02:00

25 lines
608 B
C

#ifndef EL__PROTOCOL_HEADER_H
#define EL__PROTOCOL_HEADER_H
#ifdef __cplusplus
extern "C" {
#endif
enum parse_header_param {
HEADER_PARAM_FOUND,
HEADER_PARAM_NOT_FOUND,
HEADER_PARAM_OUT_OF_MEMORY
/* Might add HEADER_PARAM_SYNTAX_ERROR in a later version.
* Unknown values should be treated as errors. */
};
unsigned char *parse_header(unsigned char *, const unsigned char *, unsigned char **);
enum parse_header_param parse_header_param(unsigned char *, unsigned char *, unsigned char **, int);
unsigned char *get_header_param(unsigned char *, unsigned char *);
#ifdef __cplusplus
}
#endif
#endif