repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
renaudbedard/littlebits-arduino | Sketches/UberSync/Pins.h | <filename>Sketches/UberSync/Pins.h
#include "Arduino.h"
#ifndef PINS_H
#define PINS_H
class In
{
public:
class Digital
{
public:
};
class Analog
{
public:
static const byte Sync = 0;
static const byte DutyCycle = 1;
};
};
class Out
{
public:
class Digital
{
pub... |
renaudbedard/littlebits-arduino | Libraries/Util/Util.h | <filename>Libraries/Util/Util.h
#ifndef UTIL_H
#define UTIL_H
#include "Arduino.h"
#include <stdio.h>
#include <avr/pgmspace.h>
#define ulong unsigned long
#define ADD_PRINTF_SUPPORT \
static FILE uartout = {0}; \
s... |
renaudbedard/littlebits-arduino | Sketches/MultiSync/Pins.h | <reponame>renaudbedard/littlebits-arduino<gh_stars>10-100
#include <stdint.h>
#ifndef PINS_H
#define PINS_H
class In
{
public:
class Digital
{
public:
static const byte Sync = 0;
};
class Analog
{
public:
static const byte Multiplier = 0;
static const byte DutyCycle = 1;
};
}... |
renaudbedard/littlebits-arduino | Sketches/DutyCycle/Pins.h | <reponame>renaudbedard/littlebits-arduino<gh_stars>10-100
#include "Arduino.h"
#ifndef PINS_H
#define PINS_H
class In
{
public:
class Digital
{
public:
static const byte Pulse = 0;
};
class Analog
{
public:
static const byte DutyCycle = 0;
};
};
class Out
{
pub... |
renaudbedard/littlebits-arduino | Sketches/BleepDrum/Pins.h | <gh_stars>10-100
#include "Arduino.h"
#ifndef PINS_H
#define PINS_H
class In
{
public:
class Digital
{
public:
static const byte Pulse = 0;
};
class Analog
{
public:
};
};
class Out
{
public:
class Digital
{
public:
static const byte Midi = 1;
}... |
renaudbedard/littlebits-arduino | Sketches/UberLatch/Pins.h | #include "Arduino.h"
#ifndef PINS_H
#define PINS_H
class In
{
public:
class Digital
{
public:
static const byte Pulse = 0;
};
class Analog
{
public:
static const byte DutyCycle = 0;
};
};
class Out
{
public:
class Digital
{
public:
static const by... |
renaudbedard/littlebits-arduino | Sketches/KeyboardRecorder/Pins.h | #include "Arduino.h"
#ifndef PINS_H
#define PINS_H
class In
{
public:
class Digital
{
public:
static const byte Pulse = 0;
};
class Analog
{
public:
static const byte Keyboard = 0;
static const byte ModeSwitch = 1;
};
};
class Out
{
public:
class Di... |
amarantedaniel/AsyncImage | AsyncImage/AsyncImage.h | //
// AsyncImage.h
// AsyncImage
//
// Created by <NAME> on 5/9/20.
// Copyright © 2020 Tigerhood. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for AsyncImage.
FOUNDATION_EXPORT double AsyncImageVersionNumber;
//! Project version string for AsyncImage.
FOUNDATION_EXPORT co... |
mertcankokcur/CountingTheFrequencyOfWords | WordType.h | <filename>WordType.h<gh_stars>0
#pragma once
#include <iostream>
#include <string>
using namespace std;
class WordType
{
public:
string word;
int count;
WordType(string);
void setCounter();
bool operator == (WordType sec)
{
if(word==sec.word) return true;
return false;
}
};
|
mertcankokcur/CountingTheFrequencyOfWords | Node.h | #ifndef _NODE_
#define _NODE_
#include <iostream>
//using namespace std;
template <class ElemType>
class Node
{
public:
ElemType data;
Node *next;
Node(){next=NULL;}
Node(const ElemType &e):data(e),next(NULL){}
};
#endif |
mertcankokcur/CountingTheFrequencyOfWords | LinkedList.h | #ifndef _LINKEDLIST_
#define _LINKEDLIST_
#include "Node.h"
#include <iostream>
#include <fstream>
using namespace std;
template <class ElemType>
class LinkedList
{
private:
Node<ElemType> *head;
int numberOfItems;
public:
//problems solved during lecture hours
LinkedList() :head(NULL), num... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/ui_arrayitem_editor.h | <reponame>eXl-Nic/eXl
/********************************************************************************
** Form generated from reading UI file 'arrayitem_editorNawqgf.ui'
**
** Created by: Qt User Interface Compiler version 5.15.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
*****... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/ui_quaternion_editor.h | <filename>src/engine/editor/eXl_Editor/ui_quaternion_editor.h<gh_stars>0
/********************************************************************************
** Form generated from reading UI file 'quaternion_editorRJTfBE.ui'
**
** Created by: Qt User Interface Compiler version 5.15.0
**
** WARNING! All changes made in th... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/vector_editor.h | #pragma once
#include "../dynobjecteditor.hpp"
class QAbstractSpinBox;
class Vector_Editor : public DynObjectEditor
{
Q_OBJECT
public:
static DynObjectEditor* Construct(QWidget *parent)
{return new Vector_Editor(parent);}
Vector_Editor(QWidget *parent);
protected slots:
void OnEditingFinished();
protect... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/array_editor.h | <filename>src/engine/editor/eXl_Editor/array_editor.h
#pragma once
#include <QWidget>
#include <editor/editordef.hpp>
#include <editor/dynobjecteditor.hpp>
namespace Ui
{
class ArrayEditor;
}
class Array_Editor : public DynObjectEditor
{
Q_OBJECT
public:
Array_Editor(QWidget*);
~Array_Editor();
void SetO... |
eXl-Nic/eXl | src/engine/editor/mainwindow.h | #pragma once
#include <QMainWindow>
#include <QAbstractItemModel>
#include <core/type/dynobject.hpp>
#include <core/resource/resource.hpp>
namespace Ui
{
class MainWindow;
}
class QTreeView;
class QMdiArea;
namespace eXl
{
class ResourceContainerModel;
class MainWindow : public QMainWindow
{
Q_OBJECT
... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/ui_mainwindow.h | <filename>src/engine/editor/eXl_Editor/ui_mainwindow.h
/********************************************************************************
** Form generated from reading UI file 'mainwindowIQJaRl.ui'
**
** Created by: Qt User Interface Compiler version 5.15.0
**
** WARNING! All changes made in this file will be lost when... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/ui_tilinggroup_toolbox.h | /********************************************************************************
** Form generated from reading UI file 'tilinggroup_toolboxxrQADp.ui'
**
** Created by: Qt User Interface Compiler version 5.15.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
************************... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/objectptr_editor.h | <reponame>eXl-Nic/eXl
#ifndef OBJECTPTR_EDITOR_H
#define OBJECTPTR_EDITOR_H
#if 0
#include "../dynobjecteditor.hpp"
namespace Ui {
class ObjectPtr_Editor;
}
class ObjectPtr_Editor : public DynObjectEditor
{
Q_OBJECT
public:
static DynObjectEditor* Construct(QWidget *parent)
{return new ObjectPtr_Editor(pa... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/ui_enum_editor.h | <reponame>eXl-Nic/eXl
/********************************************************************************
** Form generated from reading UI file 'enum_editorMweAOJ.ui'
**
** Created by: Qt User Interface Compiler version 5.15.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
**********... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/ui_objectptr_editor.h | <gh_stars>0
/********************************************************************************
** Form generated from reading UI file 'objectptr_editorKCzoCT.ui'
**
** Created by: Qt User Interface Compiler version 5.15.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***************... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/arrayitem_editor.h | #pragma once
#include <QWidget>
#include <editor/editordef.hpp>
namespace Ui
{
class ArrayItemEditor;
}
class ArrayItem_Editor : public QWidget
{
Q_OBJECT
public:
ArrayItem_Editor(uint32_t iItemIndex, QWidget*);
~ArrayItem_Editor();
Q_SIGNALS:
void onRemoveItem();
void onInsertItem();
protected:
Ui... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/quaternion_editor.h | #pragma once
#include "../dynobjecteditor.hpp"
namespace Ui
{
class QuatEditor;
}
class Quaternion_Editor : public DynObjectEditor
{
Q_OBJECT
public:
static DynObjectEditor* Construct(QWidget *parent)
{return new Quaternion_Editor(parent);}
Quaternion_Editor(QWidget *parent);
protected slots:
void OnEdit... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/ui_tileset_toolbox.h | /********************************************************************************
** Form generated from reading UI file 'tileset_toolboxeFuVok.ui'
**
** Created by: Qt User Interface Compiler version 5.15.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
****************************... |
eXl-Nic/eXl | src/engine/editor/eXl_Editor/resourcehandle_editor.h | #pragma once
#include "../dynobjecteditor.hpp"
class QComboBox;
class QAbstractItemModel;
class ResourceHandle_Editor : public DynObjectEditor
{
Q_OBJECT
public:
static DynObjectEditor* Construct(QWidget *parent)
{return new ResourceHandle_Editor(parent);}
ResourceHandle_Editor(QWidget *parent);
protected ... |
epgres/UdemyCpp_Template | Programmierprojekt1/DynArray.h | <reponame>epgres/UdemyCpp_Template<filename>Programmierprojekt1/DynArray.h
#pragma once
#include <cstddef>
/**
* @brief DynamicArray Structure
*
* @param double* m_data
* @param std::size_t m_length
*/
struct DynamicArray
{
double* m_data;
std::size_t m_length;
};
/**
* @brief Create a dynamic array o... |
epgres/UdemyCpp_Template | 6_Programmieraufgabe/exercise.h | <gh_stars>0
#pragma once
#include <utility>
#include <map>
#include <string>
// Aufgabe 1
typedef std::map<std::string, std::pair<int, int>> Friends;
// Aufgabe 2
std::string get_oldest_friend(const Friends &friends);
std::string get_heaviest_friend(const Friends &friends);
|
gentlemans/gentlemanly-engine | deps/openal-soft/Alc/mixer_defs.h | #ifndef MIXER_DEFS_H
#define MIXER_DEFS_H
#include "AL/alc.h"
#include "AL/al.h"
#include "alMain.h"
#include "alu.h"
struct MixGains;
struct HrtfParams;
struct HrtfState;
/* C resamplers */
const ALfloat *Resample_copy32_C(const BsincState *state, const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restric... |
gentlemans/gentlemanly-engine | deps/openal-soft/Alc/effects/compressor.c | /**
* OpenAL cross platform audio library
* Copyright (C) 2013 by <NAME>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) a... |
gentlemans/gentlemanly-engine | deps/libRocket/Contrib/Include/Rocket/ProgressBar/ElementProgressBar.h | <reponame>gentlemans/gentlemanly-engine
#ifndef ROCKETPROGRESSBARELEMENTPROGRESSBAR_H
#define ROCKETPROGRESSBARELEMENTPROGRESSBAR_H
#include <Rocket/ProgressBar/Header.h>
#include <Rocket/Core/Element.h>
#include <Rocket/Core/Geometry.h>
#include <Rocket/Core/Texture.h>
namespace Rocket {
namespace ProgressBar {
/**... |
gentlemans/gentlemanly-engine | deps/libRocket/Contrib/Include/Rocket/ProgressBar/Header.h | #ifndef ROCKETPROGRESSBARHEADER_H
#define ROCKETPROGRESSBARHEADER_H
#include <Rocket/Core/Platform.h>
#if !defined STATIC_LIB
#ifdef ROCKET_PLATFORM_WIN32
#ifdef RocketProgressBar_EXPORTS
#define ROCKETPROGRESSBAR_API __declspec(dllexport)
#else
#define ROCKETPROGRESSBAR_API __declspec(dllimport)
#endif
... |
gentlemans/gentlemanly-engine | deps/libRocket/Contrib/Include/Rocket/ProgressBar.h | <filename>deps/libRocket/Contrib/Include/Rocket/ProgressBar.h
#ifndef ROCKETPROGRESSBARPROGRESSBAR_H
#define ROCKETPROGRESSBARPROGRESSBAR_H
#include <Rocket/ProgressBar/Header.h>
namespace Rocket {
namespace ProgressBar {
ROCKETPROGRESSBAR_API void Initialise();
}
}
#endif
|
gentlemans/gentlemanly-engine | deps/openal-soft/OpenAL32/Include/alu.h | <reponame>gentlemans/gentlemanly-engine<gh_stars>100-1000
#ifndef _ALU_H_
#define _ALU_H_
#include <limits.h>
#include <math.h>
#ifdef HAVE_FLOAT_H
#include <float.h>
#endif
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
#include "alMain.h"
#include "alBuffer.h"
#include "alFilter.h"
#include "hrtf.h"
#include "ali... |
gentlemans/gentlemanly-engine | deps/openal-soft/Alc/mixer_inc.c | #include "config.h"
#include "alMain.h"
#include "alSource.h"
#include "hrtf.h"
#include "mixer_defs.h"
#include "align.h"
static inline void SetupCoeffs(ALfloat (*restrict OutCoeffs)[2],
const HrtfParams *hrtfparams,
ALuint IrSize, ALuint Counter);
stat... |
gentlemans/gentlemanly-engine | deps/openal-soft/Alc/hrtf.h | #ifndef ALC_HRTF_H
#define ALC_HRTF_H
#include "AL/al.h"
#include "AL/alc.h"
#include "alstring.h"
enum DevFmtChannels;
struct Hrtf;
typedef struct HrtfEntry {
al_string name;
al_string filename;
const struct Hrtf *hrtf;
} HrtfEntry;
TYPEDEF_VECTOR(HrtfEntry, vector_HrtfEntry)
#define HRIR_BITS ... |
pwmb/vscode-esp-idf-extension | templates/new_component/new_component.c | <reponame>pwmb/vscode-esp-idf-extension
#include <stdio.h>
#include "new_component.h"
void func(void)
{
}
|
Elbandi/lighttpd | src/network_solaris_sendfilev.c | #include "network_backends.h"
#ifdef USE_SOLARIS_SENDFILEV
#include "network.h"
#include "fdevent.h"
#include "log.h"
#include "stat_cache.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#includ... |
Elbandi/lighttpd | src/plugin.c | #include "plugin.h"
#include "log.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef HAVE_VALGRIND_VALGRIND_H
# include <valgrind/valgrind.h>
#endif
#ifndef __WIN32
# include <dlfcn.h>
#endif
/*
*
* if you change this enum to add a new callback, be sure
* - that PLUGIN_FUNC_SIZEOF is the last e... |
Elbandi/lighttpd | src/fdevent_linux_rtsig.c | <filename>src/fdevent_linux_rtsig.c
#include "fdevent.h"
#include "buffer.h"
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <limits.h>
#include <fcntl.h>
#ifdef USE_LINUX_SIGIO
static void fdevent_linux_rtsig_free... |
Elbandi/lighttpd | src/configfile.c | #include "server.h"
#include "log.h"
#include "stream.h"
#include "plugin.h"
#include "configparser.h"
#include "configfile.h"
#include "proc_open.h"
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include ... |
Elbandi/lighttpd | src/network_linux_sendfile.c | #include "network_backends.h"
#ifdef USE_LINUX_SENDFILE
#include "network.h"
#include "fdevent.h"
#include "log.h"
#include "stat_cache.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <... |
Elbandi/lighttpd | src/version.h | #ifndef _VERSION_H_
#define _VERSION_H_
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* check lighttpd version */
#if LIGHTTPD_VERSION_ID < 0x10500
#define LIGHTTPD_V14 1
#else
#define LIGHTTPD_V15 1
#endif
#ifdef HAVE_VERSION_H
# include "versionstamp.h"
#else
# define REPO_VERSION ""
#endif
#define PACKAGE_DES... |
Elbandi/lighttpd | src/chunk.c | /**
* the network chunk-API
*
*
*/
#include "chunk.h"
#include "server.h"
#include "log.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
chunkqueue *chunkqueue_init(void) {
... |
Elbandi/lighttpd | src/mod_ssi_expr.c | #include "buffer.h"
#include "log.h"
#include "mod_ssi.h"
#include "mod_ssi_expr.h"
#include "mod_ssi_exprparser.h"
#include <ctype.h>
#include <string.h>
typedef struct {
const char *input;
size_t offset;
size_t size;
int line_pos;
int in_key;
int in_brace;
int in_cond;
} ssi_tokenizer_t;
ssi_val_t *ssi_va... |
Elbandi/lighttpd | src/network_backends.h | #ifndef _NETWORK_BACKENDS_H_
#define _NETWORK_BACKENDS_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "settings.h"
#include <sys/types.h>
/* on linux 2.4.x you get either sendfile or LFS */
#if defined HAVE_SYS_SENDFILE_H && defined HAVE_SENDFILE && (!defined _LARGEFILE_SOURCE || defined HAVE_SENDFILE6... |
Elbandi/lighttpd | src/mod_staticfile.c | <filename>src/mod_staticfile.c<gh_stars>0
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "plugin.h"
#include "stat_cache.h"
#include "etag.h"
#include "http_chunk.h"
#include "response.h"
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/**
* this is a staticfile for a... |
Evgeniy29/GOF | MyTools.h | #pragma once
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
namespace MyTools {
// Палитра цветов от 0 до 15
enum ConsoleColor
{
CC_Black = 0,
CC_Blue,
CC_Green,
CC_Cyan,
CC_Red,
CC_Magenta,
CC_Brown,
CC_LightGray,... |
collin80/FlexCAN_T4 | isotp.h | /*
MIT License
Copyright (c) 2018 <NAME> (tonton81) - https://github.com/tonton81
Designed and tested for PJRC Teensy 4.0.
Forum link : https://forum.pjrc.com/threads/56035-isotp-FlexCAN-for-Teensy-4?highlight=isotp
Thanks goes to skpang, mjs513, and collin for tech/testing support
Permissio... |
wy1433/BaikalDB | include/protocol/show_helper.h | <filename>include/protocol/show_helper.h
// Copyright (c) 2018-present Baidu, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/lic... |
wy1433/BaikalDB | include/store/region.h | // Copyright (c) 2018-present Baidu, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... |
wy1433/BaikalDB | include/store/closure.h | // Copyright (c) 2018-present Baidu, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... |
wy1433/BaikalDB | include/meta_server/query_table_manager.h | // Copyright (c) 2018-present Baidu, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... |
deguilardi/dacapobench | benchmarks/agent/c/src/dacapolog.c | #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/time.h>
#include <jni.h>
#include "dacapolog.h"
#include "dacapooptions.h"
#include "dacapotag.h"
#include "dacapolock.h"
#include "dacapoallocation.h"
#include "dacapoexception.h"
#include "dacapomethod.h"
#include "d... |
chidanta-shu/stitching | mosaic/mosaic.h | #pragma once
#ifdef MOSAIC_EXPORTS
#define MOSAIC_API __declspec(dllexport)
#else
#define MOSAIC_API __declspec(dllimport)
#endif
#define PI (3.1415926535897932384626)
#define TO_ANG(x) (180.0*x/PI)
#define TO_RAD(x) (PI*x/180.0)
|
chidanta-shu/stitching | mosaic/ColorCorrection.h | <gh_stars>0
#pragma once
#include <iostream>
#include <opencv2/opencv.hpp>
#include <cassert>
#include <vector>
#include <cmath>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#define num_img 2 /*6*/ // 更新2
//#define gr = 2
using namespace cv;
using namespace std;
struct... |
chidanta-shu/stitching | mosaic/CameraCalib.h | #pragma once
#include <iostream>
#include"mosaic.h"
class MOSAIC_API CameraCalib
{
public:
static int initcalibfile(std::string calibconfigpath, std::string imagelistpath,int outid=0);
static int calibmain(std::string name, int winsize = 11, float dsize = -1);
};
|
Ex05/herder | src/que.c | #ifndef QUE_C
#define QUE_C
#include "que.h"
local void que_initQueElement(QueElement*, void*);
local void que_freeQueElement(QueElement*);
inline ERROR_CODE que_init(Que* que){
memset(que, 0, sizeof(*que));
return ERROR(ERROR_NO_ERROR);
}
inline ERROR_CODE que_enque(Que* que, void* value){
if(value =... |
Ex05/herder | src/arrayList.h | <filename>src/arrayList.h
#ifndef ARRAY_LIST_H
#define ARRAY_LIST_H
#include "util.h"
#define ARRAY_LIST_IS_EMPTY(list)(list->length == 0)
#define ARRAY_LIST_LENGTH(list)((list)->length)
#define ARRAY_LIST_ITERATOR_HAS_NEXT(it)(arrayList_iteratorHasNext(it))
#define ARRAY_LIST_INIT_FIXED_SIZE_STACK_LIST(list, initi... |
Ex05/herder | src/argumentParser.c | <reponame>Ex05/herder
#ifndef ARGUMENT_PARSER_C
#define ARGUMENT_PARSER_C
#include "argumentParser.h"
#include "linkedList.c"
// Note:(jan) If the value of an argument points to this flag, then the Argument was present, but had no value assosiatet with it. e.g: ('--help', '-?') as opposed to ("--setImportDirecto... |
Ex05/herder | src/herder.h | <gh_stars>0
#ifndef HERDER_H
#define HERDER_H
#include "util.h"
#include "mediaLibrary.h"
#define HERDER_CONSTRUCT_RELATIVE_FILE_PATH(path, stringLength, episodeInfo) \
char* _noWhiteSpaceShowName = alloca(sizeof(*_noWhiteSpaceShowName) * ((episodeInfo)->showNameLength + 1)); \
strncpy(_noWhiteSpaceShowName, ... |
Ex05/herder | src/pls.h | #ifndef PLS_H
#define PLS_H
#include "util.h"
#include "propertyFile.h"
#include "mediaLibrary.h"
ERROR_CODE pls_savePlayList(Property*, const char*, Show*);
#endif
/*
[playlist]
File1=http://relay5.181.fm:8068
Length1=-1
File2=example2.mp3
Title2=Just some local audio that is 2mins long
L... |
Ex05/herder | src/propertyFile.h | <reponame>Ex05/herder
#ifndef PROPERTY_FILE_H
#define PROPERTY_FILE_H
#include "util.h"
#include "linkedList.h"
#define PROPERTY_IS_NOT_SET(property) (property == NULL)
#define PROPERTY_IS_SET(property) (property != NULL)
typedef struct{
uint_fast8_t release;
uint_fast8_t update;
uint_fast8_t hotfix;
}V... |
Ex05/herder | src/http.c | <filename>src/http.c
#ifndef HTTP_C
#define HTTP_C
#include "http.h"
#include "linkedList.c"
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <strings.h>
inline ERROR_CODE http_initRequest(HTTP_Request* request, const char* url, const uint_fast64_t urlLength, void* buffer, cons... |
Ex05/herder | src/cache.h | #ifndef CACHE_H
#define CACHE_H
#include "util.h"
#include <time.h>
#include <pthread.h>
#include <semaphore.h>
#include "linkedList.h"
typedef struct{
LinkedList elements;
uint_fast64_t maxSize;
uint_fast64_t currentSize;
sem_t activeAcesses;
pthread_mutex_t lock;
uint_fast... |
Ex05/herder | src/pls.c | #ifndef PLS_C
#define PLS_C
#include "pls.h"
ERROR_CODE pls_savePlayList(Property* libraryDirectory, const char* fileName, Show* show){
ERROR_CODE error;
FILE* file = fopen(fileName, "w+");
if(file == NULL){
UTIL_LOG_ERROR_("Failed to create file: '%s' - '%s'.", fileName, strerror(errno));
... |
Ex05/herder | src/util.c | <reponame>Ex05/herder<filename>src/util.c
#ifndef UTIL_C
#define UTIL_C
#include "util.h"
/**
* Converts a given number <b>value</b> into a easy readable formated number string.
*
* Numbers <= to 999 will be padded with 0.<br>
* And every 3 digits an underscore('_') will be inserted.
* @param s The buffer in whi... |
Ex05/herder | src/cache.c | #ifndef CACHE_C
#define CACHE_C
#include "cache.h"
local ERROR_CODE cache_initCacheObject(CacheObject*, uint8_t*, const uint_fast64_t, char*, const uint_fast64_t, char*, const uint_fast64_t);
local void cache_freeCacheObject(CacheObject*);
inline ERROR_CODE cache_init(Cache* cache, const uint_fast64_t numT... |
Ex05/herder | src/linkedList.c | #ifndef LINKED_LIST_C
#define LINKED_LIST_C
#include "linkedList.h"
local Node* linkedList_initNode(void*);
inline ERROR_CODE linkedList_init(LinkedList* list) {
memset(list, 0, sizeof(*list));
return ERROR(ERROR_NO_ERROR);
}
inline ERROR_CODE linkedList_add(LinkedList* list, void* data) {
Node* node =... |
Ex05/herder | src/http.h | <filename>src/http.h<gh_stars>0
#ifndef HTTP_H
#define HTTP_H
#include "util.h"
#include "linkedList.h"
#include "cache.h"
#define HTTP_VERSION_1_0 "HTTP/1.0"
#define HTTP_VERSION_1_1 "HTTP/1.1"
#define HTTP_VERSION_2_0 "HTTP/2.0"
#define HTTP_ADD_HEADER_FIELD(request, _name, _value) do{ \
HTTP_Heade... |
Ex05/herder | src/mediaLibrary.h | #ifndef MEDIA_LIBRARY_H
#define MEDIA_LIBRARY_H
#include "util.h"
#include <dirent.h>
#include "linkedList.h"
#include "propertyFile.h"
typedef struct{
FILE* libraryFile;
char* libraryFileLocation;
uint_fast64_t libraryFileLocationLength;
LinkedList shows;
Version version;
volatile bool init... |
Ex05/herder | src/herder.c | <filename>src/herder.c
#include "herder.h"
#include "util.c"
#include "linkedList.c"
#include "http.c"
#include "argumentParser.c"
#include "propertyFile.c"
#include "mediaLibrary.c"
#define HTTP_PROCESSING_BUFFER_SIZE 8192 //16384
ERROR_CODE herder_pullShowList(LinkedList* shows, Property* remoteHost, Property* rem... |
Ex05/herder | src/que.h | #ifndef QUE_H
#define QUE_H
#include "util.h"
typedef struct queElement{
void* value;
struct queElement* next;
}QueElement;
typedef struct{
QueElement* head;
QueElement* tail;
uint_fast64_t len;
}Que;
ERROR_CODE que_init(Que*);
ERROR_CODE que_enque(Que*, void*);
void* que_deque(Que... |
Ex05/herder | src/arrayList.c | #ifndef ARRAY_LIST_C
#define ARRAY_LIST_C
#include "util.h"
#include "arrayList.h"
ARRAY_LIST_EXPAND_FUNCTION(arrayList_defaultExpandFunction){
return previousSize + (previousSize >> 1);
}
uint_fast64_t arrayList_expand(const uint_fast16_t i);
local ERROR_CODE arrayList_expandList(ArrayList*);
local void arrayL... |
Ex05/herder | src/test.c | // POSIX Version ¢2008 clock_gettime()
#define _XOPEN_SOURCE 700
// For mmap flags that are not in the POSIX-Standard.
#define _GNU_SOURCE
#include "util.c"
#include "mediaLibrary.c"
#include "arrayList.c"
#include "linkedList.c"
#include "argumentParser.c"
#include "http.c"
#include "que.c"
#include "threadPool.c"
#... |
Ex05/herder | src/mediaLibrary.c | <reponame>Ex05/herder
#ifndef MEDIA_LIBRARY_C
#define MEDIA_LIBRARY_C
#include "mediaLibrary.h"
#include "linkedList.c"
#include "util.c"
#define LIBRARY_FILE_NAME "lib_data"
// TODO: Decide if we want to use the '({ })' gcc extension here to be able to return an error code from here. (jan - 2019.05.17)
#define MED... |
Ex05/herder | src/threadPool.h | #ifndef THREAD_POOL_H
#define THREAD_POOL_H
#include <pthread.h>
#include <semaphore.h>
#include "util.h"
#include "que.h"
typedef struct{
pthread_t* threads;
uint_fast16_t numWorkers;
pthread_mutex_t lock;
sem_t numJobs;
sem_t alive;
Que jobQue;
}ThreadPool;
#define THREAD_POOL_RUNNABLE(fu... |
Ex05/herder | src/util.h | <reponame>Ex05/herder
#ifndef UTIL_H
#define UTIL_H
// Use print MACROS for types like uint_fast64_t
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <syslog.h>
#includ... |
Ex05/herder | src/propertyFile.c | <reponame>Ex05/herder
#ifndef PROPERTY_FILE_C
#define PROPERTY_FILE_C
#include "propertyFile.h"
#include "linkedList.c"
#define PAGE_ENTRY_SIZE (sizeof(uint64_t) * 4)
local const Version VERSION = {1, 0, 0};
local ERROR_CODE propertyFile_initProperty(Property*, PropertyFileEntry*, PropertyFile*);
local ERROR_CODE... |
Ex05/herder | src/server.h | <reponame>Ex05/herder
#ifndef SERVER_H
#define SERVER_H
#include "util.h"
#include "threadPool.h"
#include "http.h"
#include "linkedList.h"
#include "mediaLibrary.h"
#include "cache.h"
#include <sys/un.h>
#include <netinet/in.h>
#include <sys/inotify.h>
typedef struct {
int sockFD;
struct sockaddr_in sockAdd... |
Ex05/herder | src/server.c | #ifndef SERVER_C
#define SERVER_C
// POSIX Version ¢2008
#define _XOPEN_SOURCE 700
// For mmap flags that are not in the POSIX-Standard.
#define _GNU_SOURCE
#include "server.h"
#include "que.c"
#include "threadPool.c"
#include "http.c"
#include "mediaLibrary.c"
#include "cache.c"
#include "propertyFile.c"
#include ... |
Ex05/herder | src/argumentParser.h | #ifndef ARGUMENT_PARSER_H
#define ARGUMENT_PARSER_H
#include "util.h"
#include "linkedList.h"
#if !defined __GNUC__ && !defined __GNUG__
TODO:(jan); Add preprocessor macros for other compiler.
#endif
#define ARGUMENT_PARSER_ADD_ARGUMENT(name, numArguments, ...) Argument argument ## name; \
argumentParser_addArg... |
Ex05/herder | src/linkedList.h | <gh_stars>0
#ifndef LINKED_LIST_H
#define LINKED_LIST_H
#include "util.h"
#define LINKED_LIST_IS_EMPTY(list)((list)->length == 0)
#define LINKED_LIST_ITERATOR_HAS_NEXT(it) ((it)->node != NULL)
#define LINKED_LIST_ITERATOR_NEXT(it)(linkedList_iteratorNextNode(it)->data)
typedef struct node{
void* data;
struc... |
Ex05/herder | src/threadPool.c | #ifndef THREAD_POOL_C
#define THREAD_POOL_C
#include "threadPool.h"
local void* threadPool_threadFunc(void*);
// TODO:(jan) Cleanup error handling in 'threadpool_init' .
inline ERROR_CODE threadPool_init(ThreadPool* threadPool, const uint_fast16_t numWorkers){
threadPool->numWorkers = numWorkers;
threadPool... |
Ex05/herder | src/consoleClient.c | <filename>src/consoleClient.c<gh_stars>0
// POSIX Version ¢2008
#define _XOPEN_SOURCE 700
// For mmap flags that are not in the POSIX-Standard.
#define _GNU_SOURCE
#include <fcntl.h>
#include <signal.h>
#include <signal.h>
#include "util.c"
#include "linkedList.c"
#include "http.c"
#include "argumentParser.c"
#inclu... |
ionelmc/virtualenv | tests/functional/testcext/test_cext.c | <reponame>ionelmc/virtualenv
#include "Python.h"
static PyObject *hello_world(PyObject *self, PyObject *args) {
return Py_BuildValue("s", "hello, world!");
}
static PyMethodDef module_functions[]={
{"hello_world", hello_world, METH_VARARGS, "Say hello."},
{NULL}
};
#if PY_MAJOR_VERSION < 3
PyMODINIT... |
totorigolo/yap | examples/calc-with-vars/NamedVariableSymbol.h | <filename>examples/calc-with-vars/NamedVariableSymbol.h<gh_stars>0
/*
* MIT License
*
* Copyright (c) 2018 insa.4if.hexanome_kalate
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software wi... |
totorigolo/yap | include/YAP/Singleton.h | /*
* MIT License
*
* Copyright (c) 2018 insa.4if.hexanome_kalate
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... |
totorigolo/yap | include/YAP/Lexer.h | <filename>include/YAP/Lexer.h
/*
* MIT License
*
* Copyright (c) 2018 insa.4if.hexanome_kalate
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without ... |
totorigolo/yap | include/YAP/Transition.h | /*
* MIT License
*
* Copyright (c) 2018 insa.4if.hexanome_kalate
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... |
totorigolo/yap | include/YAP/Symbol.h | <reponame>totorigolo/yap<gh_stars>0
/*
* MIT License
*
* Copyright (c) 2018 insa.4if.hexanome_kalate
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including wi... |
totorigolo/yap | include/YAP/Automaton.h | <reponame>totorigolo/yap
/*
* MIT License
*
* Copyright (c) 2018 insa.4if.hexanome_kalate
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limit... |
totorigolo/yap | examples/simple/Transitions.h | /*
* MIT License
*
* Copyright (c) 2018 insa.4if.hexanome_kalate
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... |
totorigolo/yap | include/YAP/TokenRule.h | /*
* MIT License
*
* Copyright (c) 2018 insa.4if.hexanome_kalate
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... |
StateFromJakeFarm/ascii3d | frame.h | /**
* @file frame.h
* @author <NAME>
*
* Header for Frame class to render player's view within terminal emulator using
* ASCII characters.
*/
#ifndef FRAME_H
#define FRAME_H
#include <vector>
#include <string>
#include <utility>
#include <omp.h>
#include "game_map.h"
#include "player.h"
using std::vector;
usin... |
StateFromJakeFarm/ascii3d | player.h | /**
* @file player.h
* @author <NAME>
*
* Header for Player class to record player's orientation and movement
* information.
*/
#ifndef PLAYER_H
#define PLAYER_H
#include <cmath>
#include "game_map.h"
class Player {
private:
GameMap *game_map_ptr;
double x, y, view_angle;
double fov, walk_speed... |
StateFromJakeFarm/ascii3d | game_map.h | <reponame>StateFromJakeFarm/ascii3d
/**
* @file game_map.h
* @author <NAME>
*
* Header for GameMap class to maintain positions of obstacles in the
* environment.
*/
#ifndef GAME_MAP_H
#define GAME_MAP_H
#include <string>
#include <fstream>
#include <vector>
#include <iostream>
using std::string;
using std::ifs... |
manageryzy/ac_types_plus | include/ac_channel.h | <gh_stars>0
/**************************************************************************
* *
* Algorithmic C (tm) Datatypes *
* *
* ... |
manageryzy/ac_types_plus | include/ac_float.h | /**************************************************************************
* *
* Algorithmic C (tm) Datatypes *
* *
* Software Ver... |
manageryzy/ac_types_plus | include/ac_int.h | <filename>include/ac_int.h
/**************************************************************************
* *
* Algorithmic C (tm) Datatypes *
* ... |
manageryzy/ac_types_plus | include/ac_sc.h | <reponame>manageryzy/ac_types_plus<filename>include/ac_sc.h
/**************************************************************************
* *
* Algorithmic C (tm) Datatypes *
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.