Revision: 3406 http://geany.svn.sourceforge.net/geany/?rev=3406&view=rev Author: ntrel Date: 2008-12-19 16:49:37 +0000 (Fri, 19 Dec 2008)
Log Message: ----------- Show Structs separately from Typedefs / Enums for the C symbol list.
Modified Paths: -------------- trunk/ChangeLog trunk/src/symbols.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-12-19 16:28:14 UTC (rev 3405) +++ trunk/ChangeLog 2008-12-19 16:49:37 UTC (rev 3406) @@ -3,6 +3,8 @@ * src/symbols.c, tagmanager/fortran.c: Use plurals for HTML symbol list parent items. Fix Fortran Types showing as Interfaces in the symbol list. + * src/symbols.c: + Show Structs separately from Typedefs / Enums for the C symbol list.
2008-12-18 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/symbols.c =================================================================== --- trunk/src/symbols.c 2008-12-19 16:28:14 UTC (rev 3405) +++ trunk/src/symbols.c 2008-12-19 16:49:37 UTC (rev 3406) @@ -572,7 +572,7 @@ case GEANY_FILETYPES_HASKELL: tag_list_add_groups(tag_store, &tv_iters.tag_namespace, _("Module"), NULL, - &tv_iters.tag_struct, _("Types"), NULL, + &tv_iters.tag_type, _("Types"), NULL, &tv_iters.tag_macro, _("Type constructors"), NULL, &tv_iters.tag_function, _("Functions"), "classviewer-method", NULL); @@ -787,7 +787,8 @@ &(tv_iters.tag_class), _("Classes"), "classviewer-class", &(tv_iters.tag_function), _("Functions"), "classviewer-method", &(tv_iters.tag_member), _("Members"), "classviewer-member", - &(tv_iters.tag_struct), _("Structs / Typedefs"), "classviewer-struct", + &(tv_iters.tag_struct), _("Structs"), "classviewer-struct", + &(tv_iters.tag_type), _("Typedefs / Enums"), "classviewer-struct", NULL);
if (ft_id != GEANY_FILETYPES_D) @@ -954,18 +955,8 @@ case tm_tag_typedef_t: case tm_tag_enum_t: { - /* TODO separate C-like types here also */ - switch (ft_id) - { - case GEANY_FILETYPES_HAXE: - case GEANY_FILETYPES_FORTRAN: - case GEANY_FILETYPES_F77: - iter = &tv_iters.tag_type; - goto skip; - default: - break; - } - /* fall through */ + iter = &tv_iters.tag_type; + break; } case tm_tag_union_t: case tm_tag_struct_t: @@ -990,7 +981,6 @@ iter = &tv_iters.tag_other; } } -skip: if (iter->stamp != -1) return iter; else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.