2022-12-04 20:13:24 +00:00
|
|
|
/* vim9class.c */
|
2023-09-04 22:30:41 +02:00
|
|
|
int object_index_from_itf_index(class_T *itf, int is_method, int idx, class_T *cl, int is_static);
|
2022-12-04 20:13:24 +00:00
|
|
|
void ex_class(exarg_T *eap);
|
2023-09-18 19:56:49 +02:00
|
|
|
type_T *class_member_type(class_T *cl, int is_object, char_u *name, char_u *name_end, int *member_idx);
|
2022-12-04 20:13:24 +00:00
|
|
|
void ex_enum(exarg_T *eap);
|
|
|
|
|
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);
|
|
|
|
|
ufunc_T *class_method_lookup(class_T *cl, char_u *name, size_t namelen, int *idx);
|
|
|
|
|
int object_member_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);
|
|
|
|
|
ufunc_T *object_method_lookup(class_T *cl, char_u *name, size_t namelen, int *idx);
|
|
|
|
|
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);
|
2022-12-08 15:32:33 +00:00
|
|
|
void copy_object(typval_T *from, typval_T *to);
|
|
|
|
|
void object_unref(object_T *obj);
|
|
|
|
|
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);
|
|
|
|
|
void object_cleared(object_T *obj);
|
|
|
|
|
int object_free_nonref(int copyID);
|
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);
|
2023-08-23 21:08:11 +02:00
|
|
|
void f_instanceof(typval_T *argvars, typval_T *rettv);
|
|
|
|
|
int class_instance_of(class_T *cl, class_T *other_cl);
|
2022-12-04 20:13:24 +00:00
|
|
|
/* vim: set ft=c : */
|