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

Function Documentation

§ m2_end()

void m2_end ( int  i)

Definition at line 1072 of file misc_ip.cc.

1073 {
1074  if (!m2_end_called)
1075  {
1076  extern FILE* File_Profiling;
1077  if (File_Profiling!=NULL) { fclose(File_Profiling); File_Profiling=NULL; }
1078  m2_end_called = TRUE;
1079 #ifdef HAVE_SIMPLEIPC
1080  for (int j = SIPC_MAX_SEMAPHORES-1; 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  monitor(NULL,0);
1094 #ifdef PAGE_TEST
1095  mmEndStat();
1096 #endif
1099  {
1101  while(hh!=NULL)
1102  {
1103  //Print("close %s\n",hh->l->name);
1104  slPrepClose(hh->l);
1105  hh=(link_list)hh->next;
1106  }
1108 
1109  idhdl h = currPack->idroot;
1110  while(h != NULL)
1111  {
1112  if(IDTYP(h) == LINK_CMD)
1113  {
1114  idhdl hh=h->next;
1115  //Print("kill %s\n",IDID(h));
1116  killhdl(h, currPack);
1117  h = hh;
1118  }
1119  else
1120  {
1121  h = h->next;
1122  }
1123  }
1124  hh=ssiToBeClosed;
1125  while(hh!=NULL)
1126  {
1127  //Print("close %s\n",hh->l->name);
1128  slClose(hh->l);
1129  hh=ssiToBeClosed;
1130  }
1131  }
1132  if (!singular_in_batchmode)
1133  {
1134  if (i<=0)
1135  {
1136  if (TEST_V_QUIET)
1137  {
1138  if (i==0)
1139  printf("Auf Wiedersehen.\n");
1140  else
1141  printf("\n$Bye.\n");
1142  }
1143  //#ifdef sun
1144  // #ifndef __svr4__
1145  // _cleanup();
1146  // _exit(0);
1147  // #endif
1148  //#endif
1149  i=0;
1150  }
1151  else
1152  {
1153  printf("\nhalt %d\n",i);
1154  }
1155  }
1156  exit(i);
1157  }
1158 }
#define TEST_V_QUIET
Definition: options.h:127
volatile BOOLEAN m2_end_called
Definition: misc_ip.cc:1070
#define FALSE
Definition: auxiliary.h:97
#define TRUE
Definition: auxiliary.h:101
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
sem_t * semaphore[SIPC_MAX_SEMAPHORES]
Definition: semaphore.c:29
BOOLEAN singular_in_batchmode
Definition: cntrlc.cc:72
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:115
#define NULL
Definition: omList.c:10
void killhdl(idhdl h, package proot)
Definition: ipid.cc:372
package currPack
Definition: ipid.cc:63
#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

§ char_ptr_bin

omBin char_ptr_bin

Definition at line 55 of file ring.cc.