implemented new code splitting mechanism (split to equal slices)
[deliverable/titan.core.git] / compiler2 / main.hh
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, Bence Janos
19 * Szabo, Janos Zoltan – initial implementation
20 *
21 ******************************************************************************/
22 #ifndef MAIN_H
23 #define MAIN_H
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 #include "datatypes.h"
30 #include "../common/memory.h"
31
32 typedef struct tcov_file_list
33 {
34 struct tcov_file_list *next;
35 expstring_t file_name;
36 } tcov_file_list;
37
38 extern const char *get_tcov_file_name(const char *file_name);
39 extern boolean in_tcov_files(const char *file_name);
40
41 extern const char *output_dir, **top_level_pdu, *tcov_file_name;
42 extern tcov_file_list *tcov_files;
43 extern expstring_t effective_module_lines;
44 extern expstring_t effective_module_functions;
45 extern size_t nof_top_level_pdus;
46 extern unsigned int nof_notupdated_files;
47
48 extern boolean generate_skeleton, force_overwrite, include_line_info,
49 include_location_info, duplicate_underscores, parse_only, semantic_check_only,
50 output_only_linenum, default_as_optional, use_runtime_2, gcc_compat, asn1_xer,
51 check_subtype, suppress_context, enable_set_bound_out_param, display_up_to_date,
52 implicit_json_encoding, json_refs_for_all_types, force_gen_seof,
53 omit_in_value_list, warnings_for_bad_variants, debugger_active,
54 legacy_unbound_union_fields, split_to_slices;
55
56 extern const char *expected_platform;
57
58 extern boolean enable_raw(void);
59 extern boolean enable_ber(void);
60 extern boolean enable_per(void);
61 extern boolean enable_text(void);
62 extern boolean enable_xer(void);
63 extern boolean enable_json(void);
64
65 /**
66 * Checks whether the checking of encoding/decoding attributes is disabled.
67 *
68 * Needed for standard modules where errors are caused by missing attributes
69 * (which should not be reported if doing only semantic checking).
70 *
71 * @return TRUE if checking the encoding/decoding attributes is disabled,
72 * FALSE otherwise.
73 **/
74 extern boolean disable_attribute_validation(void);
75
76 extern char *canonize_input_file(const char *path_name);
77
78 #ifdef __cplusplus
79 }
80 #endif
81
82 #endif /* MAIN_H */
This page took 0.037789 seconds and 5 git commands to generate.