Changeset 267


Ignore:
Timestamp:
Dec 9, 2002, 5:07:35 PM (18 years ago)
Author:
pooh
Message:
  • Small improvements and bug fixes.
Location:
to-imperative/trunk/libp++
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/libp++/pxx_common.cc

    r261 r267  
    4040  try {
    4141    throw;
    42   } catch (SysError e) {
     42  } catch (SysError& e) {
    4343    e.print();
    4444    exit(e.get_code());
     
    101101};
    102102
    103 Init init ;
    104 Init* __pinit = &init;
     103Init init __attribute__ ((init_priority (101))) ;
     104Init* __pinit = &init ;
    105105
    106106}
  • to-imperative/trunk/libp++/pxx_common.hh

    r265 r267  
    3636namespace pxx
    3737{
    38 
    3938#ifndef DEBUG
    4039#define DEBUG 0
     
    7978
    8079#define NO_COPY_CTOR(cls) \
    81   cls () \
    82   { \
    83     FATAL("Copy constructor is not allowed for this class"); \
    84   }
     80  cls (cls const&) ;
    8581
    8682#define NO_ASSIGN(cls) \
    87   cls& operator = (cls const&) \
    88   { \
    89     FATAL("Assignment is not allowed for this class"); \
    90     return self; \
    91   }
     83  cls& operator = (cls const&) ;
    9284
    9385extern unsigned debug_level ;
     
    149141#define pxx_min(a,b) ((a) < (b) ? (a) : (b))
    150142
    151 class Init;
    152 extern Init* __pinit;
    153 static Init* __static_pinit = __pinit;
     143class Init ;
     144extern Init* __pinit ;
     145static Init* __static_pinit = __pinit ;
    154146
    155147}
  • to-imperative/trunk/libp++/pxx_common.ih

    r254 r267  
    4343    n += 8;
    4444  } while (_size != 0);
    45   return exps_of_two[b] + n + 1;
     45  return orders[b] + n + 1;
    4646#else
    4747  size_t n = 0;
Note: See TracChangeset for help on using the changeset viewer.