Skip to contentSkip to conversation

Move os dependent code to a separate file ?

DISCUSSION Bean 2 participants 2 messages Feb 2, 2008

lore
Share & tools
lore

Bean

author
#0 lore raw

Hi,

i can see that there are linux specific code in util/biosdisk.c, perhaps we should move them to a separate file such as util/osdep.c ?

Signature · 1 line
Bean
#1 lore raw
Quoted 4 lines · Bean

Hi,

i can see that there are linux specific code in util/biosdisk.c, perhaps we should move them to a separate file such as util/osdep.c ?

In general I don't like very much to split unportable code in separate files because it's easy to lose context of what it is doing. But some Linux-specific code in that file is obsolete, IIRC, inherited from GRUB Legacy just to support ancient libcs. Maybe part of it needs to be considered for removal.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)