Mercurial > projects > ldc
view gen/configfile.h @ 1215:08f87d8cd101
Fix some unittests for 64-bit asm. They were operating on int variables as if
they were longs.
This was causing asm1_1 to fail when compiled with -O3 because it was
overwriting the spilled value of callee-saved register %rbx, which the runtime
was using as a pointer value at the time.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Mon, 13 Apr 2009 17:42:36 +0200 |
parents | b30fe7e1dbb9 |
children | 7d3b47852a7a |
line wrap: on
line source
#ifndef LDC_CONF_CONFIGFILE_H #define LDC_CONF_CONFIGFILE_H #include <vector> namespace libconfig { class Config; } class ConfigFile { public: typedef std::vector<const char*> s_vector; typedef s_vector::iterator s_iterator; public: ConfigFile(); ~ConfigFile(); bool read(const char* argv0, void* mainAddr, const char* filename); s_iterator switches_begin() { return switches.begin(); } s_iterator switches_end() { return switches.end(); } private: libconfig::Config* cfg; s_vector switches; }; #endif // LDC_CONF_CONFIGFILE_H