picrin/extlib/benz/include/picrin/record.h

32 lines
684 B
C
Raw Normal View History

2014-08-25 00:38:09 -04:00
/**
* See Copyright Notice in picrin.h
*/
#ifndef PICRIN_RECORD_H
#define PICRIN_RECORD_H
#if defined(__cplusplus)
extern "C" {
#endif
struct pic_record {
PIC_OBJECT_HEADER
2015-08-10 12:34:45 -04:00
struct pic_record *type;
2015-01-18 07:40:14 -05:00
struct pic_dict *data;
2014-08-25 00:38:09 -04:00
};
#define pic_record_p(v) (pic_type(v) == PIC_TT_RECORD)
#define pic_record_ptr(v) ((struct pic_record *)pic_ptr(v))
2015-08-10 12:34:45 -04:00
struct pic_record *pic_make_record(pic_state *, struct pic_record *);
2014-08-25 00:38:09 -04:00
2015-08-10 12:34:45 -04:00
struct pic_record *pic_record_type(pic_state *, struct pic_record *);
2015-01-20 02:02:28 -05:00
pic_value pic_record_ref(pic_state *, struct pic_record *, pic_sym *);
void pic_record_set(pic_state *, struct pic_record *, pic_sym *, pic_value);
2014-08-25 00:38:09 -04:00
#if defined(__cplusplus)
}
#endif
#endif