2022-12-04 20:13:24 +00:00
|
|
|
/* vim9class.c */
|
2023-09-29 19:43:11 +02:00
|
|
|
int object_index_from_itf_index(class_T *itf, int is_method, int idx, class_T *cl);
|
2022-12-04 20:13:24 +00:00
|
|
|
void ex_class(exarg_T *eap);
|
2023-10-11 21:43:52 +02:00
|
|
|
type_T *oc_member_type(class_T *cl, int is_object, char_u *name, char_u *name_end, int *member_idx);
|
|
|
|
|
type_T *oc_member_type_by_idx(class_T *cl, int is_object, int member_idx);
|
2022-12-04 20:13:24 +00:00
|
|
|
void ex_enum(exarg_T *eap);
|
2023-10-27 19:35:26 +02:00
|
|
|
void typealias_free(typealias_T *ta);
|
|
|
|
|
void typealias_unref(typealias_T *ta);
|
2022-12-04 20:13:24 +00:00
|
|
|
void ex_type(exarg_T *eap);
|
2022-12-08 15:32:33 +00:00
|
|
|
int class_object_index(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int verbose);
|
2022-12-10 18:42:12 +00:00
|
|
|
ufunc_T *find_class_func(char_u **arg);
|
2023-09-10 18:19:06 +02:00
|
|
|
int class_member_idx(class_T *cl, char_u *name, size_t namelen);
|
|
|
|
|
ocmember_T *class_member_lookup(class_T *cl, char_u *name, size_t namelen, int *idx);
|
|
|
|
|
int class_method_idx(class_T *cl, char_u *name, size_t namelen);
|
|
|
|
|
ocmember_T *object_member_lookup(class_T *cl, char_u *name, size_t namelen, int *idx);
|
|
|
|
|
int object_method_idx(class_T *cl, char_u *name, size_t namelen);
|
|
|
|
|
ocmember_T *member_lookup(class_T *cl, vartype_T v_type, char_u *name, size_t namelen, int *idx);
|
|
|
|
|
ufunc_T *method_lookup(class_T *cl, vartype_T v_type, char_u *name, size_t namelen, int *idx);
|
2023-01-24 15:07:04 +00:00
|
|
|
int inside_class(cctx_T *cctx_arg, class_T *cl);
|
2023-12-16 14:11:19 +01:00
|
|
|
int oc_var_check_ro(class_T *cl, ocmember_T *m);
|
|
|
|
|
void obj_lock_const_vars(object_T *obj);
|
2022-12-08 15:32:33 +00:00
|
|
|
void copy_object(typval_T *from, typval_T *to);
|
|
|
|
|
void copy_class(typval_T *from, typval_T *to);
|
2022-12-08 20:42:00 +00:00
|
|
|
void class_unref(class_T *cl);
|
2023-09-04 07:51:01 +02:00
|
|
|
int class_free_nonref(int copyID);
|
|
|
|
|
int set_ref_in_classes(int copyID);
|
2022-12-08 20:42:00 +00:00
|
|
|
void object_created(object_T *obj);
|
2023-10-14 11:18:50 +02:00
|
|
|
void object_unref(object_T *obj);
|
2022-12-08 20:42:00 +00:00
|
|
|
int object_free_nonref(int copyID);
|
2023-10-14 11:18:50 +02:00
|
|
|
void object_free_items(int copyID);
|
2024-01-01 20:18:36 +01:00
|
|
|
void emsg_var_cl_define(char *msg, char_u *name, size_t len, class_T *cl);
|
2023-09-15 20:14:55 +02:00
|
|
|
void method_not_found_msg(class_T *cl, vartype_T v_type, char_u *name, size_t len);
|
|
|
|
|
void member_not_found_msg(class_T *cl, vartype_T v_type, char_u *name, size_t len);
|
2024-01-12 17:36:40 +01:00
|
|
|
void defcompile_class(class_T *cl);
|
|
|
|
|
void defcompile_classes_in_script(void);
|
|
|
|
|
int is_class_name(char_u *name, typval_T *rettv);
|
2023-10-02 21:43:58 +02:00
|
|
|
int class_instance_of(class_T *cl, class_T *other_cl);
|
2024-01-01 20:18:36 +01:00
|
|
|
void f_instanceof(typval_T *argvars, typval_T *rettv);
|
2022-12-04 20:13:24 +00:00
|
|
|
/* vim: set ft=c : */
|