3 * $Id: pres_plain.c,v 1.1 1999/06/02 16:53:35 mdw Exp $
5 * Plain output style for remote builds
10 /*----- Licensing notice --------------------------------------------------*
12 * This file is part of sw-tools.
14 * sw-tools is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * sw-tools is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with sw-tools; if not, write to the Free Software Foundation,
26 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 /*----- Revision history --------------------------------------------------*
31 * $Log: pres_plain.c,v $
32 * Revision 1.1 1999/06/02 16:53:35 mdw
37 /*----- Header files ------------------------------------------------------*/
44 #include <mLib/alloc.h>
45 #include <mLib/lbuf.h>
49 #include "pres_plain.h"
51 /*----- Main code ---------------------------------------------------------*/
55 static void line(char *s
, void *p
)
59 printf("%s: %s\n", e
->arch
, s
);
62 /* --- @plain_init@ --- */
64 int plain_init(archcons
*a
)
66 for (; a
; a
= a
->cdr
) {
71 b
= xmalloc(sizeof(lbuf
));
73 lbuf_init(b
, line
, e
);
78 /* --- @plain_output@ --- */
80 void plain_output(archent
*e
, const char *p
, size_t sz
)
82 lbuf_snarf(e
->pres
, p
, sz
);
85 /* --- @plain_close@ --- */
87 void plain_close(archent
*e
, int ok
)
92 /* --- @plain_done@ --- */
94 void plain_done(archcons
*a
)
96 for (; a
; a
= a
->cdr
) {
101 if (opt_flags
& optFlag_beep
)
105 /*----- That's all, folks -------------------------------------------------*/