comparison src/gearsTools/generate_context.pl @ 47:233a68a261fe

ifdef cbcxv6
author mir3636
date Thu, 07 Mar 2019 19:42:27 +0900
parents 9647d79fe97e
children
comparison
equal deleted inserted replaced
46:9647d79fe97e 47:233a68a261fe
142 } 142 }
143 143
144 my $data_num = keys(%dataGear); 144 my $data_num = keys(%dataGear);
145 $data_num++; 145 $data_num++;
146 my $context_c = << "EOFEOF"; 146 my $context_c = << "EOFEOF";
147 #ifndef CBCXV6
147 #include <stdlib.h> 148 #include <stdlib.h>
149 #endif
148 150
149 #include "../context.h" 151 #include "../context.h"
150 152
151 void initContext(struct Context* context) { 153 void initContext(struct Context* context) {
152 context->heapLimit = sizeof(union Data)*ALLOCATE_SIZE; 154 context->heapLimit = sizeof(union Data)*ALLOCATE_SIZE;