Merge pull request #65 from BenceJanosSzabo/master
[deliverable/titan.core.git] / compiler2 / main.hh
CommitLineData
d44e3c4f 1/******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
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 * Contributors:
9 * Baji, Laszlo
10 * Balasko, Jeno
11 * Baranyi, Botond
12 * Delic, Adam
13 * Forstner, Matyas
14 * Kovacs, Ferenc
15 * Kremer, Peter
16 * Raduly, Csaba
17 * Szabados, Kristof
18 * Szabo, Janos Zoltan – initial implementation
19 *
20 ******************************************************************************/
970ed795
EL
21#ifndef MAIN_H
22#define MAIN_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include "datatypes.h"
a38c6d4c 29#include "../common/memory.h"
970ed795
EL
30
31typedef struct tcov_file_list
32{
33 struct tcov_file_list *next;
34 expstring_t file_name;
35} tcov_file_list;
36
37extern const char *get_tcov_file_name(const char *file_name);
38extern boolean in_tcov_files(const char *file_name);
39
40extern const char *output_dir, **top_level_pdu, *tcov_file_name;
41extern tcov_file_list *tcov_files;
42extern expstring_t effective_module_lines;
43extern expstring_t effective_module_functions;
44extern size_t nof_top_level_pdus;
45extern unsigned int nof_notupdated_files;
46
47extern boolean generate_skeleton, force_overwrite, include_line_info,
48 include_location_info, duplicate_underscores, parse_only, semantic_check_only,
49 output_only_linenum, default_as_optional, use_runtime_2, gcc_compat, asn1_xer,
af710487 50 check_subtype, suppress_context, enable_set_bound_out_param, display_up_to_date,
3abe9331 51 implicit_json_encoding, json_refs_for_all_types, force_gen_seof,
66d5fa86
BB
52 omit_in_value_list, warnings_for_bad_variants, debugger_active,
53 legacy_unbound_union_fields;
970ed795
EL
54
55extern const char *expected_platform;
56
57extern boolean enable_raw(void);
58extern boolean enable_ber(void);
59extern boolean enable_per(void);
60extern boolean enable_text(void);
61extern boolean enable_xer(void);
62extern boolean enable_json(void);
63
64/**
65 * Checks whether the checking of encoding/decoding attributes is disabled.
66 *
67 * Needed for standard modules where errors are caused by missing attributes
68 * (which should not be reported if doing only semantic checking).
69 *
70 * @return TRUE if checking the encoding/decoding attributes is disabled,
71 * FALSE otherwise.
72 **/
73extern boolean disable_attribute_validation(void);
74
75extern char *canonize_input_file(const char *path_name);
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* MAIN_H */
This page took 0.026774 seconds and 5 git commands to generate.