mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[forms] const in form_type_name
This commit is contained in:
parent
2d09a3fb84
commit
5704368a02
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
struct form_type_name {
|
struct form_type_name {
|
||||||
enum form_type num;
|
enum form_type num;
|
||||||
char *name;
|
const char *name;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct form_type_name form_type2name[] = {
|
static struct form_type_name form_type2name[] = {
|
||||||
@ -53,7 +53,7 @@ str2form_type(const char *s)
|
|||||||
return FC_NONE;
|
return FC_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
const char *
|
||||||
form_type2str(enum form_type num)
|
form_type2str(enum form_type num)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
|
@ -129,7 +129,7 @@ struct el_form_control {
|
|||||||
|
|
||||||
/* Numerical form type <-> form type name */
|
/* Numerical form type <-> form type name */
|
||||||
enum form_type str2form_type(const char *s);
|
enum form_type str2form_type(const char *s);
|
||||||
char *form_type2str(enum form_type num);
|
const char *form_type2str(enum form_type num);
|
||||||
|
|
||||||
struct form *init_form(void);
|
struct form *init_form(void);
|
||||||
void done_form(struct form *form);
|
void done_form(struct form *form);
|
||||||
|
Loading…
Reference in New Issue
Block a user