Jump to content

Au3Stripper /PE does not handle ENum's?


AGlassman
 Share

Recommended Posts

Am I doing something wrong, or does Au3Stripper not process Global Enum's?

Original

#AutoIt3Wrapper_Run_Au3Stripper=y
#Au3Stripper_Parameters=/pe
#AutoIt3Wrapper_Au3stripper_OnError=S

Global Enum $GlobalEnumVar
Global Const $GlobalConstVar = 0

Main()
Func Main()

    ConsoleWrite( "AutoItVersion: " & @AutoItVersion & @CRLF )

    ConsoleWrite( "$GlobalEnumVar: " & $GlobalEnumVar & @CRLF )
    ConsoleWrite( "$GlobalConstVar: " & $GlobalConstVar & @CRLF )

EndFunc

Build

>Running Au3Stripper (21.316.1639.0)  from:C:\Progs\Apps\AutoIt\SciTE\Au3Stripper cmdline:
- 0.03 Iteration 1 Strip Functions result: Output  8 lines, stripped 0 Func lines and 8 Commentlines
- 0.03 Iteration 2 Strip Variables result: Output  8 lines and stripped 0 lines
- 0.03 Iteration 3 Strip Variables result: Output  7 lines and stripped 1 lines
- 0.03 Iteration 4 Strip Variables result: Output  7 lines and stripped 0 lines
+> Source    16 lines 360 Characters.
+> Stripped  1 Func/Var lines and  8 comment lines, Total 132 Characters.
+> Saved     56% lines 36% Characters.
+> Au3Stripper v21.316.1639.0 finished created:C:\HotRod\AU3\TEST\Au3Stripper\Au3Stripper_stripped.au3
+>04:23:07 Au3Stripper ended.rc:0

Stripped

Global Enum $GlobalEnumVar
Main()
Func Main()
ConsoleWrite( "AutoItVersion: " & @AutoItVersion & @CRLF )
ConsoleWrite( "$GlobalEnumVar: " & $GlobalEnumVar & @CRLF )
ConsoleWrite( "$GlobalConstVar: " & 0 & @CRLF )
EndFunc

It replaced $GlobalConstVar with it's value. But it left $GlobalEnumVar.

Link to comment
Share on other sites

  • Developers

Correct, it doesn't handle those as it doesn't contain any logic to "understand" the full set of options that Enum has and only simply identify that declaration of the variable. 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...