Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VSs_impls > VSs__MC_shared_impl
diff nanos-vss.c @ 45:19114b7a2357
extern decl to work with c++ name mangling
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Thu, 20 Jun 2013 12:39:54 +0200 |
| parents | 8733d1299c3a |
| children | 6be6b0394537 |
line diff
1.1 --- a/nanos-vss.c Tue Jun 11 15:40:51 2013 +0200 1.2 +++ b/nanos-vss.c Thu Jun 20 12:39:54 2013 +0200 1.3 @@ -33,11 +33,9 @@ 1.4 *data = alloc_data; 1.5 ts->args = alloc_data; 1.6 1.7 - nanos_device_t* dev = (nanos_device_t*) &const_data[1]; 1.8 - 1.9 VSsTaskType* taskType = (VSsTaskType*) malloc(sizeof (VSsTaskType)); 1.10 1.11 - taskType->fn = *((VSsTaskFnPtr*) dev[0].arg); 1.12 + taskType->fn = *((VSsTaskFnPtr*)((nanos_device_t*) &const_data[1])->arg); 1.13 taskType->sizeOfArgs = data_size; 1.14 1.15 ts->taskType = taskType; 1.16 @@ -121,11 +119,9 @@ 1.17 * so ugly pointer tricks to get it from there 1.18 */ 1.19 1.20 - nanos_device_t* dev = (nanos_device_t*) &const_data[1]; 1.21 - 1.22 VSsTaskType* taskType = (VSsTaskType*) malloc(sizeof (VSsTaskType)); 1.23 1.24 - taskType->fn = *((VSsTaskFnPtr*) dev[0].arg); 1.25 + taskType->fn = *((VSsTaskFnPtr*)((nanos_device_t*) &const_data[1])->arg); 1.26 taskType->numDeps = num_deps; 1.27 taskType->depsTypes = depsTypes; 1.28 taskType->depsSizes = depsSizes; 1.29 @@ -224,4 +220,4 @@ 1.30 1.31 void nanos_omp_set_interface ( void * arg){ 1.32 return; 1.33 -} 1.34 \ No newline at end of file 1.35 +}
