@@ -340,16 +340,16 @@ BinaryenExpressionRef BinaryenLoop(BinaryenModuleRef module, const char* in, Bin
340340// Break: value and condition can be NULL
341341BinaryenExpressionRef BinaryenBreak (BinaryenModuleRef module , const char * name , BinaryenExpressionRef condition , BinaryenExpressionRef value );
342342// Switch: value can be NULL
343- BinaryenExpressionRef BinaryenSwitch (BinaryenModuleRef module , const char * * names , BinaryenIndex numNames , const char * defaultName , BinaryenExpressionRef condition , BinaryenExpressionRef value );
343+ BinaryenExpressionRef BinaryenSwitch (BinaryenModuleRef module , const char * * names , BinaryenIndex numNames , const char * defaultName , BinaryenExpressionRef condition , BinaryenExpressionRef value );
344344// Call, CallImport: Note the 'returnType' parameter. You must declare the
345345// type returned by the function being called, as that
346346// function might not have been created yet, so we don't
347347// know what it is.
348348// Also note that WebAssembly does not differentiate
349349// between Call and CallImport, but Binaryen does, so you
350350// must use CallImport if calling an import, and vice versa.
351- BinaryenExpressionRef BinaryenCall (BinaryenModuleRef module , const char * target , BinaryenExpressionRef * operands , BinaryenIndex numOperands , BinaryenType returnType );
352- BinaryenExpressionRef BinaryenCallImport (BinaryenModuleRef module , const char * target , BinaryenExpressionRef * operands , BinaryenIndex numOperands , BinaryenType returnType );
351+ BinaryenExpressionRef BinaryenCall (BinaryenModuleRef module , const char * target , BinaryenExpressionRef * operands , BinaryenIndex numOperands , BinaryenType returnType );
352+ BinaryenExpressionRef BinaryenCallImport (BinaryenModuleRef module , const char * target , BinaryenExpressionRef * operands , BinaryenIndex numOperands , BinaryenType returnType );
353353BinaryenExpressionRef BinaryenCallIndirect (BinaryenModuleRef module , BinaryenExpressionRef target , BinaryenExpressionRef * operands , BinaryenIndex numOperands , const char * type );
354354// GetLocal: Note the 'type' parameter. It might seem redundant, since the
355355// local at that index must have a type. However, this API lets you
@@ -368,8 +368,8 @@ BinaryenExpressionRef BinaryenCallIndirect(BinaryenModuleRef module, BinaryenExp
368368BinaryenExpressionRef BinaryenGetLocal (BinaryenModuleRef module , BinaryenIndex index , BinaryenType type );
369369BinaryenExpressionRef BinaryenSetLocal (BinaryenModuleRef module , BinaryenIndex index , BinaryenExpressionRef value );
370370BinaryenExpressionRef BinaryenTeeLocal (BinaryenModuleRef module , BinaryenIndex index , BinaryenExpressionRef value );
371- BinaryenExpressionRef BinaryenGetGlobal (BinaryenModuleRef module , const char * name , BinaryenType type );
372- BinaryenExpressionRef BinaryenSetGlobal (BinaryenModuleRef module , const char * name , BinaryenExpressionRef value );
371+ BinaryenExpressionRef BinaryenGetGlobal (BinaryenModuleRef module , const char * name , BinaryenType type );
372+ BinaryenExpressionRef BinaryenSetGlobal (BinaryenModuleRef module , const char * name , BinaryenExpressionRef value );
373373// Load: align can be 0, in which case it will be the natural alignment (equal to bytes)
374374BinaryenExpressionRef BinaryenLoad (BinaryenModuleRef module , uint32_t bytes , int8_t signed_ , uint32_t offset , uint32_t align , BinaryenType type , BinaryenExpressionRef ptr );
375375// Store: align can be 0, in which case it will be the natural alignment (equal to bytes)
@@ -608,11 +608,11 @@ void BinaryenRemoveFunction(BinaryenModuleRef module, const char* name);
608608
609609typedef void * BinaryenImportRef ;
610610
611- WASM_DEPRECATED BinaryenImportRef BinaryenAddImport (BinaryenModuleRef module , const char * internalName , const char * externalModuleName , const char * externalBaseName , BinaryenFunctionTypeRef type );
612- BinaryenImportRef BinaryenAddFunctionImport (BinaryenModuleRef module , const char * internalName , const char * externalModuleName , const char * externalBaseName , BinaryenFunctionTypeRef functionType );
613- BinaryenImportRef BinaryenAddTableImport (BinaryenModuleRef module , const char * internalName , const char * externalModuleName , const char * externalBaseName );
614- BinaryenImportRef BinaryenAddMemoryImport (BinaryenModuleRef module , const char * internalName , const char * externalModuleName , const char * externalBaseName );
615- BinaryenImportRef BinaryenAddGlobalImport (BinaryenModuleRef module , const char * internalName , const char * externalModuleName , const char * externalBaseName , BinaryenType globalType );
611+ WASM_DEPRECATED BinaryenImportRef BinaryenAddImport (BinaryenModuleRef module , const char * internalName , const char * externalModuleName , const char * externalBaseName , BinaryenFunctionTypeRef type );
612+ BinaryenImportRef BinaryenAddFunctionImport (BinaryenModuleRef module , const char * internalName , const char * externalModuleName , const char * externalBaseName , BinaryenFunctionTypeRef functionType );
613+ BinaryenImportRef BinaryenAddTableImport (BinaryenModuleRef module , const char * internalName , const char * externalModuleName , const char * externalBaseName );
614+ BinaryenImportRef BinaryenAddMemoryImport (BinaryenModuleRef module , const char * internalName , const char * externalModuleName , const char * externalBaseName );
615+ BinaryenImportRef BinaryenAddGlobalImport (BinaryenModuleRef module , const char * internalName , const char * externalModuleName , const char * externalBaseName , BinaryenType globalType );
616616void BinaryenRemoveImport (BinaryenModuleRef module , const char * internalName );
617617
618618// Exports
@@ -634,13 +634,13 @@ BinaryenGlobalRef BinaryenAddGlobal(BinaryenModuleRef module, const char* name,
634634
635635// Function table. One per module
636636
637- void BinaryenSetFunctionTable (BinaryenModuleRef module , const char * * funcNames , BinaryenIndex numFuncNames );
637+ void BinaryenSetFunctionTable (BinaryenModuleRef module , const char * * funcNames , BinaryenIndex numFuncNames );
638638
639639// Memory. One per module
640640
641641// Each segment has data in segments, a start offset in segmentOffsets, and a size in segmentSizes.
642642// exportName can be NULL
643- void BinaryenSetMemory (BinaryenModuleRef module , BinaryenIndex initial , BinaryenIndex maximum , const char * exportName , const char * * segments , BinaryenExpressionRef * segmentOffsets , BinaryenIndex * segmentSizes , BinaryenIndex numSegments );
643+ void BinaryenSetMemory (BinaryenModuleRef module , BinaryenIndex initial , BinaryenIndex maximum , const char * exportName , const char * * segments , BinaryenExpressionRef * segmentOffsets , BinaryenIndex * segmentSizes , BinaryenIndex numSegments );
644644
645645// Start function. One per module
646646
@@ -693,7 +693,7 @@ void BinaryenSetDebugInfo(int on);
693693
694694// Runs the specified passes on the module. Uses the currently set global
695695// optimize and shrink level.
696- void BinaryenModuleRunPasses (BinaryenModuleRef module , const char * * passes , BinaryenIndex numPasses );
696+ void BinaryenModuleRunPasses (BinaryenModuleRef module , const char * * passes , BinaryenIndex numPasses );
697697
698698// Auto-generate drop() operations where needed. This lets you generate code without
699699// worrying about where they are needed. (It is more efficient to do it yourself,
@@ -783,7 +783,7 @@ void BinaryenFunctionOptimize(BinaryenFunctionRef func, BinaryenModuleRef module
783783
784784// Runs the specified passes on the function. Uses the currently set global
785785// optimize and shrink level.
786- void BinaryenFunctionRunPasses (BinaryenFunctionRef func , BinaryenModuleRef module , const char * * passes , BinaryenIndex numPasses );
786+ void BinaryenFunctionRunPasses (BinaryenFunctionRef func , BinaryenModuleRef module , const char * * passes , BinaryenIndex numPasses );
787787
788788// Sets the debug location of the specified `Expression` within the specified `Function`.
789789void BinaryenFunctionSetDebugLocation (BinaryenFunctionRef func , BinaryenExpressionRef expr , BinaryenIndex fileIndex , BinaryenIndex lineNumber , BinaryenIndex columnNumber );
0 commit comments