mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-21 09:46:31 +00:00
Berry remove re1.5 compilation warnings
This commit is contained in:
parent
6a1090c876
commit
b1162a8e1c
@ -5,7 +5,7 @@
|
|||||||
#include "re1.5.h"
|
#include "re1.5.h"
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
char *name;
|
const char *name;
|
||||||
int (*fn)(ByteProg*, Subject*, const char**, int, int);
|
int (*fn)(ByteProg*, Subject*, const char**, int, int);
|
||||||
} tab[] = {
|
} tab[] = {
|
||||||
{"recursive", re1_5_recursiveprog},
|
{"recursive", re1_5_recursiveprog},
|
||||||
|
@ -46,7 +46,7 @@ Regexp *parse(char*);
|
|||||||
Regexp *reg(int type, Regexp *left, Regexp *right);
|
Regexp *reg(int type, Regexp *left, Regexp *right);
|
||||||
void printre(Regexp*);
|
void printre(Regexp*);
|
||||||
#ifndef re1_5_fatal
|
#ifndef re1_5_fatal
|
||||||
void re1_5_fatal(char*);
|
void re1_5_fatal(const char*);
|
||||||
#endif
|
#endif
|
||||||
#ifndef re1_5_stack_chk
|
#ifndef re1_5_stack_chk
|
||||||
#define re1_5_stack_chk()
|
#define re1_5_stack_chk()
|
||||||
|
@ -4,10 +4,13 @@
|
|||||||
|
|
||||||
#include "re1.5.h"
|
#include "re1.5.h"
|
||||||
|
|
||||||
|
extern void berry_log_C(const char * berry_buf, ...);
|
||||||
|
|
||||||
void
|
void
|
||||||
re1_5_fatal(char *msg)
|
re1_5_fatal(const char *msg)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "fatal error: %s\n", msg);
|
berry_log_C("BRY: regex fatal error: %s", msg);
|
||||||
|
// fprintf(stderr, "fatal error: %s\n", msg);
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user