Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

issue 14591: support new pascal mangling "Np" #1812

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/core/demangle.d
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,9 @@ private struct Demangle
parseType();
put( ')' );
return dst[beg .. len];
case 'p': // extern(Pascal) function
pos--; // step back to 'N'
return parseTypeFunction( name );
default:
error();
assert( 0 );
Expand Down Expand Up @@ -943,6 +946,11 @@ private struct Demangle
popFront();
put( "extern (Windows) " );
break;
case 'N':
popFront();
if( front != 'p' )
error();
goto case;
case 'V': // Pascal
popFront();
put( "extern (Pascal) " );
Expand Down