mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05: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)
|
||||
|
||||
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)
|
||||
{
|
||||
struct document *document = renderer->document;
|
||||
@ -256,6 +256,7 @@ add_dom_link(struct dom_renderer *renderer, char *string, int length,
|
||||
struct point *point;
|
||||
struct screen_char template_;
|
||||
color_T fgcolor;
|
||||
char *string = (char *)cstring; // todo fix
|
||||
|
||||
if (!realloc_document_links(document, document->nlinks + 1))
|
||||
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_,
|
||||
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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user