mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-01 09:49:24 +03:00
a76a1322eb
Written by Volkmar Frinken (@vfrinken). This is intended as a lightweight (i.e. minimal dependencies) code generator that can be ported to multiple platforms, especially those with memory constraints. It shouldn't be expected to be anywhere near as fast as the Scheme back end, for lots of reasons. The main goal is portability.
21 lines
426 B
C
21 lines
426 B
C
#ifndef __CON_CASE_HELPER_H__
|
|
#define __CON_CASE_HELPER_H__
|
|
|
|
#include "cBackend.h"
|
|
|
|
typedef struct
|
|
{
|
|
char *name;
|
|
int tag;
|
|
} AConAlt;
|
|
|
|
AConAlt *newConstructorField(int);
|
|
int compareConstructors(Value *, AConAlt *, int);
|
|
void constructorFieldFNextEntry(AConAlt *, char *, int);
|
|
void freeConstructorField(AConAlt *);
|
|
|
|
int multiStringCompare(Value *, int, char **);
|
|
int multiDoubleCompare(Value *, int, double *);
|
|
|
|
#endif
|