view loader/ldt_keeper.h @ 33156:9ac31195a5e0

Use strtod instead of sscanf, it is both much faster and allows for easier error checking. Also do that error checking and print a message if what we received is not a proper number and ignore the message.
author reimar
date Sat, 09 Apr 2011 15:09:06 +0000
parents 6506ce7ba414
children
line wrap: on
line source

#ifndef MPLAYER_LDT_KEEPER_H
#define MPLAYER_LDT_KEEPER_H

extern void *fs_seg;

typedef struct {
  void* fs_seg;
  char* prev_struct;
} ldt_fs_t;

void Setup_FS_Segment(void);
ldt_fs_t* Setup_LDT_Keeper(void);
void Restore_LDT_Keeper(ldt_fs_t* ldt_fs);

#endif /* MPLAYER_LDT_KEEPER_H */