annotate src/libarchive-test.c @ 3256:7fb479d0241c

Update build tools for native mingw * src/build-m4.mk: do nothing for native mingw build * Makefile.in: - add bison, m4 as natve mingw, and python as jit build requirements. - remove build-bison as a mingw build dependancy * index.html: Add msys-bison to mingw required packages and mention ghostscript and python.
author John Donoghue <john.donoghue@ieee.org>
date Thu, 26 Sep 2013 21:18:39 -0400
parents 99516e73b368
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2351
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
1 /*
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
2 * This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2351
diff changeset
3 * See index.html for further information.
2351
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
4 */
1064
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 #include <archive.h>
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 int main(int argc, char *argv[])
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 {
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 struct archive *tgz;
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 (void)argc;
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 (void)argv;
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 tgz = archive_write_new();
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 archive_write_set_compression_gzip(tgz);
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 archive_write_set_format_ustar(tgz);
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 archive_write_finish(tgz);
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 return 0;
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 }