Diff
Not logged in

Differences From Artifact [dcc4f7b87d]:

To Artifact [6fb0d0605f]:


207
208
209
210
211
212
213
214

215
216





217
218
219

220
221
222
223
224
225
226
207
208
209
210
211
212
213

214
215

216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231







-
+

-
+
+
+
+
+



+







    }
  }
  return 0;
}

/*
** Fill Blob with a space-separated list of all command names that
** match the prefix zPrefix.
** match the prefix zPrefix and the eType CMDFLAGS_ bits.
*/
void dispatch_matching_names(const char *zPrefix, Blob *pList){
void dispatch_matching_names(
  const char *zPrefix,        /* name prefix */
  unsigned eType,             /* CMDFLAG_ bits */
  Blob *pList                 /* space-separated list of command names */
){
  int i;
  int nPrefix = (int)strlen(zPrefix);
  for(i=FOSSIL_FIRST_CMD; i<MX_COMMAND; i++){
    if( (aCommand[i].eCmdFlags & eType)==0 ) continue;
    if( strncmp(zPrefix, aCommand[i].zName, nPrefix)==0 ){
      blob_appendf(pList, " %s", aCommand[i].zName);
    }
  }
}

/*