~ubuntu-branches/debian/jessie/arcboot/jessie

« back to all changes in this revision

Viewing changes to e2fslib/et/error_table.h

  • Committer: Bazaar Package Importer
  • Author(s): Guido Guenther
  • Date: 2004-03-02 12:01:14 UTC
  • Revision ID: james.westby@ubuntu.com-20040302120114-0pukal9hlpt3k0l7
Tags: 0.3.8.1
correct subarch detection for IP32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 1988 by the Student Information Processing Board of the
 
3
 * Massachusetts Institute of Technology.
 
4
 *
 
5
 * Permission to use, copy, modify, and distribute this software and
 
6
 * its documentation for any purpose is hereby granted, provided that
 
7
 * the names of M.I.T. and the M.I.T. S.I.P.B. not be used in
 
8
 * advertising or publicity pertaining to distribution of the software
 
9
 * without specific, written prior permission.  M.I.T. and the
 
10
 * M.I.T. S.I.P.B. make no representations about the suitability of
 
11
 * this software for any purpose.  It is provided "as is" without
 
12
 * express or implied warranty.
 
13
 */
 
14
 
 
15
#ifndef _ET_H
 
16
/* Are we using ANSI C? */
 
17
#ifndef __STDC__
 
18
#define const
 
19
#endif
 
20
 
 
21
struct error_table {
 
22
    char const * const * msgs;
 
23
    long base;
 
24
    int n_msgs;
 
25
};
 
26
struct et_list {
 
27
    struct et_list *next;
 
28
    const struct error_table *table;
 
29
};
 
30
extern struct et_list * _et_list;
 
31
 
 
32
#define ERRCODE_RANGE   8       /* # of bits to shift table number */
 
33
#define BITS_PER_CHAR   6       /* # bits to shift per character in name */
 
34
 
 
35
#ifdef __STDC__
 
36
extern const char *error_table_name(errcode_t num);
 
37
#else
 
38
extern const char *error_table_name();
 
39
#endif
 
40
 
 
41
#define _ET_H
 
42
#endif