Author: paultcochrane
Date: Sat Mar 31 08:31:44 2007
New Revision: 17898
Modified:
trunk/languages/dotnet/ops/dotnet.ops
trunk/languages/dotnet/pmc/dotnetassembly.pmc
trunk/languages/dotnet/pmc/dotnetsignature.pmc
trunk/languages/dotnet/pmc/int64.pmc
trunk/languages/dotnet/pmc/uint64.pmc
Log:
[dotnet] Corrected parenthesis-spacing issues as per coding standards.
Modified: trunk/languages/dotnet/ops/dotnet.ops
==============================================================================
--- trunk/languages/dotnet/ops/dotnet.ops (original)
+++ trunk/languages/dotnet/ops/dotnet.ops Sat Mar 31 08:31:44 2007
@@ -89,7 +89,7 @@
if ($2->vtable->isa(interp, $2,
string_from_const_cstring(interp, "UInt64", 0)))
{
- struct dotnet_uint64* i = mem_sys_allocate(sizeof(struct
dotnet_uint64));
+ struct dotnet_uint64* i = mem_sys_allocate(sizeof (struct
dotnet_uint64));
struct dotnet_uint64 *i1 = PMC_struct_val($2);
struct dotnet_uint64 *i2 = PMC_struct_val($3);
$1 = pmc_new(interp, pmc_type(interp,
@@ -117,7 +117,7 @@
if ($2->vtable->isa(interp, $2,
string_from_const_cstring(interp, "UInt64", 0)))
{
- struct dotnet_uint64* i = mem_sys_allocate(sizeof(struct
dotnet_uint64));
+ struct dotnet_uint64* i = mem_sys_allocate(sizeof (struct
dotnet_uint64));
struct dotnet_uint64 *i1 = PMC_struct_val($2);
struct dotnet_uint64 *i2 = PMC_struct_val($3);
$1 = pmc_new(interp, pmc_type(interp,
@@ -166,7 +166,7 @@
}
else
{
- struct dotnet_int64* i = mem_sys_allocate(sizeof(struct
dotnet_int64));
+ struct dotnet_int64* i = mem_sys_allocate(sizeof (struct
dotnet_int64));
$1 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "Int64", 0)));
PMC_struct_val($1) = i;
@@ -221,7 +221,7 @@
}
else
{
- struct dotnet_uint64* i = mem_sys_allocate(sizeof(struct
dotnet_uint64));
+ struct dotnet_uint64* i = mem_sys_allocate(sizeof (struct
dotnet_uint64));
$1 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "UInt64", 0)));
PMC_struct_val($1) = i;
@@ -276,7 +276,7 @@
}
else
{
- struct dotnet_int64* i = mem_sys_allocate(sizeof(struct
dotnet_int64));
+ struct dotnet_int64* i = mem_sys_allocate(sizeof (struct
dotnet_int64));
$1 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "Int64", 0)));
PMC_struct_val($1) = i;
@@ -331,7 +331,7 @@
}
else
{
- struct dotnet_uint64* i = mem_sys_allocate(sizeof(struct
dotnet_uint64));
+ struct dotnet_uint64* i = mem_sys_allocate(sizeof (struct
dotnet_uint64));
$1 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "UInt64", 0)));
PMC_struct_val($1) = i;
@@ -386,7 +386,7 @@
}
else
{
- struct dotnet_int64* i = mem_sys_allocate(sizeof(struct
dotnet_int64));
+ struct dotnet_int64* i = mem_sys_allocate(sizeof (struct
dotnet_int64));
$1 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "Int64", 0)));
PMC_struct_val($1) = i;
@@ -441,7 +441,7 @@
}
else
{
- struct dotnet_uint64* i = mem_sys_allocate(sizeof(struct
dotnet_uint64));
+ struct dotnet_uint64* i = mem_sys_allocate(sizeof (struct
dotnet_uint64));
$1 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "UInt64", 0)));
PMC_struct_val($1) = i;
@@ -854,7 +854,7 @@
inline op net_conv_i8(out PMC, in INT) :base_core {
PMC* i8 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "Int64", 0)));
- struct dotnet_int64* i = mem_sys_allocate(sizeof(struct dotnet_int64));
+ struct dotnet_int64* i = mem_sys_allocate(sizeof (struct dotnet_int64));
PMC_struct_val(i8) = i;
i->x = $2;
$1 = i8;
@@ -864,7 +864,7 @@
inline op net_conv_i8(out PMC, in NUM) :base_core {
PMC* i8 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "Int64", 0)));
- struct dotnet_int64* i = mem_sys_allocate(sizeof(struct dotnet_int64));
+ struct dotnet_int64* i = mem_sys_allocate(sizeof (struct dotnet_int64));
PMC_struct_val(i8) = i;
i->x = (HUGEINTVAL) $2;
$1 = i8;
@@ -874,7 +874,7 @@
inline op net_conv_u8(out PMC, in INT) :base_core {
PMC* u8 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "UInt64", 0)));
- struct dotnet_uint64* ui = mem_sys_allocate(sizeof(struct dotnet_uint64));
+ struct dotnet_uint64* ui = mem_sys_allocate(sizeof (struct dotnet_uint64));
PMC_struct_val(u8) = ui;
ui->x = $2;
$1 = u8;
@@ -884,7 +884,7 @@
inline op net_conv_u8(out PMC, in NUM) :base_core {
PMC* u8 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "UInt64", 0)));
- struct dotnet_uint64* ui = mem_sys_allocate(sizeof(struct dotnet_uint64));
+ struct dotnet_uint64* ui = mem_sys_allocate(sizeof (struct dotnet_uint64));
PMC_struct_val(u8) = ui;
ui->x = (UHUGEINTVAL) $2;
$1 = u8;
@@ -1623,7 +1623,7 @@
}
else
{
- struct dotnet_int64* i = mem_sys_allocate(sizeof(struct dotnet_int64));
+ struct dotnet_int64* i = mem_sys_allocate(sizeof (struct
dotnet_int64));
$1 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "Int64", 0)));
PMC_struct_val($1) = i;
@@ -1641,7 +1641,7 @@
}
else
{
- struct dotnet_uint64* i = mem_sys_allocate(sizeof(struct
dotnet_uint64));
+ struct dotnet_uint64* i = mem_sys_allocate(sizeof (struct
dotnet_uint64));
$1 = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "UInt64", 0)));
PMC_struct_val($1) = i;
@@ -1688,7 +1688,7 @@
PMC* mp = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "ManagedPointer", 0)));
struct dotnet_managed_ptr* managed_ptr = mem_sys_allocate(
- sizeof(struct dotnet_managed_ptr));
+ sizeof (struct dotnet_managed_ptr));
PMC_struct_val(mp) = managed_ptr;
/* Stash away array details inside the pointer struct. */
@@ -1706,7 +1706,7 @@
PMC* mp = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "ManagedPointer", 0)));
struct dotnet_managed_ptr* managed_ptr = mem_sys_allocate(
- sizeof(struct dotnet_managed_ptr));
+ sizeof (struct dotnet_managed_ptr));
PMC_struct_val(mp) = managed_ptr;
/* Stash away array details inside the pointer struct. */
@@ -1724,7 +1724,7 @@
PMC* mp = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "ManagedPointer", 0)));
struct dotnet_managed_ptr* managed_ptr = mem_sys_allocate(
- sizeof(struct dotnet_managed_ptr));
+ sizeof (struct dotnet_managed_ptr));
PMC_struct_val(mp) = managed_ptr;
/* Stash away field details inside the pointer struct. */
@@ -1742,7 +1742,7 @@
PMC* mp = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "ManagedPointer", 0)));
struct dotnet_managed_ptr* managed_ptr = mem_sys_allocate(
- sizeof(struct dotnet_managed_ptr));
+ sizeof (struct dotnet_managed_ptr));
PMC_struct_val(mp) = managed_ptr;
/* Set up the pointer to the register. */
@@ -1761,7 +1761,7 @@
PMC* mp = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "ManagedPointer", 0)));
struct dotnet_managed_ptr* managed_ptr = mem_sys_allocate(
- sizeof(struct dotnet_managed_ptr));
+ sizeof (struct dotnet_managed_ptr));
PMC_struct_val(mp) = managed_ptr;
/* Set up the pointer to the register. */
@@ -1780,7 +1780,7 @@
PMC* mp = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "ManagedPointer", 0)));
struct dotnet_managed_ptr* managed_ptr = mem_sys_allocate(
- sizeof(struct dotnet_managed_ptr));
+ sizeof (struct dotnet_managed_ptr));
PMC_struct_val(mp) = managed_ptr;
/* Set up the pointer to the register. */
@@ -1799,7 +1799,7 @@
PMC* mp = pmc_new(interp, pmc_type(interp,
string_from_const_cstring(interp, "ManagedPointer", 0)));
struct dotnet_managed_ptr* managed_ptr = mem_sys_allocate(
- sizeof(struct dotnet_managed_ptr));
+ sizeof (struct dotnet_managed_ptr));
PMC_struct_val(mp) = managed_ptr;
/* Set up the pointer to the PMC. */
Modified: trunk/languages/dotnet/pmc/dotnetassembly.pmc
==============================================================================
--- trunk/languages/dotnet/pmc/dotnetassembly.pmc (original)
+++ trunk/languages/dotnet/pmc/dotnetassembly.pmc Sat Mar 31 08:31:44 2007
@@ -38,8 +38,7 @@
/* This creates a new dotnet_assembly structure and sets the filename. */
static struct dotnet_assembly* new_dotnet_assembly(STRING *s)
{
- struct dotnet_assembly *ass = mem_sys_allocate_zeroed(
- sizeof(struct dotnet_assembly));
+ struct dotnet_assembly *ass = mem_sys_allocate_zeroed(sizeof (struct
dotnet_assembly));
ass->filename = s;
return ass;
}
@@ -689,7 +688,7 @@
/* Create new PMC, underlying struct and tie 'em together. */
PMC *bc = pmc_new(INTERP, dynclass_DotNetBytecode);
- struct dotnet_bytecode *bytecode = mem_sys_allocate_zeroed(sizeof(struct
dotnet_bytecode));
+ struct dotnet_bytecode *bytecode = mem_sys_allocate_zeroed(sizeof (struct
dotnet_bytecode));
PMC_struct_val(bc) = bytecode;
/* Resolve RVA to file position. */
@@ -796,7 +795,7 @@
/* Create PMC, underlying struct and tie 'em together.
*/
PMC *eh = pmc_new(INTERP, dynclass_DotNetEH);
struct dotnet_eh *handler =
- mem_sys_allocate_zeroed(sizeof(struct dotnet_eh));
+ mem_sys_allocate_zeroed(sizeof (struct dotnet_eh));
PMC_struct_val(eh) = handler;
/* Read data and stash it in the struct. */
@@ -834,7 +833,7 @@
/* Create PMC, underlying struct and tie 'em together.
*/
PMC *eh = pmc_new(INTERP, dynclass_DotNetEH);
struct dotnet_eh *handler =
- mem_sys_allocate_zeroed(sizeof(struct dotnet_eh));
+ mem_sys_allocate_zeroed(sizeof (struct dotnet_eh));
PMC_struct_val(eh) = handler;
/* Read data and stash it in the struct. */
@@ -890,7 +889,7 @@
/* Create new PMC, underlying struct and tie 'em together. */
PMC *p = pmc_new(INTERP, dynclass_DotNetParamMetadata);
- struct dotnet_param *param = mem_sys_allocate_zeroed(sizeof(struct
dotnet_param));
+ struct dotnet_param *param = mem_sys_allocate_zeroed(sizeof (struct
dotnet_param));
PMC_struct_val(p) = param;
/* Sanity check. */
@@ -938,7 +937,7 @@
/* Create new PMC, underlying struct and tie 'em together. */
PMC *f = pmc_new(INTERP, dynclass_DotNetFieldMetadata);
- struct dotnet_field *field = mem_sys_allocate_zeroed(sizeof(struct
dotnet_field));
+ struct dotnet_field *field = mem_sys_allocate_zeroed(sizeof (struct
dotnet_field));
PMC_struct_val(f) = field;
/* Sanity check. */
@@ -1001,7 +1000,7 @@
/* Create new PMC, underlying struct and tie 'em together. */
PMC *m = pmc_new(INTERP, dynclass_DotNetMethodMetadata);
- struct dotnet_method *method = mem_sys_allocate_zeroed(sizeof(struct
dotnet_method));
+ struct dotnet_method *method = mem_sys_allocate_zeroed(sizeof (struct
dotnet_method));
PMC_struct_val(m) = method;
/* Sanity check. */
@@ -1182,7 +1181,7 @@
/* Create new PMC, underlying struct and tie 'em together. */
PMC *c = pmc_new(INTERP, dynclass_DotNetClassMetadata);
- struct dotnet_class *type = mem_sys_allocate_zeroed(sizeof(struct
dotnet_class));
+ struct dotnet_class *type = mem_sys_allocate_zeroed(sizeof (struct
dotnet_class));
PMC_struct_val(c) = type;
/* Sanity check. */
@@ -1347,7 +1346,7 @@
/* Create new PMC, underlying struct and tie 'em together. */
PMC *tr = pmc_new(INTERP, dynclass_DotNetTypeRefMetadata);
- struct dotnet_typeref *typeref = mem_sys_allocate_zeroed(sizeof(struct
dotnet_typeref));
+ struct dotnet_typeref *typeref = mem_sys_allocate_zeroed(sizeof (struct
dotnet_typeref));
PMC_struct_val(tr) = typeref;
/* Sanity check. */
@@ -1415,7 +1414,7 @@
/* Create new PMC, underlying struct and tie 'em together. */
PMC *mr = pmc_new(INTERP, dynclass_DotNetMemberRefMetadata);
- struct dotnet_memberref *memberref = mem_sys_allocate_zeroed(sizeof(struct
dotnet_memberref));
+ struct dotnet_memberref *memberref = mem_sys_allocate_zeroed(sizeof
(struct dotnet_memberref));
PMC_struct_val(mr) = memberref;
/* Sanity check. */
@@ -1487,7 +1486,7 @@
/* Create new PMC, underlying struct and tie 'em together. */
PMC *ar = pmc_new(INTERP, dynclass_DotNetAssemblyRefMetadata);
struct dotnet_assemblyref *assemblyref =
- mem_sys_allocate_zeroed(sizeof(struct dotnet_assemblyref));
+ mem_sys_allocate_zeroed(sizeof (struct dotnet_assemblyref));
PMC_struct_val(ar) = assemblyref;
/* Sanity check. */
Modified: trunk/languages/dotnet/pmc/dotnetsignature.pmc
==============================================================================
--- trunk/languages/dotnet/pmc/dotnetsignature.pmc (original)
+++ trunk/languages/dotnet/pmc/dotnetsignature.pmc Sat Mar 31 08:31:44 2007
@@ -47,7 +47,7 @@
else
{
/* No; need to allocate a new structure. */
- sig = mem_sys_allocate_zeroed(sizeof(struct dotnet_signature));
+ sig = mem_sys_allocate_zeroed(sizeof (struct dotnet_signature));
PMC_struct_val(SELF) = sig;
}
Modified: trunk/languages/dotnet/pmc/int64.pmc
==============================================================================
--- trunk/languages/dotnet/pmc/int64.pmc (original)
+++ trunk/languages/dotnet/pmc/int64.pmc Sat Mar 31 08:31:44 2007
@@ -10,7 +10,7 @@
/* Instance initialization. We need a custom destroy. */
void init()
{
- struct dotnet_int64 *i = mem_sys_allocate(sizeof(struct dotnet_int64));
+ struct dotnet_int64 *i = mem_sys_allocate(sizeof (struct
dotnet_int64));
PObj_active_destroy_SET(SELF);
PMC_struct_val(SELF) = i;
i->x = 0;
Modified: trunk/languages/dotnet/pmc/uint64.pmc
==============================================================================
--- trunk/languages/dotnet/pmc/uint64.pmc (original)
+++ trunk/languages/dotnet/pmc/uint64.pmc Sat Mar 31 08:31:44 2007
@@ -10,7 +10,7 @@
/* Instance initialization. We need a custom destroy. */
void init()
{
- struct dotnet_uint64 *i = mem_sys_allocate(sizeof(struct
dotnet_uint64));
+ struct dotnet_uint64 *i = mem_sys_allocate(sizeof (struct
dotnet_uint64));
PObj_active_destroy_SET(SELF);
PMC_struct_val(SELF) = i;
i->x = 0;