Add #pragma once to all headers

Resolves #19
This commit is contained in:
Tyler Wilding 2020-09-13 21:32:55 -04:00
parent 45b7d8bf0f
commit 9737dfad34
110 changed files with 217 additions and 3 deletions

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file common_types.h
* Common Integer Types.

View File

@ -1,3 +1,5 @@
#pragma once
#ifdef __linux
#include <sys/socket.h>
#include <netinet/tcp.h>

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_GOAL_CONSTANTS_H
#define JAK_GOAL_CONSTANTS_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file link_types.h
* Types used in the linking data, shared between the object file generator and the kernel's linker.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file listener_common.h
* Common types shared between the compiler and the runtime for the listener connection.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file symbols.h
* The location of fixed symbols in the GOAL symbol table.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_TYPE_H
#define JAK_TYPE_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file TypeSpec.h
*/

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_TYPESYSTEM_H
#define JAK_TYPESYSTEM_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_TYPE_UTIL_H
#define JAK_TYPE_UTIL_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_BINARYREADER_H
#define JAK_V2_BINARYREADER_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_BINARYWRITER_H
#define JAK_BINARYWRITER_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_DGOWRITER_H
#define JAK_DGOWRITER_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK1_MATCHPARAM_H
#define JAK1_MATCHPARAM_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_TIMER_H
#define JAK_V2_TIMER_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file versions.h
* Version numbers for GOAL Language, Kernel, etc...

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file Instruction.h
* An EE instruction, represented as an operation, plus a list of source/destination atoms.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file InstructionDecode.h
* The Instruction Decoder - converts a LinkedWord into a Instruction.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_DISASSEMBLER_INSTRUCTIONMATCHING_H
#define JAK_DISASSEMBLER_INSTRUCTIONMATCHING_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file OpcodeInfo.h
* Decoding info for each opcode.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file Register.h
* Representation of an EE register.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_DISASSEMBLER_BASICBLOCKS_H
#define JAK_DISASSEMBLER_BASICBLOCKS_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_DISASSEMBLER_CFGVTX_H
#define JAK_DISASSEMBLER_CFGVTX_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef NEXT_FUNCTION_H
#define NEXT_FUNCTION_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file LinkedObjectFile.h
* An object file's data with linking information included.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file LinkedObjectFileCreation.h
* Create a LinkedObjectFile from raw object file data.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file LinkedWord.h
* A word (4 bytes), possibly with some linking info.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file ObjectFileDB.h
* A "database" of object files found in DGO files.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_DISASSEMBLER_GOALFUNCTION_H
#define JAK_DISASSEMBLER_GOALFUNCTION_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_DISASSEMBLER_GOALSYMBOL_H
#define JAK_DISASSEMBLER_GOALSYMBOL_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_DISASSEMBLER_GOALTYPE_H
#define JAK_DISASSEMBLER_GOALTYPE_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_DISASSEMBLER_TYPEINFO_H
#define JAK_DISASSEMBLER_TYPEINFO_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_DISASSEMBLER_TYPESPEC_H
#define JAK_DISASSEMBLER_TYPESPEC_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK2_DISASSEMBLER_CONFIG_H
#define JAK2_DISASSEMBLER_CONFIG_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_FILEIO_H
#define JAK_V2_FILEIO_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK2_DISASSEMBLER_LISPPRINT_H
#define JAK2_DISASSEMBLER_LISPPRINT_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file dgo_rpc_types.h
* Types used for the DGO Remote Procedure Call between the EE and the IOP

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file loader_rpc_types.h
* Types used for the Loader Remote Procedure Call between the EE and the IOP

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file play_rpc_types.h
* Types used for the play Remote Procedure Call between the EE and the IOP.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file player_rpc_types.h
* Types used for the player Remote Procedure Call between the EE and the IOP.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file ramdisk_rpc_types.h
* Types used for the RamDisk Remote Procedure Call between the EE and the IOP

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file Ptr.h
* Representation of a GOAL pointer which can be converted to/from a C pointer.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file fileio.h
* GOAL Low-Level File I/O and String Utilities

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file kboot.h
* GOAL Boot. Contains the "main" function to launch GOAL runtime.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file kdgo.h
* Loading DGO Files. Also has some general SIF RPC stuff used for RPCs other than DGO loading.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file kdsnetm.h
* Low-level DECI2 wrapper for ksocket

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file klink.cpp
* GOAL Linker for x86-64

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file klisten.h
* Implementation of the Listener protocol

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file kmachine.h
* GOAL Machine. Contains low-level hardware interfaces for GOAL.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file kmalloc.h
* GOAL Kernel memory allocator.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file kmemcard.h
* Memory card interface. Very messy code.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file kprint.h
* GOAL Print. Contains GOAL I/O, Print, Format...

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file kscheme.h
* Implementation of GOAL runtime.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file ksocket.h
* GOAL Socket connection to listener using DECI2/DSNET

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file ksound.h
* There's not much here. My guess is this was set up as framework to match the kmachine.cpp format,

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file dma.h
* DMA Related functions for Overlord.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file fake_iso.h
* This provides an implementation of IsoFs for reading a "fake iso".

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file iso.h
* CD/DVD Reading.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_ISO_API_H
#define JAK_V2_ISO_API_H
#include "isocommon.h"

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file iso_cd.cpp
* IsoFs API for accessing the CD/DVD drive.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_ISO_QUEUE_H
#define JAK_V2_ISO_QUEUE_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file isocommon.h
* Common ISO utilities.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_OVERLORD_H
#define JAK_V2_OVERLORD_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file ramdisk.cpp
* A RAMDISK RPC for storing files in the extra RAM left over on the IOP.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_SBANK_H
#define JAK_V2_SBANK_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_SOUNDCOMMON_H
#define JAK_V2_SOUNDCOMMON_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_SRPC_H
#define JAK_V2_SRPC_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_SSOUND_H
#define JAK_V2_SSOUND_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_V2_STREAM_H
#define JAK_V2_STREAM_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file runtime.h
* Setup and launcher for the runtime.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file deci2.h
* Implementation of SCE DECI2 library.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK1_IOP_H
#define JAK1_IOP_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file libcdvd_ee.h
* Stub implementation of the EE CD/DVD library

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK1_LIBSCF_H
#define JAK1_LIBSCF_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK1_SIF_EE_H
#define JAK1_SIF_EE_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK1_STUBS_H
#define JAK1_STUBS_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file Deci2Server.h
* Basic implementation of a DECI2 server.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_IOP_KERNEL_H
#define JAK_IOP_KERNEL_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file SystemThread.h
* Threads for the runtime.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef RUNTIME_TIMER_H
#define RUNTIME_TIMER_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_DECIM_COMMON_H
#define JAK_DECIM_COMMON_H
#include "common/common_types.h"

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK1_IOP_THREAD_H
#define JAK1_IOP_THREAD_H

View File

@ -1,4 +1,4 @@
#pragma once
#ifndef JAK_CODEGENERATOR_H
#define JAK_CODEGENERATOR_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_COMPILER_H
#define JAK_COMPILER_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_COMPILERSETTINGS_H
#define JAK_COMPILERSETTINGS_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file Env.h
* The Env tree. The stores all of the nested scopes/contexts during compilation and also

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_IR_H
#define JAK_IR_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_LABEL_H
#define JAK_LABEL_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_LAMBDA_H
#define JAK_LAMBDA_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_STATICOBJECT_H
#define JAK_STATICOBJECT_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file Val.h
* The GOAL Value. A value represents a place (where the value is stored) and a type.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file CodeTester.h
* The CodeTester is a utility to run the output of the compiler as part of a unit test.

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_IGEN_H
#define JAK_IGEN_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_INSTRUCTION_H
#define JAK_INSTRUCTION_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_OBJECTFILEDATA_H
#define JAK_OBJECTFILEDATA_H

View File

@ -1,3 +1,5 @@
#pragma once
#ifndef JAK_OBJECTGENERATOR_H
#define JAK_OBJECTGENERATOR_H

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file Register.h
* Representation of an x86-64 Register.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file Interpreter.h
* The GOOS Interpreter

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file Object.h
* An "Object" represents a scheme object.

View File

@ -1,3 +1,5 @@
#pragma once
/*!
* @file Reader.h
*

Some files were not shown because too many files have changed in this diff Show More