Changeset 4644 for libcaca


Ignore:
Timestamp:
Sep 2, 2010, 11:02:16 PM (8 years ago)
Author:
Sam Hocevar
Message:

Mark the font data as const. We no longer modify it in place.

Location:
libcaca/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/mono9.data

    r4149 r4644  
    66
    77static size_t const mono9_size = 246854;
    8 static uint8_t mono9_data[246854] =
     8static uint8_t const mono9_data[246854] =
    99{
    1010/* file: */
  • libcaca/trunk/caca/monobold12.data

    r4149 r4644  
    66
    77static size_t const monobold12_size = 419205;
    8 static uint8_t monobold12_data[419205] =
     8static uint8_t const monobold12_data[419205] =
    99{
    1010/* file: */
  • libcaca/trunk/tools/makefont.c

    r4369 r4644  
    189189    printf("static size_t const %s_size = %i;\n",
    190190           prefix, 4 + control_size + data_size);
    191     printf("static uint8_t %s_data[%i] =\n",
     191    printf("static uint8_t const %s_data[%i] =\n",
    192192           prefix, 4 + control_size + data_size);
    193193    printf("{\n");
Note: See TracChangeset for help on using the changeset viewer.