Changeset 426

Show
Ignore:
Timestamp:
10/04/07 17:04:22 (1 year ago)
Author:
bjourne
Message:

Mark static data const. Reduces memory usage somewhat (dsohowto.pdf).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gtkimageview/src/cursors.c

    r136 r426  
    2020#include "cursors.h" 
    2121 
    22 static char void_data[] = { 0x00 }; 
    23 static char void_mask[] = { 0x00 }; 
     22static const char void_data[] = { 0x00 }; 
     23static const char void_mask[] = { 0x00 }; 
    2424 
    25 static char hand_open_data[] = 
     25static const char hand_open_data[] = 
    2626{ 
    2727    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 
     
    3131    0x00, 0x3f, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 
    3232}; 
    33 static char hand_open_mask[] = 
     33static const char hand_open_mask[] = 
    3434{ 
    3535   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x60, 0x3f, 0x00, 
     
    4040}; 
    4141 
    42 static char hand_closed_data[] = 
     42static const char hand_closed_data[] = 
    4343{ 
    4444   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
     
    4848   0x00, 0x3f, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 
    4949}; 
    50 static char hand_closed_mask[] = 
     50static const char hand_closed_mask[] = 
    5151{ 
    5252    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
     
    6060static struct 
    6161{ 
    62     char *data; 
    63     char *mask; 
     62    const char *data; 
     63    const char *mask; 
    6464    int   width; 
    6565    int   height;