Sync with 5.4.0
[deliverable/titan.core.git] / compiler2 / main.hh
CommitLineData
970ed795 1///////////////////////////////////////////////////////////////////////////////
3abe9331 2// Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
3// All rights reserved. This program and the accompanying materials
4// are made available under the terms of the Eclipse Public License v1.0
5// which accompanies this distribution, and is available at
6// http://www.eclipse.org/legal/epl-v10.html
7///////////////////////////////////////////////////////////////////////////////
8#ifndef MAIN_H
9#define MAIN_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include "datatypes.h"
a38c6d4c 16#include "../common/memory.h"
970ed795
EL
17
18typedef struct tcov_file_list
19{
20 struct tcov_file_list *next;
21 expstring_t file_name;
22} tcov_file_list;
23
24extern const char *get_tcov_file_name(const char *file_name);
25extern boolean in_tcov_files(const char *file_name);
26
27extern const char *output_dir, **top_level_pdu, *tcov_file_name;
28extern tcov_file_list *tcov_files;
29extern expstring_t effective_module_lines;
30extern expstring_t effective_module_functions;
31extern size_t nof_top_level_pdus;
32extern unsigned int nof_notupdated_files;
33
34extern boolean generate_skeleton, force_overwrite, include_line_info,
35 include_location_info, duplicate_underscores, parse_only, semantic_check_only,
36 output_only_linenum, default_as_optional, use_runtime_2, gcc_compat, asn1_xer,
af710487 37 check_subtype, suppress_context, enable_set_bound_out_param, display_up_to_date,
3abe9331 38 implicit_json_encoding, json_refs_for_all_types, force_gen_seof,
39 omit_in_value_list;
970ed795
EL
40
41extern const char *expected_platform;
42
43extern boolean enable_raw(void);
44extern boolean enable_ber(void);
45extern boolean enable_per(void);
46extern boolean enable_text(void);
47extern boolean enable_xer(void);
48extern boolean enable_json(void);
49
50/**
51 * Checks whether the checking of encoding/decoding attributes is disabled.
52 *
53 * Needed for standard modules where errors are caused by missing attributes
54 * (which should not be reported if doing only semantic checking).
55 *
56 * @return TRUE if checking the encoding/decoding attributes is disabled,
57 * FALSE otherwise.
58 **/
59extern boolean disable_attribute_validation(void);
60
61extern char *canonize_input_file(const char *path_name);
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* MAIN_H */
This page took 0.027369 seconds and 5 git commands to generate.