summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2013-12-04 15:26:00 +0000
committerthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2013-12-04 15:26:00 +0000
commit45226f049391a4231512886006e8af2650b4eb3e (patch)
treee4f79ffda628ca80542fa00fb19c38dc1a9cf9be
parenta151040c1534fd26f837fc9b12d80b378e174e5c (diff)
downloadmpc-45226f049391a4231512886006e8af2650b4eb3e.tar.gz
[tests/] Remove unused parameter.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/branches/benchs_tests@1385 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--tests/read_description.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/tests/read_description.c b/tests/read_description.c
index 29efaa8..f85a053 100644
--- a/tests/read_description.c
+++ b/tests/read_description.c
@@ -23,8 +23,7 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
#include "templates.h"
static size_t read_keyworddesc (mpc_datafile_context_t* datafile_context,
- char **buffer_ptr, size_t buffer_length,
- const char *name);
+ char **buffer_ptr, size_t buffer_length);
/* tuple to link name with the enum value */
typedef struct {
@@ -66,8 +65,7 @@ static const param_typeval_t sparam_typeval[]= {
static size_t
read_keyworddesc (mpc_datafile_context_t* datafile_context,
char **buffer_ptr,
- size_t buffer_length,
- const char *name)
+ size_t buffer_length)
{
size_t pos;
char *buffer;
@@ -175,7 +173,7 @@ read_description (mpc_fun_param_t* param, const char *filename)
/* read NAME fields */
tpl_skip_whitespace_comments(&datafile_context);
- len = read_keyworddesc (&datafile_context, &namestr, len, filename);
+ len = read_keyworddesc (&datafile_context, &namestr, len);
if (namestr == NULL || strcmp (namestr,"NAME:") != 0)
{
printf ("Error: Unable to read 'NAME:' in file '%s'\n",
@@ -184,7 +182,7 @@ read_description (mpc_fun_param_t* param, const char *filename)
}
tpl_skip_whitespace_comments (&datafile_context);
- read_keyworddesc (&datafile_context, &namestr, len, filename);
+ read_keyworddesc (&datafile_context, &namestr, len);
if (namestr == NULL)
{
printf ("Error: Unable to read the name of the function in file '%s'\n",
@@ -197,7 +195,7 @@ read_description (mpc_fun_param_t* param, const char *filename)
/* read RETURN fields */
tpl_skip_whitespace_comments (&datafile_context);
len = 0;
- len = read_keyworddesc (&datafile_context, &buffer, len, filename);
+ len = read_keyworddesc (&datafile_context, &buffer, len);
if (buffer == NULL || strcmp (buffer,"RETURN:") != 0)
{
printf ("Error: Unable to read 'RETURN:' in file '%s'\n",
@@ -206,7 +204,7 @@ read_description (mpc_fun_param_t* param, const char *filename)
}
tpl_skip_whitespace_comments (&datafile_context);
- len = read_keyworddesc (&datafile_context, &buffer, len, filename);
+ len = read_keyworddesc (&datafile_context, &buffer, len);
if (buffer == NULL)
{
printf ("Error: Unable to read the return type of the function"
@@ -217,7 +215,7 @@ read_description (mpc_fun_param_t* param, const char *filename)
/* read OUPUT fields */
tpl_skip_whitespace_comments (&datafile_context);
- len = read_keyworddesc (&datafile_context, &buffer, len, filename);
+ len = read_keyworddesc (&datafile_context, &buffer, len);
if (buffer == NULL || strcmp (buffer,"OUTPUT:")!=0)
{
printf ("Error: Unable to read 'OUTPUT:' in file '%s'\n",
@@ -228,7 +226,7 @@ read_description (mpc_fun_param_t* param, const char *filename)
while (!feof (datafile_context.fd))
{
tpl_skip_whitespace_comments (&datafile_context);
- len = read_keyworddesc (&datafile_context, &buffer, len, filename);
+ len = read_keyworddesc (&datafile_context, &buffer, len);
if (buffer == NULL)
{
printf ("Error: Unable to read the output type of the function"
@@ -244,7 +242,7 @@ read_description (mpc_fun_param_t* param, const char *filename)
while (!feof (datafile_context.fd))
{
tpl_skip_whitespace_comments (&datafile_context);
- len = read_keyworddesc (&datafile_context, &buffer, len, filename);
+ len = read_keyworddesc (&datafile_context, &buffer, len);
if (buffer == NULL)
{
printf ("Error: Unable to read the input type of the function"