comparison dmd2/inifile.c @ 988:2667e3a145be

- Fixed LLVM style CL args for D2. - Moved main() into its own file gen/main.cpp - Fixed basic cross compilation - removed the option for setting OS - added support for llc's mattr, mcpu and mtriple switches - added basic ABI abstraction for return value rewrites, it's not perfect and will probably be completely rewritten once I get to handling parameter rewrites as well. - x86-64 extern(C) abi for cfloat returns now match (llvm-)gcc.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Thu, 26 Feb 2009 14:11:49 +0100
parents f04dde6e882c
children 638d16625da2
comparison
equal deleted inserted replaced
987:73ff89728d85 988:2667e3a145be
41 * Input: 41 * Input:
42 * argv0 program name (argv[0]) 42 * argv0 program name (argv[0])
43 * inifile .ini file name 43 * inifile .ini file name
44 */ 44 */
45 45
46 void inifile(const char *argv0x, const char *inifilex) 46 void inifile(char *argv0x, const char *inifilex)
47 { 47 {
48 char *argv0 = (char *)argv0x; 48 char *argv0 = (char *)argv0x;
49 char *inifile = (char *)inifilex; // do const-correct later 49 char *inifile = (char *)inifilex; // do const-correct later
50 char *path; // need path for @P macro 50 char *path; // need path for @P macro
51 char *filename; 51 char *filename;