symbol name pollution: making some vars static
As part of addressing symbol name pollution, I'm switching a few vars/functions to static. Signed-off-by: Mark Allen <markalle@us.ibm.com>
Этот коммит содержится в:
родитель
f0af4636ce
Коммит
efc25168cd
@ -14,6 +14,7 @@
|
||||
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2015 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* Copyright (c) 2017 IBM Corporation. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -43,7 +44,7 @@ static opal_dss_buffer_type_t default_buf_type = OPAL_DSS_BUFFER_NON_DESC;
|
||||
/* variable group id */
|
||||
static int opal_dss_group_id = -1;
|
||||
|
||||
mca_base_var_enum_value_t buffer_type_values[] = {
|
||||
static mca_base_var_enum_value_t buffer_type_values[] = {
|
||||
{OPAL_DSS_BUFFER_NON_DESC, "non-described"},
|
||||
{OPAL_DSS_BUFFER_FULLY_DESC, "described"},
|
||||
{0, NULL}
|
||||
|
@ -16,6 +16,7 @@
|
||||
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2015 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* Copyright (c) 2017 IBM Corporation. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -102,7 +103,7 @@ const size_t var_type_sizes[] = {
|
||||
sizeof (double)
|
||||
};
|
||||
|
||||
const char *var_source_names[] = {
|
||||
static const char *var_source_names[] = {
|
||||
"default",
|
||||
"command line",
|
||||
"environment",
|
||||
|
@ -15,6 +15,7 @@
|
||||
* reserved.
|
||||
* Copyright (c) 2017 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* Copyright (c) 2017 IBM Corporation. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -40,7 +41,7 @@ OBJ_CLASS_INSTANCE(mca_base_var_enum_t, opal_object_t, mca_base_var_enum_constru
|
||||
|
||||
static void mca_base_var_enum_flag_constructor (mca_base_var_enum_flag_t *enumerator);
|
||||
static void mca_base_var_enum_flag_destructor (mca_base_var_enum_flag_t *enumerator);
|
||||
OBJ_CLASS_INSTANCE(mca_base_var_enum_flag_t, opal_object_t, mca_base_var_enum_flag_constructor,
|
||||
static OBJ_CLASS_INSTANCE(mca_base_var_enum_flag_t, opal_object_t, mca_base_var_enum_flag_constructor,
|
||||
mca_base_var_enum_flag_destructor);
|
||||
|
||||
static int enum_dump (mca_base_var_enum_t *self, char **out);
|
||||
|
@ -2113,7 +2113,7 @@ _evutil_weakrand(void)
|
||||
* Volatile pointer to memset: we use this to keep the compiler from
|
||||
* eliminating our call to memset.
|
||||
*/
|
||||
void * (*volatile evutil_memset_volatile_)(void *, int, size_t) = memset;
|
||||
static void * (*volatile evutil_memset_volatile_)(void *, int, size_t) = memset;
|
||||
|
||||
void
|
||||
evutil_memclear_(void *mem, size_t len)
|
||||
|
@ -15,6 +15,7 @@
|
||||
* Copyright (c) 2015 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* Copyright (c) 2017 FUJITSU LIMITED. All rights reserved.
|
||||
* Copyright (c) 2017 IBM Corporation. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -48,7 +49,7 @@ struct converter_info_t {
|
||||
typedef struct converter_info_t converter_info_t;
|
||||
|
||||
/* all default to NULL */
|
||||
converter_info_t converters[MAX_CONVERTERS] = {{0}};
|
||||
static converter_info_t converters[MAX_CONVERTERS] = {{0}};
|
||||
|
||||
static int
|
||||
opal_strerror_int(int errnum, const char **str)
|
||||
|
@ -15,6 +15,7 @@
|
||||
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2017 IBM Corporation. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -89,7 +90,7 @@ static opal_event_t int_handler;
|
||||
static opal_event_t epipe_handler;
|
||||
static opal_event_t sigusr1_handler;
|
||||
static opal_event_t sigusr2_handler;
|
||||
char *log_path = NULL;
|
||||
static char *log_path = NULL;
|
||||
static void shutdown_signal(int fd, short flags, void *arg);
|
||||
static void signal_callback(int fd, short flags, void *arg);
|
||||
static void epipe_signal_callback(int fd, short flags, void *arg);
|
||||
|
@ -13,6 +13,7 @@
|
||||
* Copyright (c) 2012-2013 Los Alamos National Security, LLC.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2016-2017 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2017 IBM Corporation. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -83,7 +84,7 @@ typedef struct {
|
||||
|
||||
static void tuple_list_item_constructor(tuple_list_item_t *obj);
|
||||
static void tuple_list_item_destructor(tuple_list_item_t *obj);
|
||||
OBJ_CLASS_INSTANCE(tuple_list_item_t, opal_list_item_t,
|
||||
static OBJ_CLASS_INSTANCE(tuple_list_item_t, opal_list_item_t,
|
||||
tuple_list_item_constructor,
|
||||
tuple_list_item_destructor);
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user