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
#!/usr/bin/env python | |
import os | |
import sys | |
import subprocess | |
import tempfile | |
def dylan_compile(library, headers, sources, path=None): | |
prefix = os.path.basename(path) if path else library + "." |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#include <time.h> | |
static void debug(const char *msg) { | |
time_t t = time(NULL); | |
fprintf(stderr, "%s%s\n\n", ctime(&t), msg); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#include <time.h> | |
static void debug(const char *msg) { | |
time_t t = time(NULL); | |
fprintf(stderr, "%s%s\n\n", ctime(&t), msg); |