summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-12-06 08:36:12 -0800
committerKaz Kylheku <kaz@kylheku.com>2013-12-06 08:36:12 -0800
commitb26f98511a911537fef73a1925df6d91a7829b6e (patch)
tree9bc8b1f5288e8116ef1b06f43af1830a3d7ce4f9 /txr.c
parent43fa874fd295b2c765cddd14939a60a47e190148 (diff)
downloadtxr-b26f98511a911537fef73a1925df6d91a7829b6e.tar.gz
txr-b26f98511a911537fef73a1925df6d91a7829b6e.tar.bz2
txr-b26f98511a911537fef73a1925df6d91a7829b6e.zip
Fixing some old-style coding that became obsolete
around November 2009. * lib.c (lazy_str): Use the efficient lit("...") that doesn't allocate memory instead of string(L"..."). (lazy_str_get_trailing_list): Likewise. * stream.c (open_process): Likewise. * txr.c (remove_hash_bang_line): Likewise.
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/txr.c b/txr.c
index 5ff5e2e0..bcf85f9d 100644
--- a/txr.c
+++ b/txr.c
@@ -131,7 +131,6 @@ static val remove_hash_bang_line(val spec)
return spec;
{
- val shbang = string(L"#!");
val firstline = first(spec);
val firstelem = first(firstline);
val item;
@@ -145,7 +144,7 @@ static val remove_hash_bang_line(val spec)
if (stringp(item)) {
val twochars = sub_str(item, zero, two);
- if (equal(twochars, shbang))
+ if (equal(twochars, lit("#!")))
return rest(spec);
}