This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(PACKAGE_SOURCE_CODE clearsilver_glue.c) | |
add_konoha_package(lib.clearsilver) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static kbool_t SHA256Digest(CTX ctx, knh_conv_t *cv, const char *text, size_t len, kBytes *tobuf) | |
{ | |
SHA256_CTX context; | |
unsigned char md[SHA256_DIGEST_LENGTH]; | |
SHA256_Init(&context); | |
SHA256_Update(&context, text, len); | |
SHA256_Final(md, &context); | |
knh_Bytes_write2(ctx, tobuf, (const char *)md, SHA256_DIGEST_LENGTH); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// written by chenji | |
import("sugar"); | |
syntax $Shell $Token $Token* | |
Expr typeCheckShell(Stmt stmt, Expr expr, Gamma gma, int reqty) { | |
System.p("typecheck"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Table "public.users" | |
Column | Type | Modifiers | |
--------+-------------------+----------- | |
name | character varying | | |
age | integer | | |
weight | real | |