112027Sjungma@eit.uni-kl.de/*****************************************************************************
212027Sjungma@eit.uni-kl.de
312027Sjungma@eit.uni-kl.de  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
412027Sjungma@eit.uni-kl.de  more contributor license agreements.  See the NOTICE file distributed
512027Sjungma@eit.uni-kl.de  with this work for additional information regarding copyright ownership.
612027Sjungma@eit.uni-kl.de  Accellera licenses this file to you under the Apache License, Version 2.0
712027Sjungma@eit.uni-kl.de  (the "License"); you may not use this file except in compliance with the
812027Sjungma@eit.uni-kl.de  License.  You may obtain a copy of the License at
912027Sjungma@eit.uni-kl.de
1012027Sjungma@eit.uni-kl.de    http://www.apache.org/licenses/LICENSE-2.0
1112027Sjungma@eit.uni-kl.de
1212027Sjungma@eit.uni-kl.de  Unless required by applicable law or agreed to in writing, software
1312027Sjungma@eit.uni-kl.de  distributed under the License is distributed on an "AS IS" BASIS,
1412027Sjungma@eit.uni-kl.de  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1512027Sjungma@eit.uni-kl.de  implied.  See the License for the specific language governing
1612027Sjungma@eit.uni-kl.de  permissions and limitations under the License.
1712027Sjungma@eit.uni-kl.de
1812027Sjungma@eit.uni-kl.de *****************************************************************************/
1912027Sjungma@eit.uni-kl.de
2012027Sjungma@eit.uni-kl.de/*****************************************************************************
2112027Sjungma@eit.uni-kl.de
2212027Sjungma@eit.uni-kl.de  sc_utils_ids.cpp -- Report ids for the utils code.
2312027Sjungma@eit.uni-kl.de
2412027Sjungma@eit.uni-kl.de  Original Author: Martin Janssen, Synopsys, Inc., 2002-01-17
2512027Sjungma@eit.uni-kl.de
2612027Sjungma@eit.uni-kl.de  CHANGE LOG AT END OF FILE
2712027Sjungma@eit.uni-kl.de *****************************************************************************/
2812027Sjungma@eit.uni-kl.de
2912027Sjungma@eit.uni-kl.de
3012027Sjungma@eit.uni-kl.de#include <cstdlib>
3112027Sjungma@eit.uni-kl.de#include <cstring>
3212027Sjungma@eit.uni-kl.de
3312027Sjungma@eit.uni-kl.de#include "sysc/utils/sc_report.h"
3412027Sjungma@eit.uni-kl.de
3512027Sjungma@eit.uni-kl.de
3612027Sjungma@eit.uni-kl.denamespace sc_core {
3712027Sjungma@eit.uni-kl.de#define SC_DEFINE_MESSAGE(id,unused,text) extern const char id[] = text;
3812027Sjungma@eit.uni-kl.de#include "sysc/utils/sc_utils_ids.h"
3912027Sjungma@eit.uni-kl.de#include "sysc/kernel/sc_kernel_ids.h"
4012027Sjungma@eit.uni-kl.de#include "sysc/communication/sc_communication_ids.h"
4112027Sjungma@eit.uni-kl.de#include "sysc/datatypes/bit/sc_bit_ids.h"
4212027Sjungma@eit.uni-kl.de#include "sysc/datatypes/fx/sc_fx_ids.h"
4312027Sjungma@eit.uni-kl.de#include "sysc/datatypes/int/sc_int_ids.h"
4412027Sjungma@eit.uni-kl.de#include "sysc/tracing/sc_tracing_ids.h"
4512027Sjungma@eit.uni-kl.de#undef SC_DEFINE_MESSAGE
4612027Sjungma@eit.uni-kl.de
4712027Sjungma@eit.uni-kl.de
4812027Sjungma@eit.uni-kl.destatic sc_msg_def texts[] = {
4912027Sjungma@eit.uni-kl.de#define SC_DEFINE_MESSAGE(id,n,unused) \
5012027Sjungma@eit.uni-kl.de    { (id), 0u, {0u}, 0u, {0u}, 0u, 0u, {0u}, 0, n },
5112027Sjungma@eit.uni-kl.de
5212027Sjungma@eit.uni-kl.de#undef SC_UTILS_IDS_H
5312027Sjungma@eit.uni-kl.de#include "sysc/utils/sc_utils_ids.h"
5412027Sjungma@eit.uni-kl.de
5512027Sjungma@eit.uni-kl.de#undef SC_KERNEL_IDS_H
5612027Sjungma@eit.uni-kl.de#include "sysc/kernel/sc_kernel_ids.h"
5712027Sjungma@eit.uni-kl.de
5812027Sjungma@eit.uni-kl.de#undef SC_COMMUNICATION_IDS_H
5912027Sjungma@eit.uni-kl.de#include "sysc/communication/sc_communication_ids.h"
6012027Sjungma@eit.uni-kl.de
6112027Sjungma@eit.uni-kl.de#undef SC_BIT_IDS_H
6212027Sjungma@eit.uni-kl.de#include "sysc/datatypes/bit/sc_bit_ids.h"
6312027Sjungma@eit.uni-kl.de
6412027Sjungma@eit.uni-kl.de#undef SC_FX_IDS_H
6512027Sjungma@eit.uni-kl.de#include "sysc/datatypes/fx/sc_fx_ids.h"
6612027Sjungma@eit.uni-kl.de
6712027Sjungma@eit.uni-kl.de#undef SC_INT_IDS_H
6812027Sjungma@eit.uni-kl.de#include "sysc/datatypes/int/sc_int_ids.h"
6912027Sjungma@eit.uni-kl.de
7012027Sjungma@eit.uni-kl.de#undef SC_TRACING_IDS_H
7112027Sjungma@eit.uni-kl.de#include "sysc/tracing/sc_tracing_ids.h"
7212027Sjungma@eit.uni-kl.de
7312027Sjungma@eit.uni-kl.de#undef SC_DEFINE_MESSAGE
7412027Sjungma@eit.uni-kl.de};
7512027Sjungma@eit.uni-kl.destatic sc_report_handler::msg_def_items items = {
7612027Sjungma@eit.uni-kl.de    texts, sizeof(texts)/sizeof(*texts), false, 0
7712027Sjungma@eit.uni-kl.de};
7812027Sjungma@eit.uni-kl.de
7912027Sjungma@eit.uni-kl.destatic
8012027Sjungma@eit.uni-kl.deint initialize()
8112027Sjungma@eit.uni-kl.de{
8212027Sjungma@eit.uni-kl.de    sc_report_handler::add_static_msg_types(&items);
8312027Sjungma@eit.uni-kl.de
8412027Sjungma@eit.uni-kl.de    // PROCESS ANY ENVIRONMENTAL OVERRIDES:
8512027Sjungma@eit.uni-kl.de
8612027Sjungma@eit.uni-kl.de    const char* deprecation_warn = std::getenv("SC_DEPRECATION_WARNINGS");
8712027Sjungma@eit.uni-kl.de    if ( (deprecation_warn!=0) && !std::strcmp(deprecation_warn,"DISABLE") )
8812027Sjungma@eit.uni-kl.de    {
8912027Sjungma@eit.uni-kl.de        sc_report_handler::set_actions( SC_ID_IEEE_1666_DEPRECATION_
9012027Sjungma@eit.uni-kl.de                                      , SC_DO_NOTHING);
9112027Sjungma@eit.uni-kl.de    }
9212027Sjungma@eit.uni-kl.de    return 42;
9312027Sjungma@eit.uni-kl.de}
9412027Sjungma@eit.uni-kl.de
9512027Sjungma@eit.uni-kl.destatic int forty_two = initialize();
9612027Sjungma@eit.uni-kl.de
9712027Sjungma@eit.uni-kl.de} // namespace sc_core
9812027Sjungma@eit.uni-kl.de
9912027Sjungma@eit.uni-kl.de/*****************************************************************************
10012027Sjungma@eit.uni-kl.de
10112027Sjungma@eit.uni-kl.de  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
10212027Sjungma@eit.uni-kl.de  changes you are making here.
10312027Sjungma@eit.uni-kl.de
10412027Sjungma@eit.uni-kl.de      Name, Affiliation, Date:
10512027Sjungma@eit.uni-kl.de  Description of Modification:
10612027Sjungma@eit.uni-kl.de
10712027Sjungma@eit.uni-kl.de  Alex Riesen, Synopsys, Inc., 2003-02-02
10812027Sjungma@eit.uni-kl.de  ported to SystemC 2.1 exception reporting.
10912027Sjungma@eit.uni-kl.de
11012027Sjungma@eit.uni-kl.de *****************************************************************************/
11112027Sjungma@eit.uni-kl.de
11212027Sjungma@eit.uni-kl.de
11312027Sjungma@eit.uni-kl.de// $Log: sc_utils_ids.cpp,v $
11412027Sjungma@eit.uni-kl.de// Revision 1.5  2011/08/26 20:46:19  acg
11512027Sjungma@eit.uni-kl.de//  Andy Goodrich: moved the modification log to the end of the file to
11612027Sjungma@eit.uni-kl.de//  eliminate source line number skew when check-ins are done.
11712027Sjungma@eit.uni-kl.de//
11812027Sjungma@eit.uni-kl.de// Revision 1.4  2011/02/18 20:38:44  acg
11912027Sjungma@eit.uni-kl.de//  Andy Goodrich: Updated Copyright notice.
12012027Sjungma@eit.uni-kl.de//
12112027Sjungma@eit.uni-kl.de// Revision 1.3  2009/02/28 00:27:57  acg
12212027Sjungma@eit.uni-kl.de//  Andy Goodrich: includes for C++ library types to keep compiler happy.
12312027Sjungma@eit.uni-kl.de//
12412027Sjungma@eit.uni-kl.de// Revision 1.2  2008/05/20 20:43:21  acg
12512027Sjungma@eit.uni-kl.de//  Andy Goodrich: Added includes <cstdlib> and <cstring> to pick up their
12612027Sjungma@eit.uni-kl.de//  declarations.
12712027Sjungma@eit.uni-kl.de//
12812027Sjungma@eit.uni-kl.de// Revision 1.1.1.1  2006/12/15 20:20:06  acg
12912027Sjungma@eit.uni-kl.de// SystemC 2.3
13012027Sjungma@eit.uni-kl.de//
13112027Sjungma@eit.uni-kl.de// Revision 1.6  2006/01/31 21:42:07  acg
13212027Sjungma@eit.uni-kl.de//  Andy Goodrich: Added checks for SC_DEPRECATED_WARNINGS being defined as
13312027Sjungma@eit.uni-kl.de//  DISABLED. If so, we turn off the /IEEE_Std_1666/deprecated message group.
13412027Sjungma@eit.uni-kl.de//
13512027Sjungma@eit.uni-kl.de// Revision 1.5  2006/01/24 21:59:59  acg
13612027Sjungma@eit.uni-kl.de//  Andy Goodrich: removed sc_trace_ids.h since its only message has been
13712027Sjungma@eit.uni-kl.de//  replaced by SC_ID_IEEE_1666_DEPRECATION_ message.
13812027Sjungma@eit.uni-kl.de//
13912027Sjungma@eit.uni-kl.de// Revision 1.4  2006/01/24 20:53:41  acg
14012027Sjungma@eit.uni-kl.de// Andy Goodrich: added warnings indicating that use of integer ids in reports
14112027Sjungma@eit.uni-kl.de// is deprecated. Added tracing/sc_trace_ids.h to message list.
14212027Sjungma@eit.uni-kl.de//
14312027Sjungma@eit.uni-kl.de// Revision 1.3  2006/01/13 18:53:11  acg
14412027Sjungma@eit.uni-kl.de// Andy Goodrich: Added $Log command so that CVS comments are reproduced in
14512027Sjungma@eit.uni-kl.de// the source.
14612027Sjungma@eit.uni-kl.de
14712027Sjungma@eit.uni-kl.de// Taf!
148