Эх сурвалжийг харах

Adding Start to future lib and poll program

Vinicius Teshima 11 сар өмнө
parent
commit
6a9479b74b
2 өөрчлөгдсөн 28 нэмэгдсэн , 0 устгасан
  1. 16 0
      src/future.h
  2. 12 0
      src/poll.c

+ 16 - 0
src/future.h

@@ -0,0 +1,16 @@
+#ifndef POLLABLE_H
+#define POLLABLE_H
+
+struct pollable {
+	char _reserved;
+};
+
+void *pollable_pool(struct pollable p, void *data);
+
+#if defined(IMP) || defined(POLLABLE_IMP)
+
+
+
+#endif /* defined(IMP) || defined(POLLABLE_IMP) */
+
+#endif /* POLLABLE_H */

+ 12 - 0
src/poll.c

@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+#define IMP
+#include "./future.h"
+
+int
+main(int argc, char *argv[])
+{
+	printf("Hello World!\n");
+	(void) argc; (void) argv;
+	return 0;
+}