/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/Error.h

  • Committer: Gustav Hartvigsson
  • Date: 2015-10-19 11:16:58 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20151019111658-nqf9p5qj1you04g5
* Fixed README.
* Started re-working SError.
* Made a few readabillity changes here and there.
* Renamed s_matrix_foreach to s_matrix_for_each.
* Fixed potential memory leak in s_matrix_for_each.
* Removed inlines... Did not do what I thought they did.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 * @{
43
43
 * An opaque datastructure that holds the SError's private data.
44
44
 */
45
 
typedef struct SErrorPrivate SErrorPrivate;
46
45
 
47
46
 
48
47
typedef void (* SErrorDomainToString)(sint error_id, schar * error_msg);
52
51
 * 
53
52
 * An SError represents an error that can occur.
54
53
 */
55
 
typedef struct
56
 
SError {
57
 
  SObject parent;
58
 
  SErrorPrivate * priv; /** Pimple pointer to the private data. */
59
 
  
60
 
} SError;
61
 
 
62
 
/**
63
 
 * The error class is not changed, no extra methods are needed.
64
 
 */
65
 
typedef struct
66
 
SErrorClass {
67
 
  SObjectClass parent_class;
68
 
  
69
 
} SErrorClass;
 
54
typedef struct SError SError;
70
55
 
71
56
#define S_ERROR(o) (SError *)(o)
72
57
#define S_ERROR_CLASS(k) (SErrorClass *)(k)