aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-06-06 18:05:52 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-06-06 18:05:52 -0300
commit0845e73b6a374bd8eb2969a91ade56cb0407b929 (patch)
tree484c4d268a7635613faae741ccd853a8f3332423
parent7dfa9520911e147be04a0dc04b21bcb01e045f76 (diff)
downloadlua-0845e73b6a374bd8eb2969a91ade56cb0407b929.tar.gz
lua-0845e73b6a374bd8eb2969a91ade56cb0407b929.tar.bz2
lua-0845e73b6a374bd8eb2969a91ade56cb0407b929.zip
new copyright notice
-rw-r--r--lua.h72
-rw-r--r--manual.tex75
2 files changed, 77 insertions, 70 deletions
diff --git a/lua.h b/lua.h
index 73eede89..66d0f1dd 100644
--- a/lua.h
+++ b/lua.h
@@ -1,44 +1,12 @@
1/* 1/*
2** $Id: lua.h,v 1.19 1998/06/02 20:37:04 roberto Exp roberto $ 2** $Id: lua.h,v 1.20 1998/06/05 22:17:44 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil 4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
5** e-mail: lua@tecgraf.puc-rio.br 5** e-mail: lua@tecgraf.puc-rio.br
6** www: http://www.tecgraf.puc-rio.br/lua/ 6** www: http://www.tecgraf.puc-rio.br/lua/
7** See Copyright Notice at the end of this file
7*/ 8*/
8 9
9/*********************************************************************
10* Copyright (c) 1994-1998 TeCGraf, PUC-Rio.
11* Written by Waldemar Celes Filho, Roberto Ierusalimschy and
12* Luiz Henrique de Figueiredo.
13* All rights reserved.
14*
15* Permission is hereby granted, without written agreement and with­
16* out license or royalty fees, to use, copy, modify, and distribute
17* this software and its documentation for any purpose, subject to
18* the following conditions:
19*
20* The above copyright notice and this permission notice shall ap­
21* pear in all copies or substantial portions of this software.
22*
23* The name "Lua" cannot be used for any modified form of this soft­
24* ware that does not originate from the authors. Nevertheless, the
25* name "Lua" may and should be used to designate the language im­
26* plemented and described in this package, even if embedded in any
27* other system, as long as its syntax and semantics remain un­
28* changed.
29*
30* The authors specifically disclaim any warranties, including, but
31* not limited to, the implied warranties of merchantability and
32* fitness for a particular purpose. The software provided hereunder
33* is on an "as is" basis, and the authors have no obligation to
34* provide maintenance, support, updates, enhancements, or modifica­
35* tions. In no event shall TeCGraf, PUC-Rio, or the authors be li­
36* able to any party for direct, indirect, special, incidental, or
37* consequential damages arising out of the use of this software and
38* its documentation.
39*********************************************************************/
40
41
42 10
43#ifndef lua_h 11#ifndef lua_h
44#define lua_h 12#define lua_h
@@ -190,3 +158,39 @@ lua_Object lua_setfallback (char *event, lua_CFunction fallback);
190#endif 158#endif
191 159
192#endif 160#endif
161
162
163
164/******************************************************************************
165* Copyright (c) 1994-1998 TeCGraf, PUC-Rio. All rights reserved.
166*
167* Permission is hereby granted, without written agreement and without license
168* or royalty fees, to use, copy, modify, and distribute this software and its
169* documentation for any purpose, including commercial applications, subject to
170* the following conditions:
171*
172* - The above copyright notice and this permission notice shall appear in all
173* copies or substantial portions of this software.
174*
175* - The origin of this software must not be misrepresented; you must not
176* claim that you wrote the original software. If you use this software in a
177* product, an acknowledgment in the product documentation would be greatly
178* appreciated (but it is not required).
179*
180* - Altered source versions must be plainly marked as such, and must not be
181* misrepresented as being the original software.
182*
183* The authors specifically disclaim any warranties, including, but not limited
184* to, the implied warranties of merchantability and fitness for a particular
185* purpose. The software provided hereunder is on an "as is" basis, and the
186* authors have no obligation to provide maintenance, support, updates,
187* enhancements, or modifications. In no event shall TeCGraf, PUC-Rio, or the
188* authors be held liable to any party for direct, indirect, special,
189* incidental, or consequential damages arising out of the use of this software
190* and its documentation.
191*
192* The Lua language and this implementation have been entirely designed and
193* written by Waldemar Celes Filho, Roberto Ierusalimschy and
194* Luiz Henrique de Figueiredo at TeCGraf, PUC-Rio.
195* This implementation contains no third-party code.
196******************************************************************************/
diff --git a/manual.tex b/manual.tex
index 27f3df12..6725b893 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,6 +1,7 @@
1% $Id: manual.tex,v 1.11 1998/05/27 19:09:39 roberto Exp roberto $ 1% $Id: manual.tex,v 1.12 1998/06/02 20:37:04 roberto Exp roberto $
2 2
3\documentstyle[fullpage,11pt,bnf]{article} 3\documentclass[11pt]{article}
4\usepackage{fullpage,bnf}
4 5
5\newcommand{\See}[1]{Section~\ref{#1}} 6\newcommand{\See}[1]{Section~\ref{#1}}
6\newcommand{\see}[1]{(see \See{#1})} 7\newcommand{\see}[1]{(see \See{#1})}
@@ -38,7 +39,7 @@ Waldemar Celes
38\tecgraf\ --- Computer Science Department --- PUC-Rio 39\tecgraf\ --- Computer Science Department --- PUC-Rio
39} 40}
40 41
41\date{\small \verb$Date: 1998/05/27 19:09:39 $} 42%\date{\small \verb$Date: 1998/06/02 20:37:04 $}
42 43
43\maketitle 44\maketitle
44 45
@@ -101,42 +102,42 @@ a intera\c{c}\~ao entre programas Lua e programas C hospedeiros.
101\end{quotation} 102\end{quotation}
102 103
103 104
104\vfill 105\newpage
105\begin{quotation} 106\begin{quotation}
106\noindent 107\noindent
107\footnotesize 108\footnotesize
108Copyright \copyright\ 1994--1998 TeCGraf, PUC-Rio. 109Copyright \copyright\ 1994--1998 TeCGraf, PUC-Rio. All rights reserved.
109Written by Waldemar Celes Filho, 110
110Roberto Ierusalimschy, 111Permission is hereby granted, without written agreement and without license
111and Luiz Henrique de Figueiredo. 112or royalty fees, to use, copy, modify, and distribute this software and its
112All rights reserved. 113documentation for any purpose, including commercial applications, subject to
113% 114the following conditions:
114Permission is hereby granted, without written agreement and without license or 115\begin{itemize}
115royalty fees, to use, copy, modify, and distribute this software and its 116\item The above copyright notice and this permission notice shall appear in all
116documentation for any purpose, subject to the following conditions: 117 copies or substantial portions of this software.
117% 118
118The above copyright notice and this permission notice shall appear in all 119\item The origin of this software must not be misrepresented; you must not
119copies or substantial portions of this software. 120 claim that you wrote the original software. If you use this software in a
120% 121 product, an acknowledgment in the product documentation would be greatly
121The name ``Lua'' cannot be used for any modified form 122 appreciated (but it is not required).
122of this software that does not originate from the authors. 123
123Nevertheless, the name ``Lua'' may and should be 124\item Altered source versions must be plainly marked as such, and must not be
124used to designate the language implemented and described in this package, 125 misrepresented as being the original software.
125even if embedded in any other system, as long as its syntax and semantics 126\end{itemize}
126remain unchanged. 127The authors specifically disclaim any warranties, including, but not limited
127% 128to, the implied warranties of merchantability and fitness for a particular
128The authors specifically disclaim any warranties, including, 129purpose. The software provided hereunder is on an "as is" basis, and the
129but not limited to, the implied warranties of merchantability
130and fitness for a particular purpose.
131The software provided hereunder is on an ``as is'' basis, and the
132authors have no obligation to provide maintenance, support, updates, 130authors have no obligation to provide maintenance, support, updates,
133enhancements, or modifications. 131enhancements, or modifications. In no event shall TeCGraf, PUC-Rio, or the
134In no event shall TeCGraf, PUC-Rio, or the 132authors be held liable to any party for direct, indirect, special,
135authors be liable to any party for direct, indirect, special, incidental, or 133incidental, or consequential damages arising out of the use of this software
136consequential damages arising out of the use of this software and its 134and its documentation.
137documentation. 135
136The Lua language and this implementation have been entirely designed and
137written by Waldemar Celes Filho, Roberto Ierusalimschy and
138Luiz Henrique de Figueiredo at TeCGraf, PUC-Rio.
139This implementation contains no third-party code.
138\end{quotation} 140\end{quotation}
139\vfill
140 141
141\newpage 142\newpage
142 143
@@ -349,6 +350,7 @@ A character in a string may also be specified by its numerical value,
349through the escape sequence \verb|'\ddd'|, 350through the escape sequence \verb|'\ddd'|,
350where \verb|ddd| is a sequence of up to three \emph{decimal} digits. 351where \verb|ddd| is a sequence of up to three \emph{decimal} digits.
351Strings in Lua may contain any 8-bit value, including 0. 352Strings in Lua may contain any 8-bit value, including 0.
353
352Literal strings can also be delimited by matching \verb|[[ ... ]]|. 354Literal strings can also be delimited by matching \verb|[[ ... ]]|.
353Literals in this bracketed form may run for several lines, 355Literals in this bracketed form may run for several lines,
354may contain nested \verb|[[ ... ]]| pairs, 356may contain nested \verb|[[ ... ]]| pairs,
@@ -2286,7 +2288,7 @@ the appropriate format string.
2286For example, \verb|"%*g"| can be simulated with 2288For example, \verb|"%*g"| can be simulated with
2287\verb|"%"..width.."g"|. 2289\verb|"%"..width.."g"|.
2288 2290
2289\emph{Function \verb|format| can only be used with strings that do not 2291\emph{Function \T{format} can only be used with strings that do not
2290contain zeros.} 2292contain zeros.}
2291 2293
2292\subsubsection*{\ff \T{gsub (s, pat, repl [, n])}} 2294\subsubsection*{\ff \T{gsub (s, pat, repl [, n])}}
@@ -2885,7 +2887,8 @@ Here is a list of all these incompatibilities.
2885\begin{itemize} 2887\begin{itemize}
2886 2888
2887\item To support multiple contexts, 2889\item To support multiple contexts,
2888Lua 3.1 must be explicitly opened before used. 2890Lua 3.1 must be explicitly opened before used,
2891with function \verb|lua_open|.
2889However, all standard libraries check whether Lua is already opened, 2892However, all standard libraries check whether Lua is already opened,
2890so any program that opens at least one standard library before calling 2893so any program that opens at least one standard library before calling
2891Lua does not need to be modified. 2894Lua does not need to be modified.