Macros | Typedefs | Enumerations | Functions | Variables
structs.h File Reference
#include <kernel/mod2.h>
#include <omalloc/omalloc.h>
#include <coeffs/si_gmp.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 int * int_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

◆ BITSET

#define BITSET   unsigned int

Definition at line 18 of file structs.h.

◆ loop

#define loop   for(;;)

Definition at line 86 of file structs.h.

Typedef Documentation

◆ char_ptr

typedef char* char_ptr

Definition at line 56 of file structs.h.

◆ int_ptr

typedef int* int_ptr

Definition at line 57 of file structs.h.

◆ kStrategy

Definition at line 61 of file structs.h.

◆ leftv

typedef sleftv* leftv

Definition at line 60 of file structs.h.

◆ package

typedef ip_package* package

Definition at line 46 of file structs.h.

◆ procinfov

typedef procinfo* procinfov

Definition at line 63 of file structs.h.

◆ syStrategy

Definition at line 62 of file structs.h.

Enumeration Type Documentation

◆ tHomog

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:94
#define TRUE
Definition: auxiliary.h:98

Function Documentation

◆ m2_end()

void m2_end ( int  i)

Definition at line 1074 of file misc_ip.cc.

1075 {
1076  if (!m2_end_called)
1077  {
1078  extern FILE* File_Profiling;
1080  m2_end_called = TRUE;
1081 #ifdef HAVE_SIMPLEIPC
1082  for (int j = SIPC_MAX_SEMAPHORES-1; j >= 0; j--)
1083  {
1084  if (semaphore[j] != NULL)
1085  {
1086  while (sem_acquired[j] > 0)
1087  {
1088 #if PORTABLE_SEMAPHORES
1089  sem_post(semaphore[j]->sig);
1090 #else
1091  sem_post(semaphore[j]);
1092 #endif
1093  sem_acquired[j]--;
1094  }
1095  }
1096  }
1097 #endif // HAVE_SIMPLEIPC
1099  monitor(NULL,0);
1100 #ifdef PAGE_TEST
1101  mmEndStat();
1102 #endif
1105  {
1107  while(hh!=NULL)
1108  {
1109  //Print("close %s\n",hh->l->name);
1110  slPrepClose(hh->l);
1111  hh=(link_list)hh->next;
1112  }
1114 
1115  idhdl h = currPack->idroot;
1116  while(h != NULL)
1117  {
1118  if(IDTYP(h) == LINK_CMD)
1119  {
1120  idhdl hh=h->next;
1121  //Print("kill %s\n",IDID(h));
1122  killhdl(h, currPack);
1123  h = hh;
1124  }
1125  else
1126  {
1127  h = h->next;
1128  }
1129  }
1130  hh=ssiToBeClosed;
1131  while(hh!=NULL)
1132  {
1133  //Print("close %s\n",hh->l->name);
1134  slClose(hh->l);
1135  hh=ssiToBeClosed;
1136  }
1137  }
1138  if (!singular_in_batchmode)
1139  {
1140  if (i<=0)
1141  {
1142  if (TEST_V_QUIET)
1143  {
1144  if (i==0)
1145  printf("Auf Wiedersehen.\n");
1146  else
1147  printf("\n$Bye.\n");
1148  }
1149  //#ifdef sun
1150  // #ifndef __svr4__
1151  // _cleanup();
1152  // _exit(0);
1153  // #endif
1154  //#endif
1155  i=0;
1156  }
1157  else
1158  {
1159  printf("\nhalt %d\n",i);
1160  }
1161  }
1162  exit(i);
1163  }
1164 }
#define TEST_V_QUIET
Definition: options.h:127
volatile BOOLEAN m2_end_called
Definition: misc_ip.cc:1072
#define FALSE
Definition: auxiliary.h:94
sipc_sem_t * semaphore[SIPC_MAX_SEMAPHORES]
Definition: semaphore.c:24
#define TRUE
Definition: auxiliary.h:98
FILE * File_Profiling
Definition: fevoices.cc:38
Definition: idrec.h:34
void monitor(void *F, int mode)
Definition: febase.cc:72
#define IDTYP(a)
Definition: ipid.h:116
BOOLEAN singular_in_batchmode
Definition: cntrlc.cc:71
int j
Definition: myNF.cc:70
void fe_reset_input_mode()
Definition: fereadl.c:836
int i
Definition: cfEzgcd.cc:123
Definition: tok.h:116
#define NULL
Definition: omList.c:10
void killhdl(idhdl h, package proot)
Definition: ipid.cc:377
package currPack
Definition: ipid.cc:63
#define SIPC_MAX_SEMAPHORES
Definition: simpleipc.h:10
int sem_acquired[SIPC_MAX_SEMAPHORES]
Definition: semaphore.c:25
static Poly * h
Definition: janet.cc:978

Variable Documentation

◆ char_ptr_bin

omBin char_ptr_bin

Definition at line 55 of file ring.cc.