From 03b99002ea5258e42eb3a18a86f366c6411a186a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sun, 8 Mar 2009 23:08:27 +0100
Subject: [PATCH] Added FIXME regarding __DIR__.

Rev: src/cpp.c:1.177
---
 src/cpp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cpp.c b/src/cpp.c
index 33ae930310..af54677fbe 100644
--- a/src/cpp.c
+++ b/src/cpp.c
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: cpp.c,v 1.176 2008/06/29 21:14:00 marcus Exp $
+|| $Id: cpp.c,v 1.177 2009/03/08 22:08:27 grubba Exp $
 */
 
 #include "global.h"
@@ -1507,6 +1507,7 @@ static void insert_current_dir_as_string(struct cpp *this,
                                          struct string_builder *tmp)
 {
   ref_push_string(this->current_file);
+  /* FIXME: This isn't safe if the master hasn't been compiled yet. */
   SAFE_APPLY_MASTER("dirname",1);
   PUSH_STRING_SHIFT(Pike_sp[-1].u.string->str, Pike_sp[-1].u.string->len,
                     Pike_sp[-1].u.string->size_shift, tmp);
-- 
GitLab