diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-06 18:05:52 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-06 18:05:52 -0300 |
| commit | 0845e73b6a374bd8eb2969a91ade56cb0407b929 (patch) | |
| tree | 484c4d268a7635613faae741ccd853a8f3332423 | |
| parent | 7dfa9520911e147be04a0dc04b21bcb01e045f76 (diff) | |
| download | lua-0845e73b6a374bd8eb2969a91ade56cb0407b929.tar.gz lua-0845e73b6a374bd8eb2969a91ade56cb0407b929.tar.bz2 lua-0845e73b6a374bd8eb2969a91ade56cb0407b929.zip | |
new copyright notice
| -rw-r--r-- | lua.h | 72 | ||||
| -rw-r--r-- | manual.tex | 75 |
2 files changed, 77 insertions, 70 deletions
| @@ -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 | ******************************************************************************/ | ||
| @@ -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 |
| 108 | Copyright \copyright\ 1994--1998 TeCGraf, PUC-Rio. | 109 | Copyright \copyright\ 1994--1998 TeCGraf, PUC-Rio. All rights reserved. |
| 109 | Written by Waldemar Celes Filho, | 110 | |
| 110 | Roberto Ierusalimschy, | 111 | Permission is hereby granted, without written agreement and without license |
| 111 | and Luiz Henrique de Figueiredo. | 112 | or royalty fees, to use, copy, modify, and distribute this software and its |
| 112 | All rights reserved. | 113 | documentation for any purpose, including commercial applications, subject to |
| 113 | % | 114 | the following conditions: |
| 114 | Permission is hereby granted, without written agreement and without license or | 115 | \begin{itemize} |
| 115 | royalty 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 |
| 116 | documentation for any purpose, subject to the following conditions: | 117 | copies or substantial portions of this software. |
| 117 | % | 118 | |
| 118 | The 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 |
| 119 | copies 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 |
| 121 | The name ``Lua'' cannot be used for any modified form | 122 | appreciated (but it is not required). |
| 122 | of this software that does not originate from the authors. | 123 | |
| 123 | Nevertheless, the name ``Lua'' may and should be | 124 | \item Altered source versions must be plainly marked as such, and must not be |
| 124 | used to designate the language implemented and described in this package, | 125 | misrepresented as being the original software. |
| 125 | even if embedded in any other system, as long as its syntax and semantics | 126 | \end{itemize} |
| 126 | remain unchanged. | 127 | The authors specifically disclaim any warranties, including, but not limited |
| 127 | % | 128 | to, the implied warranties of merchantability and fitness for a particular |
| 128 | The authors specifically disclaim any warranties, including, | 129 | purpose. The software provided hereunder is on an "as is" basis, and the |
| 129 | but not limited to, the implied warranties of merchantability | ||
| 130 | and fitness for a particular purpose. | ||
| 131 | The software provided hereunder is on an ``as is'' basis, and the | ||
| 132 | authors have no obligation to provide maintenance, support, updates, | 130 | authors have no obligation to provide maintenance, support, updates, |
| 133 | enhancements, or modifications. | 131 | enhancements, or modifications. In no event shall TeCGraf, PUC-Rio, or the |
| 134 | In no event shall TeCGraf, PUC-Rio, or the | 132 | authors be held liable to any party for direct, indirect, special, |
| 135 | authors be liable to any party for direct, indirect, special, incidental, or | 133 | incidental, or consequential damages arising out of the use of this software |
| 136 | consequential damages arising out of the use of this software and its | 134 | and its documentation. |
| 137 | documentation. | 135 | |
| 136 | The Lua language and this implementation have been entirely designed and | ||
| 137 | written by Waldemar Celes Filho, Roberto Ierusalimschy and | ||
| 138 | Luiz Henrique de Figueiredo at TeCGraf, PUC-Rio. | ||
| 139 | This 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, | |||
| 349 | through the escape sequence \verb|'\ddd'|, | 350 | through the escape sequence \verb|'\ddd'|, |
| 350 | where \verb|ddd| is a sequence of up to three \emph{decimal} digits. | 351 | where \verb|ddd| is a sequence of up to three \emph{decimal} digits. |
| 351 | Strings in Lua may contain any 8-bit value, including 0. | 352 | Strings in Lua may contain any 8-bit value, including 0. |
| 353 | |||
| 352 | Literal strings can also be delimited by matching \verb|[[ ... ]]|. | 354 | Literal strings can also be delimited by matching \verb|[[ ... ]]|. |
| 353 | Literals in this bracketed form may run for several lines, | 355 | Literals in this bracketed form may run for several lines, |
| 354 | may contain nested \verb|[[ ... ]]| pairs, | 356 | may contain nested \verb|[[ ... ]]| pairs, |
| @@ -2286,7 +2288,7 @@ the appropriate format string. | |||
| 2286 | For example, \verb|"%*g"| can be simulated with | 2288 | For 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 |
| 2290 | contain zeros.} | 2292 | contain 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, |
| 2888 | Lua 3.1 must be explicitly opened before used. | 2890 | Lua 3.1 must be explicitly opened before used, |
| 2891 | with function \verb|lua_open|. | ||
| 2889 | However, all standard libraries check whether Lua is already opened, | 2892 | However, all standard libraries check whether Lua is already opened, |
| 2890 | so any program that opens at least one standard library before calling | 2893 | so any program that opens at least one standard library before calling |
| 2891 | Lua does not need to be modified. | 2894 | Lua does not need to be modified. |
