* cygprops.h: Use #pragma once.
* mkglobals_h: Ditto for generated globals.h file. * globals.cc: Use specific NO_GLOBALS_H flag to control inclusion of globals.h. * winsup.h: Honor NO_GLOBALS_H to control inclusion of globals.h. Make clear_procimptoken extern inline so that it is only defined when needed.
This commit is contained in:
parent
548dc6a14d
commit
374d215cca
@ -1,3 +1,13 @@
|
|||||||
|
2012-03-19 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||||
|
|
||||||
|
* cygprops.h: Use #pragma once.
|
||||||
|
* mkglobals_h: Ditto for generated globals.h file.
|
||||||
|
* globals.cc: Use specific NO_GLOBALS_H flag to control inclusion of
|
||||||
|
globals.h.
|
||||||
|
* winsup.h: Honor NO_GLOBALS_H to control inclusion of globals.h. Make
|
||||||
|
clear_procimptoken extern inline so that it is only defined when
|
||||||
|
needed.
|
||||||
|
|
||||||
2012-03-19 Corinna Vinschen <corinna@vinschen.de>
|
2012-03-19 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* thread.cc (cancelable_wait): Don't malloc tbi, just make it a struct
|
* thread.cc (cancelable_wait): Don't malloc tbi, just make it a struct
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* cygprops.h: Cygwin DLL properties
|
/* cygprops.h: Cygwin DLL properties
|
||||||
|
|
||||||
Copyright 2009 Red Hat, Inc.
|
Copyright 2009, 2012 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
@ -8,6 +8,7 @@ This software is a copyrighted work licensed under the terms of the
|
|||||||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||||
details. */
|
details. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
/* DLL properties data. */
|
/* DLL properties data. */
|
||||||
struct cygwin_props_t
|
struct cygwin_props_t
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,7 @@ This software is a copyrighted work licensed under the terms of the
|
|||||||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||||
details. */
|
details. */
|
||||||
|
|
||||||
#define _GLOBALS_H 1
|
#define NO_GLOBALS_H
|
||||||
#include "winsup.h"
|
#include "winsup.h"
|
||||||
#include "cygtls.h"
|
#include "cygtls.h"
|
||||||
#include "perprocess.h"
|
#include "perprocess.h"
|
||||||
@ -31,20 +31,20 @@ UINT system_wow64_directory_length;
|
|||||||
/* program exit the program */
|
/* program exit the program */
|
||||||
|
|
||||||
enum exit_states
|
enum exit_states
|
||||||
{
|
{
|
||||||
ES_NOT_EXITING = 0,
|
ES_NOT_EXITING = 0,
|
||||||
ES_EXIT_STARTING,
|
ES_EXIT_STARTING,
|
||||||
ES_PROCESS_LOCKED,
|
ES_PROCESS_LOCKED,
|
||||||
ES_EVENTS_TERMINATE,
|
ES_EVENTS_TERMINATE,
|
||||||
ES_SIGNAL,
|
ES_SIGNAL,
|
||||||
ES_CLOSEALL,
|
ES_CLOSEALL,
|
||||||
ES_THREADTERM,
|
ES_THREADTERM,
|
||||||
ES_HUP_PGRP,
|
ES_HUP_PGRP,
|
||||||
ES_HUP_SID,
|
ES_HUP_SID,
|
||||||
ES_EXEC_EXIT,
|
ES_EXEC_EXIT,
|
||||||
ES_TTY_TERMINATE,
|
ES_TTY_TERMINATE,
|
||||||
ES_FINAL
|
ES_FINAL
|
||||||
};
|
};
|
||||||
|
|
||||||
exit_states NO_COPY exit_state;
|
exit_states NO_COPY exit_state;
|
||||||
|
|
||||||
|
@ -14,10 +14,10 @@ s/-NL-/\n/sog;
|
|||||||
s/-EQ-/=/sog;
|
s/-EQ-/=/sog;
|
||||||
s/\s+\n/\n/sog;
|
s/\s+\n/\n/sog;
|
||||||
s/\n{2,}/\n/sog;
|
s/\n{2,}/\n/sog;
|
||||||
print <<PRELUDE,$_,"#endif /*_GLOBALS_H*/\n";
|
print <<PRELUDE,$_;
|
||||||
/* $target - Autogenerated from @argv. Look there for comments. */
|
/* $target - Autogenerated from @argv. Look there for comments. */
|
||||||
|
|
||||||
#ifndef _GLOBALS_H
|
#pragma once
|
||||||
PRELUDE
|
PRELUDE
|
||||||
close $target_fd;
|
close $target_fd;
|
||||||
sub munge($) {
|
sub munge($) {
|
||||||
|
@ -298,9 +298,10 @@ extern "C" char _data_start__, _data_end__, _bss_start__, _bss_end__;
|
|||||||
extern "C" void (*__CTOR_LIST__) (void);
|
extern "C" void (*__CTOR_LIST__) (void);
|
||||||
extern "C" void (*__DTOR_LIST__) (void);
|
extern "C" void (*__DTOR_LIST__) (void);
|
||||||
|
|
||||||
#if !defined(_GLOBALS_H)
|
#ifndef NO_GLOBALS_H
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
inline void clear_procimptoken ()
|
|
||||||
|
extern inline void clear_procimptoken ()
|
||||||
{
|
{
|
||||||
if (hProcImpToken)
|
if (hProcImpToken)
|
||||||
{
|
{
|
||||||
@ -309,6 +310,5 @@ inline void clear_procimptoken ()
|
|||||||
CloseHandle (old_procimp);
|
CloseHandle (old_procimp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /*NO_GLOBALS_H*/
|
||||||
|
|
||||||
#endif /* defined __cplusplus */
|
#endif /* defined __cplusplus */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user