Previous 15994 Revisions Next

r2636 Friday 16th May, 2008 at 12:40:41 UTC by Nathan Woods
Coding standards
[src/mess/tools/messtest]testimgt.c

src/mess/tools/messtest/testimgt.c
r2635r2636
1010#include "../imgtool/imgtool.h"
1111#include "../imgtool/modules.h"
1212
13
14
15/***************************************************************************
16    PARAMETERS
17***************************************************************************/
18
1319#define VERBOSE_FILECHAIN   0
1420
15struct expected_dirent
21
22
23/***************************************************************************
24    TYPE DEFINITIONS
25***************************************************************************/
26
27typedef struct _expected_dirent expected_dirent;
28struct _expected_dirent
1629{
1730   const char *filename;
1831   int size;
1932};
2033
34
35
36/***************************************************************************
37    IMPLEMENTATION
38***************************************************************************/
39
2140static const char *tempfile_name(void)
2241{
2342   static char buffer[256];
r2635r2636
202221   if (VERBOSE_FILECHAIN)
203222   {
204223      char buf[1024];
205      err = imgtool_partition_get_chain_string(state->partition, filename, buf, sizeof(buf) / sizeof(buf[0]));
224      err = imgtool_partition_get_chain_string(state->partition, filename, buf, ARRAY_LENGTH(buf));
206225      if (err == IMGTOOLERR_SUCCESS)
207226         report_message(MSG_INFO, "Filechain '%s': %s", filename, buf);
208227   }
r2635r2636
286305   xml_attribute_node *attr_node;
287306   xml_data_node *child_node;
288307   const char *filename;
289   struct expected_dirent *entry;
290   struct expected_dirent entries[256];
308   expected_dirent *entry;
309   expected_dirent entries[256];
291310   int entry_count;
292311
293312   if (!state->partition)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team