File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 66
66
67
67
#include "tcc.h"
68
68
69
+ ////TODO
70
+ void longjmp (int jmp_buf , int ret ) {
71
+ puts ("TODO: longjmp" );
72
+ exit (1 );
73
+ }
74
+
75
+ ///TODO
76
+ int setjmp (int jmp_buf ) {
77
+ puts ("TODO: setjmp" );
78
+ return 0 ;
79
+ }
80
+
69
81
/********************************************************/
70
82
/* global variables */
71
83
@@ -156,6 +168,7 @@ ST_FUNC void wait_sem(TCCSem *p)
156
168
{
157
169
if (!p -> init )
158
170
sem_init (& p -> sem , 0 , 1 ), p -> init = 1 ;
171
+ #define EINTR 4 ////TODO
159
172
while (sem_wait (& p -> sem ) < 0 && errno == EINTR );
160
173
}
161
174
ST_FUNC void post_sem (TCCSem * p )
Original file line number Diff line number Diff line change 36
36
#include <errno.h>
37
37
#include <math.h>
38
38
#include <fcntl.h>
39
- #include <setjmp.h>
39
+ ////TODO: #include <setjmp.h>
40
40
#include <time.h>
41
41
42
42
#ifndef _WIN32
@@ -884,7 +884,8 @@ struct TCCState {
884
884
void * error_opaque ;
885
885
void (* error_func )(void * opaque , const char * msg );
886
886
int error_set_jmp_enabled ;
887
- jmp_buf error_jmp_buf ;
887
+ ////TODO: jmp_buf error_jmp_buf;
888
+ int error_jmp_buf ; ////TODO
888
889
int nb_errors ;
889
890
890
891
/* output file for preprocessing (-E) */
You can’t perform that action at this time.
0 commit comments