mirror of
https://github.com/rkd77/elinks.git
synced 2025-04-18 00:47:36 -04:00
[dom] const in add_dom_link . TODO
This commit is contained in:
parent
29a84b5f44
commit
44e2995c87
@ -245,7 +245,7 @@ render_dom_text(struct dom_renderer *renderer, struct screen_char *template_,
|
|||||||
ALIGN_LINK(&(doc)->links, (doc)->nlinks, size)
|
ALIGN_LINK(&(doc)->links, (doc)->nlinks, size)
|
||||||
|
|
||||||
NONSTATIC_INLINE struct link *
|
NONSTATIC_INLINE struct link *
|
||||||
add_dom_link(struct dom_renderer *renderer, char *string, int length,
|
add_dom_link(struct dom_renderer *renderer, const char *cstring, int length,
|
||||||
char *uristring, int urilength)
|
char *uristring, int urilength)
|
||||||
{
|
{
|
||||||
struct document *document = renderer->document;
|
struct document *document = renderer->document;
|
||||||
@ -256,6 +256,7 @@ add_dom_link(struct dom_renderer *renderer, char *string, int length,
|
|||||||
struct point *point;
|
struct point *point;
|
||||||
struct screen_char template_;
|
struct screen_char template_;
|
||||||
color_T fgcolor;
|
color_T fgcolor;
|
||||||
|
char *string = (char *)cstring; // todo fix
|
||||||
|
|
||||||
if (!realloc_document_links(document, document->nlinks + 1))
|
if (!realloc_document_links(document, document->nlinks + 1))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -51,7 +51,7 @@ void init_template_by_style(struct screen_char *template_,
|
|||||||
|
|
||||||
void render_dom_text(struct dom_renderer *renderer, struct screen_char *template_,
|
void render_dom_text(struct dom_renderer *renderer, struct screen_char *template_,
|
||||||
char *string, int length);
|
char *string, int length);
|
||||||
struct link *add_dom_link(struct dom_renderer *renderer, char *string,
|
struct link *add_dom_link(struct dom_renderer *renderer, const char *cstring,
|
||||||
int length, char *uristring, int urilength);
|
int length, char *uristring, int urilength);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user