Skip to content

Commit 9a2cf90

Browse files
committed
Fix to the jsonc writer.
1 parent 15abe44 commit 9a2cf90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base/io/ioJsonc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ void Jsonc_WriteTest( Abc_Ntk_t * p, char * pFileName )
709709
fprintf( pFile, " {\n" );
710710
fprintf( pFile, " \"type\": \"%s\",\n", "instance" );
711711
fprintf( pFile, " \"name\": \"%s\",\n", Mio_GateReadName(pGate) );
712-
fprintf( pFile, " \"fanins\": [\n" );
712+
fprintf( pFile, " \"fanins\":\n" );
713713
fprintf( pFile, " {\n" );
714714
for ( pPin = Mio_GateReadPins(pGate), k = 0; pPin; pPin = Mio_PinReadNext(pPin), k++ )
715715
{
@@ -722,7 +722,7 @@ void Jsonc_WriteTest( Abc_Ntk_t * p, char * pFileName )
722722
fprintf( pFile, " }%s\n", Mio_PinReadNext(pPin) ? "," : "" );
723723
}
724724
fprintf( pFile, " }\n" );
725-
fprintf( pFile, " ]\n" );
725+
//fprintf( pFile, " ]\n" );
726726
fprintf( pFile, " }%s\n", ++Counter == Total ? "" : "," );
727727
}
728728
Abc_NtkForEachPo( p, pObj, i )

0 commit comments

Comments
 (0)