Michael Hansen
9b384ad1fa
Add basic bytecode and disassembly support for Python 3.12
2023-11-09 12:17:03 -08:00
Michael Hansen
753d42d94a
Simplify string object printing to reduce code duplication
2023-06-09 09:09:03 -07:00
Michael Hansen
32a0aec535
Use raw string literals to improve readability in OutputString
2023-06-06 11:20:32 -07:00
Michael Hansen
bf3599c87a
Move some output stream parameters forward.
...
This allows us to avoid removing parameter defaults for these functions.
2023-06-05 13:56:25 -07:00
Michael Hansen
8bb8386764
Fix some issues with formatted_print:
...
* Add a va_list version which can be correctly used by ivprintf (fixes pycdas output)
* Use a `const char*` format parameter to avoid the need for clang warning workarounds
* Make better use of return values.
2023-06-05 13:49:04 -07:00
Perceval Wajsbürt
c4c35fc531
Use C++ streams over C style IO
2023-06-02 01:12:59 +02:00
FeO3
006b3e4bbc
Fix unicode string display bug
2023-04-27 20:40:06 +08:00
Michael Hansen
e623e9ac56
For String Refs, inherit the type of the reffed string object.
2022-12-01 11:42:31 -08:00
Michael Hansen
863e09e9e7
Remove unnecessary Latin-1 conversion code -- PyUnicode ASCII is 7-bit.
2022-11-30 15:05:29 -08:00
Michael Hansen
568867c80a
Minor style adjustments
2020-10-20 21:08:02 -07:00
Aralox
1f07a24451
Fix up some dodgy spacing
2020-10-17 21:04:39 +11:00
Aralox
0c9fbd9caf
Issue-165 Added support for f-strings (literal string interpolation https://www.python.org/dev/peps/pep-0498/ )
...
Opcodes handled: FORMAT_VALUE, BUILD_STRING.
Added AST node classes for FormattedValue and JoinedStr.
2020-10-17 20:52:57 +11:00
Alexis Maiquez Murcia
5437c3294f
Fixed a crash when a Stringref was an empty string (length 0)
...
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com >
2020-02-10 10:40:17 +01:00
Michael Hansen
f88869fb17
Use std::string instead of manual character buffers where applicable.
2019-10-02 16:01:54 -07:00
Michael Hansen
bf60a5831b
Fix several undefined behavior issues identified by @nrathaus.
...
Fixes #147.
2018-01-28 15:37:44 -08:00
Michael Hansen
a9a362254e
Use fputs instead of fprintf when no formatting is required
2018-01-28 15:37:44 -08:00
Michael Hansen
b9dd99d518
Don't create special objects for NULL, just use NULL directly.
...
Also move null check into PycRef for nullable references.
2017-07-05 16:36:04 -07:00
Michael Hansen
a02478cc56
Fix formatting of char literals \x00-\x0F.
2016-08-31 08:28:46 -07:00
Michael Hansen
36cf09ca82
Minor style cleanup
2014-06-10 18:28:28 -07:00
Michael Hansen
176a049a68
Support new marshal types from Python 3.4
2014-01-21 00:42:37 -08:00
Michael Hansen
b99f0acfb3
Fix a couple of string output issues
2011-10-23 19:37:06 -07:00
Michael Hansen
c474d368a1
Use less conflicting filenames
2011-10-23 17:48:10 -07:00