repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
typesAreSpaces/AXDInterpolator
include/Preprocess.h
<reponame>typesAreSpaces/AXDInterpolator<gh_stars>0 #ifndef _PREPROCESS_ #define _PREPROCESS_ #define _DEBUG_PREPROCESS_ 0 #include <iostream> #include <string> #include "AXDSignature.h" class Preprocessor { friend class AXDInterpolant; enum SideInterpolant { PART_A, PART_B }; // [NOTICE] This structure onl...
typesAreSpaces/AXDInterpolator
include/AXDSignature.h
<gh_stars>0 #ifndef _AXD_SIG_ #define _AXD_SIG_ #include <ios> #define FRESH_ARRAY_PREFIX "fresh_array_" #define FRESH_ELEMENT_PREFIX "fresh_element_" #define FRESH_INDEX_PREFIX "fresh_index_" #define FRESH_COMMON_PREFIX "fresh_" #define DETECT_THEORY 1 //#define m_out std::cerr #define m_out std::co...
typesAreSpaces/AXDInterpolator
tests/benchmark/include/UAutomizerFileReader.h
#include <iostream> #include <cassert> #include <regex> #include <fstream> #include <string> #include <type_traits> #include <vector> #include <cstring> #include <stdio.h> #include <string> #include <cstdlib> #include <regex> #include "z3++.h" #define SINGLE_FORMULA 0 #define REPORT_BAD_CASES 0 #define TEMP_FILE_SETU...
viktyz/ANSPicker
ANSPicker/ANSPickerUI.h
<reponame>viktyz/ANSPicker // // ANSPickerUI.h // ANSPicker // // Created by viktyz on 17/5/18. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface ANSPickerUI : NSObject - (void)pickerEnter:(BOOL)open; - (void)updateTitle:(NSString *)title; @end
viktyz/ANSPicker
ANSPicker/NSURLRequest+Picker.h
// // NSURLRequest+Picker.h // ANSPicker // // Created by viktyz on 17/5/18. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSURLRequest (Picker) @end
viktyz/ANSPicker
ANSPickerDemo/ViewController.h
// // ViewController.h // ANSPickerDemo // // Created by viktyz on 2017/5/19. // Copyright © 2017年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
viktyz/ANSPicker
ANSPicker/ANSPicker.h
<reponame>viktyz/ANSPicker // // ANSPicker.h // ANSPicker // // Created by viktyz on 17/5/18. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface ANSPickerModel : NSObject @property (nonatomic, strong) NSURL *source; @property (nonatomic, strong) NSURL *dest; @propert...
PocketSwift/PocketNet
PocketNet/PocketNet.h
<filename>PocketNet/PocketNet.h<gh_stars>10-100 #import <UIKit/UIKit.h> //! Project version number for PocketNet. FOUNDATION_EXPORT double PocketNetVersionNumber; //! Project version string for PocketNet. FOUNDATION_EXPORT const unsigned char PocketNetVersionString[]; // In this header, you should import all the pub...
falsandtru/foundationdb-haskell
include/fdbc_wrapper.h
<gh_stars>1-10 #ifndef FDBC_WRAPPER #define FDBC_WRAPPER #define FDB_API_VERSION 600 #include "foundationdb/fdb_c.h" #include "foundationdb/fdb_c_options.g.h" // wasn't sure how to call a function-like macro in c2hs, so wrapped it here. fdb_error_t select_api_version(int runtime_version); #endif //FDBC_WRAPPER
Tejaswini-TR/swap-numbers
swap numbers.c
<reponame>Tejaswini-TR/swap-numbers<filename>swap numbers.c #include<stdio.h> int main() { int a,b; a=5; b=7; printf("before swap a= %d b=%d \n",a,b); a=a+b; b=a-b; a=a-b; printf("after swap a=%d and b=%d",a,b); return 0; }
grizzlygarillaz/vkService
nodejs/include/node/cppgc/heap.h
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef INCLUDE_CPPGC_HEAP_H_ #define INCLUDE_CPPGC_HEAP_H_ #include <memory> #include <vector> #include "cppgc/common.h" #include "cppgc/custom-space...
grizzlygarillaz/vkService
nodejs/include/node/v8-wasm-trap-handler-posix.h
// Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_WASM_TRAP_HANDLER_POSIX_H_ #define V8_WASM_TRAP_HANDLER_POSIX_H_ #include <signal.h> #include "v8config.h" // NOLINT(build/include_directo...
grizzlygarillaz/vkService
nodejs/include/node/cppgc/internal/accessors.h
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef INCLUDE_CPPGC_INTERNAL_ACCESSORS_H_ #define INCLUDE_CPPGC_INTERNAL_ACCESSORS_H_ #include "cppgc/internal/api-constants.h" namespace cppgc { c...
grizzlygarillaz/vkService
nodejs/include/node/v8-util.h
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_UTIL_H_ #define V8_UTIL_H_ #include "v8.h" // NOLINT(build/include_directory) #include <assert.h> #include <map> #include <vector> /** * ...
grizzlygarillaz/vkService
nodejs/include/node/cppgc/internal/gc-info.h
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef INCLUDE_CPPGC_INTERNAL_GC_INFO_H_ #define INCLUDE_CPPGC_INTERNAL_GC_INFO_H_ #include <stdint.h> #include "cppgc/internal/finalizer-trait.h" #i...
grizzlygarillaz/vkService
nodejs/include/node/cppgc/platform.h
<reponame>grizzlygarillaz/vkService // Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef INCLUDE_CPPGC_PLATFORM_H_ #define INCLUDE_CPPGC_PLATFORM_H_ #include "v8-platform.h" // NOLINT(build/inclu...
grizzlygarillaz/vkService
nodejs/include/node/cppgc/liveness-broker.h
<reponame>grizzlygarillaz/vkService // Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef INCLUDE_CPPGC_LIVENESS_BROKER_H_ #define INCLUDE_CPPGC_LIVENESS_BROKER_H_ #include "cppgc/heap.h" #include ...
Nordstrom/xrpc-proto
gen-java-server/src/java_plugin/cpp/java_generator.h
<gh_stars>0 /* * Copyright 2018 Nordstrom, Inc. * * 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 applicable l...
ahmetkcavusoglu/sio4
lines.h
#pragma once void drawLine(struct SSD1306& display, int8_t ax, int8_t ay, int8_t bx, int8_t by, bool jitter); void drawNum(struct SSD1306& display, int8_t digit, int8_t left, int8_t top, int8_t right, int8_t bottom, bool jitter); void drawLetter(struct SSD1306& display, char letter, int8_t left, int8_t top, int8_t rig...
ahmetkcavusoglu/sio4
ssd1306.h
#pragma once #include <stdint.h> struct SSD1306 { void initialise(); void turnOff() const; void turnOn() const; void nonInvert() const; void invert() const; void setContrast(uint8_t level) const; void clear(int8_t val = 0); void flush() const; void setPixel(int8_t x, int8_t y); private: s...
clearlove77/ZTQuickControl
ZTQuickControl/ZTQuickControl.h
// // ZTQuickControl.h // BlockUseDemo // // Created by quiet on 15/7/15. // Copyright (c) 2015年 quiet. All rights reserved. // #ifndef BlockUseDemo_ZTQuickControl_h #define BlockUseDemo_ZTQuickControl_h #import "UIView+ZTQuickControl.h" #import "UIView+ZTExtension.h" #endif
clearlove77/ZTQuickControl
ZTQuickControl/UIView+ZTQuickControl.h
<filename>ZTQuickControl/UIView+ZTQuickControl.h // // UIView+ZTQuickControl.h // BlockUseDemo // // Created by quiet on 15/7/15. // Copyright (c) 2015年 quiet. All rights reserved. // #import <UIKit/UIKit.h> #import "ZTButton.h" @interface UIView (ZTQuickControl) //创建系统按钮 -(UIButton *)addSystemButtonWithFrame:(C...
clearlove77/ZTQuickControl
ZTQuickControl/ZTButton.h
<gh_stars>1-10 // // ZTButton.h // BlockUseDemo // // Created by quiet on 15/7/15. // Copyright (c) 2015年 quiet. All rights reserved. // #import <UIKit/UIKit.h> @interface ZTButton : UIButton //添加点击后执行的block // void action(ZTButton *button); @property (copy,nonatomic) void (^action)(ZTButton *button); @end
clearlove77/ZTQuickControl
ZTQuickControl/UIView+ZTExtension.h
// // UIView+ZTExtension.h // BlockUseDemo // // Created by quiet on 15/7/15. // Copyright (c) 2015年 quiet. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (ZTExtension) @property (nonatomic) CGFloat x; @property (nonatomic) CGFloat y; @property (nonatomic) CGFloat width; @property (nonatomic) C...
samisaab/oopt-tai
inc/taihostif.h
<gh_stars>0 /** * @file taihostif.h * @brief This module defines the host interface for the Transponder * Abstraction Interface (TAI) * * @copyright Copyright (c) 2014 Microsoft Open Technologies, Inc. * @copyright Copyright (c) 2018 Nippon Telegraph and Telephone Corporation * @copyright Copyright...
timgates42/x11fs
src/win_oper.c
<filename>src/win_oper.c #include "win_oper.h" #include "win_xcb.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include "x11fs.h" //Specific read and write functions for each file void border_color_write(int wid, const char *buf) { set_border_color(wid, strtol(buf, NULL, 16)); } c...
timgates42/x11fs
src/x11fs.c
#define FUSE_USE_VERSION 26 #include <stdio.h> #include <fuse.h> #include <stdlib.h> #include <stdbool.h> #include <errno.h> #include <string.h> #include <fnmatch.h> #include "x11fs.h" #include "win_xcb.h" #include "win_oper.h" //Represents a single file, contains pointers to the functions to call to read and write ...
timgates42/x11fs
src/win_oper.h
#pragma once #include <unistd.h> char *root_width_read(int wid); char *root_height_read(int wid); void border_color_write(int wid, const char *buf); char *border_width_read(int wid); void border_width_write(int wid, const char *buf); char *geometry_width_read(int wid); void geometry_width_write(int wid, const char...
timgates42/x11fs
src/x11fs.h
#pragma once #define WID_STRING_LENGTH 11 typedef enum {X11FS_SUCCESS, X11FS_FAILURE} X11FS_STATUS;
Alfredosavi/stm32-codes
DisplayLCD_I2C/Core/Src/liquidcrystal_i2c.c
/* * liquidcrystal_i2c.c * * Created on: Mar 14, 2022 * Author: kittm */ #include "liquidcrystal_i2c.h" extern I2C_HandleTypeDef hi2c1; uint8_t dpFunction; uint8_t dpControl; uint8_t dpMode; uint8_t dpRows; uint8_t dpBacklight; static void SendCommand(uint8_t); static void SendChar(uint8_t); static void ...
Alfredosavi/stm32-codes
DisplayLCD_I2C/Core/Inc/liquidcrystal_i2c.h
#ifndef LIQUIDCRYSTAL_I2C_H_ #define LIQUIDCRYSTAL_I2C_H_ #include "stm32f1xx_hal.h" /* Command */ #define LCD_CLEARDISPLAY 0x01 #define LCD_RETURNHOME 0x02 #define LCD_ENTRYMODESET 0x04 #define LCD_DISPLAYCONTROL 0x08 #define LCD_CURSORSHIFT 0x10 #define LCD_FUNCTIONSET 0x20 #define LCD_SETCGRAMADDR 0x40 #define LC...
aposteriorist/dmd
test/compilable/test22842.c
// https://issues.dlang.org/show_bug.cgi?id=22842 /*******************************/ typedef int (myfunc)(); myfunc fun; /*******************************/ int town(); typedef int (funky)(); funky town; /*******************************/ typedef int (mudd)(); static mudd ville; int job() { return ville(); } i...
gk969/CryptoDemo
heap.h
<gh_stars>1-10 #ifndef HEAP_H #define HEAP_H #include <stdint.h> void heap_init(uint32_t* heap_buf, uint32_t len); void alloc_test(); void* heap_alloc(uint32_t size); void heap_free(void* p); #endif
gk969/CryptoDemo
utils.h
<filename>utils.h<gh_stars>1-10 #pragma once #pragma warning(disable : 4996) typedef unsigned int u32; typedef unsigned long int u64; time_t str_to_time(const char* str); int time_to_str(time_t time, char* buf, int size); char* time_to_str(time_t time); int now_to_str(char* buf, int size); char* now_to_str(); vo...
gk969/CryptoDemo
rsa.h
/***************************************************************************** Filename : rsa.h Author : Terrantsh (<EMAIL>) Date : 2018-9-20 11:22:22 Description : RSA加密头文件 *****************************************************************************/ #ifndef __RSA_H__ #define __RSA_H__ #include <stdin...
gk969/CryptoDemo
aes_128.h
/* * FileName : AES.h * */ #ifndef __AES_H__ #define __AES_H__ class AES_128 { public: void SetKey(unsigned char* key); unsigned char* Cipher(const unsigned char* input, unsigned char* output); unsigned char* InvCipher(const unsigned char* input, unsigned char* output); void* Cipher(const void* input, void* ou...
gk969/CryptoDemo
keys.h
#include <stdint.h> #define KEY_M_BITS 2048 // KEY_2048 uint8_t key_m[] = { 0xB0, 0x1D, 0x83, 0x85, 0x23, 0x65, 0x20, 0xC6, 0xBD, 0x10, 0xE6, 0x38, 0xEF, 0x74, 0xF5, 0xF3, 0x6C, 0xD1, 0xD1, 0x07, 0x2F, 0x3E, 0xD8, 0xAA, 0x9C, 0xE2, 0xC6, 0x22, 0x32, 0x6E, 0x5B, 0x58, 0xFF, 0x7E, 0x2B, 0x97, ...
gk969/CryptoDemo
bignum.h
/***************************************************************************** Filename : bignum.h Author : Terrantsh (<EMAIL>) Date : 2018-9-20 11:23:45 Description : *****************************************************************************/ #ifndef __BIGNUM_H__ #define __BIGNUM_H__ #include <stdin...
gk969/CryptoDemo
md5.h
<reponame>gk969/CryptoDemo<gh_stars>1-10 #ifndef MD5_H #define MD5_H #define MD5_SIZE 16 unsigned char* MD5_Compute(unsigned char* md5_buf, unsigned char* data, unsigned int len); #endif
luca1337/LinkedLists
TreeDataStructure/LinkedListSingle.h
#pragma once #include <iostream> #include <string> #include <time.h> #include "LinkedListNode.h" #define CHECK_ERROR(x) if(!x)\ {\ std::cout << "no elemts were found in the list" << std::endl;\ return;\ }\ #define CHECK_ERROR_RET(x) if(!x)\ {\ std::cout << "no elemts were found in the list" << std::endl;\ return...
luca1337/LinkedLists
LinkedListDouble/Node.h
#pragma once #include <iostream> template <class T> struct Node { T Data; Node* Next; Node* Prev; Node(); Node(T elem); }; template<class T> inline Node<T>::Node() { this->Data = NULL; this->Next = nullptr; this->Prev = nullptr; } template<class T> inline Node<T>::Node(T elem) { this->Data = elem; this->...
luca1337/LinkedLists
LinkedListDouble/LinkedList.h
#pragma once #include "Node.h" #include <iostream> #include <string> template <class T> class LinkedList { public: LinkedList(); LinkedList(const LinkedList<T>& other); LinkedList(LinkedList<T>&& other) noexcept; LinkedList<T>& operator=(LinkedList<T>&& other); Node<T>* AddAfter(Node<T>* node, T elem); void A...
luca1337/LinkedLists
TreeDataStructure/LinkedListNode.h
#pragma once template <class T> struct LinkedListNode { T Data; LinkedListNode<T>* Next; LinkedListNode(T elem) { this->Data = elem; this->Next = nullptr; } LinkedListNode() { this->Data = NULL; this->Next = nullptr; } };
scatmanFATMAN/libkeystore
src/lib/entry.c
<gh_stars>0 #include <stdlib.h> #include <string.h> #include "keystore_internal.h" #include "error_internal.h" #include "util.h" #include "io.h" #include "entry.h" keystore_error_t keystore_entry_read(keystore_t *keystore, keystore_entry_t *parent, keystore_entry_t **entry); keystore_error_t keystore_entry_write(keyst...
scatmanFATMAN/libkeystore
src/common/os.c
<reponame>scatmanFATMAN/libkeystore<filename>src/common/os.c #include <stdio.h> #if defined(_WIN32) # include <Windows.h> #else #endif #include <string.h> #include "os.h" const char * os_dirname(const char *path, char *dir, size_t size) { char *ptr; snprintf(dir, size, "%s", path); if (strcmp(dir, "/") =...
scatmanFATMAN/libkeystore
src/lib/error.h
#pragma once typedef enum { KEYSTORE_ERROR_OK, KEYSTORE_ERROR_MEM, KEYSTORE_ERROR_INVALID, KEYSTORE_ERROR_VERSION, KEYSTORE_ERROR_FILE_EXISTS, KEYSTORE_ERROR_INIT, KEYSTORE_ERROR_OPEN, KEYSTORE_ERROR_READ, KEYSTORE_ERROR_WRITE, KEYSTORE_ERROR_PW_SALT_DATA, KEYSTORE_ERROR_PW_...
scatmanFATMAN/libkeystore
src/lib/entry.h
<filename>src/lib/entry.h<gh_stars>0 #pragma once #include <stdint.h> #include <time.h> #include "error.h" #include "entry_iterator.h" #define KEYSTORE_ENTRY_NAME_MAX 255 #define KEYSTORE_ENTRY_DELETE_FLAG_RECURSIVE (1 << 1) //<! Informs keystore_entry_delete_entry() to recursively delete child entries if it's a fo...
scatmanFATMAN/libkeystore
src/lib/crypt.c
<gh_stars>0 #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <errno.h> #include <openssl/rand.h> #include <openssl/err.h> #if defined(_WIN32) #else # include <sys/random.h> #endif #include "../crypt_blowfish-1.3/ow-crypt.h" #include "util.h" #include "crypt.h" void crypt_init() { #if OPENSSL_API_C...
scatmanFATMAN/libkeystore
src/lib/entry_iterator.c
#include <stdlib.h> #include "keystore_internal.h" #include "entry_iterator.h" void keystore_entry_iterator_free(keystore_entry_iterator_t *iterator) { if (iterator != NULL) { free(iterator); } } unsigned int keystore_entry_iterator_size(keystore_entry_iterator_t *iterator) { return iterator->size...
scatmanFATMAN/libkeystore
src/lib/error_internal.c
<reponame>scatmanFATMAN/libkeystore #include <stdio.h> #include <stdarg.h> #include "error_internal.h" keystore_error_t keystore_error_set(keystore_errors_t *errors, keystore_error_t error, int error_sys, const char *fmt, ...) { va_list ap; errors->error = error; errors->error_sys = error_sys; va_sta...
scatmanFATMAN/libkeystore
src/common/os.h
#pragma once const char * os_dirname(const char *path, char *dir, size_t size); const char * os_basename(const char *path, char *base, size_t size);
scatmanFATMAN/libkeystore
src/lib/keystore_internal.h
#pragma once #include <stdio.h> #include <stdint.h> #include <time.h> #include "keystore.h" #include "crypt.h" #include "error_internal.h" typedef struct { char magic[4]; //!< Defines a KeyStore file. uint8_t version[3]; //!< The version of the KeyStore; 0=...
scatmanFATMAN/libkeystore
src/lib/keystore.c
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <stdarg.h> #include <string.h> #include <errno.h> #include "error_internal.h" #include "keystore_internal.h" #include "version.h" #include "util.h" #include "fs.h" #include "io.h" #include "crypt.h" #include "keystore.h" #define KEYSTORE_FILE_PREFIX ...
scatmanFATMAN/libkeystore
src/lib/fs.h
#pragma once #include <stdbool.h> bool fs_file_exists(const char *path);
scatmanFATMAN/libkeystore
src/client_cli/color.h
#pragma once typedef enum { COLOR_RED, COLOR_GREEN, COLOR_BLUE, COLOR_YELLOW, COLOR_CYAN, COLOR_MAGENTA } color_t; void color_set(color_t color); void color_reset(); void color_printf(color_t color, const char *fmt, ...);
scatmanFATMAN/libkeystore
src/lib/keystore.h
#pragma once #include <stdbool.h> #include "error.h" #include "entry.h" #include "entry_iterator.h" #define KEYSTORE_PASSWORD_MAX 255 typedef struct keystore_t keystore_t; /** * Initializes the KeyStore context. The pointer returned is dynamically allocated and must be free'd * by calling keystore_free(). * * @...
scatmanFATMAN/libkeystore
src/lib/fs.c
#if defined(_WIN32) # include <fileapi.h> #else # include <errno.h> # include <unistd.h> #endif #include "fs.h" bool fs_file_exists(const char *path) { #if defined(_WIN32) DWORD attr; attr = GetFileAttributes(path); return attrib != INVALID_FILE_ATTRIBUTES && !(attrib & FILE_ATTRIBUTE_DIRECTORY); #else ...
scatmanFATMAN/libkeystore
src/lib/entry_iterator.h
#pragma once #include <stdbool.h> typedef struct keystore_entry_iterator_t keystore_entry_iterator_t; typedef struct keystore_entry_t keystore_entry_t; /** * Frees all memory associated with the iterator. * * @param[in] iterator The iterator. */ void keystore_entry_iterator_free(keystore_entry_iterator_t *iterat...
scatmanFATMAN/libkeystore
src/lib/crypt.h
<filename>src/lib/crypt.h #pragma once #include <stdio.h> #include <openssl/evp.h> #include "error_internal.h" #define CRYPT_BCRYPT_SALT_SIZE 22 #define CRYPT_BCRYPT_SETTING_SIZE (7 + CRYPT_BCRYPT_SALT_SIZE) #define CRYPT_BCRYPT_SIZE (CRYPT_BCRYPT_SETTING_SIZE + 31) //128 bit (16 bytes) block and IV #def...
scatmanFATMAN/libkeystore
src/lib/util.h
<filename>src/lib/util.h #pragma once #include <string.h> void util_memzero(void *ptr, size_t len);
scatmanFATMAN/libkeystore
src/lib/error_internal.h
<gh_stars>0 #pragma once #include "error.h" typedef struct { keystore_error_t error; int error_sys; char error_str[512]; } keystore_errors_t; keystore_error_t keystore_error_set(keystore_errors_t *errors, keystore_error_t error, int error_sys, const char *fmt, ...); keystore_error_t keystore_error_ok(key...
scatmanFATMAN/libkeystore
src/lib/io.c
#include <stdio.h> #include <string.h> #include <errno.h> #include "portable_endian.h" #include "io.h" keystore_error_t keystore_read(keystore_t *keystore, unsigned char *dst, size_t count) { if (fread(dst, sizeof(unsigned char), count, keystore->f) != count) { return keystore_error_set(&keystore->error, K...
scatmanFATMAN/libkeystore
src/client_cli/version.h
<filename>src/client_cli/version.h #pragma once #define VERSION_NAME "KeyStore Client" #define VERSION_MAJOR 0 #define VERSION_MINOR 2 #define VERSION_PATCH 0
scatmanFATMAN/libkeystore
src/client_cli/sep.h
<reponame>scatmanFATMAN/libkeystore #pragma once #include <stdbool.h> typedef struct { char **args; unsigned int size; unsigned int capacity; char error[256]; } sep_t; void sep_init(sep_t *sep); void sep_free(sep_t *sep); const char * sep_error(sep_t *sep); bool sep_parse(sep_t *sep, const char *st...
scatmanFATMAN/libkeystore
src/lib/version.h
#pragma once #define VERSION_MAJOR 0 #define VERSION_MINOR 2 #define VERSION_PATCH 0
scatmanFATMAN/libkeystore
src/client_cli/color.c
<filename>src/client_cli/color.c<gh_stars>0 #include <stdio.h> #include <stdarg.h> #include "color.h" void color_set(color_t color) { int num = 37; switch (color) { case COLOR_RED: num = 91; break; case COLOR_GREEN: num = 92; break; case ...
scatmanFATMAN/libkeystore
src/lib/io.h
<reponame>scatmanFATMAN/libkeystore #pragma once #include <stdlib.h> #include "keystore_internal.h" #include "error_internal.h" keystore_error_t keystore_read(keystore_t *keystore, unsigned char *dst, size_t count); keystore_error_t keystore_read_strn(keystore_t *keystore, char *dst, size_t len); keystore_error_t key...
scatmanFATMAN/libkeystore
src/lib/util.c
#if defined(_WIN32) # include <Windows.h> #endif #include "util.h" void util_memzero(void *ptr, size_t len) { #if defined(_WIN32) SecureZeroMemory(ptr, len); #else volatile unsigned char *p; p = ptr; while (len-- > 0) { *p++ = 0; } #endif }
scatmanFATMAN/libkeystore
src/client_cli/main.c
#include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <signal.h> #include <keystore/keystore.h> #if defined(_WIN32) # include <Windows.h> # define PATH_MAX MAX_PATH #else # include <linux/limits.h> #endif #include "../common/os.h" #include "version.h" #include "color.h" #include "sep....
technicolor-research/faiss-quickeradc
IndexIVFVPQ.h
/** * Copyright (c) 2018-present, <NAME>, SAS. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * Modifications related the introduction of Quicker ADC (Vectorized Product Quantization) * are licensed under the Clear BSD license found in the LICENSE file in the root directory * of this sourc...
technicolor-research/faiss-quickeradc
VPQ_Impl.h
<filename>VPQ_Impl.h /** * Copyright (c) 2018 - Present – <NAME>, SAS * All rights reserved. * * This source code is licensed under the Clear BSD license found in the * LICENSE file in the root directory of this source tree. */ // -*- c++ -*- #ifndef FAISS_VPQI_H #define FAISS_VPQI_H #ifndef SWIG #include "Vec...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/src/huffman_coding_priv_config.h
<reponame>MilosSubotic/huffman_coding /** * @license MIT * @brief Private calculated configurations for Huffman coding. */ #ifndef HUFFMAN_CODING_PRIV_CONFIG_H #define HUFFMAN_CODING_PRIV_CONFIG_H /////////////////////////////////////////////////////////////////////////////// #include <cmath> #include "huffman_c...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/include/huffman_coding_public_types.h
<gh_stars>1-10 /** * @license MIT * @brief Public type definitions for Huffman coding. */ #ifndef HUFFMAN_CODING_PUBLIC_TYPES_H #define HUFFMAN_CODING_PUBLIC_TYPES_H /////////////////////////////////////////////////////////////////////////////// #include <stdint.h> #include <systemc.h> #include "huffman_coding_...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/src/hd_sym_unpacker.h
/** * @license MIT * @brief */ #ifndef HD_SYM_UNPACKER_H #define HD_SYM_UNPACKER_H /////////////////////////////////////////////////////////////////////////////// #include "axis_channel.h" #include "bit_extract_channel.h" #include "huffman_coding_interfaces.h" /////////////////////////////////////////////////...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules/source/src/huffman_coding_interfaces.h
/** * @license MIT * @brief Huffman coding interfaces between modules. */ #ifndef HUFFMAN_CODING_INTERFACES_H #define HUFFMAN_CODING_INTERFACES_H /////////////////////////////////////////////////////////////////////////////// #include "huffman_coding_structs.h" ///////////////////////////////////////////////////...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/src/hd_lens_freq_unpacker.h
/** * @license MIT * @brief */ #ifndef HD_LENS_FREQ_UNPACKER_H #define HD_LENS_FREQ_UNPACKER_H /////////////////////////////////////////////////////////////////////////////// #include "axis_channel.h" #include "bit_extract_channel.h" #include "huffman_coding_interfaces.h" /////////////////////////////////////...
MilosSubotic/huffman_coding
Algo/huffman_coding/include/huffman_coding_public_types.h
<reponame>MilosSubotic/huffman_coding /** * @license MIT * @brief Public type definitions for Huffman coding. */ #ifndef HUFFMAN_CODING_PUBLIC_TYPES_H #define HUFFMAN_CODING_PUBLIC_TYPES_H /////////////////////////////////////////////////////////////////////////////// #include <stdint.h> #include "huffman_coding...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules/source/include/huffman_coding_print.h
/** * @license MIT * @brief Print stuff for types and structs. */ #ifndef HUFFMAN_CODING_PRINT_H #define HUFFMAN_CODING_PRINT_H /////////////////////////////////////////////////////////////////////////////// #include <iostream> #include <iomanip> #include <vector> #include <deque> #include <systemc.h> /////////...
MilosSubotic/huffman_coding
Algo/huffman_coding/include/huffman_coding.h
<gh_stars>1-10 /** * @license MIT * @brief Huffman coding function interfaces. */ #ifndef HUFFMAN_CODING_H #define HUFFMAN_CODING_H /////////////////////////////////////////////////////////////////////////////// #include <vector> #include "huffman_coding_public_types.h" /////////////////////////////////////////...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/include/huffman_decoder.h
<gh_stars>1-10 /** * @license MIT * @brief */ #ifndef HUFFMAN_DECODER_H #define HUFFMAN_DECODER_H /////////////////////////////////////////////////////////////////////////////// #include <vector> #include "axis_channel.h" #include "huffman_coding_public_types.h" ///////////////////////////////////////////////...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/src/bit_extract_channel.h
<gh_stars>1-10 /** * @license MIT * @brief SystemC channel for extracting bits from type. */ #ifndef BIT_EXTRACT_CHANNEL_H #define BIT_EXTRACT_CHANNEL_H /////////////////////////////////////////////////////////////////////////////// #include <systemc.h> #include <cassert> ////////////////////////////////////////...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/src/huffman_coding_priv_types.h
<reponame>MilosSubotic/huffman_coding /** * @license MIT * @brief Private type definitions for Huffman coding. */ #ifndef HUFFMAN_CODING_PRIV_TYPES_H #define HUFFMAN_CODING_PRIV_TYPES_H /////////////////////////////////////////////////////////////////////////////// #include <stdint.h> #include <systemc.h> #incl...
MilosSubotic/huffman_coding
Algo/other/huffman_codec/huffman_codec.h
/* * @license MIT * @brief Huffman codec, encoder and decoder. */ #ifdef __cplusplus extern "C" { #endif ////////////////////////////////////////////////////////////////////////////// #include <stdint.h> ////////////////////////////////////////////////////////////////////////////// int huffman_encode( const u...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules/source/src/huffman_coding_structs.h
/** * @license MIT * @brief Huffman coding structs. */ #ifndef HUFFMAN_CODING_STRUCTS_H #define HUFFMAN_CODING_STRUCTS_H /////////////////////////////////////////////////////////////////////////////// #include <vector> #include "huffman_coding_priv_types.h" #include "huffman_coding_print.h" ////////////////////...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules/source/include/axis_channel.h
<reponame>MilosSubotic/huffman_coding /** * @license MIT * @brief SystemC channel for AXI4-Stream. */ #ifndef AXIS_CHANNEL_H #define AXIS_CHANNEL_H /////////////////////////////////////////////////////////////////////////////// #include <systemc.h> #include <cassert> /////////////////////////////////////////////...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/src/axis_bit_extract_server.h
<reponame>MilosSubotic/huffman_coding /** * @license MIT * @brief SystemC channel for extracting bits from type. */ #ifndef AXIS_BIT_EXTRACT_SERVER_H #define AXIS_BIT_EXTRACT_SERVER_H /////////////////////////////////////////////////////////////////////////////// #include <vector> #include <sstream> #include "ax...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/src/huffman_coding_interfaces.h
/** * @license MIT * @brief Huffman coding interfaces between modules. */ #ifndef HUFFMAN_CODING_INTERFACES_H #define HUFFMAN_CODING_INTERFACES_H /////////////////////////////////////////////////////////////////////////////// #include "huffman_coding_structs.h" #include <array> /////////////////////////////////...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/include/huffman_coding.h
/** * @license MIT * @brief Huffman coding modules. */ #ifndef HUFFMAN_CODING_H #define HUFFMAN_CODING_H /////////////////////////////////////////////////////////////////////////////// #include "huffman_encoder.h" #include "huffman_decoder.h" //////////////////////////////////////////////////////////////////////...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/include/huffman_coding_print.h
<filename>Model/huffman_coding_untimed_modules_2/source/include/huffman_coding_print.h /** * @license MIT * @brief Print stuff for types and structs. */ #ifndef HUFFMAN_CODING_PRINT_H #define HUFFMAN_CODING_PRINT_H /////////////////////////////////////////////////////////////////////////////// #include <iostream>...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules/source/include/huffman_encoder.h
<filename>Model/huffman_coding_untimed_modules/source/include/huffman_encoder.h /** * @license MIT * @brief */ #ifndef HUFFMAN_ENCODER_H #define HUFFMAN_ENCODER_H /////////////////////////////////////////////////////////////////////////////// #include "axis_channel.h" #include "huffman_coding_public_types.h" /...
MilosSubotic/huffman_coding
Model/huffman_coding_untimed_modules_2/source/include/huffman_coding_config.h
/** * @license MIT * @brief Configuration file for Huffman coding. */ #ifndef HUFFMAN_CODING_CONFIG_H #define HUFFMAN_CODING_CONFIG_H /////////////////////////////////////////////////////////////////////////////// namespace huffman_coding { // User defined. const int sym_width = 8; const int block_len_log2 = 8...
MilosSubotic/huffman_coding
Algo/huffman_coding/src/huffman_coding_priv_types.h
/** * @license MIT * @brief Private type definitions for Huffman coding. */ #ifndef HUFFMAN_CODING_PRIV_TYPES_H #define HUFFMAN_CODING_PRIV_TYPES_H /////////////////////////////////////////////////////////////////////////////// #include <stdint.h> #include "huffman_coding_public_types.h" #include "huffman_coding...
mincrmatt12/MSign
esp/main/grabber/transit/gtfs.cfg.h
<gh_stars>1-10 #include "../../config.h" #include "./common.cfg.h" namespace transit::gtfs { //!cfg: holds .gtfs.feed.host, default "_webapps.regionofwaterloo.ca" extern const char * feed_host; //!cfg: holds .gtfs.feed.url, default "/api/grt-routes/api/tripupdates" extern const char * feed_url; //!cfg: holds .g...
mincrmatt12/MSign
stm/src/matrix.h
<reponame>mincrmatt12/MSign #ifndef MATRIX_H #define MATRIX_H #include "crash/main.h" #include "gpio.h" #include <stdint.h> #include <string.h> #include "stm32f2xx.h" #include "stm32f2xx_ll_tim.h" #include "stm32f2xx_ll_bus.h" #include "stm32f2xx_ll_gpio.h" #include "stm32f2xx_ll_dma.h" #include "pins.h" #include <Fre...
mincrmatt12/MSign
stm/src/tasks/screen.h
<filename>stm/src/tasks/screen.h #ifndef MSN_SCREEN_H #define MSN_SCREEN_H #include "../screens/base.h" #include "../screens/ttc.h" #include "../screens/weather.h" #include "../screens/clock.h" #include "../screens/threed.h" namespace tasks { struct DispMan { void run(); bool interacting() const { return in...
mincrmatt12/MSign
esp/main/json.h
<reponame>mincrmatt12/MSign #ifndef JSON_H #define JSON_H #include <cstdlib> #include <cstdint> #include <functional> #include "dwhttp.h" namespace json { struct PathNode { char * name = nullptr; uint16_t index; bool array; PathNode() {} PathNode(char * name_in) : name(name_in), index(0), array(false) {} ...
mincrmatt12/MSign
stm/src/crash/main.h
#ifndef MSN_STCRASH_MAIN_H #define MSN_STCRASH_MAIN_H #include <stdint.h> namespace crash { // Transfer control to the crash handler. // // `errcode` must either be null or point to memory outside of the crash handler's region (i.e. // outside VRAM) // // This function does not return. [[noreturn]] void call_c...
mincrmatt12/MSign
esp/components/libb64/cencode.c
/* cencoder.c - c source to a base64 encoding algorithm implementation This is part of the libb64 project, and has been placed in the public domain. For details, see http://sourceforge.net/projects/libb64 */ #include <b64/cencode.h> void base64_init_encodestate(base64_encodestate* state_in) { state_in->step = step_A...
mincrmatt12/MSign
esp/main/webui.h
<gh_stars>1-10 #ifndef WEBUI_H #define WEBUI_H namespace webui { void run(void*); } #endif
mincrmatt12/MSign
sim/src/esp/esp8266/eagle_soc.h
#pragma once // NOTE: THIS WILL CAUSE MEMORY LEAKS IN CONFIG; i don't care enough to fix this #define IS_DRAM(x) false #define IS_IRAM(x) false