X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fglobal-ctor.cc;h=8ce294bbe19955fd7dbc5899c964bcd4d659d6c4;hb=61140f6153dce4ba6e3dca3a88a33c435c6bc26b;hp=a4e585078e8bc54b9e0b7d1928404f29ccfee8eb;hpb=a6ee9dcd388111e842064a8d46ab06c4897a00d2;p=lilypond.git diff --git a/lily/global-ctor.cc b/lily/global-ctor.cc index a4e585078e..8ce294bbe1 100644 --- a/lily/global-ctor.cc +++ b/lily/global-ctor.cc @@ -1,27 +1,28 @@ -/* - global-ctor.cc -- implement global constructors - +/* + global-ctor.cc -- implement global constructors + source file of the GNU LilyPond music typesetter - - (c) 1999--2002 Han-Wen Nienhuys - - */ + + (c) 1999--2007 Han-Wen Nienhuys +*/ + #include "global-ctor.hh" -#include "array.hh" -static Array *ctor_global_statics_; +#include "std-vector.hh" + +static vector *ctor_global_statics_; void add_constructor (Global_ctor c) { if (!ctor_global_statics_) - ctor_global_statics_ = new Array; - ctor_global_statics_->push (c); + ctor_global_statics_ = new vector; + ctor_global_statics_->push_back (c); } void call_constructors () { - for (int i=0; i < ctor_global_statics_->size (); i++) - (ctor_global_statics_->elem (i)) (); + for (vsize i = 0; i < ctor_global_statics_->size (); i++) + (ctor_global_statics_->at (i)) (); }