#4 Patch to fix strcmpi->strcmp evils

closed
Bernhard Held
None
5
2003-05-09
2002-06-26
gnuman
No

I've attached a patch that might just save some people
some hair. The asembler has a nasty thing

#define strcmpi strcmp

with the excuse that strcmpi does not exist in ANSI

well, in the new libc, there is strcasestr
anyway, for anyone using the assembler directly, this
might just help.
Even if it does not exist on a system, a thing like
strcmpi could be very easily written so the hack listed
above _should_ not exist.

- Adam

PS. For some reason, which I did not track down [don't
care much now], stuff like

mov a, #43
mov A, #4
mov DPTR, #some_address

all compiles fine but it got hung with a type error on

mov @DPTR, A

thus I'll have to assume that wrong output was being
generated with mov DPTR, #43

Discussion

  • gnuman
    gnuman
    2002-06-26

    My crummy patch

     
    Attachments
  • Bernhard Held
    Bernhard Held
    2003-05-09

    • assigned_to: nobody --> bernhardheld
    • status: open --> closed
     
  • Bernhard Held
    Bernhard Held
    2003-05-09

    Logged In: YES
    user_id=203539

    strcmpi is fixed.

    Don't understand the P.S. problem. Please file another report
    with a more detailed example.