2024-11-17 05:26:25 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_LIBMIQT_LIBMIQT_H
|
|
|
|
#define MIQT_LIBMIQT_LIBMIQT_H
|
2024-09-12 06:47:31 +00:00
|
|
|
|
2024-10-16 05:05:07 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2024-09-12 06:47:31 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2024-09-12 06:48:06 +00:00
|
|
|
struct miqt_string {
|
|
|
|
size_t len;
|
2024-10-18 21:57:05 +00:00
|
|
|
char* data;
|
2024-09-14 04:21:05 +00:00
|
|
|
};
|
2024-09-12 06:48:06 +00:00
|
|
|
|
|
|
|
struct miqt_array {
|
|
|
|
size_t len;
|
2024-10-18 21:57:05 +00:00
|
|
|
void* data;
|
2024-09-14 04:21:05 +00:00
|
|
|
};
|
2024-09-12 06:48:06 +00:00
|
|
|
|
2024-11-04 07:59:03 +00:00
|
|
|
struct miqt_map {
|
|
|
|
size_t len;
|
|
|
|
void* keys;
|
|
|
|
void* values;
|
|
|
|
};
|
|
|
|
|
2024-09-12 06:48:06 +00:00
|
|
|
struct miqt_string* miqt_strdup(const char* src, size_t len);
|
|
|
|
|
2024-10-16 05:05:07 +00:00
|
|
|
typedef const char const_char;
|
|
|
|
|
2024-09-12 06:47:31 +00:00
|
|
|
#ifdef __cplusplus
|
2024-09-14 04:21:05 +00:00
|
|
|
}
|
2024-09-12 06:47:31 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|