diff options
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -376,7 +376,7 @@ | |||
376 | @@ lua_number2str converts a float to a string. | 376 | @@ lua_number2str converts a float to a string. |
377 | @@ l_mathop allows the addition of an 'l' or 'f' to all math operations. | 377 | @@ l_mathop allows the addition of an 'l' or 'f' to all math operations. |
378 | @@ l_floor takes the floor of a float. | 378 | @@ l_floor takes the floor of a float. |
379 | @@ lua_str2number converts a decimal numeric string to a number. | 379 | @@ lua_str2number converts a decimal numeral to a number. |
380 | */ | 380 | */ |
381 | 381 | ||
382 | 382 | ||
@@ -568,7 +568,7 @@ | |||
568 | 568 | ||
569 | 569 | ||
570 | /* | 570 | /* |
571 | @@ lua_strx2number converts a hexadecimal numeric string to a number. | 571 | @@ lua_strx2number converts a hexadecimal numeral to a number. |
572 | ** In C99, 'strtod' does that conversion. Otherwise, you can | 572 | ** In C99, 'strtod' does that conversion. Otherwise, you can |
573 | ** leave 'lua_strx2number' undefined and Lua will provide its own | 573 | ** leave 'lua_strx2number' undefined and Lua will provide its own |
574 | ** implementation. | 574 | ** implementation. |
@@ -579,7 +579,14 @@ | |||
579 | 579 | ||
580 | 580 | ||
581 | /* | 581 | /* |
582 | @@ lua_number2strx converts a float to a hexadecimal numeric string. | 582 | @@ lua_pointer2str converts a pointer to a readable string in a |
583 | ** non-specified way. | ||
584 | */ | ||
585 | #define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p) | ||
586 | |||
587 | |||
588 | /* | ||
589 | @@ lua_number2strx converts a float to a hexadecimal numeral. | ||
583 | ** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that. | 590 | ** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that. |
584 | ** Otherwise, you can leave 'lua_number2strx' undefined and Lua will | 591 | ** Otherwise, you can leave 'lua_number2strx' undefined and Lua will |
585 | ** provide its own implementation. | 592 | ** provide its own implementation. |