Lichen

Changeset

807:16f3e450a70b
2017-04-10 Paul Boddie raw files shortlog changelog graph Represent exception flags within a single byte.
templates/exceptions.h (file)
     1.1 --- a/templates/exceptions.h	Sun Apr 09 00:02:50 2017 +0200
     1.2 +++ b/templates/exceptions.h	Mon Apr 10 21:23:53 2017 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  /* Exception definitions.
     1.5  
     1.6 -Copyright (C) 2016 Paul Boddie <paul@boddie.org.uk>
     1.7 +Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
     1.8  
     1.9  This program is free software; you can redistribute it and/or modify it under
    1.10  the terms of the GNU General Public License as published by the Free Software
    1.11 @@ -27,9 +27,9 @@
    1.12  typedef struct
    1.13  {
    1.14      __attr arg;
    1.15 -    int raising;
    1.16 -    int raising_else;
    1.17 -    int completing;
    1.18 +    unsigned char raising:1;
    1.19 +    unsigned char raising_else:1;
    1.20 +    unsigned char completing:1;
    1.21  } __exc;
    1.22  
    1.23  define_exception_type(__exc);