Macros | Typedefs | Enumerations | Functions | Variables
structs.h File Reference
#include <omalloc/omalloc.h>
#include <coeffs/si_gmp.h>
#include <misc/auxiliary.h>
#include <kernel/polys.h>
#include <polys/coeffrings.h>

Go to the source code of this file.

Macros

#define BITSET   unsigned int
 
#define loop   for(;;)
 

Typedefs

typedef ip_package * package
 
typedef char * char_ptr
 
typedef intint_ptr
 
typedef sleftvleftv
 
typedef skStrategykStrategy
 
typedef ssyStrategysyStrategy
 
typedef procinfoprocinfov
 

Enumerations

enum  tHomog { isNotHomog = FALSE, isHomog = TRUE, testHomog }
 

Functions

void m2_end (int i)
 

Variables

omBin char_ptr_bin
 

Macro Definition Documentation

#define BITSET   unsigned int

Definition at line 17 of file structs.h.

#define loop   for(;;)

Definition at line 86 of file structs.h.

Typedef Documentation

typedef char* char_ptr

Definition at line 56 of file structs.h.

typedef int* int_ptr

Definition at line 57 of file structs.h.

Definition at line 61 of file structs.h.

typedef sleftv* leftv

Definition at line 60 of file structs.h.

typedef ip_package* package

Definition at line 46 of file structs.h.

typedef procinfo* procinfov

Definition at line 63 of file structs.h.

Definition at line 62 of file structs.h.

Enumeration Type Documentation

enum tHomog
Enumerator
isNotHomog 
isHomog 
testHomog 

Definition at line 37 of file structs.h.

38 {
39  isNotHomog = FALSE,
40  isHomog = TRUE,
41  testHomog
42 };
#define FALSE
Definition: auxiliary.h:140
#define TRUE
Definition: auxiliary.h:144

Function Documentation

void m2_end ( int  i)

Definition at line 1074 of file misc_ip.cc.

1075 {
1076  if (!m2_end_called)
1077  {
1078  m2_end_called = TRUE;
1079 #ifdef HAVE_SIMPLEIPC
1080  for (int j = SIPC_MAX_SEMAPHORES; j >= 0; j--)
1081  {
1082  if (semaphore[j] != NULL)
1083  {
1084  while (sem_acquired[j] > 0)
1085  {
1086  sem_post(semaphore[j]);
1087  sem_acquired[j]--;
1088  }
1089  }
1090  }
1091 #endif // HAVE_SIMPLEIPC
1093 #ifdef PAGE_TEST
1094  mmEndStat();
1095 #endif
1098  {
1100  while(hh!=NULL)
1101  {
1102  //Print("close %s\n",hh->l->name);
1103  slPrepClose(hh->l);
1104  hh=(link_list)hh->next;
1105  }
1107 
1108  idhdl h = currPack->idroot;
1109  while(h != NULL)
1110  {
1111  if(IDTYP(h) == LINK_CMD)
1112  {
1113  idhdl hh=h->next;
1114  //Print("kill %s\n",IDID(h));
1115  killhdl(h, currPack);
1116  h = hh;
1117  }
1118  else
1119  {
1120  h = h->next;
1121  }
1122  }
1123  hh=ssiToBeClosed;
1124  while(hh!=NULL)
1125  {
1126  //Print("close %s\n",hh->l->name);
1127  slClose(hh->l);
1128  hh=ssiToBeClosed;
1129  }
1130  }
1131  if (!singular_in_batchmode)
1132  {
1133  if (i<=0)
1134  {
1135  if (TEST_V_QUIET)
1136  {
1137  if (i==0)
1138  printf("Auf Wiedersehen.\n");
1139  else
1140  printf("\n$Bye.\n");
1141  }
1142  //#ifdef sun
1143  // #ifndef __svr4__
1144  // _cleanup();
1145  // _exit(0);
1146  // #endif
1147  //#endif
1148  i=0;
1149  }
1150  else
1151  {
1152  printf("\nhalt %d\n",i);
1153  }
1154  }
1155  exit(i);
1156  }
1157 }
#define TEST_V_QUIET
Definition: options.h:127
volatile BOOLEAN m2_end_called
Definition: misc_ip.cc:1072
#define FALSE
Definition: auxiliary.h:140
#define TRUE
Definition: auxiliary.h:144
Definition: idrec.h:34
#define IDTYP(a)
Definition: ipid.h:118
sem_t * semaphore[SIPC_MAX_SEMAPHORES]
Definition: semaphore.c:29
BOOLEAN singular_in_batchmode
Definition: cntrlc.cc:78
int j
Definition: myNF.cc:70
void fe_reset_input_mode()
Definition: fereadl.c:826
int i
Definition: cfEzgcd.cc:123
idhdl next
Definition: idrec.h:38
Definition: tok.h:95
#define NULL
Definition: omList.c:10
void killhdl(idhdl h, package proot)
Definition: ipid.cc:369
package currPack
Definition: ipid.cc:62
#define SIPC_MAX_SEMAPHORES
Definition: simpleipc.h:10
int sem_acquired[SIPC_MAX_SEMAPHORES]
Definition: semaphore.c:30
static Poly * h
Definition: janet.cc:978

Variable Documentation

omBin char_ptr_bin

Definition at line 55 of file ring.cc.