Opened 8 weeks ago

Closed 6 weeks 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.7WIP
Keywords: Cc:

Description

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 Changed 8 weeks ago by Thomas Bernard

ms_formats.c for ico/bmp ;)

comment:2 Changed 8 weeks ago by PulkoMandy

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

comment:3 Changed 6 weeks ago by Thomas Bernard

Owner: changed from pulkomandy to Thomas Bernard
Status: newaccepted

comment:5 Changed 6 weeks ago by Thomas Bernard

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

comment:6 Changed 6 weeks ago by Thomas Bernard

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