summaryrefslogtreecommitdiff
path: root/ldump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-02-17 13:51:03 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-02-17 13:51:03 -0200
commit69ea087dff1daba25a2000dfb8f1883c17545b7a (patch)
treeb6abdd69100d6e5cb738775ae09eb2eb3ae0f262 /ldump.c
parentc05aaf3bf003d57eed54523c8d122897067238ed (diff)
downloadlua-github-69ea087dff1daba25a2000dfb8f1883c17545b7a.tar.gz
small change to strip file names when stripping debug informationv5_1v5.1
Diffstat (limited to 'ldump.c')
-rw-r--r--ldump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldump.c b/ldump.c
index eff2c85c..f08277d3 100644
--- a/ldump.c
+++ b/ldump.c
@@ -1,5 +1,5 @@
/*
-** $Id: ldump.c,v 1.13 2005/11/01 17:04:55 lhf Exp lhf $
+** $Id: ldump.c,v 1.15 2006/02/16 15:53:49 lhf Exp $
** save precompiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -128,7 +128,7 @@ static void DumpDebug(const Proto* f, DumpState* D)
static void DumpFunction(const Proto* f, const TString* p, DumpState* D)
{
- DumpString((f->source==p) ? NULL : f->source,D);
+ DumpString((f->source==p || D->strip) ? NULL : f->source,D);
DumpInt(f->linedefined,D);
DumpInt(f->lastlinedefined,D);
DumpChar(f->nups,D);