Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1562 - trunk: . fsvs/src

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

svn commit: r1562 - trunk: . fsvs/src

Author pmarek
Full name P.Marek
Date 2008-03-24 23:21:44 PDT
Message Author: pmarek
Date: 2008-03-24 23:21:44-0700
New Revision: 1562

Modified:
   trunk/ (props changed)
   trunk/fsvs/src/ac_list.c

Log:
Shortened the action list by using macros as abbreviations


Modified: trunk/fsvs/src/ac_list.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/src/ac_​list.c?view=diff​&rev=1562&p1=tru​nk/fsvs/src/ac_list.​c&p2=trunk/fsvs/​src/ac_list.c&r1​=1561&r2=1562
====================​====================​====================​==================
--- trunk/fsvs/src/ac_list.c (original)
+++ trunk/fsvs/src/ac_list.c 2008-03-24 23:21:44-0700
@@ -70,11 +70,15 @@
  * order to get a nice tabular layout.
  * Simply writing the initializations in structure order is not good;
  * a simple re-arrange could make problems. */
-#define ACT(nam, _work, _act, _act_u, ...) \
+#define ACT(nam, _work, _act, ...) \
 { .name=acl_##nam, .help_text=hlp_##nam, \
- .work=_work, .local_callback=_act, .local_uninit=_act_u, \
+ .work=_work, .local_callback=_act, \
     __VA_ARGS__ }
 
+#define UNINIT .local_uninit=st__pr​ogress_uninit
+#define DECODER .needs_decoder=1
+#define FILTER .only_opt_filter=1
+
 
 /** -. */
 struct actionlist_t action_list[]=
@@ -99,13 +103,13 @@
     ACT( build, bld__work, st__status, NULL),
     /* For help we set import_export, to avoid needing a WAA
      * (default /var/spool/fsvs) to exist. */
- ACT( help, ac__Usage, NULL, NULL, .is_import_export=1),
- ACT( info, info__work, info__action, NULL),
- ACT(prop_g,prp__g_work, NULL, NULL),
- ACT(prop_s,prp__s_work, NULL, NULL, .i_val=FS_NEW),
- ACT(prop_d,prp__s_work, NULL, NULL, .i_val=FS_REMOVED),
- ACT(prop_l,prp__l_work, NULL, NULL),
- ACT(remote, up__work, NULL, NULL, .is_compare=1, .repos_feedback=st__rm_status),
+ ACT( help, ac__Usage, NULL, .is_import_export=1),
+ ACT( info, info__work, info__action),
+ ACT(prop_g,prp__g_work, NULL),
+ ACT(prop_s,prp__s_work, NULL, .i_val=FS_NEW),
+ ACT(prop_d,prp__s_work, NULL, .i_val=FS_REMOVED),
+ ACT(prop_l,prp__l_work, NULL),
+ ACT(remote, up__work, NULL, .is_compare=1, .repos_feedback=st__rm_status),
 };
 
 /** -. */
Messages per page: