summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_field.cpp
diff options
context:
space:
mode:
authorgokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-24 19:13:37 +0000
committergokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-24 19:13:37 +0000
commit2c7ab94b37dec1a3b648ed1644d5cd2af9148a92 (patch)
treee61eb50c495655fa7a9139a1744700ba543d4312 /TAO/TAO_IDL/be/be_field.cpp
parent1c4854426598b9b0a9adfe003c9afdca98e26ee3 (diff)
downloadATCD-2c7ab94b37dec1a3b648ed1644d5cd2af9148a92.tar.gz
Typecode table generation and Union private declaration problems fixed.
CVS: CVS:
Diffstat (limited to 'TAO/TAO_IDL/be/be_field.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_field.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/TAO/TAO_IDL/be/be_field.cpp b/TAO/TAO_IDL/be/be_field.cpp
index 635ed6f7ec6..49471ebbafb 100644
--- a/TAO/TAO_IDL/be/be_field.cpp
+++ b/TAO/TAO_IDL/be/be_field.cpp
@@ -2,7 +2,7 @@
//
// = LIBRARY
// TAO IDL
-//
+//
// = FILENAME
// be_field.cpp
//
@@ -12,9 +12,9 @@
//
// = AUTHOR
// Copyright 1994-1995 by Sun Microsystems, Inc.
-// and
+// and
// Aniruddha Gokhale
-//
+//
// ============================================================================
#include "idl.h"
@@ -37,7 +37,7 @@ be_field::be_field (AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p)
// computes the fully scoped name
compute_fullname ();
- // compute the flattened fully scoped name
+ // compute the flattened fully scoped name
compute_flatname ();
}
@@ -45,8 +45,8 @@ be_field::be_field (AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p)
// CODE GENERATION METHODS
// ----------------------------------------
-// Generates the client-side header information for the field
-int
+// Generates the client-side header information for the field
+int
be_field::gen_client_header (void)
{
be_type *bt; // the field type
@@ -68,14 +68,14 @@ be_field::gen_client_header (void)
}
// Generates the client-side stubs for the field
-int
+int
be_field::gen_client_stubs (void)
{
return 0;
}
-// Generates the server-side header information for the field
-int
+// Generates the server-side header information for the field
+int
be_field::gen_server_header (void)
{
// nothing to be done
@@ -83,7 +83,7 @@ be_field::gen_server_header (void)
}
// Generates the server-side skeletons for the field
-int
+int
be_field::gen_server_skeletons (void)
{
// nothing to be done
@@ -91,7 +91,7 @@ be_field::gen_server_skeletons (void)
}
// Generates the client-side inline information
-int
+int
be_field::gen_client_inline (void)
{
// base type may need inline definitions
@@ -102,7 +102,7 @@ be_field::gen_client_inline (void)
}
// Generates the server-side inline
-int
+int
be_field::gen_server_inline (void)
{
// nothing to be done
@@ -148,10 +148,11 @@ be_field::tc_encap_len (void)
// struct member is represented as the "name" followed by the typecode
this->encap_len_ = this->name_encap_len (); // for name
-
+
// add to this, the size of our typecode
bt = be_type::narrow_from_decl (this->field_type ());
- this->encap_len_ += bt->tc_encap_len ();
+ this->encap_len_ += bt->tc_size (); // note that we must add typecode
+ // size of the type
}
return this->encap_len_;
}
@@ -159,4 +160,3 @@ be_field::tc_encap_len (void)
// Narrowing
IMPL_NARROW_METHODS2 (be_field, AST_Field, be_decl)
IMPL_NARROW_FROM_DECL (be_field)
-