update c_src (now with ffi)
[nit.git] / c_src / standard___exec._sep.c
index 9902813..83750b9 100644 (file)
@@ -1,5 +1,6 @@
 /* This C file is generated by NIT to compile module standard___exec. */
 #include "standard___exec._sep.h"
+static const char LOCATE_standard___exec___Process___id[] = "exec::Process::id";
 val_t standard___exec___Process___id(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -21,6 +22,7 @@ val_t standard___exec___Process___id(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___Process___is_finished[] = "exec::Process::is_finished";
 val_t standard___exec___Process___is_finished(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -42,6 +44,7 @@ val_t standard___exec___Process___is_finished(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___Process___wait[] = "exec::Process::wait";
 void standard___exec___Process___wait(val_t p0){
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
   val_t REGB0;
@@ -68,6 +71,7 @@ void standard___exec___Process___wait(val_t p0){
   stack_frame_head = fra.me.prev;
   return;
 }
+static const char LOCATE_standard___exec___Process___status[] = "exec::Process::status";
 val_t standard___exec___Process___status(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -95,6 +99,7 @@ val_t standard___exec___Process___status(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___Process___init[] = "exec::Process::init";
 void standard___exec___Process___init(val_t p0, val_t p1, val_t p2, int* init_table){
   int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___Process].i;
   struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
@@ -129,6 +134,7 @@ void standard___exec___Process___init(val_t p0, val_t p1, val_t p2, int* init_ta
   init_table[itpos0] = 1;
   return;
 }
+static const char LOCATE_standard___exec___Process___init_[] = "exec::Process::init_";
 void standard___exec___Process___init_(val_t p0, val_t p1, int* init_table){
   int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___Process].i;
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
@@ -153,6 +159,7 @@ void standard___exec___Process___init_(val_t p0, val_t p1, int* init_table){
   init_table[itpos1] = 1;
   return;
 }
+static const char LOCATE_standard___exec___Process___execute[] = "exec::Process::execute";
 void standard___exec___Process___execute(val_t p0, val_t p1, val_t p2, val_t p3, int* init_table){
   int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___Process].i;
   struct {struct stack_frame_t me; val_t MORE_REG[6];} fra;
@@ -193,7 +200,7 @@ void standard___exec___Process___execute(val_t p0, val_t p1, val_t p2, val_t p3,
   } else {
     REGB3 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
     if (UNTAG_Bool(REGB3)) {
-      REGB3 = TAG_Bool(false);
+      REGB3 = TAG_Bool(0);
       REGB2 = REGB3;
     } else {
       REGB3 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
@@ -234,7 +241,7 @@ void standard___exec___Process___execute(val_t p0, val_t p1, val_t p2, val_t p3,
       } else {
         nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
       }
-      /* ../lib/standard/kernel.nit:232 */
+      /* ../lib/standard/kernel.nit:235 */
       REGB3 = TAG_Bool(UNTAG_Int(REGB2)<UNTAG_Int(REGB3));
       /* ../lib/standard/collection/array.nit:272 */
       if (UNTAG_Bool(REGB3)) {
@@ -252,7 +259,7 @@ void standard___exec___Process___execute(val_t p0, val_t p1, val_t p2, val_t p3,
         CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
         /* ../lib/standard/collection/array.nit:274 */
         REGB3 = TAG_Int(1);
-        /* ../lib/standard/kernel.nit:235 */
+        /* ../lib/standard/kernel.nit:238 */
         REGB3 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB3));
         /* ../lib/standard/collection/array.nit:274 */
         REGB2 = REGB3;
@@ -274,7 +281,7 @@ void standard___exec___Process___execute(val_t p0, val_t p1, val_t p2, val_t p3,
       nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
     }
     REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
-    /* ../lib/standard/kernel.nit:235 */
+    /* ../lib/standard/kernel.nit:238 */
     REGB2 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB2));
     /* ../lib/standard/exec.nit:65 */
     REGB1 = REGB2;
@@ -289,6 +296,7 @@ void standard___exec___Process___execute(val_t p0, val_t p1, val_t p2, val_t p3,
   init_table[itpos2] = 1;
   return;
 }
+static const char LOCATE_standard___exec___Process___data[] = "exec::Process::data";
 val_t standard___exec___Process___data(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -312,6 +320,7 @@ val_t standard___exec___Process___data(val_t p0){
   stack_frame_head = fra.me.prev;
   return fra.me.REG[0];
 }
+static const char LOCATE_standard___exec___Process___data__eq[] = "exec::Process::data=";
 void standard___exec___Process___data__eq(val_t p0, val_t p1){
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
   val_t tmp;
@@ -331,6 +340,7 @@ void standard___exec___Process___data__eq(val_t p0, val_t p1){
   stack_frame_head = fra.me.prev;
   return;
 }
+static const char LOCATE_standard___exec___Process___basic_exec_execute[] = "exec::Process::basic_exec_execute";
 val_t standard___exec___Process___basic_exec_execute(val_t p0, val_t p1, val_t p2, val_t p3, val_t p4){
   struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
   val_t REGB0;
@@ -356,6 +366,7 @@ val_t standard___exec___Process___basic_exec_execute(val_t p0, val_t p1, val_t p
   stack_frame_head = fra.me.prev;
   return fra.me.REG[2];
 }
+static const char LOCATE_standard___exec___IProcess___stream_in[] = "exec::IProcess::stream_in";
 val_t standard___exec___IProcess___stream_in(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -379,6 +390,7 @@ val_t standard___exec___IProcess___stream_in(val_t p0){
   stack_frame_head = fra.me.prev;
   return fra.me.REG[0];
 }
+static const char LOCATE_standard___exec___IProcess___stream_in__eq[] = "exec::IProcess::stream_in=";
 void standard___exec___IProcess___stream_in__eq(val_t p0, val_t p1){
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
   val_t tmp;
@@ -398,6 +410,7 @@ void standard___exec___IProcess___stream_in__eq(val_t p0, val_t p1){
   stack_frame_head = fra.me.prev;
   return;
 }
+static const char LOCATE_standard___exec___IProcess___close[] = "exec::IProcess::(stream::IOS::close)";
 void standard___exec___IProcess___close(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t tmp;
@@ -416,6 +429,7 @@ void standard___exec___IProcess___close(val_t p0){
   stack_frame_head = fra.me.prev;
   return;
 }
+static const char LOCATE_standard___exec___IProcess___read_char[] = "exec::IProcess::(stream::IStream::read_char)";
 val_t standard___exec___IProcess___read_char(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -437,6 +451,7 @@ val_t standard___exec___IProcess___read_char(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___IProcess___eof[] = "exec::IProcess::(stream::IStream::eof)";
 val_t standard___exec___IProcess___eof(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -458,6 +473,7 @@ val_t standard___exec___IProcess___eof(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___IProcess___init[] = "exec::IProcess::init";
 void standard___exec___IProcess___init(val_t p0, val_t p1, val_t p2, int* init_table){
   int itpos3 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___IProcess].i;
   struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
@@ -497,6 +513,7 @@ void standard___exec___IProcess___init(val_t p0, val_t p1, val_t p2, int* init_t
   init_table[itpos3] = 1;
   return;
 }
+static const char LOCATE_standard___exec___IProcess___init_[] = "exec::IProcess::init_";
 void standard___exec___IProcess___init_(val_t p0, val_t p1, int* init_table){
   int itpos4 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___IProcess].i;
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
@@ -526,6 +543,7 @@ void standard___exec___IProcess___init_(val_t p0, val_t p1, int* init_table){
   init_table[itpos4] = 1;
   return;
 }
+static const char LOCATE_standard___exec___OProcess___stream_out[] = "exec::OProcess::stream_out";
 val_t standard___exec___OProcess___stream_out(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -549,6 +567,7 @@ val_t standard___exec___OProcess___stream_out(val_t p0){
   stack_frame_head = fra.me.prev;
   return fra.me.REG[0];
 }
+static const char LOCATE_standard___exec___OProcess___stream_out__eq[] = "exec::OProcess::stream_out=";
 void standard___exec___OProcess___stream_out__eq(val_t p0, val_t p1){
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
   val_t tmp;
@@ -568,6 +587,7 @@ void standard___exec___OProcess___stream_out__eq(val_t p0, val_t p1){
   stack_frame_head = fra.me.prev;
   return;
 }
+static const char LOCATE_standard___exec___OProcess___close[] = "exec::OProcess::(stream::IOS::close)";
 void standard___exec___OProcess___close(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t tmp;
@@ -586,6 +606,7 @@ void standard___exec___OProcess___close(val_t p0){
   stack_frame_head = fra.me.prev;
   return;
 }
+static const char LOCATE_standard___exec___OProcess___is_writable[] = "exec::OProcess::(stream::OStream::is_writable)";
 val_t standard___exec___OProcess___is_writable(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -607,6 +628,7 @@ val_t standard___exec___OProcess___is_writable(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___OProcess___write[] = "exec::OProcess::(stream::OStream::write)";
 void standard___exec___OProcess___write(val_t p0, val_t p1){
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
   val_t tmp;
@@ -627,6 +649,7 @@ void standard___exec___OProcess___write(val_t p0, val_t p1){
   stack_frame_head = fra.me.prev;
   return;
 }
+static const char LOCATE_standard___exec___OProcess___init[] = "exec::OProcess::init";
 void standard___exec___OProcess___init(val_t p0, val_t p1, val_t p2, int* init_table){
   int itpos5 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___OProcess].i;
   struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
@@ -666,6 +689,7 @@ void standard___exec___OProcess___init(val_t p0, val_t p1, val_t p2, int* init_t
   init_table[itpos5] = 1;
   return;
 }
+static const char LOCATE_standard___exec___OProcess___init_[] = "exec::OProcess::init_";
 void standard___exec___OProcess___init_(val_t p0, val_t p1, int* init_table){
   int itpos6 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___OProcess].i;
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
@@ -695,6 +719,7 @@ void standard___exec___OProcess___init_(val_t p0, val_t p1, int* init_table){
   init_table[itpos6] = 1;
   return;
 }
+static const char LOCATE_standard___exec___IOProcess___close[] = "exec::IOProcess::(stream::IOS::close)";
 void standard___exec___IOProcess___close(val_t p0){
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
   val_t tmp;
@@ -717,6 +742,7 @@ void standard___exec___IOProcess___close(val_t p0){
   stack_frame_head = fra.me.prev;
   return;
 }
+static const char LOCATE_standard___exec___IOProcess___init[] = "exec::IOProcess::init";
 void standard___exec___IOProcess___init(val_t p0, val_t p1, val_t p2, int* init_table){
   int itpos7 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___IOProcess].i;
   struct {struct stack_frame_t me; val_t MORE_REG[5];} fra;
@@ -767,6 +793,7 @@ void standard___exec___IOProcess___init(val_t p0, val_t p1, val_t p2, int* init_
   init_table[itpos7] = 1;
   return;
 }
+static const char LOCATE_standard___exec___IOProcess___init_[] = "exec::IOProcess::init_";
 void standard___exec___IOProcess___init_(val_t p0, val_t p1, int* init_table){
   int itpos8 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___IOProcess].i;
   struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
@@ -808,6 +835,7 @@ void standard___exec___IOProcess___init_(val_t p0, val_t p1, int* init_table){
   init_table[itpos8] = 1;
   return;
 }
+static const char LOCATE_standard___exec___Sys___system[] = "exec::Sys::system";
 val_t standard___exec___Sys___system(val_t p0, val_t p1){
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
   val_t REGB0;
@@ -831,6 +859,7 @@ val_t standard___exec___Sys___system(val_t p0, val_t p1){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___NativeString___system[] = "exec::NativeString::system";
 val_t standard___exec___NativeString___system(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -849,6 +878,7 @@ val_t standard___exec___NativeString___system(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___NativeProcess___id[] = "exec::NativeProcess::id";
 val_t standard___exec___NativeProcess___id(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -867,6 +897,7 @@ val_t standard___exec___NativeProcess___id(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___NativeProcess___is_finished[] = "exec::NativeProcess::is_finished";
 val_t standard___exec___NativeProcess___is_finished(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -885,6 +916,7 @@ val_t standard___exec___NativeProcess___is_finished(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___NativeProcess___status[] = "exec::NativeProcess::status";
 val_t standard___exec___NativeProcess___status(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -903,6 +935,7 @@ val_t standard___exec___NativeProcess___status(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___NativeProcess___wait[] = "exec::NativeProcess::wait";
 void standard___exec___NativeProcess___wait(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t tmp;
@@ -920,6 +953,7 @@ void standard___exec___NativeProcess___wait(val_t p0){
   stack_frame_head = fra.me.prev;
   return;
 }
+static const char LOCATE_standard___exec___NativeProcess___in_fd[] = "exec::NativeProcess::in_fd";
 val_t standard___exec___NativeProcess___in_fd(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -938,6 +972,7 @@ val_t standard___exec___NativeProcess___in_fd(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___NativeProcess___out_fd[] = "exec::NativeProcess::out_fd";
 val_t standard___exec___NativeProcess___out_fd(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;
@@ -956,6 +991,7 @@ val_t standard___exec___NativeProcess___out_fd(val_t p0){
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
+static const char LOCATE_standard___exec___NativeProcess___err_fd[] = "exec::NativeProcess::err_fd";
 val_t standard___exec___NativeProcess___err_fd(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t REGB0;