jed-users mailing list

[2011 Date Index] [2011 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[Jed-users-l] a very strange question about indent


I use Jed as my programming editor. These days I'm learning about 
GObject. There are many macros, so I made a shell script to make them. 
The code made by it looks like this:
======
         #define NET_TYPE_DICT            (net_dict_get_type ())
         #define NET_DICT(o)              (G_TYPE_CHECK_INSTANCE_CAST 
((o), NET_TYPE_DICT, NetDict)
         #define NET_DICT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST 
((klass), NET_TYPE_DICT, NetDictClass))
         #define NET_IS_DICT(o)           (G_TYPE_CHECK_INSTANCE_TYPE 
((o), NET_TYPE_DICT))
         #define NET_IS_DICT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE 
((klass), NET_TYPE_DICT))
         #define NET_GET_DICT_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS 
((o), NET_TYPE_DICT, NetDictClass))
         #define NET_GET_DICT_PRIVATE(o)  (G_TYPE_INSTANCE_GET_PRIVATE 
((o), NET_TYPE_DICT, NetDictPrivate))
======

Yes, it works. But the indentation seems crazy:

=========
typedef struct _NetDict        NetDict;
                                   typedef struct _NetDictClass   
NetDictClass;
                                   typedef struct _NetDictPrivate 
NetDictPrivate;

                                   struct _NetDict
                               {
                                   GObject parent;
                               };
=========

But there is another class which is also made by the tool. its 
indentation looks good. Why that happened? Thank you.

By the way: mail_mode never starts here. It prints: "Unable to typecast 
Null_Type to String_Type".

Best Regards,
Mike.
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


[2011 date index] [2011 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]