Is "rename" a reserver word ?

Other misc things
Post Reply
stefano
Well known member
Posts: 2150
Joined: Mon Jul 16, 2007 7:39 pm

Is "rename" a reserver word ?

Post by stefano »

I'm trying to test the "rename" function, but I have odd results:

Code: Select all

;* * * * *  Small-C/Plus z88dk * * * * *
;  Version: 20070909.1
;
;        Reconstructed for the z80 Module Assembler
;
;        Module compile time: Tue May 13 07:49:51 2008



        MODULE        test.c

        INCLUDE "#z80_crt0.hdr"



._main
        ld        hl,i_1+0
        push        hl
        ld        hl,i_1+6
        push        hl
        call        rename
        pop        bc
        pop        bc
        ret


.i_1
        defm        "a.com"&0
        defm        "abcdghi"&0


; --- Start of Static Variables ---



; --- Start of Scope Defns ---

        LIB        sprintf
        XREF        _cpm_version
        LIB        biosh
        LIB        fgetc
        LIB        freopen
        LIB        fgets
        LIB        open_z88
        LIB        creat
        LIB        close
        LIB        fread
        LIB        cpc_model
        LIB        getwd
        LIB        fseek
        LIB        ltoa_any
        LIB        fopen
        LIB        ftell
        LIB        fprintf
        LIB        vsscanf
        XREF        __sgoioblk
        LIB        fgets_cons
        LIB        mkdir
        LIB        fputc
        LIB        scanf
        LIB        fputs
        LIB        lseek
        LIB        writebyte
        LIB        fclose
        LIB        rmdir
        LIB        fdopen
        LIB        fdtell
        LIB        freopen_z88
        LIB        getfcb
        LIB        getarg
        LIB        go_cpm
        LIB        getcwd
        XREF        __fcb
        LIB        vfprintf_comp
        LIB        fscanf
        LIB        fdgetpos
        LIB        bdos
        LIB        write
        LIB        puts_cons
        LIB        putoffset
        LIB        vfprintf_mini
        LIB        bios
        LIB        feof
        LIB        getk
        LIB        gets
        LIB        vfprintf_fp
        XDEF        _main
        LIB        read
        LIB        open
        LIB        tell
        LIB        fopen_z88
        LIB        cpc_fdc
        LIB        puts
        LIB        fwrite
        XDEF        rename
        LIB        fchkstd
        LIB        readbyte
        LIB        fgetc_cons
        LIB        remove
        LIB        setfcb
        LIB        vsprintf
        LIB        vfscanf
        LIB        nropen
        LIB        fgetpos
        LIB        printf
        LIB        sscanf
        LIB        printk
        LIB        printn
        LIB        closeall
        LIB        ungetc
        LIB        parsefcb
        LIB        fabandon
        XREF        _vfprintf
        LIB        fputc_cons
        LIB        _putoffset


; --- End of Scope Defns ---


; --- End of Compilation ---
Why that "XDEF rename" ?
What's wrong ?
stefano
Well known member
Posts: 2150
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

Found the problem myself, it is my fault: I doubled the declaration for rename, I'll fix ASAP.
The result is weird, though.
Post Reply