mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 18:47:47 +00:00
7be746e2f3
Or rather, provide abstraction to make this feature easy to add in the future.
12 lines
223 B
C
12 lines
223 B
C
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
uint32_t len; // TODO: size_t (or, let max string size depend on target/flag)
|
|
uint8_t buf[]; // variable size
|
|
} string_t;
|
|
|
|
typedef int32_t intgo_t; // may be 64-bit
|