repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
Howard229/gpdb-ba
src/backend/cdb/cdbtargeteddispatch.c
<filename>src/backend/cdb/cdbtargeteddispatch.c /*------------------------------------------------------------------------- * * cdbtargeteddispatch.c * * Portions Copyright (c) 2009, Greenplum inc * Portions Copyright (c) 2012-Present Pivotal Software, Inc. * * * IDENTIFICATION * src/backend/cdb/cdbtargete...
Howard229/gpdb-ba
src/backend/access/external/fileam.c
<gh_stars>1-10 /*------------------------------------------------------------------------- * * fileam.c * file access method routines * * This access layer mimics the heap access API with respect to how it * communicates with its respective scan node (external scan node) but * instead of accessing the heap pag...
Howard229/gpdb-ba
contrib/tsm_system_rows/tsm_system_rows.c
<reponame>Howard229/gpdb-ba<filename>contrib/tsm_system_rows/tsm_system_rows.c /*------------------------------------------------------------------------- * * tsm_system_rows.c * interface routines for system_rows tablesample method * * * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group * ...
Howard229/gpdb-ba
src/include/storage/barrier.h
<filename>src/include/storage/barrier.h /*------------------------------------------------------------------------- * * barrier.h * Memory barrier operations. * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * sr...
Howard229/gpdb-ba
src/backend/postmaster/test/checkpointer_test.c
#include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include "cmockery.h" #include "c.h" #include "../checkpointer.c" #include "postgres.h" #define MAX_BGW_REQUESTS 5 static void init_request_queue(void) { size_t size = sizeof(CheckpointerShmemStruct) + sizeof(CheckpointerRequest)*MAX_BGW_REQUESTS; Checkpo...
Howard229/gpdb-ba
src/include/storage/backendid.h
/*------------------------------------------------------------------------- * * backendid.h * POSTGRES backend id communication definitions * * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/include/storag...
Howard229/gpdb-ba
src/backend/access/transam/test/varsup_test.c
<reponame>Howard229/gpdb-ba<filename>src/backend/access/transam/test/varsup_test.c #include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include "cmockery.h" /* Fetch definition of PG_exception_stack */ #include "postgres.h" #undef ereport #define ereport(elevel, rest) ereport_mock(elevel, rest) static int ex...
Howard229/gpdb-ba
src/backend/utils/init/miscinit.c
/*------------------------------------------------------------------------- * * miscinit.c * miscellaneous initialization support stuff * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * sr...
Howard229/gpdb-ba
src/backend/executor/nodeSeqscan.c
/*------------------------------------------------------------------------- * * nodeSeqscan.c * Support routines for sequential scans of relations. * * In GPDB, this also deals with AppendOnly and AOCS tables. * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1...
Howard229/gpdb-ba
src/include/storage/itemptr.h
/*------------------------------------------------------------------------- * * itemptr.h * POSTGRES disk item pointer definitions. * * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/include/storage/itempt...
Howard229/gpdb-ba
src/include/catalog/pg_ts_config.h
/*------------------------------------------------------------------------- * * pg_ts_config.h * definition of configuration of tsearch * * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/include/catalog/pg_t...
Howard229/gpdb-ba
src/include/catalog/pg_language.h
<gh_stars>1-10 /*------------------------------------------------------------------------- * * pg_language.h * definition of the system "language" relation (pg_language) * along with the relation's initial contents. * * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyr...
Howard229/gpdb-ba
src/backend/executor/nodeSamplescan.c
<reponame>Howard229/gpdb-ba /*------------------------------------------------------------------------- * * nodeSamplescan.c * Support routines for sample scans of relations (table sampling). * * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the ...
Howard229/gpdb-ba
src/include/cdb/cdbgroup.h
/*------------------------------------------------------------------------- * * cdbgroup.h * prototypes for cdbgroup.c. * * * Portions Copyright (c) 2006-2008, Greenplum inc * Portions Copyright (c) 2012-Present Pivotal Software, Inc. * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * ...
Howard229/gpdb-ba
src/backend/executor/nodeLimit.c
<gh_stars>1-10 /*------------------------------------------------------------------------- * * nodeLimit.c * Routines to handle limiting of query results where appropriate * * Portions Copyright (c) 2005-2008, Greenplum inc * Portions Copyright (c) 2012-Present Pivotal Software, Inc. * Portions Copyright (c) 1...
Howard229/gpdb-ba
src/backend/utils/adt/pseudotypes.c
/*------------------------------------------------------------------------- * * pseudotypes.c * Functions for the system pseudo-types. * * A pseudo-type isn't really a type and never has any operations, but * we do need to supply input and output functions to satisfy the links * in the pseudo-type's entry in p...
Howard229/gpdb-ba
src/backend/parser/parse_relation.c
<filename>src/backend/parser/parse_relation.c /*------------------------------------------------------------------------- * * parse_relation.c * parser support routines dealing with relations * * Portions Copyright (c) 2006-2008, Greenplum inc * Portions Copyright (c) 2012-Present Pivotal Software, Inc. * Port...
Howard229/gpdb-ba
src/include/executor/instrument.h
/*------------------------------------------------------------------------- * * instrument.h * definitions for run-time statistics collection * * * Portions Copyright (c) 2006-2009, Greenplum inc * Portions Copyright (c) 2012-Present Pivotal Software, Inc. * Copyright (c) 2001-2015, PostgreSQL Global Developm...
Howard229/gpdb-ba
src/bin/pg_upgrade/info.c
<reponame>Howard229/gpdb-ba /* * info.c * * information support functions * * Copyright (c) 2010-2015, PostgreSQL Global Development Group * src/bin/pg_upgrade/info.c */ #include "postgres_fe.h" #include "pg_upgrade.h" #include "access/transam.h" #include "catalog/pg_class.h" static void create_rel_filename...
Howard229/gpdb-ba
src/include/executor/execDML.h
/*------------------------------------------------------------------------- * * execDML.h * Prototypes for execDML. * * Portions Copyright (c) 2012, EMC Corp. * Portions Copyright (c) 2012-Present Pivotal Software, Inc. * * * IDENTIFICATION * src/include/executor/execDML.h * *-------------------------...
Howard229/gpdb-ba
src/port/dirmod.c
/*------------------------------------------------------------------------- * * dirmod.c * directory handling functions * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * This includes replacement versions of fun...
Howard229/gpdb-ba
src/include/utils/vmem_tracker.h
<filename>src/include/utils/vmem_tracker.h /*------------------------------------------------------------------------- * * vmem_tracker.h * This file contains declarations for vmem tracking functions. * * Copyright (c) 2014-Present Pivotal Software, Inc. * * * IDENTIFICATION * src/include/utils/vmem_trac...
Howard229/gpdb-ba
src/backend/access/tablesample/tablesample.c
<reponame>Howard229/gpdb-ba /*------------------------------------------------------------------------- * * tablesample.c * TABLESAMPLE internal API * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFI...
Howard229/gpdb-ba
src/backend/storage/ipc/sinval.c
<gh_stars>1-10 /*------------------------------------------------------------------------- * * sinval.c * POSTGRES shared cache invalidation communication code. * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * ...
tedshorter/wordletest
wordtest.c
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> int lettercount2(char *a, char *b) { unsigned char hits[26]; int count; for (int i=0; i<sizeof(hits); i++) { hits[i]=0; } for (int i=0; a[i]!=0; i++) { hits[tolower(a[i])-'a'] = 1; } for (int i=0; b[i]!=0; i++) { ...
michaeldtz/TimeKeeper
Classes/MainViewController.h
<filename>Classes/MainViewController.h // // RootViewController.h // Team Communicator // // Created by <NAME> on 16.04.10. // Copyright __MyCompanyName__ 2010. All rights reserved. // #import "ModalScreenCloser.h" #import "CacheDataManager.h" #import "AboutViewController.h" #import <iAd/iAd.h> @interface MainVie...
michaeldtz/TimeKeeper
Classes/CacheDataManager.h
<reponame>michaeldtz/TimeKeeper // // DataManager.h // Team Communicator // // Created by <NAME> on 16.04.10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> @class PersonalRecordingItem; @interface CacheDataManager : NSObject { } +(NSMutableArray*)loadItemList;...
michaeldtz/TimeKeeper
Classes/ItemViewController.h
// // TeamView.h // Team Communicator // // Created by <NAME> on 16.04.10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> #import "PersonalRecordingItem.h" #import "ItemCreateViewController.h" #import <MessageUI/MessageUI.h> #import "OutputFormatter.h" #import <iAd/iAd.h> @in...
michaeldtz/TimeKeeper
Classes/PersonalRecordingItem.h
// // Team.h // Team Communicator // // Created by <NAME> on 16.04.10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import "CacheDataManager.h" #import "UIImage-NSCoding.h" #import "PersonalTimeRecord.h" @interface PersonalRecordingItem : NSObject <NSCoding> { ...
DrItanium/sim960
OpcodesRaw.h
X(0x080, b) X(0x090, call) X(0x0A0, ret) X(0x0B0, bal) X(0x100, bno) X(0x110, bg) X(0x120, be) X(0x130, bge) X(0x140, bl) X(0x150, bne) X(0x160, ble) X(0x170, bo) X...
DrItanium/sim960
Register.h
// // Created by jwscoggins on 11/27/20. // #ifndef I960_PROTOTYPE_SIMULATOR_REGISTER_H #define I960_PROTOTYPE_SIMULATOR_REGISTER_H #include <variant> #include <string> #include "CoreTypes.h" #include "DependentFalse.h" namespace i960 { /** * @brief A value between 0..31 */ enum class Literal : uint...
DrItanium/sim960
firmware/Firmware.h
<gh_stars>0 // // Created by jwscoggins on 12/22/20. // #ifndef SIM960_COMMON_H #define SIM960_COMMON_H #include <stdint.h> #include <string> typedef uint32_t Address; namespace firmware { const Address IOSpaceStart = 0xFF000000; const Address InternalRegistersStart = 0xFFFF0000; const Address InternalRegi...
DrItanium/sim960
ProcessorMappingConfiguration.h
// // Created by jwscoggins on 12/12/20. // #ifndef SIM960_PROCESSORMAPPINGCONFIGURATION_H #define SIM960_PROCESSORMAPPINGCONFIGURATION_H #include <string> #include <array> namespace i960 { struct SectionConfiguration { public: SectionConfiguration() = default; SectionConfiguration(const std::s...
DrItanium/sim960
ArithmeticControls.h
<gh_stars>0 // // Created by jwscoggins on 11/27/20. // #ifndef I960_PROTOTYPE_SIMULATOR_ARITHMETICCONTROLS_H #define I960_PROTOTYPE_SIMULATOR_ARITHMETICCONTROLS_H #include <type_traits> #include "Register.h" #include "CoreTypes.h" namespace i960 { enum class ConditionCodeKind : ByteOrdinal { Unordered = 0...
DrItanium/sim960
ProcessControls.h
<reponame>DrItanium/sim960<filename>ProcessControls.h // // Created by jwscoggins on 12/5/20. // #ifndef I960_PROTOTYPE_SIMULATOR_PROCESSCONTROLS_H #define I960_PROTOTYPE_SIMULATOR_PROCESSCONTROLS_H #include "CoreTypes.h" #include "Register.h" namespace i960 { class ProcessControls { public: constexpr ...
DrItanium/sim960
TraceControls.h
// // Created by jwscoggins on 12/5/20. // #ifndef I960_PROTOTYPE_SIMULATOR_TRACECONTROLS_H #define I960_PROTOTYPE_SIMULATOR_TRACECONTROLS_H #include "CoreTypes.h" namespace i960 { class TraceControls { public: static constexpr Ordinal ModeBits = 0x0000'00FE; static constexpr Ordinal EventFlags = 0x0FFEFF00; ...
DrItanium/sim960
Disassembly.h
<filename>Disassembly.h // // Created by jwscoggins on 12/5/20. // #ifndef SIM960_DISASSEMBLY_H #define SIM960_DISASSEMBLY_H #include <map> #include <string> #include <optional> #include "CoreTypes.h" namespace i960 { inline std::optional<std::string> getNameFromOpcode(ShortOrdinal opcode) noexcept { stati...
DrItanium/sim960
ProcessorAddress.h
<reponame>DrItanium/sim960<filename>ProcessorAddress.h // // Created by jwscoggins on 12/20/20. // #ifndef SIM960_PROCESSORADDRESS_H #define SIM960_PROCESSORADDRESS_H #include "CoreTypes.h" #include <tuple> namespace i960 { /** * @brief Wraps a normal 32-bit Ordinal/Address and allows access to the different ...
DrItanium/sim960
PreviousFramePointer.h
<filename>PreviousFramePointer.h<gh_stars>0 // // Created by jwscoggins on 11/27/20. // #ifndef I960_PROTOTYPE_SIMULATOR_PREVIOUSFRAMEPOINTER_H #define I960_PROTOTYPE_SIMULATOR_PREVIOUSFRAMEPOINTER_H #include "Register.h" namespace i960 { class PreviousFramePointer { public: enum class ReturnStatusFiel...
DrItanium/sim960
CoreTypes.h
#ifndef I960_CORE_TYPES_H__ #define I960_CORE_TYPES_H__ #include <cstdint> using Ordinal = std::uint32_t; using Integer = std::int32_t; using ShortOrdinal = std::uint16_t; using ShortInteger = std::int16_t; using LongOrdinal = std::uint64_t; using LongInteger = std::int64_t; using ByteOrdinal = std::uint8_t; using Byte...
DrItanium/sim960
MemoryCell.h
// // Created by jwscoggins on 12/22/20. // #ifndef SIM960_MEMORYCELL_H #define SIM960_MEMORYCELL_H #include "CoreTypes.h" namespace i960 { /** * @brief Generic concept of a 32-bit memory location */ class MemoryCell { public: MemoryCell() = default; virtual ~MemoryCell() = de...
DrItanium/sim960
InstructionFormats.h
// // Created by jwscoggins on 12/21/20. // #ifndef SIM960_INSTRUCTIONFORMATS_H #define SIM960_INSTRUCTIONFORMATS_H #include <string> #include "CoreTypes.h" #include "Register.h" #include "DependentFalse.h" #include "ArithmeticControls.h" #include "ProcessControls.h" #include "Disassembly.h" #include "TraceControls.h"...
DrItanium/sim960
Core.h
<reponame>DrItanium/sim960<gh_stars>0 #ifndef I960_CORE_H__ #define I960_CORE_H__ #include <array> #include <tuple> #include <variant> #include <algorithm> #include <memory> #include <iostream> #include "CoreTypes.h" #include "Register.h" #include "DependentFalse.h" #include "ArithmeticControls.h" #include "ProcessCon...
DrItanium/sim960
GenericNumber.h
// // Created by jwscoggins on 12/12/20. // #ifndef SIM960_GENERICNUMBER_H #define SIM960_GENERICNUMBER_H #include <type_traits> template<typename T, std::size_t width> class GenericNumber { public: GenericNumber(T val = static_cast<T>(0)) : _val(val) { } [[nodiscard]] [[maybe_unused]] constexpr auto get() co...
DrItanium/sim960
DependentFalse.h
<filename>DependentFalse.h // // Created by jwscoggins on 11/27/20. // #ifndef I960_PROTOTYPE_SIMULATOR_DEPENDENTFALSE_H #define I960_PROTOTYPE_SIMULATOR_DEPENDENTFALSE_H template<typename ... Deps> inline constexpr bool DependentFalse = false; #endif //I960_PROTOTYPE_SIMULATOR_DEPENDENTFALSE_H
dedhun/Ded_CP
C++Tut/Sally.h
// // Created by Jihun on 6/24/2020. // // Don't include a header file if you don't need it. // If not defined Sally header file, then define it. #ifndef CPEWPEW_SALLY_H #define CPEWPEW_SALLY_H class Sally { public: Sally(); void printCrap(); }; #endif //CPEWPEW_SALLY_H
dedhun/Ded_CP
C++Tut/Jihun_41.h
<filename>C++Tut/Jihun_41.h<gh_stars>1-10 // // Created by Jihun on 6/24/2020. // #ifndef CPEWPEW_JIHUN_41_H #define CPEWPEW_JIHUN_41_H class Jihun_41 { public: Jihun_41(); // ~ is the deconstructor ~Jihun_41(); }; #endif //CPEWPEW_JIHUN_41_H
dedhun/Ded_CP
C++Tut/Burrito.h
<filename>C++Tut/Burrito.h // // Created by Jihun on 6/17/2020. // // This is a header file. // This is where we are gonna put all of our classes // function prototypes and variable declarations. #ifndef CPEWPEW_BURRITO_H #define CPEWPEW_BURRITO_H class Burrito { public: Burrito(); void coolS...
girish-kamble/C-language
include.c
<reponame>girish-kamble/C-language #include<stdio.h> #include<assert.h> int main(){ int a=3,b=3,c=0; c=a+b; assert(c); //assert function checks if the value of c is true or not. // it can also check directly assert(a+b); // if the value is true or non-zero, then ...
girish-kamble/C-language
defineExample.c
#include<stdio.h> #define HELLO 23 /* #define can be defined in one of the below #define hello ("This is an example") #define Hello (23*2) int main() { //usual testing printf("first %d \n",HELLO); printf("second %s \n",hello); printf("third %d \n",Hello); printf("\n")...
girish-kamble/C-language
defineAndUndefExample.c
<reponame>girish-kamble/C-language /* usage of preprocessor directives -> #define and #undef */ #include <stdio.h> #define hello (23+23) //defining a macro variable hello #undef hello // removing the macro specified- "hello" int main(void) { #ifdef hello // checking if a macro hello is defined printf(...
MJavad/teeworlds
src/game/client/nmsgs.h
<reponame>MJavad/teeworlds<gh_stars>1-10 /* (c) MAP94. See www.n-lvl.com/ndc/nclient/ for more information. */ #ifndef GAME_CLIENT_MSGS_H #define GAME_CLIENT_MSGS_H #include "gameclient.h" #include <game/client/ui.h> class CNMsg { public: class CGameClient *m_pClient; CNMsg(class CGameClient *pClient); ~C...
MJavad/teeworlds
src/engine/client/lua.h
<filename>src/engine/client/lua.h /* (c) MAP94. See www.n-lvl.com/ndc/nclient/ for more information. */ #ifndef ENGINE_CLIENT_LUA_H #define ENGINE_CLIENT_LUA_H #include <engine/lua.h> class CLua : public ILua { static void ConAddLuaFile(IConsole::IResult *pResult, void *pUserData); static void ConfigSaveCallback...
MJavad/teeworlds
src/game/client/rtl_support.h
<gh_stars>1-10 #ifndef RTL_SUPPORT_H #define RTL_SUPPORT_H enum { // Letter contexts ISOLATED = 0, FINAL, INITIAL, MEDIAL, // Link types LTR = 0, NUMBER, NO_DIR, NONE, BEFORE, DUAL, NO_BREAK }; const int RTL_RANGE[] = { 0x060C, 0x06F9, 0xFB52, 0xFEFC }; const int RTL_RANGE_N = 2; const int ARABIC_CHARS...
MJavad/teeworlds
src/engine/server/lua.h
<filename>src/engine/server/lua.h<gh_stars>1-10 /* (c) MAP94. See www.n-lvl.com/ndc/nclient/ for more information. */ #ifndef ENGINE_SERVER_LUA_H #define ENGINE_SERVER_LUA_H #include <engine/lua.h> class CLua : public ILua { static void ConfigSaveCallback(IConfig *pConfig, void *pUserData); static void ConLis...
MJavad/teeworlds
src/game/client/components/chat.h
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef GAME_CLIENT_COMPONENTS_CHAT_H #define GAME_CLIENT_COMPONENTS_CHAT_H #include <engine/shared/ringbuffer.h> #include <game/client/...
MJavad/teeworlds
src/game/client/lineinput.h
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef GAME_CLIENT_LINEINPUT_H #define GAME_CLIENT_LINEINPUT_H #include <engine/input.h> #include "rtl_support.h" // line input helte...
MJavad/teeworlds
src/engine/external/libvpx/vpx_config.h
/* This file automatically generated by configure. Do not edit! */ #define RESTRICT #define ARCH_ARM 0 #define ARCH_MIPS 0 #define ARCH_X86 1 #define ARCH_X86_64 0 #define ARCH_PPC32 0 #define ARCH_PPC64 0 #define HAVE_ARMV5TE 0 #define HAVE_ARMV6 0 #define HAVE_ARMV7 0 #define HAVE_IWMMXT 0 #define HAVE_IWMMXT2 0 #def...
MJavad/teeworlds
src/game/server/entities/projectile.h
<filename>src/game/server/entities/projectile.h /* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef GAME_SERVER_ENTITIES_PROJECTILE_H #define GAME_SERVER_ENTITIES_PROJECTILE_H cla...
MJavad/teeworlds
src/game/server/entities/laser.h
<reponame>MJavad/teeworlds /* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef GAME_SERVER_ENTITIES_LASER_H #define GAME_SERVER_ENTITIES_LASER_H #include <game/server/entity.h> c...
MJavad/teeworlds
src/game/client/nmusic.h
/* (c) MAP94. See www.n-lvl.com/ndc/nclient/ for more information. */ #ifndef GAME_CLIENT_NMP3_H #define GAME_CLIENT_NMP3_H #include "gameclient.h" #include <base/system.h> #include <base/tl/sorted_array.h> class CMusic_DoubleLinkedList { public: CMusic_DoubleLinkedList *prv; CMusic_DoubleLinkedList *nxt; ...
MJavad/teeworlds
src/engine/demo_recorder.h
<filename>src/engine/demo_recorder.h<gh_stars>1-10 #ifndef ENGINE_DEMORECORDER_H #define ENGINE_DEMORECORDER_H #include "kernel.h" class IDemoVideoRecorder : public IInterface { MACRO_INTERFACE("demovideorecorder", 0) public: IDemoVideoRecorder() {} ~IDemoVideoRecorder() {} }; #endif
MJavad/teeworlds
src/game/client/lua.h
/* (c) MAP94. See www.n-lvl.com/ndc/nclient/ for more information. */ #ifndef GAME_CLIENT_LUA_H #define GAME_CLIENT_LUA_H #include "gameclient.h" #include <engine/shared/config.h> #include <engine/config.h> #include <engine/input.h> #include <base/tl/array.h> #include <base/tl/sorted_array.h> #include <game/luaevent.h...
MJavad/teeworlds
src/game/luaglobal.h
<filename>src/game/luaglobal.h //some macros and helperfunctions #include <stdlib.h> #include <string.h> #include <time.h> #ifndef GAME_LUAGLOBAL_H #define GAME_LUAGLOBAL_H #if defined(LUA_USE_GMTIME_R) #define l_gmtime(t,r) gmtime_r(t,r) #define l_localtime(t,r) localtime_r(t,r) #elif !defined(l_gmtime) #define...
MJavad/teeworlds
src/engine/shared/throttle.h
<reponame>MJavad/teeworlds /* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef ENGINE_SHARED_THROTTLE_H #define ENGINE_SHARED_THROTTLE_H #include <base/system.h> class CThrottle ...
MJavad/teeworlds
src/game/version.h
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef GAME_VERSION_H #define GAME_VERSION_H #ifndef NON_HASED_VERSION #include "generated/nethash.cpp" #define GAME_VERSION "0.6.1" #d...
MJavad/teeworlds
src/game/server/lua/lua.h
<reponame>MJavad/teeworlds /* (c) MAP94 and Patafix. See www.n-lvl.com/ndc/nclient/ for more information. */ #ifndef GAME_SERVER_LUA_H #define GAME_SERVER_LUA_H #include <game/server/gamecontext.h> #include <game/server/gameworld.h> #include <game/server/entities/projectile.h> #include <game/server/entities/laser.h> #...
MJavad/teeworlds
src/engine/lua.h
<reponame>MJavad/teeworlds /* (c) MAP94. See www.n-lvl.com/ndc/nclient/ for more information. */ #ifndef ENGINE_LUA_H #define ENGINE_LUA_H #include <engine/shared/protocol.h> #include "kernel.h" #define MAX_LUA_FILES 64 #define LUA_CONSOLE_ID MAX_LUA_FILES - 1 class ILua : public IInterface { MACRO_INTERFACE("lua"...
MJavad/teeworlds
src/engine/modfile.h
/* (c) 2011 MAP94 and Patafix*/ #ifndef ENGINE_MODFILE_H #define ENGINE_MODFILE_H class CModFile { public: char m_aName[256]; char m_aFileDir[1024]; enum FILETYPE { FILETYPEINVALID = 0, FILETYPELUA, FILETYPEPNG, FILETYPEWAV, FILETYPEWV, FILE...
MJavad/teeworlds
src/game/client/components/broadcast.h
<reponame>MJavad/teeworlds<gh_stars>1-10 /* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef GAME_CLIENT_COMPONENTS_BROADCAST_H #define GAME_CLIENT_COMPONENTS_BROADCAST_H #include ...
MJavad/teeworlds
src/game/luaevent.h
#ifndef GAME_LUAEVENT_H #define GAME_LUAEVENT_H #include <base/tl/array.h> extern "C" { // lua #define LUA_CORE /* make sure that we don't try to import these functions */ #include <engine/external/lua/lua.h> #include <engine/external/lua/lualib.h> /* luaL_openlibs */ #include <engine/external/lua/laux...
MJavad/teeworlds
src/base/tl/algorithm.h
<gh_stars>1-10 /* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef BASE_TL_ALGORITHM_H #define BASE_TL_ALGORITHM_H #include "range.h" /* insert 4 v 1 2 3 4 5 6 */ te...
MJavad/teeworlds
src/engine/shared/stream.h
//Copyright (c) by MAP94 2012 #ifndef ENGINE_SHARED_STREAM_H #define ENGINE_SHARED_STREAM_H #include <base/system.h> struct CStreamBlock { char *m_pData; int m_Start; int m_Size; CStreamBlock *m_pNext; }; class CStream { private: CStreamBlock *m_pFirst; LOCK m_Lock; int m_Size; public: ...
MJavad/teeworlds
src/game/client/components/emitter.h
<reponame>MJavad/teeworlds /* (c) MAP94. See www.n-lvl.com/ndc/nclient/ for more information. */ #ifndef GAME_CLIENT_COMPONENTS_EMITTER_H #define GAME_CLIENT_COMPONENTS_EMITTER_H #include "particles.h" #include "flow.h" #include <game/client/component.h> class CEmitter : public CComponent { friend class CGameClien...
MJavad/teeworlds
src/game/luamap.h
#ifndef GAME_LUAMAP_H #define GAME_LUAMAP_H #include <game/luaevent.h> #include <game/mapitems.h> #include <base/tl/array.h> extern "C" { // lua #define LUA_CORE /* make sure that we don't try to import these functions */ #include <engine/external/lua/lua.h> #include <engine/external/lua/lualib.h> /* luaL...
MJavad/teeworlds
src/engine/client/demo_recorder.h
<gh_stars>1-10 #ifndef ENGINE_CLIENT_DEMORECORDER_H #define ENGINE_CLIENT_DEMORECORDER_H #include <engine/demo_recorder.h> #include <engine/sound.h> #include <base/math.h> #include <engine/external/libtheora/theora/theora.h> #include <engine/external/libtheora/theora/codec.h> #include <engine/external/libtheora/theora/...
MJavad/teeworlds
src/engine/sound.h
<filename>src/engine/sound.h<gh_stars>1-10 /* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef ENGINE_SOUND_H #define ENGINE_SOUND_H #include "kernel.h" class ISound : public IIn...
MJavad/teeworlds
src/game/luashared.h
/* (c) MAP94 and Patafix. See www.n-lvl.com/ndc/nclient/ for more information. */ /*DGI:Doc-Gen-Info*/ /*DGI:Type:Client,Server*/ /*DGI:Exception:errorfunc*/ #ifndef GAME_LUASHARED_H #define GAME_LUASHARED_H #include <engine/shared/network.h> #include <base/tl/array.h> extern "C" { // lua #define LUA_CORE /* ma...
MJavad/teeworlds
src/game/client/components/luarender.h
<reponame>MJavad/teeworlds #ifndef GAME_CLIENT_COMPONENTS_LUARENDER_H #define GAME_CLIENT_COMPONENTS_LUARENDER_H #include <game/client/component.h> class CLuaRender : public CComponent { int m_Level; char m_aEventString[32]; public: CLuaRender(int Level); virtual void OnRender(); }; #endif
MJavad/teeworlds
src/game/client/components/stats.h
/* (c) MAP94. See www.n-lvl.com/ndc/nclient/ for more information. */ #ifndef GAME_CLIENT_COMPONENTS_STATS_H #define GAME_CLIENT_COMPONENTS_STATS_H #include <game/client/component.h> class CStatsRecords { public: enum { RECORDROWDATASIZE = 32, RECORDROWSIZE = RECORDROWDATASIZE + 4, }; s...
MJavad/teeworlds
src/engine/shared/array.h
//Copyright (c) by MAP94 2012 #ifndef SHARED_ARRAY_H #define SHARED_ARRAY_H #include <base/system.h> template <class T> class CArray { LOCK m_Lock; struct CArrayItem { T m_Value; CArrayItem *m_pNext; CArrayItem *m_pPrev; }; CArrayItem *m_pFirst; CArrayItem *m_pLast; ...
MJavad/teeworlds
src/engine/external/lua/lcryptolib.c
/* ** $Id: lmathlib.c,v 1.81 2012/05/18 17:47:53 roberto Exp $ ** Standard mathematical library ** See Copyright Notice in lua.h */ #include <stdlib.h> #include <math.h> #define lcryptolib_c #define LUA_LIB #include "lua.h" #include "lauxlib.h" #include "lualib.h" #define between(x, min, max) (x > min && x < max)...
MJavad/teeworlds
src/engine/external/lua/lsqllib.c
<filename>src/engine/external/lua/lsqllib.c /* ** $Id: lmathlib.c,v 1.67.1.1 2007/12/27 13:02:25 roberto Exp $ ** Standard mathematical library ** See Copyright Notice in lua.h */ #define lsqllib_c #define LUA_LIB #include "lua.h" #include "lauxlib.h" #include "lualib.h" #include <engine/external/sqlite/sqlite3.h> ...
MJavad/teeworlds
src/game/client/components/luainput.h
#ifndef GAME_CLIENT_COMPONENTS_LUAINPUT_H #define GAME_CLIENT_COMPONENTS_LUAINPUT_H #include <game/client/component.h> class CLuaInput : public CComponent { int m_Level; char m_aEventString[32]; public: CLuaInput(int Level); virtual bool OnInput(IInput::CEvent Event); }; #endif
MJavad/teeworlds
src/versionsrv/versionsrv.h
<filename>src/versionsrv/versionsrv.h /* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef VERSIONSRV_VERSIONSRV_H #define VERSIONSRV_VERSIONSRV_H static const int VERSIONSRV_PORT =...
FrancescaFr/FrancescaFr.io
assets/code/DS3231/DS3231/hardware/avr/HW_AVR_defines.h
// *** Hardwarespecific defines *** #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) #ifndef TWI_FREQ #define TWI_FREQ 400000L #endif
FrancescaFr/FrancescaFr.io
assets/code/DS3231/DS3231/hardware/pic32/HW_PIC32.h
<filename>assets/code/DS3231/DS3231/hardware/pic32/HW_PIC32.h inline void _waitForIdleBus() { while (I2C1CON & 0x1f) {} } void DS3231::begin() { if ((_sda_pin == SDA) and (_scl_pin == SCL)) { uint32_t tpgd; _use_hw = true; pinMode(SDA, OUTPUT); digitalWrite(SDA, HIGH); IFS0CLR = 0xE0000000; // Cle...
FrancescaFr/FrancescaFr.io
assets/code/DS3231/DS3231/DS3231.h
/* DS3231.cpp - Arduino/chipKit library support for the DS3231 I2C Real-Time Clock Copyright (C)2015 Rinky-Dink Electronics, <NAME>. All right reserved This library has been made to easily interface and use the DS3231 RTC with an Arduino or chipKit. You can find the latest version of the library at htt...
FrancescaFr/FrancescaFr.io
assets/code/DS3231/DS3231/hardware/arm/HW_ARM_defines.h
// *** Hardwarespecific defines *** #define SDA 20 #define SCL 21 #define SDA1 70 #define SCL1 71 #define TWI_SPEED TWI_SPEED_400k // Set default TWI Speed #define TWI_SPEED_100k 208 #define TWI_SPEED_400k 101 #define TWI_DIV TWI_DIV_400k // Set divider for TWI Speed (must match TWI_SPEED setting) #define TWI_DI...
jweyrich/easycurl
src/ios_state.h
<reponame>jweyrich/easycurl #pragma once #include <ios> class ios_state_saver { // // Based on boost:io::ios_base_all_saver // http://www.boost.org/doc/libs/1_48_0/boost/io/ios_state.hpp // public: ios_state_saver(std::ios_base& s) : _s(s) , _fmtflags(s.flags()) , _precision(s.precision()) , _width(s.width()...
jweyrich/easycurl
src/easycurl.h
#pragma once #include <curl/curl.h> #include <iostream> #include <iomanip> #include <string> #include <map> #include "cxx-prettyprint/prettyprint98.hpp" #include "ios_state.h" class easycurl_util { public: // static std::string char2hex(char dec); // static std::string url_encode(const std::string& c); static std:...
sidphbot/Bank-Management-System
src/AppClass/employee/include/employee.h
#ifndef _EMPLOYEE_H_ #define _EMPLOYEE_H_ #include<iostream> #include<string> using namespace std; class Employee { long int m_employeeId; string m_employeeName; string m_employeeDOB; char m_employeeGender; string m_employeeAddress; string m_employeeDesignation; int m_employeeStatus;...
sidphbot/Bank-Management-System
src/AppClass/branch/include/branch.h
<reponame>sidphbot/Bank-Management-System<filename>src/AppClass/branch/include/branch.h<gh_stars>1-10 #ifndef _BRANCH_H_ #define _BRANCH_H_ #include<iostream> #include<string> using namespace std; class Branch { long int m_branchId; string m_branchLoc, m_branchRegion; long int m_accountNo; l...
sidphbot/Bank-Management-System
src/UI/CustomerAccUI/Include/AccountUI.h
<filename>src/UI/CustomerAccUI/Include/AccountUI.h #ifndef _ACCOUNTUI_H_ #define _ACCOUNTUI_H_ #include "../../../AppClass/CustomerAcc/Include/Account.h" #include"../../../Validation/Include/Validation.h" #include"../../../Utility/Include/Utility.h" #include<string> #include<vector> #include "../../../Model/Include/Mod...
sidphbot/Bank-Management-System
src/UI/loginUI/include/loginUI.h
<reponame>sidphbot/Bank-Management-System #ifndef _LOGINUI_H_ #define _LOGINUI_H_ #include<string> #include<ctime> //#include"../../../bank/include/bank.h" using namespace std; class LoginUI { public: long int getUsername(); string getPassword(); string getSeqans1(); string getSeqans2(); string getNewpassword(); stri...
sidphbot/Bank-Management-System
src/Controller/loginController/include/loginController.h
#ifndef _LOGINCONTROLLER_H_ #define _LOGINCONTROLLER_H_ //#include "../../../UI/Login/include/loginui.h" //#include "../../../MODEL/include/model.h" #include<string> class Logincontroller { public: int InitiateLogin(); void ForgotPassword(); void ChangePassword(); void initiateChangeContinue(char); ...
sidphbot/Bank-Management-System
src/Controller/employeeController/include/employeeController.h
<filename>src/Controller/employeeController/include/employeeController.h #ifndef _EMPLOYEE_CONTROLLER_H_ #define _EMPLOYEE_CONTROLLER_H_ #include "../../../UI/employeeUI/include/employeeUI.h" #include "../../../Model/Include/Model.h" #include<iostream> #include<stdlib.h> #include<vector> using namespace std; ...
sidphbot/Bank-Management-System
src/UI/ATMUI/Include/ATMUI.h
<filename>src/UI/ATMUI/Include/ATMUI.h #ifndef _ATMUI_H_ #define _ATMUI_H_ #include<string.h> #include<iostream> #include<vector> #include"../../../AppClass/ATM/Include/ATM.h" #include "../../../Validation/Include/Validation.h" #include "../../../Utility/Include/Utility.h" using namespace std; class ATMUI { public: lo...
sidphbot/Bank-Management-System
src/AppClass/login/include/login.h
<reponame>sidphbot/Bank-Management-System<filename>src/AppClass/login/include/login.h #ifndef _LOGIN_H_ #define _LOGIN_H_ #include<string> using namespace std; class Login { public: long int m_username; string m_password; string m_seqans1; string m_seqans2; string m_newpassword; s...
sidphbot/Bank-Management-System
src/Model/ATMModel/Include/Bank.h
#ifndef _BANK_H_ #define _BANK_H_ #include "../../../AppClass/ATM/Include/ATM.h" #include<iostream> #include<string.h> /*#include</usr/include/oracle/11.2/client64/sqlca.h>*/ using namespace std; class Bank { public: int addATMAccount(ATM &); int dbviewATM(long int); int dbcloseATM(long int); int fin...