comparison src/fileio.c @ 1880:e5602d92da8c v7.2.177

updated for version 7.2-177
author vimboss
date Sat, 16 May 2009 15:31:32 +0000
parents b5c1cb6f8d56
children 1a00e831244b
comparison
equal deleted inserted replaced
1879:e8eeeff19eae 1880:e5602d92da8c
9083 /* 9083 /*
9084 * Get next autocommand command. 9084 * Get next autocommand command.
9085 * Called by do_cmdline() to get the next line for ":if". 9085 * Called by do_cmdline() to get the next line for ":if".
9086 * Returns allocated string, or NULL for end of autocommands. 9086 * Returns allocated string, or NULL for end of autocommands.
9087 */ 9087 */
9088 /* ARGSUSED */
9089 static char_u * 9088 static char_u *
9090 getnextac(c, cookie, indent) 9089 getnextac(c, cookie, indent)
9091 int c; /* not used */ 9090 int c UNUSED;
9092 void *cookie; 9091 void *cookie;
9093 int indent; /* not used */ 9092 int indent UNUSED;
9094 { 9093 {
9095 AutoPatCmd *acp = (AutoPatCmd *)cookie; 9094 AutoPatCmd *acp = (AutoPatCmd *)cookie;
9096 char_u *retval; 9095 char_u *retval;
9097 AutoCmd *ac; 9096 AutoCmd *ac;
9098 9097
9199 #if defined(FEAT_CMDL_COMPL) || defined(PROTO) 9198 #if defined(FEAT_CMDL_COMPL) || defined(PROTO)
9200 /* 9199 /*
9201 * Function given to ExpandGeneric() to obtain the list of autocommand group 9200 * Function given to ExpandGeneric() to obtain the list of autocommand group
9202 * names. 9201 * names.
9203 */ 9202 */
9204 /*ARGSUSED*/
9205 char_u * 9203 char_u *
9206 get_augroup_name(xp, idx) 9204 get_augroup_name(xp, idx)
9207 expand_T *xp; 9205 expand_T *xp UNUSED;
9208 int idx; 9206 int idx;
9209 { 9207 {
9210 if (idx == augroups.ga_len) /* add "END" add the end */ 9208 if (idx == augroups.ga_len) /* add "END" add the end */
9211 return (char_u *)"END"; 9209 return (char_u *)"END";
9212 if (idx >= augroups.ga_len) /* end of list */ 9210 if (idx >= augroups.ga_len) /* end of list */
9268 } 9266 }
9269 9267
9270 /* 9268 /*
9271 * Function given to ExpandGeneric() to obtain the list of event names. 9269 * Function given to ExpandGeneric() to obtain the list of event names.
9272 */ 9270 */
9273 /*ARGSUSED*/
9274 char_u * 9271 char_u *
9275 get_event_name(xp, idx) 9272 get_event_name(xp, idx)
9276 expand_T *xp; 9273 expand_T *xp UNUSED;
9277 int idx; 9274 int idx;
9278 { 9275 {
9279 if (idx < augroups.ga_len) /* First list group names, if wanted */ 9276 if (idx < augroups.ga_len) /* First list group names, if wanted */
9280 { 9277 {
9281 if (!include_groups || AUGROUP_NAME(idx) == NULL) 9278 if (!include_groups || AUGROUP_NAME(idx) == NULL)