struct _gaainfo
{
-#line 13 "tls_test.gaa"
- char **rest_args;
#line 12 "tls_test.gaa"
- int nrest_args;
+ char *rest_args;
#line 6 "tls_test.gaa"
int more_info;
#line 3 "tls_test.gaa"
struct GAAREST
{
- char** arg1;
+ char* arg1;
int size1;
};
return GAA_OK;
break;
case GAA_REST:
- GAA_LIST_FILL(GAAREST_tmp.arg1, gaa_getstr, char*, GAAREST_tmp.size1);
-#line 14 "tls_test.gaa"
-{ gaaval->rest_args = GAAREST_tmp.arg1; gaaval->nrest_args = GAAREST_tmp.size1 ;};
+ GAA_TESTMOREARGS;
+ GAA_FILL(GAAREST_tmp.arg1, gaa_getstr, GAAREST_tmp.size1);
+ gaa_index++;
+#line 13 "tls_test.gaa"
+{ gaaval->rest_args = GAAREST_tmp.arg1; ;};
return GAA_OK;
break;
if(inited == 0)
{
-#line 16 "tls_test.gaa"
-{ gaaval->rest_args=NULL; gaaval->nrest_args=0; gaaval->pp = 443; gaaval->more_info = 0; ;};
+#line 15 "tls_test.gaa"
+{ gaaval->rest_args=NULL; gaaval->pp = 443; gaaval->more_info = 0; ;};
}
inited = 1;
struct _gaainfo
{
-#line 13 "tls_test.gaa"
- char **rest_args;
#line 12 "tls_test.gaa"
- int nrest_args;
+ char *rest_args;
#line 6 "tls_test.gaa"
int more_info;
#line 3 "tls_test.gaa"
}
port = info.pp;
- if (info.nrest_args==0) hostname="localhost";
- else hostname = info.rest_args[0];
+ if (info.rest_args==NULL) hostname="localhost";
+ else hostname = info.rest_args;
more_info = info.more_info;
option (h, help) { gaa_help(); exit(0); } "prints this help"
-#int nrest_args;
-#char **rest_args;
-rest *STR "hostname" { $rest_args = $1; $nrest_args = @1 }
+#char *rest_args;
+rest STR "hostname" { $rest_args = $1; }
-init { $rest_args=NULL; $nrest_args=0; $pp = 443; $more_info = 0; }
+init { $rest_args=NULL; $pp = 443; $more_info = 0; }