cvs commit: hugs98/src errors.c script.c hugs98/src/winhugs General.c IORemap.c Winhugs.h

Neil Mitchell ndmitchell at gmail.com
Wed Oct 5 06:19:24 EDT 2005


Hi,

I noticed you changed:

FileName = &FileName[5]

to

FileName += 5

I realise on some bad C compilers the second one may be more
efficient, but the first has the advantage that when converting from
ASCII to Unicode it still works, whereas the second one corrupts the
string. Because of this, I always write using the first one.

Thanks

Neil

On 10/4/05, Ross Paterson <ross at soi.city.ac.uk> wrote:
> ross        2005/10/04 08:26:38 PDT
>
>   Modified files:
>     src                  errors.c script.c
>     src/winhugs          General.c IORemap.c Winhugs.h
>   Log:
>   from Neil Mitchell: Factor out printing of filename links for WinHugs,
>   and also abbreviate them using {Hugs} or ., expanding them again in
>   editor loading.
>
>   Revision  Changes    Path
>   1.9       +2 -9      hugs98/src/errors.c
>   1.16      +1 -3      hugs98/src/script.c
>   1.2       +12 -1     hugs98/src/winhugs/General.c
>   1.4       +35 -6     hugs98/src/winhugs/IORemap.c
>   1.16      +1 -0      hugs98/src/winhugs/Winhugs.h
> _______________________________________________
> Cvs-hugs mailing list
> Cvs-hugs at haskell.org
> http://www.haskell.org/mailman/listinfo/cvs-hugs
>


More information about the Cvs-hugs mailing list