[turbine] [template] Tweak spacing a little



commit 2916c6404fc7b10fb1da595cca65af1f64392d4d
Author: Chris Lord <chris linux intel com>
Date:   Fri Jun 5 16:40:41 2009 +0100

    [template] Tweak spacing a little
    
    Add an empty line between the parent and the private structure in the
    class struct, put the '*' in the class_new function definition next to
    the function name instead of the return type, and in the generated .c
    file, add a space between the '*' and the return type in the new object
    function definition.
---
 src/turbine/template.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/turbine/template.py b/src/turbine/template.py
index 73f366b..41e35b8 100644
--- a/src/turbine/template.py
+++ b/src/turbine/template.py
@@ -64,6 +64,7 @@ typedef struct _%(class_camel)sClass %(class_camel)sClass;
 struct _%(class_camel)s
 {
   %(parent_camel)s parent;
+
 %(priv_member)s
 };
 
@@ -74,7 +75,7 @@ struct _%(class_camel)sClass
 
 GType %(class_lower)s_get_type (void);
 
-%(class_camel)s* %(class_lower)s_new (void);
+%(class_camel)s *%(class_lower)s_new (void);
 
 G_END_DECLS
 
@@ -97,7 +98,7 @@ static void
 %(priv_init)s
 }
 
-%(class_camel)s*
+%(class_camel)s *
 %(class_lower)s_new (void)
 {
   return g_object_new (%(package_upper)s_TYPE_%(object_upper)s, NULL);



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