Skip to content

const from type #53

@nidud

Description

@nidud

From the UCRT source (strcmp.asm):

CHAR_TYPE EQU BYTE
CHAR_SIZE = sizeof CHAR_TYPE

Test case:

.386
.model flat
CHAR_T EQU SBYTE
WCHAR_T EQU WORD
.code
 mov eax,size CHAR_T	    ; 1
 mov eax,size WCHAR_T	    ; 2
 mov eax,sizeof CHAR_T	    ; 1
 mov eax,sizeof WCHAR_T	    ; 2
 mov eax,type CHAR_T	    ; 0
 mov eax,type WCHAR_T	    ; 0
 mov eax,length CHAR_T	    ; 1
 mov eax,length WCHAR_T	    ; 2
 end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions