File "/home/dan/src/elisp-decompile/lapdecompile/scanner.py", line 139, in fn_scanner_internal
count = int(opname[-1])
ValueError: invalid literal for int() with base 10: 'p'
this seems to get past the listp bit but I still have other problems preventing decompiling my files
diff --git a/lapdecompile/scanner.py b/lapdecompile/scanner.py
index e8f25b6..32a772b 100644
--- a/lapdecompile/scanner.py
+++ b/lapdecompile/scanner.py
@@ -127,7 +127,7 @@ class LapScanner:
self.fn_scanner_internal(fn_name, fn_type="defun")
attr = self.fns[fn_name]
tokens.append(Token("CONSTANT", attr, offset.strip(), label=label))
- elif opname[:-1] in ("list", "concat", "cal"):
+ elif opname[:-1] in ("list", "concat", "cal") and opname != "listp":
if opname.startswith("call"):
count = int(fields[2])
opname = "%s_%d" % (opname, count)
my LAP file has this little bit in in:
in particular, note the
listp
on1
. This triggershttps://github.com/rocky/elisp-decompile/blob/2b3937015af7b203b155e820082bd75078be63ad/lapdecompile/scanner.py#L130-L139
and we end up with
this seems to get past the
listp
bit but I still have other problems preventing decompiling my files