• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nasa / trick / 21192220067

21 Jan 2026 12:15AM UTC coverage: 55.577% (-0.003%) from 55.58%
21192220067

Pull #2028

github

web-flow
Merge f43251a11 into 771012348
Pull Request #2028: Fixed the condition for stl only case so char* or char[] size calculation gets to normal handling

1 of 3 new or added lines in 1 file covered. (33.33%)

125 existing lines in 5 files now uncovered.

12506 of 22502 relevant lines covered (55.58%)

296541.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/include/trick/reference.h
1
/*
2
PURPOSE:
3
    (Data structure typedef for parameter attributes used by executive IO
4
        routines and filled by the interface code generator.)
5

6
PROGRAMMERS:
7
    ((Robert W. Bailey) (LinCom Corp) (September 1990) (Initial Release.))
8
*/
9

10
#ifndef REFERENCE_H
11
#define REFERENCE_H
12

13
#include "trick/attributes.h"
14
#include "trick/value.h"
15
#include "trick/dllist.h"
16

17
// FIXME These ERROR CODES
18
#define TRICK_NO_ERROR 0
19
#define TRICK_PARAMETER_ARRAY_SIZE 6
20
#define TRICK_PARAMETER_ADDRESS_NULL 7
21
#define TRICK_UNITS_CONVERSION_ERROR 8
22

23
#ifdef __cplusplus
24
extern "C" {
25
#endif
26

27
typedef enum {
28
    REF_ADDRESS = 0,
29
    REF_VALUE   = 1,
30
    REF_INVALID = 99
31
} REF_TYPE;
32

33
typedef enum {
34
    AO_ADDRESS ,
35
    AO_OFFSET ,
36
    AO_DEREFERENCE
37
} ADDRESS_OPERATOR ;
38

39
typedef union {
40
    void * address ;
41
    long offset ;
42
} ADDRESS_OPERAND ;
43

44
typedef struct {
45
    ADDRESS_OPERATOR operator_ ;
46
    ADDRESS_OPERAND operand ;
47
} ADDRESS_NODE ;
48

49
/**
50
 * The REF2 data structure represents a value or a reference to a value.
51
 */
52
typedef struct {
53
    char* reference;        /**< -- Main buffer for variable reference */
54
    int   num_index;        /**< -- num index for last level of reference */
55
    char* units;            /**< -- Units as specified in input runstream */
56
    int   num_index_left;   /**< -- FIXME OBSOLETE Number of remaining indicies to specify */
57
    int   pointer_present;  /**< -- 0 = no , 1 = yes (address could change) */
58
    int   ref_type;         /**< -- 0 = address, 1 = value. */
59
    void* address;          /**< ** Address of the specified reference */
60
    V_DATA v_data;          /**< ** Value */
61
    ATTRIBUTES* attr;       /**< -- Parameter attributes */
62
    ATTRIBUTES* ref_attr;   /**< -- Dynamically allocated reference attribute. */
63
    int create_add_path ;   /**< ** bool to shortcut to resolve address */
64
    DLLIST * address_path ; /**< ** shortcut to resolve address */
65
} REF2;
66

67
/**
68
 * Get the value of the variable referenced by R.
69
 * @param R variable reference.
70
 * @param V pointer to V_DATA object into which the value is to be assigned.
71
 * @todo isn't this obsolete?
72
 */
UNCOV
73
int ref_to_value( REF2* R, V_DATA* V);
×
74

75
#ifdef __cplusplus
76
}
77
#endif
78
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc