AmigaLabs / clib4

Clib4 for AmigaOS4
Other
14 stars 7 forks source link

Added private function __search_expand_command_path() #193

Closed elfpipe closed 3 months ago

elfpipe commented 3 months ago

Work-in-progress suggestion for an added cli path search for the unix-amiga path translation utility functions.

elfpipe commented 3 months ago

How do I access IUtility, if I can not refer to __IUtility? Do I have privileges to call OpenLibrary()/GetInterface()? Or is there a different solution?

afxgroup commented 3 months ago

Add:

DECLARE_UTILITYBASE();

In your code. Search for DECLARE_UTILITYBASE(); to see how it is used

elfpipe commented 3 months ago

@afxgroup : 3. In translateu2a.c remove commented function and please reformat code to follow the code

I am guessing, you mean the call to __translate_relative_path_name...?

I think, it should still be there, since it could still be relevant after a cmd path search. What do you think?

afxgroup commented 3 months ago

I'm speaking about code writing convention. Meaning formatting code. for example if(a) is wrong. If (a) is correct. LiteXl should have a formatter

elfpipe commented 3 months ago

I added formatter_clangformat.lua to the lite-xl plugins. The plugin is activated on keycombo (it writes a message), but the command does nothing. From looking at the lua, it seems, that it is not really implemented. I guess that is another vacation project.