]>
git.saurik.com Git - wxWidgets.git/blob - utils/Install/packace/uac_comm.c
1 /* ------------------------------------------------------------------------ */
3 /* Decompresses and outputs comment if present. */
5 /* ------------------------------------------------------------------------ */
7 #include <stdio.h> // printf()
16 void comment_out(CHAR
*top
) // outputs comment if present
20 if (head
.HEAD_FLAGS
& ACE_COMM
)
22 if (head
.HEAD_TYPE
== MAIN_BLK
)
23 { // get begin and size of comment data
25 comm_cpr_size
= MCOMM_SIZE
;
30 comm_cpr_size
= FCOMM_SIZE
;
31 } // limit comment size if too big
32 i
= sizeof(head
) - (INT
)(comm
- (CHAR
*) &head
);
33 if (comm_cpr_size
> i
)
35 dcpr_comm(i
); // decompress comment
43 *p
=0x0A; // Replace ms-dos line termination
49 pipeit("%s\n\n%s\n\n", top
, comm
); // output comment