|
|
Thorsten Froehlich wrote:
> In article <394D8D71.42B5626F@nospam.hotmail.com> , Pabs
> <pab### [at] nospamhotmailcom> wrote:
>
> > These UICB_xxs are all very well but
> > 2 probs
> > 1.
> > Of the src I have looked at (win, dos, unix, linux) none of the config.h
> > files
> > define these and so they all resolve to nothing in frame.h like so
> > #ifndef UICB_PARSE_ERROR /* Alert UI that a parse error occurred */
> > #define UICB_PARSE_ERROR
> > #endif
>
> This is exactly how all POV-Ray config.h macros work! If you don't use them
> POV-Ray defines a useful default. Without this you would have to fix every
> config.h of every platform whenever you add a new platform configuration
> macro.
I know & understand this
> > Does the mac config.h define these (I can't read hqx files) & if so why don't
> > other platforms use them
>
> Why? Simple: POV-Ray is a complex software and these macros were added late
> in the 3.1 development and other platform source code was just not adapted
> in time before the 3.1 release. This happens :-)
Oh well
> > 2.
> > Even if they were defined there is no define corresponding to the
> > WIN_WhereError function - just the following 4 defines
> > UICB_PARSE_ERROR /* Alert UI that a parse error occurred */
> > UICB_USER_ABORT /* alert UI that user aborted the render */
> > UICB_OPEN_INCLUDE_FILE /* alert UI that an include file was opened during
> > parse */
> > UICB_CLOSE_INCLUDE_FILE /* alert UI that an include file was closed during
> > parse */
> > so maybe a define of UICB_WhereError could be added in config.h & frame.h to
> > alert the UI of where in the file the parsing error occured
> > & in Where_Error this funcion could be called
> > Only WinPOV calls this kind of function
>
> UICB_PARSE_ERROR provides the same functionality WIN_WhereError does, it has
> just a different name (Where_Error only gets called on parse errors). It
> does not need to be in Where_Error. The place it is in is fine to provide
> the same functionality (in function Error in userio.c), but if you don't
> like UICB_PARSE_ERROR in userio.c just move (not copy!) it to tokenize.c.
There is no way (for me) to know what the functionality of this macro is supposed
to be but I hope it will be used in 3.5 properly
> > Anyway just for the hell of it could Nathan PLEASE add the call I mentioned
> > in my previous post to the next version of WinMegaPOV - even if it is just
> > for the compiled binary.
>
> Adding it would serve no purpose as it is already there, I fail to
> understand the logic behind it then - sorry :-(
What I want is for the Auto-load error file option in WMP to work as it does in the
official version (that is it actually works - the editor transfers to the file,
line and column of a parsing error) - no more no less
The only difference between wmp & official src that fixed this (in my msvc compiled
version) was calling WIN_WhereError in Where_Error as I mentioned in my original
post
I don't want a flame war - just the above request
Pabs
Post a reply to this message
|
|