&& destref.field->codeset.encoding == sourceref.field->codeset.encoding
)
{
+ // These next tests were added because of the DEBUG- registers, which are
+ // global external, and most of which have a parent. It turns out that
+ // get_location gets flummoxed by that, so we divert it here to the library
+ if( sourceref.field->parent
+ && sourceref.field->data_decl_node
+ && DECL_EXTERNAL(sourceref.field->data_decl_node) )
+ {
+ return false;
+ }
+ if( destref.field->parent
+ && destref.field->data_decl_node
+ && DECL_EXTERNAL(destref.field->data_decl_node) )
+ {
+ return false;
+ }
+
// The source and destination are identical in type and the
- // Source doesn't have a depending_on clause
+ // source doesn't have a depending_on clause
SHOW_PARSE1
{
SHOW_PARSE_INDENT
}
// We are now ready to convert the binary to the packed byte string.
-
+
int ndigits;
if( !(destref.field->attr & packed_no_sign_e) )
{
{5,5,4,0, NULL}, 2, "DEBUG-SUB-3", cp1252 },
{ FldAlphanumeric, register_e | filler_e,
{1,1,0,0, " "}, 2, "FILLER", cp1252 },
- { FldAlphanumeric, signable_e | register_e,
+ { FldAlphanumeric, register_e,
{76,76,0,0, NULL}, 2, "DEBUG-CONTENTS", cp1252 },
};
02 DEBUG-CONTENTS PIC X(76).
*/
-unsigned char __gg__debug_item_data[132] =
+unsigned char __gg__data_debug_item[132] =
" "
"+0000 +0000 +0000 "
" "
" ";
struct cblc_field_t __ggsr__debug_item = {
- .data = __gg__debug_item_data ,
+ .data = __gg__data_debug_item ,
.capacity = 132 ,
.allocated = 132 ,
.offset = 0 ,
.alphabet = 0 ,
};
+unsigned char *__gg__data_debug_line = __gg__data_debug_item;
struct cblc_field_t __ggsr__debug_line = {
- .data = __gg__debug_item_data + 0 ,
+ .data = __gg__data_debug_line ,
.capacity = 6 ,
.allocated = 6 ,
.offset = 0 ,
.alphabet = 0 ,
};
+
+unsigned char *__gg__data_debug_filler_1 = &__gg__data_debug_item[6];
struct cblc_field_t __ggsr__debug_filler_1 = {
- .data = __gg__debug_item_data + 6 ,
+ .data = __gg__data_debug_item ,
.capacity = 1 ,
.allocated = 1 ,
.offset = 6 ,
.alphabet = 0 ,
};
+unsigned char *__gg__data_debug_name = &__gg__data_debug_item[7];
struct cblc_field_t __ggsr__debug_name = {
- .data = __gg__debug_item_data + 7 ,
+ .data = __gg__data_debug_name ,
.capacity = 30 ,
.allocated = 30 ,
.offset = 7 ,
.alphabet = 0 ,
};
+unsigned char *__gg__data_debug_filler_2 = &__gg__data_debug_item[37];
struct cblc_field_t __ggsr__debug_filler_2 = {
- .data = __gg__debug_item_data + 37 ,
+ .data = __gg__data_debug_filler_2 ,
.capacity = 1 ,
.allocated = 1 ,
.offset = 37 ,
.alphabet = 0 ,
};
+unsigned char *__gg__data_debug_sub_1 = &__gg__data_debug_item[38];
struct cblc_field_t __ggsr__debug_sub_1 = {
- .data = __gg__debug_item_data + 38 ,
+ .data = __gg__data_debug_sub_1 ,
.capacity = 5 ,
.allocated = 5 ,
.offset = 38 ,
.alphabet = 0 ,
};
+unsigned char *__gg__data_debug_filler_3 = &__gg__data_debug_item[43];
struct cblc_field_t __ggsr__debug_filler_3 = {
- .data = __gg__debug_item_data + 43,
+ .data = __gg__data_debug_filler_3 ,
.capacity = 1,
.allocated = 1,
.offset = 43,
.alphabet = 0 ,
};
+unsigned char *__gg__data_debug_sub_2 = &__gg__data_debug_item[44];
struct cblc_field_t __ggsr__debug_sub_2 = {
- .data = __gg__debug_item_data + 44 ,
+ .data = __gg__data_debug_sub_2 ,
.capacity = 5 ,
.allocated = 5 ,
.offset = 44 ,
.alphabet = 0 ,
};
+unsigned char *__gg__data_debug_filler_4 = &__gg__data_debug_item[49];
struct cblc_field_t __ggsr__debug_filler_4 = {
- .data = __gg__debug_item_data + 49,
+ .data = __gg__data_debug_filler_4 ,
.capacity = 1,
.allocated = 1,
.offset = 49,
.alphabet = 0 ,
};
+unsigned char *__gg__data_debug_sub_3 = &__gg__data_debug_item[50];
struct cblc_field_t __ggsr__debug_sub_3 = {
- .data = __gg__debug_item_data + 50 ,
+ .data = __gg__data_debug_sub_3 ,
.capacity = 5 ,
.allocated = 5 ,
.offset = 50 ,
.alphabet = 0 ,
};
+unsigned char *__gg__data_debug_filler_5 = &__gg__data_debug_item[55];
struct cblc_field_t __ggsr__debug_filler_5 = {
- .data = __gg__debug_item_data + 55,
+ .data = __gg__data_debug_filler_5 ,
.capacity = 1,
.allocated = 1,
.offset = 55,
.alphabet = 0 ,
};
+unsigned char *__gg__data_debug_contents = &__gg__data_debug_item[56];
struct cblc_field_t __ggsr__debug_contents = {
- .data = __gg__debug_item_data + 56 ,
+ .data = __gg__data_debug_contents ,
.capacity = 76 ,
.allocated = 76 ,
.offset = 56 ,
.parent = &__ggsr__debug_item ,
.occurs_lower = 0 ,
.occurs_upper = 0 ,
- .attr = signable_e | register_e | leading_e | separate_e ,
+ .attr = register_e ,
.type = FldAlphanumeric ,
.level = 05 ,
.digits = 0 ,