Add some missing declarations to headers. Remove some redundant

declarations elsewhere.  Change linkage of some functions to static.
This commit is contained in:
Markus Armbruster 2004-02-20 10:51:03 +00:00
parent e7811102a3
commit 4a3f0b8146
43 changed files with 72 additions and 169 deletions

View file

@ -98,7 +98,6 @@ void
lwpInitContext(volatile struct lwpProc *volatile newp, void *sp)
{
static jmp_buf *cpp;
extern struct lwpProc *LwpCurrent;
if (!lwpSave(LwpCurrent->context)) {
cpp = (jmp_buf *) & newp->context;
@ -305,7 +304,6 @@ void
lwpInitContext(struct lwpProc *newp, void *sp)
{
static jmp_buf *cpp;
extern struct lwpProc *LwpCurrent;
memset(newp->context, 0, sizeof(newp->context));
newp->context[0] = (int)sp;

View file

@ -36,11 +36,6 @@
#include <bounds/unchecked.h>
#endif
#ifdef hpc
extern struct lwpProc *initcontext;
extern int startpoint;
#endif
struct lwpQueue LwpSchedQ[LWP_MAX_PRIO], LwpDeadQ;
struct lwpProc *LwpCurrent = NULL;

View file

@ -29,6 +29,11 @@
/* more inefficient the context switch time */
#define LCOUNT -1
#ifdef hpc
extern struct lwpProc *initcontext;
extern int startpoint;
#endif
#ifdef hpux
int lwpSave(jmp_buf);
void lwpRestore(jmp_buf);