repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomParser.h | <gh_stars>0
//
// RBBomParser.h
// RBBomReaderEngine
//
// Created by Earus on 1/24/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import <Foundation/Foundation.h>
@class RBBomDataReader;
@class RBBomTagNode;
@interface RBBomParser : NSObject
@property (nonatomic, readonly) RBBomTagNode *rootNode;
- (id... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomDataReader.h | //
// RBBomDataReader.h
// RBBomReaderEngine
//
// Created by Earus on 1/24/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RBBomDataReader : NSObject
@property (nonatomic, readonly) NSInteger pos;
- (id)initWithFilePath:(NSString *)path;
- (id)initWithString:(N... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomRendererContext.h | <filename>Sources/RBBomReaderEngine/include/RBBomRendererContext.h
//
// RBBomRendererContext.h
// RBBomReaderEngine
//
// Created by <NAME> on 1/25/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, RBBomAlign) {
RBBomAlignLeft,
RBBomAlignCen... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomReaderEngine.h | <reponame>ridi/bomengine-ios<filename>Sources/RBBomReaderEngine/include/RBBomReaderEngine.h
//
// RBBomReaderEngine.h
// RBBomReaderEngine
//
// Created by <NAME> on 1/25/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import "RBBomUtil... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomLayoutManager.h | <reponame>ridi/bomengine-ios
//
// RBBomLayoutManager.h
// RBBomReaderEngine
//
// Created by <NAME> on 1/25/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import "RBBomNodeInfo.h"
typedef NS_ENUM(NSInteger, RBBomLayoutPurpose) {
RBBomLayoutPurposeRendering,
RBBomLayoutPurposePaging,
};
@class RBB... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomTagNode.h | //
// RBBomTagNode.h
// RBBomReaderEngine
//
// Created by <NAME> on 1/24/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import "RBBomNode.h"
typedef NS_ENUM(NSInteger, RBBomNodeTag) {
RBBomNodeTagPage,
RBBomNodeTagImg,
RBBomNodeTagFont,
RBBomNodeTagLink,
RBBomNodeTagIndex,
RBBomNod... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomAttribute.h | <reponame>ridi/bomengine-ios
//
// RBBomAttribute.h
// RBBomReaderEngine
//
// Created by <NAME> on 1/24/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RBBomAttribute : NSObject {
NSString *key;
NSString *value;
}
@property (nonatomic, copy) NSString *ke... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomNodeRange.h | //
// RBBomNodeRange.h
// RBBomReaderEngine
//
// Created by <NAME> on 2/16/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol RBBomLocation;
@class RBBomNodeInfo;
@interface RBBomNodeRange : NSObject <NSCoding>
@property (nonatomic, readonly) NSInteger startRawOffs... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomNode.h | <reponame>ridi/bomengine-ios
//
// RBBomNode.h
// RBBomReaderEngine
//
// Created by <NAME> on 1/24/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RBBomNode : NSObject
@property (nonatomic) NSInteger nodeIndex;
@property (nonatomic, weak) RBBomNode *parent;
@pro... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomSelectable.h | //
// RBBomSelectable.h
// Ridibooks
//
// Created by <NAME> on 2/16/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import "RBBomUtil.h"
@class RBBomNodeInfo;
@interface RBBomSelectable : NSObject
@property (nonatomic, readonly) RBRectF rect;
@property (nonatomic, readonly) RBBomNodeInfo *nodeInfo;
- (i... |
richyjay/wireguard-apple | Sources/WireGuardNetworkExtension/WireGuardNetworkExtension-Bridging-Header.h | #include "../WireGuardKitC/WireGuardKitC.h"
#include "../WireGuardKitGo/wireguard.h"
#include "ringlogger.h"
|
richyjay/wireguard-apple | Sources/WireGuardKitC/x25519.h | <filename>Sources/WireGuardKitC/x25519.h<gh_stars>100-1000
#ifndef X25519_H
#define X25519_H
void curve25519_derive_public_key(unsigned char public_key[32], const unsigned char private_key[32]);
void curve25519_generate_private_key(unsigned char private_key[32]);
#endif
|
richyjay/wireguard-apple | Sources/WireGuardApp/WireGuard-Bridging-Header.h | <reponame>richyjay/wireguard-apple
#include "../WireGuardKitC/WireGuardKitC.h"
#include "wireguard-go-version.h"
#include "unzip.h"
#include "zip.h"
#include "ringlogger.h"
#include "key.h"
#include "highlighter.h"
#import "TargetConditionals.h"
#if TARGET_OS_OSX
#include <libproc.h>
#endif
//#include "../../wiregua... |
richyjay/wireguard-apple | Sources/Shared/Logging/ringlogger.c | /* SPDX-License-Identifier: MIT
*
* Copyright © 2018-2020 WireGuard LLC. All Rights Reserved.
*/
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdatomic.h>
#include <stdbool.h>
#include <time.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.... |
richyjay/wireguard-apple | Sources/WireGuardKitC/WireGuardKitC.h | // SPDX-License-Identifier: MIT
// Copyright © 2018-2020 WireGuard LLC. All Rights Reserved.
#include "key.h"
#include "x25519.h"
|
richyjay/wireguard-apple | Sources/WireGuardKitC/x25519.c | /* SPDX-License-Identifier: GPL-2.0+
*
* Copyright (C) 2015-2019 <NAME> <<EMAIL>>. All Rights Reserved.
*
* Curve25519 ECDH functions, based on TweetNaCl but cleaned up.
*/
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <CommonCrypto/CommonRandom.h>
#include "x25519.h"
typedef int64_t fe[1... |
richyjay/wireguard-apple | Sources/Shared/Logging/test_ringlogger.c | <gh_stars>100-1000
#include "ringlogger.h"
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
#include <sys/wait.h>
static void forkwrite(void)
{
struct log *log = open_log("/tmp/test_log");
char c[512];
int i, base;
bool in_fork = !fork();
base = 10000 * in_for... |
stephenfvdm/ugate | src/main/arduino/sketches/UGate/UGate.h | <reponame>stephenfvdm/ugate
//======= Node ID that identifies the node accross the network =======
#define NODE_ID 1
//======= General =======
#define NUMOFELEM(a) (sizeof(a)/sizeof(a[0]))
//======= Exception Handlers =======
// include "Exceptions.h"
//======= XBee (XBee Adapter with XBee Pro 60mW Chip Antenna [~1 Mil... |
stephenfvdm/ugate | src/main/arduino/sketches/UGate/Exceptions.h | #include <setjmp.h>
#include "WProgram.h"
#include "wiring_private.h"
#define TRY if(!(_excep_code = setjmp(_excep_buf)))
#define CATCH else
#define EXCEPTION_NUM_EXCEPTIONS 14
// declared static in case exception condition would prevent
// auto variable being created
static enum {
EXCEP_IRQ = 0, ... |
zixin96/ZEngine | ZZX/src/ZZX.h | <reponame>zixin96/ZEngine
#pragma once
// For use by Game applications
#include "ZZX/Core/Core.h"
#include "ZZX/Core/Application.h"
#include "ZZX/Core/Layer.h"
#include "ZZX/Core/Log.h"
#include "ZZX/Core/Assert.h"
#include "ZZX/Core/Timestep.h"
#include "ZZX/Core/Input.h"
#include "ZZX/Core/KeyCodes.h"
#include "Z... |
zixin96/ZEngine | ZZX/src/ZZX/Core/EntryPoint.h | <filename>ZZX/src/ZZX/Core/EntryPoint.h<gh_stars>0
#pragma once
#ifdef ZZX_PLATFORM_WINDOWS
extern ZZX::Application* ZZX::CreateApplication();
int main(int argc, char** argv)
{
ZZX::Log::Init();
ZZX_PROFILE_BEGIN_SESSION("Startup", "ZZXProfile-Startup.json");
auto app = ZZX::CreateApplication();
ZZX... |
zixin96/ZEngine | ZZX/src/ZZX/Renderer/OrthographicCameraController.h | #pragma once
#include "ZZX/Renderer/OrthographicCamera.h"
#include "ZZX/Core/Timestep.h"
#include "ZZX/Events/ApplicationEvent.h"
#include "ZZX/Events/MouseEvent.h"
namespace ZZX
{
class OrthographicCameraController
{
public:
OrthographicCameraController(float aspectRatio, bool rotation = false);
... |
zixin96/ZEngine | ZZX/src/ZZX/Core/Timestep.h | <gh_stars>0
#pragma once
// A helper class for calculating delta time.
namespace ZZX
{
class Timestep
{
public:
Timestep(float time = 0.0f)
: m_TimeInSeconds(time)
{}
float GetSeconds() const { return m_TimeInSeconds; }
float GetMilliseconds() const { return m_T... |
zixin96/ZEngine | ZZX/src/ZZX/Imgui/ImguiLayer.h | <reponame>zixin96/ZEngine
#pragma once
#include "ZZX/Core/Layer.h"
#include "ZZX/Events/MouseEvent.h"
#include "ZZX/Events/KeyEvent.h"
#include "ZZX/Events/ApplicationEvent.h"
namespace ZZX
{
class ImguiLayer : public Layer
{
public:
ImguiLayer();
~ImguiLayer() = default;
virtual... |
zixin96/ZEngine | ZZX/src/ZZX/Renderer/OrthographicCamera.h | #pragma once
#include <glm/glm.hpp>
namespace ZZX
{
class OrthographicCamera
{
public:
OrthographicCamera(float left, float right, float bottom, float top); // default near = -1.0, far = 1.0
void SetProjection(float left, float right, float bottom, float top);
const glm::vec3& Get... |
zixin96/ZEngine | ZZX/src/ZZX/Renderer/Framebuffer.h | #pragma once
#include "ZZX/Core/Core.h"
namespace ZZX
{
enum class FrameBufferTextureFormat
{
None = 0,
// color
RGBA8,
RED_INTEGER,
// depth/stencil
DEPTH24STENCIL8,
// defaults
Depth = DEPTH24STENCIL8
};
struct FrameBufferTextureSpecification
{
FrameBufferTextureSpecification() = default;... |
zixin96/ZEngine | ZZX/src/ZZX/Core/Core.h | #pragma once
#include <memory>
#include "ZZX/Core/PlatformDetection.h"
#ifdef ZZX_DEBUG
#if defined(ZZX_PLATFORM_WINDOWS)
#define ZZX_DEBUGBREAK() __debugbreak()
#elif defined(ZZX_PLATFORM_LINUX)
#include <signal.h>
#define ZZX_DEBUGBREAK() raise(SIGTRAP)
#else
#error "Platf... |
zixin96/ZEngine | ZZX/src/Platform/OpenGL/OpenGLFramebuffer.h | #pragma once
#include "ZZX/Renderer/Framebuffer.h"
namespace ZZX
{
class OpenGLFramebuffer : public Framebuffer
{
public:
OpenGLFramebuffer(const FramebufferSpecification& spec);
virtual ~OpenGLFramebuffer();
void RecreateBuffer();
virtual void Bind() override;
vi... |
zixin96/ZEngine | ZZX/src/ZZX/Core/Application.h | <gh_stars>0
#pragma once
#include "ZZX/Core/Core.h"
#include "ZZX/Core/IWindow.h"
#include "ZZX/Core/LayerStack.h"
#include "ZZX/Events/Event.h"
#include "ZZX/Events/ApplicationEvent.h"
#include "ZZX/Core/Timestep.h"
#include "ZZX/Imgui/ImguiLayer.h"
namespace ZZX
{
class Application
{
public:
A... |
zixin96/ZEngine | Sandbox/src/Sandbox2D.h | #pragma once
#include "ZZX.h"
class Sandbox2D : public ZZX::Layer
{
public:
Sandbox2D();
virtual ~Sandbox2D() = default;
void OnAttach() override;
void OnDetach() override;
void OnUpdate(ZZX::Timestep timestep) override;
void OnImguiRender() override;
void OnEvent(ZZX::Event& e) override;
p... |
zixin96/ZEngine | ZZX/src/ZZX/Core/Layer.h | <gh_stars>0
#pragma once
// Layer renders graphics and receives events
#include "ZZX/Core/Core.h"
#include "ZZX/Events/Event.h"
#include "ZZX/Core/Timestep.h"
namespace ZZX
{
class Layer
{
public:
Layer(const std::string& name = "Layer");
virtual ~Layer() = default;
virtual void ... |
zixin96/ZEngine | ZZX/src/ZZX/Core/Log.h | #pragma once
#include "Core.h"
// This ignores all warnings raised inside External headers
#pragma warning(push, 0)
#include <spdlog/spdlog.h>
#include <spdlog/fmt/ostr.h> // for logging custom types
#pragma warning(pop)
namespace ZZX
{
class Log
{
public:
static void Init();
inline sta... |
zixin96/ZEngine | ZZX/src/ZZX/Core/Input.h | <filename>ZZX/src/ZZX/Core/Input.h
#pragma once
#include "ZZX/Core/KeyCodes.h"
#include "ZZX/Core/MouseButtonCodes.h"
#include <glm/glm.hpp>
namespace ZZX
{
// to be implemented in platform-specific input class
class Input
{
public:
static bool IsKeyPressed(KeyCode key);
static bool IsMou... |
zixin96/ZEngine | Editor/src/EditorLayer.h | <reponame>zixin96/ZEngine
#pragma once
#include "ZZX.h"
#include "Panels/SceneHierarchyPanel.h"
#include "ZZX/Renderer/EditorCamera.h"
namespace ZZX
{
class EditorLayer : public Layer
{
public:
EditorLayer();
virtual ~EditorLayer() = default;
void OnAttach() override;
void O... |
zixin96/ZEngine | ZZX/src/ZZX/Core/Assert.h | #pragma once
#include "ZZX/Core/Core.h"
#include "ZZX/Core/Log.h"
#include <filesystem>
#ifdef ZZX_ENABLE_ASSERTS
// Alteratively we could use the same "default" message for both "WITH_MSG" and "NO_MSG" and
// provide support for custom formatting by concatenating the formatting string instead of having the format... |
zoonooz/TransitKit | Transit/Transit.h | <gh_stars>10-100
//
// Transit.h
// Transit
//
// Created by <NAME> on 4/3/2559 BE.
// Copyright © 2559 zoonref. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for Transit.
FOUNDATION_EXPORT double TransitVersionNumber;
//! Project version string for Transit.
FOUNDATION_EXPORT const u... |
Jshore011/CSCI222 | Matrix_lab/jshore matrix lab/Header.h | #pragma once
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#define SIZE 3
using namespace std;
class Matrix
{
private:
int dimension = 0;
float matricies[SIZE][SIZE];
float** dynamicMatrix = NULL;
public:
friend ostream& operator<<(ostream&, Matrix const&);
Matrix();
Matrix(int di... |
Jshore011/CSCI222 | Hangman_lab/Hangman.h | /*Programmer: <NAME>
CSCI 222
Hangman Lab */
#define _CRT_SECURE_NO_WARNINGS
#pragma once
class Hangman
{
private:
char* key;
int guessLeft;
char guess;
char *saveGuesses;
char* currentGuesses;
void getWord(char* filename);
public:
Hangman();
Hangman(char* filename);
~Hangman();
char ge... |
Jshore011/CSCI222 | My_quickbook_lab/Menu.h | <reponame>Jshore011/CSCI222
#pragma once
class Menu {
private:
int selection;
public:
int getSelection();
void displayMenu(void);
}; |
Jshore011/CSCI222 | My_quickbook_lab/Payroll.h | <reponame>Jshore011/CSCI222<filename>My_quickbook_lab/Payroll.h
#pragma once
class Payroll
{
public:
Payroll();
void displayEmployeeRecord(int);
void displayAllEmployees();
void printSalarySlip(void);
private:
void modEmployee(int);
void removeById(int);
}; |
Jshore011/CSCI222 | My_quickbook_lab/Date.h | #pragma once
#include <string>
#include <string.h>
#include <vector>
using namespace std;
class Date
{
private:
int month;
int day;
int year;
vector<string> months;
void iniMonths();
public:
Date();
Date(int, int, int);
int getMonth();
int getDay();
int getYear();
void setMonth(int);
void setDay(int);
... |
Jshore011/CSCI222 | My_quickbook_lab/Employee.h |
#pragma once
#pragma once
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <string.h>
#include <ctype.h>
#include "Date.h"
class Employee
{
public:
Employee();
~Employee();
void modification(void);
private:
void add_record(int, char[], char[], char[], int, int, int, char[], char, char, cha... |
adamquaile/imgproxy | vips.h | #include <stdlib.h>
#include <vips/vips.h>
#include <vips/vips7compat.h>
#define VIPS_SUPPORT_SMARTCROP \
(VIPS_MAJOR_VERSION > 8 || (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION >= 5))
#define VIPS_SUPPORT_HASALPHA \
(VIPS_MAJOR_VERSION > 8 || (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION >= 5))
#define VIPS_... |
iaomw/MedianFilter | Sobel.c | //
// Sobel.c
// Proc
//
// Created by <NAME> on 19/10/2016.
// Copyright © 2016 IAOMW. All rights reserved.
//
#include "Sobel.h"
Mat sobel_opt(Mat input) {
Mat output = input.clone();
uchar *im_in = input.data;
int n = input.cols;
int m = input.rows;
int s = n*m;
int N,NW,NE, NE2,W2, W,E,E2,SW,SE... |
iaomw/MedianFilter | Median.c | //
// Median.c
// Proc
//
// Created by <NAME> on 19/10/2016.
// Copyright © 2016 IAOMW. All rights reserved.
//
#include "Median.h"
void swap_u8(uint8_t* v, int i, int j) {
uint8_t c;
c = v[i];
v[i] = v[j];
v[j] = c;
}
uint8_t q_s(uint8_t* v, int left, int right, int p_m) {
while(left<right) {
/... |
iaomw/MedianFilter | Sobel.h | <filename>Sobel.h
//
// Sobel.h
// Proc
//
// Created by <NAME> on 19/10/2016.
// Copyright © 2016 IAOMW. All rights reserved.
//
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
#include "cv.h"
#include "opencv2/opencv.hpp"
#include "openc... |
iaomw/MedianFilter | Median.h | //
// Median.h
// Proc
//
// Created by <NAME> on 19/10/2016.
// Copyright © 2016 IAOMW. All rights reserved.
//
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
#include <stdio.h>
#include <pthread.h>
#include "cv.h"
#include "opencv2/ope... |
cescript/imlab_image_colorization | image_colorization.c | <filename>image_colorization.c
// convert the input RGB colored image into grayscale
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "imcore.h"
int k2counter(int counter, int k, int M, int N) {
int I0[8] = {-1, 0, +1, +1, +1, 0, -1, -1};
int J0[8] = {-1, -1, -1, 0, +1, +1, +1, 0};... |
giuliobenetti/trusted-firmware-a | drivers/st/pmic/stm32mp_pmic.c | /*
* Copyright (c) 2017-2021, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <errno.h>
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <drivers/st/regulator.h>
#include <drivers/st/stm32_i2c.h>
#include <drivers/st/stm32mp_pmi... |
giuliobenetti/trusted-firmware-a | drivers/st/fmc/stm32_fmc2_nand.c | <filename>drivers/st/fmc/stm32_fmc2_nand.c
/*
* Copyright (c) 2019-2021, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
*/
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdint.h>
#include <libfdt.h>
#include <platform_def.h>
#include <common... |
giuliobenetti/trusted-firmware-a | plat/st/common/include/stm32mp_common.h | /*
* Copyright (C) 2018-2022, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef STM32MP_COMMON_H
#define STM32MP_COMMON_H
#include <stdbool.h>
#include <platform_def.h>
#define JEDEC_ST_BKID U(0x0)
#define JEDEC_ST_MFID U(0x20)
/* Functions to save and get boot conte... |
giuliobenetti/trusted-firmware-a | plat/st/stm32mp1/stm32mp1_private.c | /*
* Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <drivers/clk.h>
#include <drivers/st/stm32_gpio.h>
#include <drivers/st/stm32_iwdg.h>
#include <lib/mmio.h>
#include <lib/xlat_tables/xlat_tables_v2.h>
#includ... |
giuliobenetti/trusted-firmware-a | include/lib/cpus/aarch64/cortex_x2.h | <reponame>giuliobenetti/trusted-firmware-a
/*
* Copyright (c) 2021, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef CORTEX_X2_H
#define CORTEX_X2_H
#define CORTEX_X2_MIDR U(0x410FD480)
/*******************************************************************************
* ... |
giuliobenetti/trusted-firmware-a | include/drivers/st/stm32mp_clkfunc.h | <reponame>giuliobenetti/trusted-firmware-a<gh_stars>0
/*
* Copyright (c) 2017-2022, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef STM32MP_CLKFUNC_H
#define STM32MP_CLKFUNC_H
#include <stdbool.h>
#include <libfdt.h>
#include <platform_def.h>
int fdt_osc_read_freq(... |
mctools/ncrystal | ncrystal_core/include/NCrystal/ncrystal.h | #ifndef ncrystal_h
#define ncrystal_h
/******************************************************************************/
/* */
/* This file is part of NCrystal (see https://mctools.github.io/ncrystal/) */
/* ... |
mctools/ncrystal | ncrystal_core/include/NCrystal/ncapi.h | <gh_stars>10-100
#ifndef ncrystal_api_h
#define ncrystal_api_h
/******************************************************************************/
/* */
/* This file is part of NCrystal (see https://mctools.github.io/ncrystal/) */
/* ... |
mctools/ncrystal | examples/ncrystal_example_c.c |
/******************************************************************************/
/* */
/* This file is part of NCrystal (see https://mctools.github.io/ncrystal/) */
/* ... |
mateoconlechuga/z88dk | include/_DEVELOPMENT/sdcc/freertos/stack_macros.h | <reponame>mateoconlechuga/z88dk
/*
* FreeRTOS Kernel V10.4.1
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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 Soft... |
catseye/Pixley | impl/mignon/eval.c | <reponame>catseye/Pixley
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "sexp.h"
#include "eval.h"
struct value *lookup(struct env *env, struct atom *name)
{
for (; env != NULL; env = env->next) {
if (env->name == name) {
return env->value;
}
}
return NULL;
... |
catseye/Pixley | impl/mignon/sexp.h | #ifndef SEXP_H_
#define SEXP_H_
enum vtype {
V_CONS,
V_ATOM,
V_LAMBDA
};
/*
* Cast this to struct cons or struct atom after examining type.
*/
struct value {
enum vtype type;
};
struct cons {
enum vtype type; /* = V_CONS */
struct value *head;
struct value *tail;
};
struct atom {
e... |
catseye/Pixley | impl/mignon/main.c | #include <stdio.h>
#include <stdlib.h>
#include "sexp.h"
#include "parse.h"
#include "eval.h"
int main(int argc, char **argv)
{
struct pstate *state = initial_pstate(argv[1]);
struct env *env = NULL;
int done = 0;
int argn = 1;
nil = (struct value *)atom("()");
while (!done) {
state ... |
catseye/Pixley | impl/mignon/parse.c | #include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "parse.h"
#include "sexp.h"
struct pstate *initial_pstate(const char *string)
{
struct pstate *state;
state = malloc(sizeof(struct pstate));
state->ptr = string;
state->result = NULL;
state->child_result = NULL;
state->status =... |
catseye/Pixley | impl/mignon/sexp.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sexp.h"
/* for interning */
struct atom *atom_list;
struct value *nil;
struct value *cons(struct value *h, struct value *t)
{
struct cons *c = malloc(sizeof *c);
c->type = V_CONS;
c->head = h;
c->tail = t;
return (struct value ... |
catseye/Pixley | impl/mignon/eval.h | #ifndef EVAL_H_
#define EVAL_H_
#include "sexp.h"
struct env {
struct atom *name;
struct value *value;
struct env *next;
};
struct value *lookup(struct env *, struct atom *);
struct env *bind(struct env *, struct atom *, struct value *);
struct value *eval(struct value *, struct env *);
#endif /* !EVAL_... |
catseye/Pixley | impl/mignon/parse.h | <reponame>catseye/Pixley<filename>impl/mignon/parse.h
#ifndef PARSE_H_
#define PARSE_H_
#include "sexp.h"
enum pstatus {
P_START, /* before we know if we have an atom or a list */
P_ATOM,
P_LIST,
P_DONE
};
struct pstate { /* like ptarmigan, psychic, pshrimp... */
/* where we are in the string */... |
Akagra-Mish/Happy-BirthDay | assistant.h | /*
----------------------------------------------------------------------------
Project title : Hydron(virtual assistant)
Made By : <NAME>
Written in : C++
Started project : 27 December , 2018
Platform : Windows
... |
dillonhuff/zipperposition | src/core/util_stubs.c | <filename>src/core/util_stubs.c
/* C Stubs */
#include "caml/mlvalues.h"
#include <caml/memory.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
CAMLprim value logtk_set_memory_limit(value megabytes)
{
struct rlimit r = { 0 };
rlim_t limit = Int_val(mega... |
maczniak/mac-hangul-filename | h.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "h.h"
/*
useful references:
https://en.wikipedia.org/wiki/Korean_language_and_computers#Hangul_in_Unicode
https://unicode.org/charts/
*/
char *decompose(char *co) {
int co_i, de_i;
int len = strlen(co);
char *de = malloc(len * ... |
maczniak/mac-hangul-filename | zip.c | <filename>zip.c
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include "h.h"
/*
useful references:
https://en.wikipedia.org/wiki/Zip_(file_format)#Design
https://pkware.cachefly.net/webdocs/casestudies... |
maczniak/mac-hangul-filename | h.h | <reponame>maczniak/mac-hangul-filename
#ifndef _H_H_
#define _H_H_
#define BUFSIZE 1000
#define FIND_PATH "/usr/bin/find"
#define CP_PATH "/bin/cp"
#define POSTFIX ".original"
char *combine(char *de);
int zip(char *filename);
#endif /* _H_H_ */
|
nathanasia/station_manager | bus.c | #include<stdio.h>
#include<sys/ipc.h>
#include<sys/shm.h>
#include<sys/types.h>
#include<string.h>
#include<errno.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include <sys/time.h>
#include<semaphore.h>
#include <time.h>
#include"common.h"
//./bus -t type -n incpassengers -c capacity -p parkperiod -m man... |
nathanasia/station_manager | station_manager.c | #include <stdio.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <semaphore.h>
#include "common.h"
int main(int argc,char* argv[]){
//printf("MANAGER\n");
int val... |
nathanasia/station_manager | common.h | #include<semaphore.h>
#include <stdbool.h>
#include <sys/time.h>
#include <stdlib.h>
#include <stdio.h>
struct my_shared_mem {
sem_t enter; //check if a bus is on the entry
sem_t exit; //chech for exit
sem_t mutex; //mutex to check shared memory
sem_t mantime_enter; //mantime for enter
... |
nathanasia/station_manager | comptroller.c | <filename>comptroller.c
#include <stdio.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <semaphore.h>
#include <stdbool.h>
#include <time.h>
#include "common.h"
int main... |
nathanasia/station_manager | myport.c | <reponame>nathanasia/station_manager
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <semaphore.h>
#include <stdbool.h>
#include "common... |
ftab/esp-dsp | modules/matrix/include/dspm_mult.h | <gh_stars>1-10
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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
//
// Unles... |
ftab/esp-dsp | modules/iir/biquad/dsps_biquad_gen_f32.c | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | modules/matrix/float/dspm_mult_f32_ansi.c | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | modules/fir/include/dsps_fir.h | <reponame>ftab/esp-dsp<gh_stars>1-10
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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/L... |
ftab/esp-dsp | modules/support/include/dsps_d_gen.h | <reponame>ftab/esp-dsp
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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
//
... |
ftab/esp-dsp | modules/support/include/dsps_sfdr.h | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | test_app/main/test_app_main.c | #include "unity.h"
void app_main()
{
unity_run_menu();
}
|
ftab/esp-dsp | examples/dotprod/main/dsps_dotproduct_main.c | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | modules/support/include/dsps_snr.h | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | modules/common/include/dsp_err_codes.h | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | modules/dotprod/fixed/dsps_dotprod_s16_ansi.c | <reponame>ftab/esp-dsp
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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
//
... |
ftab/esp-dsp | modules/matrix/fixed/dspm_mult_s16_ansi.c | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | modules/iir/include/dsps_biquad_gen.h | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | modules/matrix/include/mat.h | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | modules/common/include/esp_dsp.h | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | modules/common/private_include/dsp_types.h | <reponame>ftab/esp-dsp
#ifndef _dsp_types_H_
#define _dsp_types_H_
#include <stdint.h>
#include <stdbool.h>
// union to simplify access to the 16 bit data
typedef union sc16_u
{
struct
{
int16_t re;
int16_t im;
};
uint32_t data;
}sc16_t;
typedef union fc32_u
{
struct
{
... |
ftab/esp-dsp | modules/fir/float/dsps_fird_f32_ansi.c | <filename>modules/fir/float/dsps_fird_f32_ansi.c
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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.or... |
ftab/esp-dsp | modules/fir/test/test_dsps_fird_f32_ae32.c | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 by a... |
ftab/esp-dsp | modules/support/snr/test/test_dsps_snr_f32.c | <gh_stars>100-1000
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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
//
// U... |
xyzyzl/dwm | dwm.c | /* See LICENSE file for copyright and license details.
*
* dynamic window manager is designed like any other X client as well. It is
* driven through handling X events. In contrast to other X clients, a window
* manager selects for SubstructureRedirectMask on the root window, to receive
* events about window (dis-... |
nikkoluo/Liteos | platform/GD32F450i-EVAL/los_bsp_uart.c | #include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "los_bsp_uart.h"
#ifdef GD32F4XX
#include "systick.h"
#include "gd32f4xx.h"
#include "gd32f450i_eval.h"
static char _buffer[128];
/*!
\brief initialize the LEDs
\param[in] none
\param[out] none
\retval none
*/
void led_i... |
Howard229/gpdb-ba | src/bin/pg_dump/pg_backup_db.c | <filename>src/bin/pg_dump/pg_backup_db.c
/*-------------------------------------------------------------------------
*
* pg_backup_db.c
*
* Implements the basic DB functions used by the archiver.
*
* IDENTIFICATION
* src/bin/pg_dump/pg_backup_db.c
*
*----------------------------------------------------------... |
Howard229/gpdb-ba | src/bin/pg_rewind/libpq_fetch.c | <reponame>Howard229/gpdb-ba
/*-------------------------------------------------------------------------
*
* libpq_fetch.c
* Functions for fetching files from a remote server.
*
* Copyright (c) 2013-2015, PostgreSQL Global Development Group
*
*--------------------------------------------------------------------... |
Howard229/gpdb-ba | contrib/tsm_system_time/tsm_system_time.c | <filename>contrib/tsm_system_time/tsm_system_time.c<gh_stars>1-10
/*-------------------------------------------------------------------------
*
* tsm_system_time.c
* interface routines for system_time tablesample method
*
*
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
*
* IDENTIFICA... |
Howard229/gpdb-ba | src/backend/lib/bipartite_match.c | /*-------------------------------------------------------------------------
*
* bipartite_match.c
* Hopcroft-Karp maximum cardinality algorithm for bipartite graphs
*
* This implementation is based on pseudocode found at:
*
* http://en.wikipedia.org/w/index.php?title=Hopcroft%E2%80%93Karp_algorithm&oldid=59389... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.