Opened 5 years ago

Closed 5 years ago

#154 closed task (fixed)

split large source files

Reported by: Thomas Bernard Owned by: Thomas Bernard
Priority: minor Milestone: 2.7
Component: GrafX2 Version: 2.7
Keywords: Cc:


some of the .c source files are very long :

$ wc -l *.c|sort -n|tail
    3147 palette.c
    3787 windows.c
    3903 engine.c
    3967 graph.c
    4176 operatio.c
    5717 buttons.c
    7091 fileformats.c
    7692 miscfileformats.c
   19375 recoil.c
  108223 total

About fileformats.c/miscfileformats.c, I think we can move some functions to specific files, such as iffformat.c / gifformat.c / st_formats.c / etc.

Change History (6)

comment:1 by Thomas Bernard, 5 years ago

ms_formats.c for ico/bmp ;)

comment:2 by PulkoMandy, 5 years ago

Yes, miscfileformats was already split from fileformats a long time ago. Splitting per platform would make sense indeed.

comment:3 by Thomas Bernard, 5 years ago

Owner: changed from pulkomandy to Thomas Bernard
Status: newaccepted

comment:5 by Thomas Bernard, 5 years ago

most of the work have been done.
We may still gtet GIF out of fileformats.c (that's a big chunk)

comment:6 by Thomas Bernard, 5 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.