mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[bookmarks] const char in add_bookmarks_cp
This commit is contained in:
parent
02f1999d86
commit
f32e45e2f5
@ -435,7 +435,7 @@ add_bookmark(struct bookmark *root, int place, const char *title,
|
|||||||
* @see add_bookmark() */
|
* @see add_bookmark() */
|
||||||
struct bookmark *
|
struct bookmark *
|
||||||
add_bookmark_cp(struct bookmark *root, int place, int codepage,
|
add_bookmark_cp(struct bookmark *root, int place, int codepage,
|
||||||
char *title, char *url)
|
const char *title, const char *url)
|
||||||
{
|
{
|
||||||
const int utf8_cp = get_cp_index("UTF-8");
|
const int utf8_cp = get_cp_index("UTF-8");
|
||||||
struct conv_table *table;
|
struct conv_table *table;
|
||||||
|
@ -50,7 +50,7 @@ int bookmarks_are_dirty(void);
|
|||||||
void delete_bookmark(struct bookmark *);
|
void delete_bookmark(struct bookmark *);
|
||||||
struct bookmark *add_bookmark(struct bookmark *, int, const char *, const char *);
|
struct bookmark *add_bookmark(struct bookmark *, int, const char *, const char *);
|
||||||
struct bookmark *add_bookmark_cp(struct bookmark *, int, int,
|
struct bookmark *add_bookmark_cp(struct bookmark *, int, int,
|
||||||
char *, char *);
|
const char *, const char *);
|
||||||
struct bookmark *get_bookmark_by_name(struct bookmark *folder,
|
struct bookmark *get_bookmark_by_name(struct bookmark *folder,
|
||||||
char *title);
|
char *title);
|
||||||
struct bookmark *get_bookmark(char *url);
|
struct bookmark *get_bookmark(char *url);
|
||||||
|
@ -1271,7 +1271,7 @@ end:
|
|||||||
|
|
||||||
char *
|
char *
|
||||||
convert_string(struct conv_table *convert_table,
|
convert_string(struct conv_table *convert_table,
|
||||||
char *chars2, int charslen2, int cp,
|
const char *chars2, int charslen2, int cp,
|
||||||
enum convert_string_mode mode, int *length,
|
enum convert_string_mode mode, int *length,
|
||||||
void (*callback)(void *data, char *buf, int buflen),
|
void (*callback)(void *data, char *buf, int buflen),
|
||||||
void *callback_data)
|
void *callback_data)
|
||||||
|
@ -119,7 +119,7 @@ const char *get_entity_string(const char *str,
|
|||||||
* it each few bytes instead and always returns NULL (@length is undefined).
|
* it each few bytes instead and always returns NULL (@length is undefined).
|
||||||
* Note that it's ok not to care and pass NULL as @length. */
|
* Note that it's ok not to care and pass NULL as @length. */
|
||||||
char *convert_string(struct conv_table *convert_table,
|
char *convert_string(struct conv_table *convert_table,
|
||||||
char *chars, int charslen, int cp,
|
const char *chars, int charslen, int cp,
|
||||||
enum convert_string_mode mode, int *length,
|
enum convert_string_mode mode, int *length,
|
||||||
void (*callback)(void *data, char *buf, int buflen),
|
void (*callback)(void *data, char *buf, int buflen),
|
||||||
void *callback_data);
|
void *callback_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user