annotate src/physfs-test.c @ 2333:f653602a0500

Rebrand to new project name MXE
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 28 Mar 2012 15:46:58 +0200
parents 0ea7263be430
children 8a6c466753e2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1615
diff changeset
1 /* This file is part of MXE. */
1615
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
2 /* See doc/index.html for further information. */
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
3
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
4 /* modified from test/physfs_test.c */
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
5
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
6 #include "physfs.h"
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
7 #include <stdio.h>
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
8 #include <stdlib.h>
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
9
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
10 int main(int argc, char *argv[])
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
11 {
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
12 (void)argc;
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
13 (void)argv;
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
14
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
15 PHYSFS_Version compiled;
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
16 PHYSFS_VERSION(&compiled);
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
17
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
18 printf("Compiled against PhysicsFS version %d.%d.%d\n\n",
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
19 (int) compiled.major, (int) compiled.minor, (int) compiled.patch);
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
20
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
21 const PHYSFS_ArchiveInfo **rc;
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
22 const PHYSFS_ArchiveInfo **i;
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
23
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
24 rc = PHYSFS_supportedArchiveTypes();
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
25 printf("Supported archive types:\n");
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
26 if (*rc == NULL)
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
27 printf(" * Apparently, NONE!\n");
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
28 else
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
29 {
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
30 for (i = rc; *i != NULL; i++)
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
31 {
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
32 printf(" * %s: %s\n Written by %s.\n %s\n",
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
33 (*i)->extension, (*i)->description,
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
34 (*i)->author, (*i)->url);
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
35 } /* for */
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
36 } /* else */
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
37
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
38 return 0;
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
39 }