Commit 9d76d86d authored by Maximilien Colange's avatar Maximilien Colange

Merge branch 'master' into tests

parents f31aabdb 192864e4
This diff is collapsed.
This diff is collapsed.
......@@ -107,30 +107,30 @@
#define NB_STR 8
static const str_entry_t table[NB_STR] =
{
{ len:12,
from:"syntax error",
to:"$syntax_error" },
{ len:16,
from:"memory exhausted",
to:"$memory_exhausted" },
{ len:27,
from:"syntax error, unexpected %s",
to:"$syntax_error: $unexpected %s" },
{ len:28,
from:"syntax error: cannot back up",
to:"$syntax_error: $cannot_back_up" },
{ len:41,
from:"syntax error, unexpected %s, expecting %s",
to:"$syntax_error: $unexpected %s, $expecting %s" },
{ len:47,
from:"syntax error, unexpected %s, expecting %s or %s",
to:"$syntax_error: $unexpected %s, $expecting %s $or %s" },
{ len:53,
from:"syntax error, unexpected %s, expecting %s or %s or %s",
to:"$syntax_error: $unexpected %s, $expecting %s $or %s $or %s" },
{ len:59,
from:"syntax error, unexpected %s, expecting %s or %s or %s or %s",
to:"$syntax_error: $unexpected %s, $expecting %s $or %s $or %s $or %s" }
{ .len = 12,
.from = "syntax error",
.to = "$syntax_error" },
{ .len = 16,
.from = "memory exhausted",
.to = "$memory_exhausted" },
{ .len = 27,
.from = "syntax error, unexpected %s",
.to = "$syntax_error: $unexpected %s" },
{ .len = 28,
.from = "syntax error: cannot back up",
.to = "$syntax_error: $cannot_back_up" },
{ .len = 41,
.from = "syntax error, unexpected %s, expecting %s",
.to = "$syntax_error: $unexpected %s, $expecting %s" },
{ .len = 47,
.from = "syntax error, unexpected %s, expecting %s or %s",
.to = "$syntax_error: $unexpected %s, $expecting %s $or %s" },
{ .len = 53,
.from = "syntax error, unexpected %s, expecting %s or %s or %s",
.to = "$syntax_error: $unexpected %s, $expecting %s $or %s $or %s" },
{ .len = 59,
.from = "syntax error, unexpected %s, expecting %s or %s or %s or %s",
.to = "$syntax_error: $unexpected %s, $expecting %s $or %s $or %s $or %s" }
};
int len = strlen(msg);
int i = NB_STR / 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment