Skip to main content

Crate decy_stdlib

Crate decy_stdlib 

Source
Expand description

§DECY Standard Library Support

RED PHASE: Built-in C standard library function prototypes

This crate provides ISO C99 §7 standard library function prototypes, enabling transpilation of C code that uses stdlib functions without requiring actual header files.

Pattern: EXTREME TDD - Test-First Development References: See docs/specifications/header-support-spec.md

§Architecture

C Code → Prototype Injection → Parser → HIR → Rust
  ↓
#include <stdlib.h>
  ↓ (commented out by preprocessor)
Built-in prototypes injected
  ↓
malloc/free declarations available
  ↓
Parser succeeds!

Structs§

FunctionProto
C Standard Library Function Prototype
Parameter
Function parameter
StdlibPrototypes
Built-in C Standard Library Prototype Database

Enums§

StdHeader
ISO C99 §7 Standard Library Headers + POSIX extensions