Mercurial > projects > ldc
annotate bin/ldmd2 @ 1607:207a8a438dea
Merge DMD r253: refactor: Argument => Parameter
---
dmd/arrayop.c | 30 ++++----
dmd/arraytypes.h | 2 +-
dmd/class.c | 8 +-
dmd/declaration.c | 10 ++--
dmd/declaration.h | 16 ++--
dmd/doc.c | 12 ++--
dmd/dsymbol.c | 4 +-
dmd/expression.c | 48 +++++++-------
dmd/expression.h | 32 +++++-----
dmd/func.c | 78 +++++++++++-----------
dmd/init.c | 2 +-
dmd/interpret.c | 8 +-
dmd/mtype.c | 190 ++++++++++++++++++++++++++--------------------------
dmd/mtype.h | 32 +++++-----
dmd/opover.c | 34 +++++-----
dmd/parse.c | 40 ++++++------
dmd/parse.h | 2 +-
dmd/statement.c | 90 +++++++++++++-------------
dmd/statement.h | 14 ++--
dmd/struct.c | 8 +-
dmd/template.c | 30 ++++----
gen/functions.cpp | 10 ++--
gen/functions.h | 2 +-
gen/tocall.cpp | 10 ++--
gen/typinf.cpp | 6 +-
25 files changed, 359 insertions(+), 359 deletions(-)
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 15:18:20 -0300 |
parents | 593f99fddd2f |
children |
rev | line source |
---|---|
1453 | 1 #! /usr/bin/env bash |
2 | |
3 # Default to 'ldc' next to this file | |
1583
593f99fddd2f
basename => dirname, thanks Hxal
Moritz Warning <moritzwarning@web.de>
parents:
1453
diff
changeset
|
4 LDC=`dirname "$0"`/ldc2 |
1453 | 5 if [ ! -x "$LDC" ]; then |
6 # If that doesn't work, assume this script was called via $PATH | |
7 # and do the same for ldc | |
8 if which ldc2 &> /dev/null; then | |
9 LDC=ldc2 | |
10 else | |
11 echo 'ldc not found, check your installation' >/dev/stderr | |
12 exit 1 | |
13 fi | |
14 fi | |
15 | |
16 declare -a ARGS | |
17 IDX=0 | |
18 for arg; do | |
19 case "$arg" in | |
20 -C*) | |
21 # turn -Cfoo into -foo. | |
22 # Useful for passing -inline to ldc, for instance. | |
23 arg="-${arg:2}" | |
24 ;; | |
25 -debug|-debug=*|-version=*) | |
26 arg="-d$arg" | |
27 ;; | |
28 -inline) | |
29 arg="-enable-inlining" | |
30 ;; | |
31 -fPIC) | |
32 arg="-relocation-model=pic" | |
33 ;; | |
34 --a|--b|--c|--f|--r|--w|--x|--y) | |
35 # "Hidden debug switches" | |
36 # Are these ever used? | |
37 arg="-hidden-debug${arg:1}" | |
38 ;; | |
39 esac | |
40 ARGS[IDX++]="$arg" | |
41 done | |
42 | |
43 exec "$LDC" "${ARGS[@]}" |