硬汉嵌入式论坛

 找回密码
 立即注册
查看: 670|回复: 5
收起左侧

[Lua] Lua发布新版软件包V5.4.6(2023-06-19)

[复制链接]

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106726
QQ
发表于 2023-6-19 08:56:50 | 显示全部楼层 |阅读模式

Lua: version history

lua-5.4.6.7z (280.9 KB)


更新记录:


[XML] 纯文本查看 复制代码
Makefile

49c49
< R= $V.5
> R= $V.6

README

2c2
< This is Lua 5.4.5, released on 18 Apr 2023.
> This is Lua 5.4.6, released on 02 May 2023.

doc/manual.html

3848a3849,3877
> <hr><h3><a name="lua_closethread"><code>lua_closethread</code></a></h3><p>
> <span class="apii">[-0, +?, –]</span>
> <pre>int lua_closethread (lua_State *L, lua_State *from);</pre>
> 
> <p>
> Resets a thread, cleaning its call stack and closing all pending
> to-be-closed variables.
> Returns a status code:
> <a href="#pdf-LUA_OK"><code>LUA_OK</code></a> for no errors in the thread
> (either the original error that stopped the thread or
> errors in closing methods),
> or an error status otherwise.
> In case of error,
> leaves the error object on the top of the stack.
> 
> 
> <p>
> The parameter <code>from</code> represents the coroutine that is resetting <code>L</code>.
> If there is no such coroutine,
> this parameter can be <code>NULL</code>.
> 
> 
> <p>
> (This function was introduced in release 5.4.6.)
> 
> 
> 
> 
> 

5222,5234c5251
< <pre>int lua_resetthread (lua_State *L, lua_State *from);</pre>
< 
< <p>
< Resets a thread, cleaning its call stack and closing all pending
< to-be-closed variables.
< Returns a status code:
< <a href="#pdf-LUA_OK"><code>LUA_OK</code></a> for no errors in the thread
< (either the original error that stopped the thread or
< errors in closing methods),
< or an error status otherwise.
< In case of error,
< leaves the error object on the top of the stack.
< 
> <pre>int lua_resetthread (lua_State *L);</pre>

5237,5240c5254,5256
< The parameter <code>from</code> represents the coroutine that is resetting <code>L</code>.
< If there is no such coroutine,
< this parameter can be <code>NULL</code>.
< (This parameter was introduced in release 5.4.5.)
> This function is deprecated;
> it is equivalent to <a href="#lua_closethread"><code>lua_closethread</code></a> with
> <code>from</code> being <code>NULL</code>.

12023c12039
< Tue Apr 18 12:51:25 UTC 2023
> Tue May  2 20:09:38 UTC 2023

12026c12042
< Last change: revised for Lua 5.4.5
> Last change: revised for Lua 5.4.6

doc/readme.html

110c110
< the top-level directory, which is named <TT>lua-5.4.5</TT>.
> the top-level directory, which is named <TT>lua-5.4.6</TT>.

330c330
< Mon Mar 27 21:22:06 UTC 2023
> Tue May  2 20:08:55 UTC 2023

333c333
< Last change: revised for Lua 5.4.5
> Last change: revised for Lua 5.4.6

src/lcorolib.c

79c79
<       stat = lua_resetthread(co, L);  /* close its tbc variables */
>       stat = lua_closethread(co, L);  /* close its tbc variables */

175c175
<       status = lua_resetthread(co, L);
>       status = lua_closethread(co, L);

src/lstate.c

342c342
< LUA_API int lua_resetthread (lua_State *L, lua_State *from) {
> LUA_API int lua_closethread (lua_State *L, lua_State *from) {

348a349,356
> }
> 
> 
> /*
> ** Deprecated! Use 'lua_closethread' instead.
> */
> LUA_API int lua_resetthread (lua_State *L) {
>   return lua_closethread(L, NULL);

src/lua.h

21c21
< #define LUA_VERSION_RELEASE        "5"
> #define LUA_VERSION_RELEASE        "6"

24c24
< #define LUA_VERSION_RELEASE_NUM                (LUA_VERSION_NUM * 100 + 5)
> #define LUA_VERSION_RELEASE_NUM                (LUA_VERSION_NUM * 100 + 6)

166c166,167
< LUA_API int        (lua_resetthread) (lua_State *L, lua_State *from);
> LUA_API int        (lua_closethread) (lua_State *L, lua_State *from);
> LUA_API int        (lua_resetthread) (lua_State *L);  /* Deprecated! */



QQ截图20230619085739.png
回复

使用道具 举报

3

主题

49

回帖

58

积分

初级会员

积分
58
发表于 2023-7-3 12:00:10 | 显示全部楼层
硬汉哥,看了一下H7Tool的程序是裸机跑的,如果在FreeRTOS中跑的话,Lua编程对程序运行的可控性是不是有很大的影响?还有在上位机中编程Lua,程序的语法检测是在上位机中做的吗?
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106726
QQ
 楼主| 发表于 2023-7-3 12:03:18 | 显示全部楼层
跟着硬汉学 发表于 2023-7-3 12:00
硬汉哥,看了一下H7Tool的程序是裸机跑的,如果在FreeRTOS中跑的话,Lua编程对程序运行的可控性是不是有很 ...

你看的是V1.X的开源工程。

V2.X未开源工程是RTX5全家桶方案实现,裸机程序已经无法满足复杂工程需求了,可以参考这两个帖子实现:

1、基于STM32F429的RTX5+RL-USB+RL-FlashFS+RL-TCPnet+emWin6.x综合模板发布,含MDK AC5和AC6,,升级至V1.1(2021-03-08)
https://www.armbbs.cn/forum.php?mod=viewthread&tid=104181

2、STM32-V6 LUA简单移植
https://www.armbbs.cn/forum.php?mod=viewthread&tid=94757

回复

使用道具 举报

3

主题

49

回帖

58

积分

初级会员

积分
58
发表于 2023-7-3 13:49:46 | 显示全部楼层
eric2013 发表于 2023-7-3 12:03
你看的是V1.X的开源工程。

V2.X未开源工程是RTX5全家桶方案实现,裸机程序已经无法满足复杂工程需求了 ...

谢谢硬汉哥,我看的是V1.X的版本,我还想问一下就是在上位机中编程的lua,语法检测是在上位机中做的吗?如果语法出错,下载到单片机中,会导致系统整体运行出错吗?
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106726
QQ
 楼主| 发表于 2023-7-3 14:46:09 | 显示全部楼层
跟着硬汉学 发表于 2023-7-3 13:49
谢谢硬汉哥,我看的是V1.X的版本,我还想问一下就是在上位机中编程的lua,语法检测是在上位机中做的吗? ...

不是,语法检测是单片机端检测的。
回复

使用道具 举报

3

主题

49

回帖

58

积分

初级会员

积分
58
发表于 2023-7-3 15:02:19 | 显示全部楼层
eric2013 发表于 2023-7-3 14:46
不是,语法检测是单片机端检测的。

好的,明白了,非常感谢硬汉哥的解答!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-1 22:58 , Processed in 0.223047 second(s), 29 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表