field = getcpy(field);
/* copied from seq_read.c:seq_init */
- for (ap = brkstring (field, " ", "\n"); *ap; ap++) {
+ for (ap = brkstring(field, " ", "\n"); *ap; ap++) {
if ((cp = strchr(*ap, '-')))
*cp++ = '\0';
- if ((j = m_atoi (*ap)) > 0) {
- k = cp ? m_atoi (cp) : j;
+ if ((j = m_atoi(*ap)) > 0) {
+ k = cp ? m_atoi(cp) : j;
total += k - j + 1;
}
/* copied from seq_read.c:seq_public */
for (state = FLD;;) {
- switch (state = m_getfld (state, name, field, sizeof(field), fp)) {
+ switch (state = m_getfld(state, name, field, sizeof(field),
+ fp)) {
case FLD:
case FLDPLUS:
case FLDEOF:
if (state == FLDPLUS) {
- cp = getcpy (field);
+ cp = getcpy(field);
while (state == FLDPLUS) {
- state = m_getfld (state, name,
+ state = m_getfld(state, name,
field,
sizeof(field),
fp);
- cp = add (field, cp);
+ cp = add(field, cp);
}
/*
free(this_msgnums);
}
}
- free (cp);
+ free(cp);
} else {
/* and here */
if (seq_in_list(name, sequences)) {
case BODY:
case BODYEOF:
- adios (NULL, "no blank lines are permitted in %s", seqfile);
+ adios(NULL, "no blank lines are permitted in %s", seqfile);
/* fall */
case FILEEOF:
break;
default:
- adios (NULL, "%s is poorly formatted", seqfile);
+ adios(NULL, "%s is poorly formatted", seqfile);
}
break; /* break from for loop */
}
count = count_messages(node->n_field);
total += count;
- printf("%-*s %6d.%c %s\n",
- (int) folder_len, node->n_name,
- count,
- (strcmp(node->n_name, cur) == 0 ? '*' : ' '),
- node->n_field);
+ printf("%-*s %6d.%c %s\n", (int) folder_len,
+ node->n_name, count,
+ (strcmp(node->n_name, cur) == 0 ? '*' : ' '),
+ node->n_field);
}
}
/* read user profile/context */
context_read();
- arguments = getarguments (invo_name, argc, argv, 1);
+ arguments = getarguments(invo_name, argc, argv, 1);
argp = arguments;
/*
*/
while ((cp = *argp++)) {
if (*cp == '-') {
- switch (smatch (++cp, switches)) {
+ switch (smatch(++cp, switches)) {
case AMBIGSW:
- ambigsw (cp, switches);
- done (1);
+ ambigsw(cp, switches);
+ done(1);
case UNKWNSW:
- adios (NULL, "-%s unknown", cp);
+ adios(NULL, "-%s unknown", cp);
case HELPSW:
- snprintf (help, sizeof(help),
+ snprintf(help, sizeof(help),
"%s [switches] [sequences]",
invo_name);
- print_help (help, switches, 1);
- done (1);
+ print_help(help, switches, 1);
+ done(1);
case VERSIONSW:
print_version(invo_name);
- done (1);
+ done(1);
case FOLDERSSW:
if (!(folders = *argp++) || *folders == '-')
context_save();
- done (0);
+ done(0);
return 1;
}