Skip to content
Snippets Groups Projects
  • Tom Tromey's avatar
    977a0c16
    Constify linetables · 977a0c16
    Tom Tromey authored
    
    Linetables no longer change after they are created.  This patch
    applies const to them.
    
    Note there is one hack to cast away const in mdebugread.c.  This code
    allocates a linetable using 'malloc', then later copies it to the
    obstack.  While this could be cleaned up, I chose not to do so because
    I have no way of testing it.
    
    Approved-By: default avatarSimon Marchi <simon.marchi@efficios.com>
    977a0c16
    History
    Constify linetables
    Tom Tromey authored
    
    Linetables no longer change after they are created.  This patch
    applies const to them.
    
    Note there is one hack to cast away const in mdebugread.c.  This code
    allocates a linetable using 'malloc', then later copies it to the
    obstack.  While this could be cleaned up, I chose not to do so because
    I have no way of testing it.
    
    Approved-By: default avatarSimon Marchi <simon.marchi@efficios.com>