~ubuntu-branches/ubuntu/feisty/gnumeric/feisty-security

« back to all changes in this revision

Viewing changes to plugins/excel/ms-excel-util.h

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2006-11-14 14:02:03 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061114140203-iv3j2aii3vch6isl
Tags: 1.7.2-1ubuntu1
* Merge with debian experimental:
  - debian/control, debian/*-gtk-*, debian/rules,
    debian/shlibs.local: Xubuntu changes for
    gtk/gnome multibuild.
  - run intltool-update in po*
  - Build Depend on intltool

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#include <glib.h>
14
14
#include <stdlib.h>
15
15
 
 
16
/*
 
17
 * Check a condition relating to whether the file being read is ok.
 
18
 * (Not to be confused with checking a programming error.)
 
19
 *
 
20
 * If it fails, print a warning and return.
 
21
 */
 
22
#define XL_CHECK_CONDITION(cond)                                        \
 
23
  do {                                                                  \
 
24
        if (!(cond)) {                                                  \
 
25
                g_warning ("File is most likely corrupted.\n"           \
 
26
                           "(Condition \"%s\" failed in %s.)\n",        \
 
27
                           #cond,                                       \
 
28
                           G_STRFUNC);                                  \
 
29
                return;                                                 \
 
30
        }                                                               \
 
31
  } while (0)
 
32
 
 
33
#define XL_CHECK_CONDITION_VAL(cond,val)                                \
 
34
  do {                                                                  \
 
35
        if (!(cond)) {                                                  \
 
36
                g_warning ("File is most likely corrupted.\n"           \
 
37
                           "(Condition \"%s\" failed in %s.)\n",        \
 
38
                           #cond,                                       \
 
39
                           G_STRFUNC);                                  \
 
40
                return (val);                                           \
 
41
        }                                                               \
 
42
  } while (0)
 
43
 
 
44
 
16
45
typedef struct _TwoWayTable   TwoWayTable;
17
46
 
18
47
struct _TwoWayTable {