[Alephmodular-devel] Re: [Alephmodular-cvs] alephModular/marathon2 render.cpp,1.9.2.3,1.9.2.4
Status: Pre-Alpha
Brought to you by:
brefin
|
From: Br'fin <br...@ma...> - 2003-09-07 20:11:10
|
Merf. I think we could have set this up to be less cryptic.
Why is it:
> typedef struct sorted_node_data *sndp;
And not something that is:
Clear named
Defined adjacent to the structure
I don't know if we want to go as far as
struct sorted_node_data
{
...
typedef struct sorted_node_data *Ptr;
}
But I not mind something adjacent that was like
typedef struct sorted_node_data* sorted_node_data_ptr
-Jeremy Parsons
On Sunday, September 7, 2003, at 01:06 AM, Alexander Strange wrote:
> Update of /cvsroot/alephmodular/alephModular/marathon2
> In directory sc8-pr-cvs1:/tmp/cvs-serv27565
>
> Modified Files:
> Tag: devel-display-abstraction
> render.cpp
> Log Message:
> A one-line change to allow render.cpp to compile under xlC
>
> Index: render.cpp
> ===================================================================
> RCS file: /cvsroot/alephmodular/alephModular/marathon2/render.cpp,v
> retrieving revision 1.9.2.3
> retrieving revision 1.9.2.4
> diff -u -d -r1.9.2.3 -r1.9.2.4
> --- render.cpp 30 Aug 2003 06:48:38 -0000 1.9.2.3
> +++ render.cpp 7 Sep 2003 05:06:26 -0000 1.9.2.4
> @@ -447,7 +447,8 @@
> assert(clipping_windows);
>
> endpoint_x_coordinates= new int16[MAXIMUM_ENDPOINTS_PER_MAP];
> - polygon_index_to_sorted_node= new (struct sorted_node_data
> *)[MAXIMUM_POLYGONS_PER_MAP];
> + typedef struct sorted_node_data *sndp;
> + polygon_index_to_sorted_node= new sndp[MAXIMUM_POLYGONS_PER_MAP];
> assert(endpoint_x_coordinates&&polygon_index_to_sorted_node);
>
> return;
|