Skip to content

Commit

Permalink
kernel: include common.h instead of system.h were possible
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 1, 2020
1 parent dd5635a commit 918e95d
Show file tree
Hide file tree
Showing 58 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion src/boehm_gc.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_BOEHM_GC_H
#define GAP_BOEHM_GC_H

#include "system.h"
#include "common.h"

#ifndef USE_BOEHM_GC
#error This file can only be used when the Boehm GC collector is enabled
Expand Down
2 changes: 1 addition & 1 deletion src/collectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_COLLECTORS_H
#define GAP_COLLECTORS_H

#include "system.h"
#include "common.h"

/****************************************************************************
**
Expand Down
2 changes: 1 addition & 1 deletion src/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#ifndef GAP_COMPILER_H
#define GAP_COMPILER_H

#include "system.h"
#include "common.h"

/****************************************************************************
**
Expand Down
2 changes: 1 addition & 1 deletion src/compstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
** SPDX-License-Identifier: GPL-2.0-or-later
*/

#include "system.h"
#include "compstat.h"
#include "common.h"

// #define AVOID_PRECOMPILED

Expand Down
2 changes: 1 addition & 1 deletion src/costab.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#ifndef GAP_COSTAB_H
#define GAP_COSTAB_H

#include "system.h"
#include "common.h"

/****************************************************************************
**
Expand Down
2 changes: 1 addition & 1 deletion src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// libgap as a shared library
#define EXPORT_INLINE extern inline

#include "system.h"
#include "common.h"

#include "calls.h"
#include "fibhash.h"
Expand Down
2 changes: 1 addition & 1 deletion src/dt.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef GAP_DT_H
#define GAP_DT_H

#include "system.h"
#include "common.h"


/****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/dteval.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef GAP_DTEVAL_H
#define GAP_DTEVAL_H

#include "system.h"
#include "common.h"

/****************************************************************************
**
Expand Down
2 changes: 1 addition & 1 deletion src/exprs.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define GAP_EXPRS_H

#include "code.h"
#include "system.h"
#include "common.h"
#include "vars.h"

/****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/fibhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_FIBHASH_H
#define GAP_FIBHASH_H

#include "system.h"
#include "common.h"

enum {
FIB_HASH_BITS = sizeof(void *) * 8,
Expand Down
1 change: 1 addition & 0 deletions src/finfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#ifndef GAP_FINFIELD_H
#define GAP_FINFIELD_H

#include "common.h"
#include "ffdata.h"
#include "objects.h"

Expand Down
2 changes: 1 addition & 1 deletion src/funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef GAP_FUNCS_H
#define GAP_FUNCS_H

#include "system.h"
#include "common.h"

/****************************************************************************
**
Expand Down
2 changes: 1 addition & 1 deletion src/gap.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#ifndef GAP_GAP_H
#define GAP_GAP_H

#include "system.h"
#include "common.h"


/****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/gap_all.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ extern "C" {
#include "calls.h"
#include "code.h"
#include "collectors.h"
#include "common.h"
#include "compiler.h"
#include "costab.h"
#include "cyclotom.h"
Expand Down Expand Up @@ -68,7 +69,6 @@ extern "C" {
#include "streams.h"
#include "stringobj.h"
#include "sysfiles.h"
#include "system.h"
#include "tietze.h"
#include "trans.h"
#include "vars.h"
Expand Down
2 changes: 0 additions & 2 deletions src/gapstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#ifndef GAP_GAPSTATE_H
#define GAP_GAPSTATE_H

#include "system.h"

#include "sysjmp.h"

#if defined(HPCGAP)
Expand Down
2 changes: 1 addition & 1 deletion src/gaputils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_UTILS_H
#define GAP_UTILS_H

#include "system.h"
#include "common.h"

//
// Swap the content of two variables <a> and <b> of type <T>.
Expand Down
2 changes: 1 addition & 1 deletion src/gasman.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#ifndef GAP_GASMAN_H
#define GAP_GASMAN_H

#include "system.h"
#include "common.h"


/****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/hookintrprtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef GAP_HOOKINTRPRTR_H
#define GAP_HOOKINTRPRTR_H

#include "system.h"
#include "common.h"

void InstallEvalBoolFunc(Int, Obj (*)(Expr));
void InstallEvalExprFunc(Int, Obj (*)(Expr));
Expand Down
2 changes: 1 addition & 1 deletion src/hpc/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_ATOMIC_H
#define GAP_ATOMIC_H

#include "system.h"
#include "common.h"

#ifndef HPCGAP
#error This header is only meant to be used with HPC-GAP
Expand Down
2 changes: 1 addition & 1 deletion src/hpc/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_HPC_MISC_H
#define GAP_HPC_MISC_H

#include "system.h"
#include "common.h"

#ifndef HPCGAP
#error This header is only meant to be used with HPC-GAP
Expand Down
2 changes: 1 addition & 1 deletion src/hpc/region.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_REGION_H
#define GAP_REGION_H

#include "system.h"
#include "common.h"

#ifndef HPCGAP
#error This header is only meant to be used with HPC-GAP
Expand Down
2 changes: 1 addition & 1 deletion src/hpc/serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_SERIALIZE_H
#define GAP_SERIALIZE_H

#include "system.h"
#include "common.h"

typedef void (*SerializationFunction)(Obj obj);
typedef Obj (*DeserializationFunction)(UInt tnum);
Expand Down
2 changes: 1 addition & 1 deletion src/hpc/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_THREAD_H
#define GAP_THREAD_H

#include "system.h"
#include "common.h"

#if !defined(HPCGAP)

Expand Down
2 changes: 1 addition & 1 deletion src/hpc/tlsconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_TLSCONFIG_H
#define GAP_TLSCONFIG_H

#include "system.h"
#include "common.h"

#if !defined(HPCGAP)
#error This header is only meant to be used with HPC-GAP
Expand Down
2 changes: 1 addition & 1 deletion src/hpc/traverse.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_TRAVERSE_H
#define GAP_TRAVERSE_H

#include "system.h"
#include "common.h"

typedef struct TraversalState TraversalState;

Expand Down
1 change: 0 additions & 1 deletion src/info.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#define GAP_INFO_H

#include "gap.h"
#include "system.h"

/****************************************************************************
**
Expand Down
2 changes: 1 addition & 1 deletion src/intfuncs.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#ifndef GAP_INTFUNCS_H
#define GAP_INTFUNCS_H

#include "system.h"
#include "common.h"

/* link between Mersenne Twister randim numbers and
representation specific large integer codes */
Expand Down
2 changes: 1 addition & 1 deletion src/intobj.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef GAP_INTOBJ_H
#define GAP_INTOBJ_H

#include "system.h"
#include "common.h"

enum {
NR_SMALL_INT_BITS = sizeof(UInt) * 8 - 4,
Expand Down
2 changes: 1 addition & 1 deletion src/intrprtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef GAP_INTRPRTR_H
#define GAP_INTRPRTR_H

#include "system.h"
#include "common.h"
#include "gap.h"

/****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef GAP_IO_H
#define GAP_IO_H

#include "system.h"
#include "common.h"


Char GET_NEXT_CHAR(void);
Expand Down
2 changes: 1 addition & 1 deletion src/iostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#ifndef GAP_IOSTREAM_H
#define GAP_IOSTREAM_H

#include "system.h"
#include "common.h"

// Provide a feature macro to let libraries check if GAP supports
// CheckChildStatusChanged.
Expand Down
2 changes: 1 addition & 1 deletion src/julia_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "julia_gc.h"

#include "common.h"
#include "fibhash.h"
#include "funcs.h"
#include "gap.h"
Expand All @@ -24,7 +25,6 @@
#include "objects.h"
#include "plist.h"
#include "sysmem.h"
#include "system.h"
#include "vars.h"

#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion src/libgap_intern.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef LIBGAP_INTERN_H
#define LIBGAP_INTERN_H

#include "system.h"
#include "common.h"


/****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/listfunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#ifndef GAP_LISTFUNC_H
#define GAP_LISTFUNC_H

#include "system.h"
#include "common.h"

/****************************************************************************
**
Expand Down
2 changes: 1 addition & 1 deletion src/listoper.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef GAP_LISTOPER_H
#define GAP_LISTOPER_H

#include "system.h"
#include "common.h"

/****************************************************************************
**
Expand Down
2 changes: 1 addition & 1 deletion src/modules.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef GAP_MODULES_H
#define GAP_MODULES_H

#include "system.h"
#include "common.h"

/****************************************************************************
**
Expand Down
2 changes: 1 addition & 1 deletion src/objccoll.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_OBJCCOLL_H
#define GAP_OBJCCOLL_H

#include "system.h"
#include "common.h"

/****************************************************************************
**
Expand Down
2 changes: 1 addition & 1 deletion src/objcftl.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef GAP_OBJCFTL_H
#define GAP_OBJCFTL_H

#include "system.h"
#include "common.h"

#define PC_NUMBER_OF_GENERATORS 1
#define PC_GENERATORS 2
Expand Down
2 changes: 1 addition & 1 deletion src/objpcgel.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_OBJPCGEL_H
#define GAP_OBJPCGEL_H

#include "system.h"
#include "common.h"
#include "objfgelm.h"


Expand Down
2 changes: 1 addition & 1 deletion src/objset.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef GAP_OBJSET_H
#define GAP_OBJSET_H

#include "system.h"
#include "common.h"

#define OBJSET_HDRSIZE 4

Expand Down
2 changes: 1 addition & 1 deletion src/opers.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "bool.h"
#include "calls.h"
#include "system.h"
#include "common.h"


enum {
Expand Down
2 changes: 1 addition & 1 deletion src/profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef GAP_PROFILE_H
#define GAP_PROFILE_H

#include "system.h"
#include "common.h"

Int enableProfilingAtStartup(Char ** argv, void * dummy);
Int enableMemoryProfilingAtStartup(Char ** argv, void * dummy);
Expand Down
2 changes: 1 addition & 1 deletion src/saveload.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef GAP_SAVELOAD_H
#define GAP_SAVELOAD_H

#include "system.h"
#include "common.h"

/***************************************************************************
**
Expand Down
Loading

0 comments on commit 918e95d

Please sign in to comment.