-///////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2000-2015 Ericsson Telecom AB
-// All rights reserved. This program and the accompanying materials
-// are made available under the terms of the Eclipse Public License v1.0
-// which accompanies this distribution, and is available at
-// http://www.eclipse.org/legal/epl-v10.html
-///////////////////////////////////////////////////////////////////////////////
+/******************************************************************************
+ * Copyright (c) 2000-2016 Ericsson Telecom AB
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Baji, Laszlo
+ * Balasko, Jeno
+ * Baranyi, Botond
+ * Delic, Adam
+ * Raduly, Csaba
+ * Szabados, Kristof
+ * Pandi, Krisztian
+ *
+ ******************************************************************************/
#include "../common/dbgnew.hh"
#include "Type.hh"
#include "CompField.hh"
}
fdef.runs_on_self = u.fatref.runs_on.self ? TRUE : FALSE;
fdef.is_startable = u.fatref.is_startable;
- fdef.formal_par_list = u.fatref.fp_list->generate_code(memptystr());
+ fdef.formal_par_list = u.fatref.fp_list->generate_code(memptystr(),
+ u.fatref.fp_list->get_nof_fps());
u.fatref.fp_list->generate_code_defval(target);
fdef.actual_par_list = u.fatref.fp_list
->generate_code_actual_parlist(memptystr(),"");
"\"record of\"" : "\"set of\"");
} else {
// set the number of elements for arrays
- char* size_str = mprintf("%lu", get_nof_comps());
+ char* size_str = mprintf("%lu", (unsigned long)(get_nof_comps()));
json.put_next_token(JSON_TOKEN_NAME, "minItems");
json.put_next_token(JSON_TOKEN_NUMBER, size_str);
json.put_next_token(JSON_TOKEN_NAME, "maxItems");