Let the Configure instance be private (3/3)

This commit is contained in:
Pierre Pronchery 2017-11-09 03:51:14 +01:00
parent 8a14bdbdc7
commit 6855258c8c
2 changed files with 34 additions and 29 deletions

View File

@ -46,7 +46,39 @@
#endif
/* configure */
/* Configure */
/* private */
/* types */
struct _Configure {
ConfigurePrefs * prefs;
Config * config;
HostArch arch;
HostOS os;
HostKernel kernel;
struct
{
char const * exeext;
char const * soext;
} extensions;
struct
{
char const * ar;
char const * as;
char const * cc;
char const * ccshared;
char const * cxx;
char const * install;
char const * libtool;
char const * ln;
char const * mkdir;
char const * ranlib;
char const * rm;
char const * tar;
} programs;
};
/* public */
/* constants */
const String * sHostArch[HA_COUNT] =
{

View File

@ -141,34 +141,7 @@ typedef struct _ConfigurePrefs
# define PREFS_n 0x1
# define PREFS_S 0x2
# define PREFS_v 0x4
typedef struct _Configure
{
ConfigurePrefs * prefs;
Config * config;
HostArch arch;
HostOS os;
HostKernel kernel;
struct
{
char const * exeext;
char const * soext;
} extensions;
struct
{
char const * ar;
char const * as;
char const * cc;
char const * ccshared;
char const * cxx;
char const * install;
char const * libtool;
char const * ln;
char const * mkdir;
char const * ranlib;
char const * rm;
char const * tar;
} programs;
} Configure;
typedef struct _Configure Configure;
/* functions */