30 Value vid = pop_value(vm);
34 pcsc_ctx_entry *e = pcsc_get_ctx(
id);
41 LONG rv = SCardListReaders(e->ctx, NULL, NULL, &
sz);
42 if (rv != SCARD_S_SUCCESS ||
sz == 0) {
47 char *msz = (
char *)malloc(
sz);
53 rv = SCardListReaders(e->ctx, NULL, msz, &
sz);
54 if (rv != SCARD_S_SUCCESS) {
69 for (
int i = 0; i <
count; ++i)
80 Value vid = pop_value(vm);
push_value(vm, make_array_from_values(NULL, 0))
Tagged union representing a Fun value.
Value make_string(const char *s)
Construct a string Value by duplicating the given C string.
Value make_array_from_values(const Value *vals, int count)
Create an array Value by copying items from an input span.