Skip to content

Commit 7cfe80d

Browse files
committed
Added multi inc protection to header files
1 parent 2c9703a commit 7cfe80d

22 files changed

+113
-8
lines changed

Alg_elements.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _ALG_ELEMENTS_H_
2+
#define _ALG_ELEMENTS_H_
3+
14
/*******************************************************************/
25
/*** FILE : Alg_elements.h ***/
36
/*** AUTHOR: Sekhar Muddana ***/
@@ -26,3 +29,4 @@ int AssignLast(Alg_element *p);
2629
int MultAE(Alg_element *p1, Alg_element *p2, /* pointers for speed. */ Alg_element *p3);
2730
Alg_element *AllocAE();
2831

32+
#endif

Basis_table.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _BASIS_TABLE_H_
2+
#define _BASIS_TABLE_H_
3+
14
/*******************************************************************/
25
/*** FILE : Basis_table.h ***/
36
/*** AUTHOR: Sekhar Muddana ***/
@@ -18,3 +21,5 @@ typedef struct {
1821
Basis first_basis;
1922
Basis last_basis;
2023
} Deg_to_basis_rec;
24+
25+
#endif

Build_defs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _BUILD_DEFS_H_
2+
#define _BUILD_DEFS_H_
3+
14
/*******************************************************************/
25
/*** FILE : Build_defs.h ***/
36
/*** AUTHOR: Sekhar Muddana ***/
@@ -40,3 +43,4 @@ typedef char Degree;
4043
typedef Degree *Type;
4144
typedef int Name;
4245

46+
#endif

CreateMatrix.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _CREATEMATRIX_H_
2+
#define _CREATEMATRIX_H_
3+
14
/*******************************************************************/
25
/*** FILE : CreateMatrix.h ***/
36
/*** AUTHOR: Sekhar Muddana ***/
@@ -22,3 +25,5 @@ typedef struct eqn_list_node{
2225
Basis_pair *basis_pairs;
2326
struct eqn_list_node *next;
2427
} Eqn_list_node;
28+
29+
#endif

Debug.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _DEBUG_H_
2+
#define _DEBUG_H_
3+
14
/************************************************************/
25
/*** FILE : Debug.h ***/
36
/*** AUTHOR: Sekhar Muddana ***/
@@ -13,3 +16,5 @@
1316
#define PRINT_BASIS_TABLE 0
1417
#define PRINT_TYPE_TABLE 0
1518
#define PRINT_MULT_TABLE 0
19+
20+
#endif

Field.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _FIELD_H_
2+
#define _FIELD_H_
3+
14
/*******************************************************************/
25
/*** FILE : Field.h ***/
36
/*** AUTHOR: Sekhar Muddana ***/
@@ -9,3 +12,5 @@ static int Prime[] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,
912
61,67,71, 73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,
1013
151,157,163,167, 173,179,181,191,193,197,199,211,223,227,229,233,
1114
239,241,251,0};
15+
16+
#endif

Get_Command.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _GET_COMMAND_H_
2+
#define _GET_COMMAND_H_
3+
14
/*******************************************************************/
25
/*** FILE : Get_Command.h ***/
36
/*** AUTHOR: Sekhar Muddana ***/
@@ -13,3 +16,5 @@ typedef struct dalbert_node {
1316
char *rhs;
1417
struct dalbert_node *next;
1518
} Dalbert_node;
19+
20+
#endif

Help.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _HELP_H_
2+
#define _HELP_H_
3+
14
/*******************************************************************/
25
/*** FILE : Help.h ***/
36
/*** AUTHOR: Sekhar Muddana ***/
@@ -536,3 +539,5 @@ construct its algebras:\n\n\
536539
Computers & Mathematics with Applications\",\n\
537540
22 (1991), 12, 61-66.\n\n"
538541
};
542+
543+
#endif

Id_routines.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _ID_ROUTINES_H_
2+
#define _ID_ROUTINES_H_
3+
14
/*******************************************************************/
25
/*** FILE : Id_routines.h ***/
36
/*** AUTHOR: Sekhar Muddana ***/
@@ -12,3 +15,5 @@ typedef struct id_queue_node {
1215
typedef struct id_queue_head{
1316
struct id_queue_node *first;
1417
} id_queue_head;
18+
19+
#endif

Mult_table.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _MULT_TABLE_H_
2+
#define _MULT_TABLE_H_
3+
14
/*******************************************************************/
25
/*** FILE : Mult_table.h ***/
36
/*** AUTHOR: Sekhar Muddana ***/
@@ -25,3 +28,5 @@ typedef struct terms_block {
2528
Term *terms; /* TW 9/22/93 - changed terms from array to ptr */
2629
struct terms_block *next;
2730
} Terms_block;
31+
32+
#endif

0 commit comments

Comments
 (0)