From 690cd37becccf9e1f63c7c09054f82e54a50a13d Mon Sep 17 00:00:00 2001
From: Philipp Gesang <phg42.2a@gmail.com>
Date: Mon, 15 Apr 2013 13:13:18 +0200
Subject: avoid two calls to the file library

---
 luaotfload.sty | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

(limited to 'luaotfload.sty')

diff --git a/luaotfload.sty b/luaotfload.sty
index b2b574b..a6714d9 100644
--- a/luaotfload.sty
+++ b/luaotfload.sty
@@ -20,8 +20,6 @@
 \csname ifluaotfloadloaded\endcsname
 \let\ifluaotfloadloaded\endinput
 \bgroup\expandafter\expandafter\expandafter\egroup
-%\RequireLuaModule{lualibs}
-%\RequireLuaModule{luaotfload}
 \expandafter\ifx\csname ProvidesPackage\endcsname\relax
   \input luatexbase.sty
 \else
@@ -30,6 +28,18 @@
     [2011/10/06 v2.0 OpenType layout system]
   \RequirePackage{luatexbase}
 \fi
+%% --------------------------------------------------------------------
+%% from luatex-basics.tex
+% As soon as we feel the need this file will file will contain an extension
+% to the standard plain register allocation. For the moment we stick to a
+% rather dumb attribute allocator. We start at 256 because we don't want
+% any interference with the attributes used in the font handler.
+%\newcount \lastallocatedattribute \lastallocatedattribute=255
+
+%\def\newattribute#1%
+  %{\global\advance\lastallocatedattribute 1
+   %\attributedef#1\lastallocatedattribute}
+%% --------------------------------------------------------------------
 \directlua{require"luaotfload"}
 \endinput
 %%
-- 
cgit v1.2.3

