main.hh 2.19 KB
Newer Older
Elemer Lelik's avatar
Elemer Lelik committed
1
///////////////////////////////////////////////////////////////////////////////
Elemer Lelik's avatar
Elemer Lelik committed
2
// Copyright (c) 2000-2015 Ericsson Telecom AB
Elemer Lelik's avatar
Elemer Lelik committed
3
4
5
6
7
8
9
10
11
12
13
14
15
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
///////////////////////////////////////////////////////////////////////////////
#ifndef MAIN_H
#define MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

#include "datatypes.h"
Elemer Lelik's avatar
Elemer Lelik committed
16
#include "../common/memory.h"
Elemer Lelik's avatar
Elemer Lelik committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

typedef struct tcov_file_list
{
  struct tcov_file_list *next;
  expstring_t file_name;
} tcov_file_list;

extern const char *get_tcov_file_name(const char *file_name);
extern boolean in_tcov_files(const char *file_name);

extern const char *output_dir, **top_level_pdu, *tcov_file_name;
extern tcov_file_list *tcov_files;
extern expstring_t effective_module_lines;
extern expstring_t effective_module_functions;
extern size_t nof_top_level_pdus;
extern unsigned int nof_notupdated_files;

extern boolean generate_skeleton, force_overwrite, include_line_info,
  include_location_info, duplicate_underscores, parse_only, semantic_check_only,
  output_only_linenum, default_as_optional, use_runtime_2, gcc_compat, asn1_xer,
Elemer Lelik's avatar
Elemer Lelik committed
37
  check_subtype, suppress_context, enable_set_bound_out_param, display_up_to_date,
Elemer Lelik's avatar
Elemer Lelik committed
38
  implicit_json_encoding, json_refs_for_all_types, force_gen_seof,
Elemer Lelik's avatar
Elemer Lelik committed
39
  omit_in_value_list, warnings_for_bad_variants;
Elemer Lelik's avatar
Elemer Lelik committed
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

extern const char *expected_platform;

extern boolean enable_raw(void);
extern boolean enable_ber(void);
extern boolean enable_per(void);
extern boolean enable_text(void);
extern boolean enable_xer(void);
extern boolean enable_json(void);

/**
  * Checks whether the checking of encoding/decoding attributes is disabled.
  *
  * Needed for standard modules where errors are caused by missing attributes
  * (which should not be reported if doing only semantic checking).
  *
  * @return TRUE if checking the encoding/decoding attributes is disabled,
  *   FALSE otherwise.
  **/
extern boolean disable_attribute_validation(void);

extern char *canonize_input_file(const char *path_name);

#ifdef __cplusplus
}
#endif

#endif /* MAIN_H */