mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[search] cast
This commit is contained in:
parent
89952dfec4
commit
1e4014b2c0
@ -432,7 +432,7 @@ struct is_in_range_regex_context {
|
|||||||
static void
|
static void
|
||||||
is_in_range_regex_match(struct regex_match_context *common_ctx, void *data)
|
is_in_range_regex_match(struct regex_match_context *common_ctx, void *data)
|
||||||
{
|
{
|
||||||
struct is_in_range_regex_context *ctx = data;
|
struct is_in_range_regex_context *ctx = (struct is_in_range_regex_context *)data;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (common_ctx->s1[common_ctx->textlen].y < ctx->y || common_ctx->s1[common_ctx->textlen].y >= common_ctx->y2)
|
if (common_ctx->s1[common_ctx->textlen].y < ctx->y || common_ctx->s1[common_ctx->textlen].y >= common_ctx->y2)
|
||||||
@ -751,7 +751,7 @@ struct get_searched_regex_context {
|
|||||||
static void
|
static void
|
||||||
get_searched_regex_match(struct regex_match_context *common_ctx, void *data)
|
get_searched_regex_match(struct regex_match_context *common_ctx, void *data)
|
||||||
{
|
{
|
||||||
struct get_searched_regex_context *ctx = data;
|
struct get_searched_regex_context *ctx = (struct get_searched_regex_context *)data;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < common_ctx->textlen; i++) {
|
for (i = 0; i < common_ctx->textlen; i++) {
|
||||||
@ -780,7 +780,7 @@ get_searched_regex_match(struct regex_match_context *common_ctx, void *data)
|
|||||||
static void
|
static void
|
||||||
get_searched_regex_match_all(struct regex_match_context *common_ctx, void *data)
|
get_searched_regex_match_all(struct regex_match_context *common_ctx, void *data)
|
||||||
{
|
{
|
||||||
struct get_searched_regex_context *ctx = data;
|
struct get_searched_regex_context *ctx = (struct get_searched_regex_context *)data;
|
||||||
|
|
||||||
if (!realloc_points(&ctx->points, ctx->len))
|
if (!realloc_points(&ctx->points, ctx->len))
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user