bug-gfe
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing structures


From: bug-gfe-admin
Subject: Re: Accessing structures
Date: Sun, 7 Jan 2001 10:43:18 +0600 (LKT)

At the moment, structures are read straight while they are set with the
function.

The simple rule of thumb is

1. If the member access can be done in one statement, do it straight away
   without function.

2. If it involves two or more steps (e.g., assignment of a string which
   involves a malloc and a strcpy), use the function.

Its good that you brought up this topic, because now we can formaly add
this principle to the policies.

Anuradha

On Sat, 6 Jan 2001, Erlend Nagel wrote:

> What's the policy that is used on accessing structures in GFE? There
> is a gfe_font_set_name and a gfe_glyph_set_name, but there are no
> corresponding 'get' functions (yet). The structures coding policy does
> not say anything about this yet.
> 
> Erlend.
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]