*/
#include "h/mh.h"
+#include "sbr/r1bindex.h"
+#include "sbr/trimcpy.h"
#include <fcntl.h>
#include "h/mts.h"
#include "h/tws.h"
static void list_single_message (CT, int, int, int, int);
static int list_debug (CT);
static int list_multi (CT, int, int, int, int, int);
-static int list_partial (CT, int, int, int, int, int);
static int list_external (CT, int, int, int, int, int);
static int list_encoding (CT);
case CT_MESSAGE:
switch (ct->c_subtype) {
- case MESSAGE_PARTIAL:
- return list_partial (ct, toplevel, realsize, verbose,
- debug, dispo);
-
case MESSAGE_EXTERNAL:
return list_external (ct, toplevel, realsize, verbose,
debug, dispo);
PM pm;
if (toplevel > 0)
- printf (LSTFMT2a, atoi (r1bindex (FENDNULL(ct->c_file), '/')));
+ printf (LSTFMT2a, atoi (r1bindex (FENDNULL(ct->c_file), '/')));
else
- printf(toplevel < 0 ? "part " : " ");
+ printf(toplevel < 0 ? "part " : " ");
snprintf (buffer, sizeof(buffer), "%s/%s", FENDNULL(ci->ci_type),
FENDNULL(ci->ci_subtype));
for (pm = ci->ci_first_pm; pm; pm = pm->pm_next) {
printf ("\t %s=\"%s\"\n", pm->pm_name,
- get_param_value(pm, '?'));
+ get_param_value(pm, '?'));
}
/*
}
-/*
- * list content information for type "message/partial"
- */
-
-static int
-list_partial (CT ct, int toplevel, int realsize, int verbose, int debug,
- int dispo)
-{
- struct partial *p = (struct partial *) ct->c_ctparams;
-
- list_content (ct, toplevel, realsize, verbose, debug, dispo);
- if (verbose) {
- printf ("\t [message %s, part %d", p->pm_partid, p->pm_partno);
- if (p->pm_maxno)
- printf (" of %d", p->pm_maxno);
- puts("]");
- }
-
- return OK;
-}
-
-
/*
* list content information for type "message/external"
*/