1
1

- Declare functions in lex-files as extern "C" {} to get

rid of warnings.

This commit was SVN r19132.
Этот коммит содержится в:
Rainer Keller 2008-08-04 11:49:01 +00:00
родитель 7d1f6d42ab
Коммит 0d08866786
4 изменённых файлов: 32 добавлений и 1 удалений

Просмотреть файл

@ -35,6 +35,10 @@
#include <stdio.h>
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
int btl_openib_ini_yylex(void);
int btl_openib_ini_init_buffer(FILE *file);
@ -66,4 +70,8 @@ enum {
BTL_OPENIB_INI_PARSE_MAX
};
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

Просмотреть файл

@ -27,12 +27,20 @@
#include "btl_openib_lex.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* local functions
*/
static int finish_parsing(void) ;
static int btl_openib_ini_yywrap(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
* global variables
*/

Просмотреть файл

@ -35,6 +35,10 @@
#include <stdio.h>
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
typedef union {
int ival;
char* sval;
@ -71,5 +75,10 @@ int orte_rmaps_rank_file_wrap(void);
#define ORTE_RANKFILE_NEWLINE 13
#define ORTE_RANKFILE_IPV6 14
#define ORTE_RANKFILE_SLOT 15
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

Просмотреть файл

@ -26,16 +26,22 @@
#endif
#include "orte/mca/rmaps/rank_file/rmaps_rank_file_lex.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* local functions
*/
int orte_rmaps_rank_file_wrap(void)
{
orte_rmaps_rank_file_done = true;
return 1;
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
* global variables