repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
cran/edesign
src/edesign.h
#ifndef EDESIGN_H #define EDESIGN_H #include "entrp.h" /* C and Fortran interface */ #endif
cran/edesign
src/entrp.h
<reponame>cran/edesign<filename>src/entrp.h<gh_stars>1-10 #ifndef ENTRP_H #define ENTRP_H #include "R.h" /* for F77_NAME */ /* exported functions, called from R code */ extern void F77_NAME(grd) (double *a,int *lda,int *na,int *nf,int *ne, int *ns,int *s,double *opt,int *ind,double *as, ...
matthew-macgregor/cpp-dotnet-core-dllimport
src/cpp-lib/so-demo.h
#ifdef __cplusplus extern "C" { #endif #ifdef _WIN32 # ifdef MODULE_API_EXPORTS # define MODULE_API __declspec(dllexport) # else # define MODULE_API __declspec(dllimport) # endif #else #define MODULE_API #endif MODULE_API void RunningInNativeCPP(); #ifdef __cplusplus } #endif
Rubetoman/Zork
Zork/Zork/Entity.h
<reponame>Rubetoman/Zork<filename>Zork/Zork/Entity.h #include <string> #pragma once using namespace std; /* Base class for classes that have a name as a variable.*/ class Entity { protected: string name; // Name of the Entity. public: void setName(string name); // Sets the name variable of the Entity. string ge...
Rubetoman/Zork
Zork/Zork/RoomFunctions.h
<filename>Zork/Zork/RoomFunctions.h #ifndef ROOMFUNCTIONS_H // To make sure you don't declare the function more than once by including the header multiple times. #define ROOMFUNCTIONS_H #include <string> #include <vector> #include "main.h" #pragma once /* Show names of the Rooms stored on rooms vector. They are ...
Rubetoman/Zork
Zork/Zork/main.h
#ifndef MAIN_H // To make sure you don't declare the function more than once by including the header multiple times. #define MAIN_H #include <string> #include <vector> #include "Item.h" #include "Inventory.h" #include "InventoryFunctions.h" #include "Room.h" #pragma once using namespace std; // Global variables ex...
Rubetoman/Zork
Zork/Zork/Item.h
<reponame>Rubetoman/Zork #include "Entity.h" #include <string> #include <vector> #pragma once class Item : public Entity { protected: string description; // Description of the Item. Will be shown when examining the Item. vector<Item> compatibleItems; // Items that can be combined with it. public: void setDescript...
Rubetoman/Zork
Zork/Zork/Inventory.h
#ifndef INVENTORY_H // To make sure you don't declare the function more than once by including the header multiple times. #define INVENTORY_H #include "Entity.h" #include "Item.h" #include <string> #include <vector> #pragma once /* Inventory object that inherits from Entity. Is used to store Items inside, mainly...
Rubetoman/Zork
Zork/Zork/InventoryFunctions.h
#ifndef INVENTORYFUNCTIONS_H // To make sure you don't declare the function more than once by including the header multiple times. #define INVENTORYFUNCTIONS_H #include "Item.h" #pragma once using namespace std; /* Drop an Item of the player's Inventory on the room the player currently is located. The Item is de...
Rubetoman/Zork
Zork/Zork/Game.h
<reponame>Rubetoman/Zork #pragma once #include "stdafx.h" #include "Functions.h" #include <iostream> #include <string> #include <conio.h> #include <iomanip> #include <stdlib.h> using namespace std; class Game { public: Game(); virtual ~Game(); //Operators //Functions void mainMenu(); //Accessors inline boo...
Rubetoman/Zork
Zork/Zork/Room.h
<reponame>Rubetoman/Zork<filename>Zork/Zork/Room.h #ifndef ROOM_H // To make sure you don't declare the function more than once by including the header multiple times. #define ROOM_H #include "Entity.h" #include "Item.h" #include <string> #include <vector> #pragma once /* Room object that inherits from Entity. Is ...
darkomen/TFG
programacion/PLC/fuzzy_v1.c
<gh_stars>1-10 (*Vamos almacenando el diámetro medido e incrementamos el numero de muestras tomadas.*) dim_acumulado:=dim_acumulado+dim; n_actual:=n_actual+1; (*Si hemos tomado el numero deseado de muetras empiezamos el control*) IF n_actual >= n THEN (*Calculamos la media*) dim_media:=(dim_acumulado/n); (*Ajustam...
pscott/app-symbol
src/apdu/messages/sign_transaction.c
/******************************************************************************* * XYM Wallet * (c) 2020 Ledger * (c) 2020 FDS * * 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 * * ...
pscott/app-symbol
src/xym/format/printers.h
<gh_stars>0 /******************************************************************************* * XYM Wallet * (c) 2017 Ledger * (c) 2020 FDS * * 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 Licens...
pscott/app-symbol
src/apdu/messages/sign_transaction.h
/******************************************************************************* * XYM Wallet * (c) 2020 Ledger * (c) 2020 FDS * * 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 * * ...
pscott/app-symbol
tests/test_transaction_parser.c
<reponame>pscott/app-symbol<filename>tests/test_transaction_parser.c #include <malloc.h> #include <stddef.h> #include <setjmp.h> #include <stdarg.h> #include <stdint.h> #include "cmocka.h" #include "parse/xym_parse.h" #include "format/format.h" #include "apdu/global.h" // FIXME: transaction_context_t should be defin...
pscott/app-symbol
tests/bolos_target.h
<reponame>pscott/app-symbol<filename>tests/bolos_target.h #pragma once #define TARGET_NANOX
pscott/app-symbol
src/xym/parse/xym_parse.h
/******************************************************************************* * XYM Wallet * (c) 2020 FDS * * 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.apach...
pscott/app-symbol
src/apdu/messages/get_public_key.c
<reponame>pscott/app-symbol /******************************************************************************* * XYM Wallet * (c) 2020 Ledger * (c) 2020 FDS * * 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...
pscott/app-symbol
src/xym/parse/xym_parse.c
<gh_stars>0 /******************************************************************************* * XYM Wallet * (c) 2020 FDS * * 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...
pscott/app-symbol
src/apdu/entry.c
/******************************************************************************* * XYM Wallet * (c) 2017 Ledger * (c) 2020 FDS * * 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 * * ...
osdnk/rainbow-list
ios/UltraFastAbstractComponentWrapper.h
<filename>ios/UltraFastAbstractComponentWrapper.h // // UltraFastComponentWrapper.h // Pods // // Created by <NAME> on 10/10/2021. // #import <React/RCTView.h> #import <React/RCTViewManager.h> #import "RecyclerRow.h" @interface UltraFastAbstractComponentWrapperManager: RCTViewManager @end @interface UltraFastAb...
osdnk/rainbow-list
ios/CellStorage.h
<gh_stars>1-10 // // CellStorage.h // Pods // // Created by <NAME> on 06/10/2021. // #import <React/RCTViewManager.h> #import <React/RCTView.h> #import "RecyclerRow.h" #import <React/RCTEventDispatcher.h> @interface CellStorageManager : RCTViewManager @end @class ReusableCell; @interface CellStorage: RCTView @p...
osdnk/rainbow-list
ios/RecyclerController.h
<gh_stars>1-10 // // RecyclerController.h // react-native-multithreading // // Created by <NAME> on 06/10/2021. // #import <Foundation/Foundation.h> #import <React/RCTView.h> #import "CellStorage.h" #import "StickyGridCollectionViewLayout.h" @interface RecyclerController : UIViewController<UICollectionViewDataSour...
osdnk/rainbow-list
ios/RecyclerRowWrapper.h
// // RecyclerRowWrapper.h // Pods // // Created by <NAME> on 06/10/2021. // #import <React/RCTViewManager.h> #import <React/RCTView.h> @interface RecyclerRowWrapper : RCTView @property(nonatomic) BOOL reparented; @end @interface RecyclerRowWrapperManager : RCTViewManager @end
osdnk/rainbow-list
ios/RecyclerList.h
<reponame>osdnk/rainbow-list<gh_stars>1-10 // // RecyclerList.h // Pods // // Created by <NAME> on 06/10/2021. // #import <React/RCTViewManager.h> #import "RecyclerController.h" @interface RecyclerListManager : RCTViewManager @end
osdnk/rainbow-list
ios/events/OnRecycle.h
<gh_stars>1-10 // // OnRecycle.h // Pods // // Created by <NAME> on 10/10/2021. // #import <React/RCTEventDispatcher.h> #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface RCTOnRecycleEvent : NSObject <RCTEvent> - (instancetype)initWithReactTag:(NSNumber *)reactTag positio...
osdnk/rainbow-list
ios/UltraFastTextWrapper.h
// // RecyclerRow.h // Pods // // Created by <NAME> on 06/10/2021. // #import "UltraFastAbstractComponentWrapper.h" @interface UltraFastTextWrapperManager:UltraFastAbstractComponentWrapperManager @end @interface UltraFastTextWrapper:UltraFastAbstractComponentWrapper @end
osdnk/rainbow-list
ios/RecyclerRow.h
<reponame>osdnk/rainbow-list<filename>ios/RecyclerRow.h // // RecyclerRow.h // Pods // // Created by <NAME> on 06/10/2021. // #import <React/RCTViewManager.h> #import <React/RCTView.h> #import <React/RCTBridge.h> @interface RecyclerRowManager : RCTViewManager @end @class UltraFastAbstractComponentWrapper; @class...
osdnk/rainbow-list
ios/StickyGridCollectionViewLayout.h
// // StickyGridCollectionViewLayout.h // Pods // // Created by <NAME> on 11/10/2021. // #import <UIKit/UIKit.h> @protocol StickyGridCollectionViewLayoutDelegate - (BOOL)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout isNeedStickyForIndexPath:(NSIndexPath *...
osdnk/rainbow-list
ios/UltimateList.h
#import <React/RCTBridgeModule.h> #import "rainbow-me-ultimate-list.h" @interface UltimateList : NSObject <RCTBridgeModule> @end
thompsonsed/pycoalescence
pycoalescence/necsim/lib/LandscapeMetricsCalculator.h
<gh_stars>0 // This file is part of necsim project which is released under MIT license. // See file **LICENSE.txt** or visit https://opensource.org/licenses/MIT) for full license details /** * @author <NAME> * @file LandscapeMetricsCalculator.h * @brief Contains the LandscapeMetricsCalculator class for calculating l...
thompsonsed/pycoalescence
pycoalescence/necsim/lib/PyLogger.h
// This file is part of necsim project which is released under MIT license. // See file **LICENSE.txt** or visit https://opensource.org/licenses/MIT) for full license details /** * @author <NAME> * @file PyLogger.h * @brief Routines for controlling logger from C++ to Python. * @copyright <a href="https://opensource...
thompsonsed/pycoalescence
pycoalescence/necsim/lib/PyLogging.h
<gh_stars>0 //This file is part of necsim project which is released under MIT license. //See file **LICENSE.txt** or visit https://opensource.org/licenses/MIT) for full license details. /** * @author <NAME> * @file PyLogging.h * @brief Routines for writing to Python logging module. * @copyright <a href="https://op...
Soluto/react-native-branch-deep-linking
native-tests/ios/Pods/Headers/Public/Branch-SDK/Branch/BranchOpenRequest.h
<gh_stars>1-10 // // BranchOpenRequest.h // Branch-TestBed // // Created by <NAME> on 5/26/15. // Copyright (c) 2015 Branch Metrics. All rights reserved. // #import "BNCServerRequest.h" #import "Branch.h" @interface BranchOpenRequest : BNCServerRequest @property (copy) callbackWithStatus callback; + (void) wait...
Soluto/react-native-branch-deep-linking
native-tests/ios/Pods/Headers/Public/Branch-SDK/Branch/BranchInstallRequest.h
<reponame>Soluto/react-native-branch-deep-linking // // BranchInstallRequest.h // Branch-TestBed // // Created by <NAME> on 5/26/15. // Copyright (c) 2015 Branch Metrics. All rights reserved. // #import "BranchOpenRequest.h" @interface BranchInstallRequest : BranchOpenRequest - (NSString *)getActionName; @end
minhkstn/lsquic
src/liblsquic/lsquic_trans_params.c
/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_trans_params.c */ #include <assert.h> #include <errno.h> #include <inttypes.h> #include <limits.h> #include <stddef.h> #include <stdint.h> #include <string.h> #ifndef WIN32 #include <arpa/inet.h> #include <sys/socket.h> #else #inc...
minhkstn/lsquic
src/liblsquic/lsquic_enc_sess_ietf.c
/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_enc_sess_ietf.c -- Crypto session for IETF QUIC */ #include <assert.h> #include <errno.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <sys/queue.h> #if LSQUIC_PREFERRED_ADDR #include <arpa/inet.h> #endif #...
minhkstn/lsquic
bin/http_client.c
<reponame>minhkstn/lsquic /* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */ /* * http_client.c -- A simple HTTP/QUIC client */ #ifndef WIN32 #include <arpa/inet.h> #include <netinet/in.h> #else #include <Windows.h> #include <WinSock2.h> #include <io.h> #include <stdlib.h> #include <getopt.h> ...
cuponadesk/bGUI
src/helvetica_12.h
const uint8_t Helvetica12pt7bBitmaps[] PROGMEM = { 0xFF, 0xFF, 0xFF, 0xC3, 0xC0, 0xCF, 0x3C, 0xF3, 0xCF, 0x3C, 0xC0, 0x02, 0x30, 0x31, 0x01, 0x98, 0x0C, 0xC0, 0x46, 0x1F, 0xFC, 0x33, 0x01, 0x98, 0x08, 0x80, 0xC4, 0x06, 0x61, 0xFF, 0xC3, 0x10, 0x19, 0x80, 0xCC, 0x04, 0x60, 0x62, 0x00, 0x04, 0x00, 0x80, 0x7C, 0x3...
cuponadesk/bGUI
src/helvetica_20.h
<gh_stars>0 const uint8_t Helvetica20pt7bBitmaps[] PROGMEM = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x39, 0xCE, 0x73, 0x9C, 0xE0, 0x00, 0x1F, 0xFF, 0xFF, 0xF0, 0xF1, 0xFE, 0x3F, 0xC7, 0xF8, 0xFF, 0x1F, 0xE3, 0xFC, 0x7F, 0x8F, 0xF1, 0xFE, 0x3F, 0xC7, 0x80, 0x01, 0xC3, 0x80, 0x78, 0x70, 0x0E, 0x0E, 0x0...
cuponadesk/bGUI
src/progress.h
<reponame>cuponadesk/bGUI<filename>src/progress.h template <typename T> struct Progress : Element { Monitor<T> * _linked; T * max; using Element::set; Progress() { } void set(const Monitor<T> & n) { Serial.printf("Creating new linked.\n"); ...
cuponadesk/bGUI
src/numpad.h
<gh_stars>0 #define NUMPAD_BMP "numpad.bmp" #define NUMPAD_TEXT_COLOR 0x0000 #define NUMPAD_BACKGROUND_COLOR 0xFFFF #define NUMPAD_CURSOR_X 12 #define NUMPAD_CURSOR_Y 31 #define DOUBLE_NUMPAD 1 #define DOUBLE_NUMPAD_NO_NEG 2 #define DOUBLE_NUMPAD_NEG_ONLY 3...
cuponadesk/bGUI
src/textarea.h
<reponame>cuponadesk/bGUI<gh_stars>0 template <typename T> struct Textarea : Element { Monitor<T> * _linked; using Element::set; void set(const Monitor<T> & n) { Serial.printf("Creating new linked.\n"); _linked = new Monitor<T>(n); } void draw(A...
cuponadesk/bGUI
src/keyboard.h
<gh_stars>0 class barKey { #define KEYBOARD_LOWERCASE_BMP "keylow.bmp" #define KEYBOARD_UPPERCASE_BMP "keyupp.bmp" #define KEYBOARD_TEXT_COLOR 0x0000 #define KEYBOARD_BACKGROUND_COLOR 0xFFFF #define KEYBOARD_CURSOR_X 12 #define KEYBOARD_CURSOR_Y 31 private: b...
cuponadesk/bGUI
src/bargui.h
<gh_stars>0 #ifndef _BARGUI_ #define _BARGUI_ #include "gui_settings.h" enum shape_name : uint8_t { point = 0, line =1, triangle=3, rectangle=4, polygon=5}; //templated setter for many types template <typename T> struct Setter { T _i; Setter(const T & i) : _i(i) { } operator T() con...
cuponadesk/bGUI
src/radio.h
<filename>src/radio.h #include "bargui.h" #define RADIO_RADIUS 14 #define RADIO_FULL_COLOR 0x3CDE #define RADIO_EMPTY_COLOR 0xFFFF #define RADIO_OUTLINE_COLOR 0xB596 template <typename T> struct Radio : Element { Monitor<T> * _linked = nullptr; T _local={}; T _touchValue; using Element...
cuponadesk/bGUI
src/bar_touch.h
#include <Adafruit_STMPE610.h> #ifndef BARTOUCH_H #define BARTOUCH_H #define TS_MINX 3656 #define TS_MAXX 375 #define TS_MINY 300 #define TS_MAXY 3800 // Touch screen stuff #define MIN_TOUCH_LENGTH 50 #define TOUCH_SENSE_DELAY 25 #define TOUCH_END_TIMEOUT 200 #define REFRESH_RATE 20 #define LEFT_TO_RIGHT_SWIPE 1 #...
cuponadesk/bGUI
src/button.h
#define BUTTON_HEIGHT 34 #define BUTTON_RADIUS 3 #define BUTTON_TEXT_COLOR 0x0000 #define BUTTON_BG_COLOR 0xFFFF #define BUTTON_OUTLINE_COLOR 0xB596 #define BUTTON_FONT &Helvetica10pt7b template <typename T> struct Button : Element, DisplayText, Bitmap, Action { std::vector<Monitor<T> * > _lin...
cuponadesk/bGUI
src/checkbox.h
#define CHECK_WIDTH 28 #define CHECK_HEIGHT 28 #define CHECK_CORNER_RADIUS 3 #define CHECK_FULL_COLOR 0x3CDE #define CHECK_EMPTY_COLOR 0xFFFF #define CHECK_OUTLINE_COLOR 0xB596 template <typename T> struct Checkbox : Element, Monitor<T> { Monitor<T> * _linked = nullptr; T _touchValue {}, _lo...
cuponadesk/bGUI
src/list.h
<filename>src/list.h<gh_stars>0 template <typename T> struct List : Element, DisplayText { Monitor<T> * _linked; std::vector<T> _listOptions; int8_t _linkedIndex; T _local {}; using Element::set; List() { _h = DEFAULT_LIST_HEIGHT; ...
cuponadesk/bGUI
src/helvetica_10.h
<gh_stars>0 static const uint8_t Helvetica10pt7bBitmaps[] = { 0x6D, 0xB6, 0xDB, 0x68, 0x7F, 0xC0, 0xDE, 0xF7, 0xBD, 0x80, 0x19, 0x08, 0x84, 0xC6, 0x6F, 0xFF, 0xFC, 0xC8, 0x44, 0xFF, 0xFF, 0xD9, 0x8C, 0xC6, 0x63, 0x20, 0x04, 0x00, 0x80, 0x7C, 0x3F, 0xE6, 0x4C, 0xC9, 0x9D, 0x01, 0xE0, 0x1F...
cuponadesk/bGUI
src/invisible.h
template <typename T> struct Invisible : Element { Monitor<T> * _linked=NULL; T _touchValue; void (*_callbackFunc)() = NULL; // void (*functionPtr2)(T); using Element::set; void set(const Monitor<T> & n) { Serial.printf("Creating new linked.\n"); ...
cuponadesk/bGUI
src/helvetica_14.h
<reponame>cuponadesk/bGUI<gh_stars>0 static const uint8_t Helvetica14pt7bBitmaps[] = { 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0x66, 0x66, 0x00, 0xFF, 0xF0, 0xE7, 0xE7, 0xE7, 0xE7, 0xE7, 0xE7, 0xE7, 0x0C, 0x70, 0x63, 0x03, 0x18, 0x18, 0xC0, 0xC6, 0x06, 0x31, 0xFF, 0xEF, 0xFF, 0x18, 0xC0, 0xC6, 0x06, 0x31,...
cuponadesk/bGUI
src/background.h
<filename>src/background.h #include "gui_settings.h" struct Background : Element, BackgroundColor, Bitmap { using Bitmap::set; using Element::set; using BackgroundColor::set; auto value()->int { return false; } void draw(Adafruit_ILI9341 * tft)...
cuponadesk/bGUI
src/barWifi.h
<reponame>cuponadesk/bGUI<gh_stars>0 #ifndef _BARWIFI_H_ #define _BARWIFI_H_ #include <memory> #include "ESP8266WiFi.h" #define MAX_SSID_LENGTH 32 #define MAX_PASSWORD_LENGTH 32 #define SCAN_LIST_MAX 6 #define RETRY_WAIT 45000 #define ON 1 #define OFF ...
cuponadesk/bGUI
src/gui_settings.h
#ifndef _GUI_SETTINGS_ #define _GUI_SETTINGS_ #include "helvetica_10.h" #include "helvetica_14.h" #include "helvetica_20.h" #define LARGE_FONT &Helvetica20pt7b #define MEDIUM_FONT &Helvetica14pt7b #define SMALL_FONT &Helvetica10pt7b #define TOP_LEFT 0 #define TOP_CE...
cuponadesk/bGUI
src/newkeyboard.h
#define KEYBOARD_LOWERCASE_BMP "keylow.bmp" #define KEYBOARD_UPPERCASE_BMP "keyupp.bmp" #define KEYBOARD_TEXT_COLOR 0x0000 #define KEYBOARD_BACKGROUND_COLOR 0xFFFF #define KEYBOARD_CURSOR_X 12 #define KEYBOARD_CURSOR_Y 31 class Keyboard { const char keyboardLayout[2][7][7...
cuponadesk/bGUI
src/text.h
#define TEXT_COLOR 0x0000 template <typename T> struct Text : Element, DisplayText { Monitor<T> * _linked=NULL; uint16_t _maxWidth=1000; using Element::set; using DisplayText::set; Text(){ } void set(const Monitor<T> & n) { Serial.printf("Crea...
gonzalezjo/terrier
src/include/storage/index/hash_index.h
<filename>src/include/storage/index/hash_index.h #pragma once #include <functional> #include <memory> #include <unordered_set> #include <utility> #include <variant> // NOLINT (Matt): lint thinks this C++17 header is a C header because it only knows C++11 #include <vector> #include "common/managed_pointer.h" #include...
gonzalezjo/terrier
src/include/settings/settings_defs.h
<reponame>gonzalezjo/terrier // SETTING_<type>(name, description, default_value, min_value, max_value, is_mutable, callback_fn) // Terrier port SETTING_int( port, "Terrier port (default: 15721)", 15721, 1024, 65535, false, terrier::settings::Callbacks::NoOp ) // Preallocated connection han...
gonzalezjo/terrier
src/include/storage/index/bwtree_index.h
<gh_stars>0 #pragma once #include <functional> #include <memory> #include <utility> #include <vector> #include "common/managed_pointer.h" #include "storage/index/index.h" #include "storage/index/index_defs.h" namespace terrier::transaction { class TransactionContext; } namespace third_party::bwtree { // NOLINT: ch...
SidneyAn/ha
service-mgmt/sm/src/sm_msg.c
// // Copyright (c) 2014-2018 Wind River Systems, Inc. // // SPDX-License-Identifier: Apache-2.0 // #include "sm_msg.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/sock...
SidneyAn/ha
service-mgmt/sm/src/sm_service_table.c
<reponame>SidneyAn/ha // // Copyright (c) 2014-2018 Wind River Systems, Inc. // // SPDX-License-Identifier: Apache-2.0 // #include "sm_service_table.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "sm_limits.h" #include "sm_types.h" #include "sm_debug.h" #include "sm_list.h" #include "sm_db.h" ...
danylorudenko/bgfx
3rdparty/spirv-tools/source/opt/passes.h
<gh_stars>1-10 // Copyright (c) 2016 Google 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...
danylorudenko/bgfx
assimpimporter/assimp-importer.h
#pragma once int myfunc();
thefranke/dirtchamber
src/dune/light_propagation_volume.h
<reponame>thefranke/dirtchamber /* * Dune D3D library - <NAME> 2012 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef DUNE_LIGHT_PROPAGATION_VOLUME #define DUNE_LIGHT_PROPAGATION_VOLUME #include <D3D11.h> #include "render_target.h" #include "shader_resource.h" #includ...
thefranke/dirtchamber
src/common_renderer.h
<filename>src/common_renderer.h<gh_stars>100-1000 /* * The Dirtchamber - <NAME> 2014 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef COMMON_RENDERER_H #define COMMON_RENDERER_H #undef NOMINMAX #include <DXUT.h> #include <dune/dune.h> #include "../shader/common.h" #...
thefranke/dirtchamber
src/dune/record_tools.h
/* * Dune D3D library - <NAME> 2017 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef DUNE_RECORD_TOOLS #define DUNE_RECORD_TOOLS #include "unicode.h" #include <D3D11.h> namespace dune { class gbuffer; } namespace dune { class video_recorder { protec...
thefranke/dirtchamber
src/dune/serializer.h
<gh_stars>100-1000 /* * Dune D3D library - <NAME> 2014 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef DUNE_SERIALIZER #define DUNE_SERIALIZER #include "exception.h" #include <boost/any.hpp> #include <map> #include "unicode.h" namespace dune { typedef int BOOL...
thefranke/dirtchamber
src/gi_renderer.h
<filename>src/gi_renderer.h /* * The Dirtchamber - <NAME> 2014 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef GI_RENDERER_H #define GI_RENDERER_H #include <dune/dune.h> #undef NOMINMAX #include "common_renderer.h" #include "common_dxut.h" #include "common_gui.h" /...
thefranke/dirtchamber
src/dune/render_target.h
/* * Dune D3D library - <NAME> 2011 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef DUNE_RENDER_TARGET #define DUNE_RENDER_TARGET #include <D3D11.h> #include <DirectXMath.h> #include <string> #include "texture.h" namespace dune { /*! * \brief A render targ...
thefranke/dirtchamber
src/drf_renderer.h
<gh_stars>100-1000 /* * The Dirtchamber - <NAME> 2013 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef DRF_RENDERER_H #define DRF_RENDERER_H #include <dune/dune.h> #include "common_renderer.h" #include "common_dxut.h" #include "common_gui.h" /*! * \brief A Delta Ra...
thefranke/dirtchamber
src/dune/simple_mesh.h
/* * Dune D3D library - <NAME> 2011 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef DUNE_SIMPLE_MESH #define DUNE_SIMPLE_MESH #include <D3D11.h> #include <vector> #include "d3d_tools.h" #include "mesh.h" namespace dune { /*! * \brief A very simple mesh cla...
thefranke/dirtchamber
src/pppipe.h
/* * The Dirtchamber - <NAME> 2013 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef PPPIPE #define PPPIPE #include <dune/cbuffer.h> #include <dune/postprocess.h> #include <dune/serializer.h> /*! * \brief A default implementation of the postprocessor. * * This is a...
thefranke/dirtchamber
src/dune/dune.h
/* * * The Dune D3D library - <NAME> 2011 * For copyright and license see LICENSE * http://www.tobias-franke.eu * * "God created Arrakis to train the faithful." * */ /*! \file */ /// Direct3D helper library namespace dune {} #include "assimp_mesh.h" #include "exception.h" #include "camera.h" #include "cbuffe...
thefranke/dirtchamber
src/dune/sparse_voxel_octree.h
<gh_stars>100-1000 /* * Dune D3D library - <NAME> 2013 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef DUNE_SPARSE_VOXEL_OCTREE #define DUNE_SPARSE_VOXEL_OCTREE #include <D3D11.h> #include "cbuffer.h" #include "shader_resource.h" namespace dune { struct d3d_mes...
thefranke/dirtchamber
src/dune/math_tools.h
/* * Dune D3D library - <NAME> 2011 * For copyright and license see LICENSE * http://www.tobias-franke.eu */ /*! \file */ #ifndef DUNE_MATH_TOOLS #define DUNE_MATH_TOOLS #include <DirectXMath.h> namespace dune { const float PI = 3.1415926f; const float DEG_TO_RAD = PI/180.f; /*! \brief Get a number...
stvnrhodes/CNCAirbrush
mbed/CNCAirbrush/ImgBuffer.h
<filename>mbed/CNCAirbrush/ImgBuffer.h #ifndef IMGBUFFER_H #define IMGBUFFER_H #define MAX_IMG_BUF 1024 class ImgBuffer { public: ImgBuffer() { write = 0; read = 0; size = MAX_IMG_BUF + 1; }; bool isFull() { return ((write + 1) % size == read); }; ...
stvnrhodes/CNCAirbrush
mbed/mbed/rtc_time.h
<reponame>stvnrhodes/CNCAirbrush /* Title: time * Implementation of the C time.h functions * * Provides mechanisms to set and read the current time, based * on the microcontroller Real-Time Clock (RTC), plus some * standard C manipulation and formating functions. * * Example: * > #include "mbed.h" *...
stvnrhodes/CNCAirbrush
mbed/CNCAirbrush/CmdBuffer.h
#ifndef CMDBUFFER_H #define CMDBUFFER_H #define MAX_CMD_BUF 16 #define MAX_CMD_NUM 0xb #define MAX_INTERRUPTS 3 // Command Struct typedef struct { char cmd; union { float f[6]; long l[6]; }; } Command; class CmdBuffer { public: CmdBuffer() { write = 0...
stvnrhodes/CNCAirbrush
mbed/mbed/FunctionPointer.h
<gh_stars>1-10 /* mbed Microcontroller Library - FunctionPointer * Copyright (c) 2007-2009 ARM Limited. All rights reserved. */ #ifndef MBED_FUNCTIONPOINTER_H #define MBED_FUNCTIONPOINTER_H #include <string.h> namespace mbed { /* Class FunctionPointer * A class for storing and calling a pointer to a static o...
stvnrhodes/CNCAirbrush
mbed/mbed/PortInOut.h
<filename>mbed/mbed/PortInOut.h /* mbed Microcontroller Library - PortInOut * Copyright (c) 2006-2011 ARM Limited. All rights reserved. */ #ifndef MBED_PORTINOUT_H #define MBED_PORTINOUT_H #include "device.h" #if DEVICE_PORTINOUT #include "PortNames.h" #include "PinNames.h" namespace mbed { /*...
stvnrhodes/CNCAirbrush
mbed/CNCAirbrush/CBuffer.h
<gh_stars>1-10 #ifndef CBUFFER_H #define CBUFFER_H #define MAX_BUF 128 class CBuffer { public: CBuffer() { write = 0; read = 0; size = MAX_BUF + 1; }; bool isFull() { return ((write + 1) % size == read); }; bool isEmpty() { return (read =...
stvnrhodes/CNCAirbrush
mbed/mbed/CAN.h
/* mbed Microcontroller Library - can * Copyright (c) 2009-2011 ARM Limited. All rights reserved. */ #ifndef MBED_CAN_H #define MBED_CAN_H #include "device.h" #if DEVICE_CAN #include "Base.h" #include "platform.h" #include "PinNames.h" #include "PeripheralNames.h" #include "can_helper.h" #include "FunctionPoi...
stvnrhodes/CNCAirbrush
mbed/mbed/FileSystemLike.h
/* mbed Microcontroller Library - FileSystemLike * Copyright (c) 2008-2009 ARM Limited. All rights reserved. */ #ifndef MBED_FILESYSTEMLIKE_H #define MBED_FILESYSTEMLIKE_H #ifdef __ARMCC_VERSION # define O_RDONLY 0 # define O_WRONLY 1 # define O_RDWR 2 # define O_CREAT 0x0200 # define O_TRUNC 0x04...
stvnrhodes/CNCAirbrush
mbed/mbed/I2C.h
<gh_stars>1-10 /* mbed Microcontroller Library - I2C * Copyright (c) 2007-2011 ARM Limited. All rights reserved. */ #ifndef MBED_I2C_H #define MBED_I2C_H #include "device.h" #if DEVICE_I2C #include "platform.h" #include "PinNames.h" #include "PeripheralNames.h" #include "Base.h" namespace mbed { /* Class: I2C...
stvnrhodes/CNCAirbrush
mbed/mbed/DigitalIn.h
/* mbed Microcontroller Library - DigitalIn * Copyright (c) 2006-2011 ARM Limited. All rights reserved. */ #ifndef MBED_DIGITALIN_H #define MBED_DIGITALIN_H #include "platform.h" #include "PinNames.h" #include "PeripheralNames.h" #include "Base.h" namespace mbed { /* Class: DigitalIn * A digital input, used f...
stvnrhodes/CNCAirbrush
mbed/mbed/Timer.h
/* mbed Microcontroller Library - Timer * Copyright (c) 2007-2009 ARM Limited. All rights reserved. */ #ifndef MBED_TIMER_H #define MBED_TIMER_H #include "platform.h" #include "PinNames.h" #include "PeripheralNames.h" #include "Base.h" namespace mbed { /* Class: Timer * A general purpose timer ...
stvnrhodes/CNCAirbrush
mbed/mbed/Serial.h
<reponame>stvnrhodes/CNCAirbrush /* mbed Microcontroller Library - Serial * Copyright (c) 2007-2011 ARM Limited. All rights reserved. */ #ifndef MBED_SERIAL_H #define MBED_SERIAL_H #include "device.h" #if DEVICE_SERIAL #include "platform.h" #include "PinNames.h" #include "PeripheralNames.h" #inclu...
stvnrhodes/CNCAirbrush
mbed/StepperMotors/Stepper.h
/* mbed Stepper Library * Copyright (c) 2012 <NAME> * * 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 use, copy, ...
stvnrhodes/CNCAirbrush
mbed/mbed/TimerEvent.h
<gh_stars>1-10 /* mbed Microcontroller Library - TimerEvent * Copyright (c) 2007-2009 ARM Limited. All rights reserved. */ #ifndef MBED_TIMEREVENT_H #define MBED_TIMEREVENT_H namespace mbed { // Base abstraction for timer interrupts class TimerEvent { public: TimerEvent(); // The h...
stvnrhodes/CNCAirbrush
mbed/mbed/BusOut.h
/* mbed Microcontroller Library - BusOut * Copyright (c) 2007-2009 ARM Limited. All rights reserved. */ #ifndef MBED_BUSOUT_H #define MBED_BUSOUT_H #include "platform.h" #include "PinNames.h" #include "PeripheralNames.h" #include "Base.h" #include "DigitalOut.h" namespace mbed { /* Class: BusOut * A digital o...
stvnrhodes/CNCAirbrush
mbed/mbed/platform.h
/* mbed Microcontroller Library - platform * Copyright (c) 2009 ARM Limited. All rights reserved. */ #ifndef MBED_PLATFORM_H #define MBED_PLATFORM_H #define MBED_RPC #define MBED_OPERATORS #endif
stvnrhodes/CNCAirbrush
mbed/mbed/wait_api.h
<reponame>stvnrhodes/CNCAirbrush /* Title: wait * Generic wait functions. * * These provide simple NOP type wait capabilities. * * Example: * > #include "mbed.h" * > * > DigitalOut heartbeat(LED1); * > * > int main() { * > while (1) { * > heartbeat = 1; * > wait(0.5); * > heart...
stvnrhodes/CNCAirbrush
mbed/CNCAirbrush/Wifly.h
<filename>mbed/CNCAirbrush/Wifly.h<gh_stars>1-10 /** * @author <NAME> * * @section LICENSE * * Copyright (c) 2012 <NAME> * * 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 res...
stvnrhodes/CNCAirbrush
mbed/StepperMotors/Bitmap.h
/** * @author <NAME> * * @section LICENSE * * Copyright (c) 2012 <NAME> * * 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...
stvnrhodes/CNCAirbrush
mbed/mbed/Base.h
<filename>mbed/mbed/Base.h /* mbed Microcontroller Library - Base * Copyright (c) 2006-2008 ARM Limited. All rights reserved. */ #ifndef MBED_BASE_H #define MBED_BASE_H #include "platform.h" #include "PinNames.h" #include "PeripheralNames.h" #include <cstdlib> #include "DirHandle.h" namespace mbed { #ifdef MBED_...
stvnrhodes/CNCAirbrush
mbed/mbed/Ethernet.h
/* mbed Microcontroller Library - Ethernet * Copyright (c) 2009-2011 ARM Limited. All rights reserved. */ #ifndef MBED_ETHERNET_H #define MBED_ETHERNET_H #include "device.h" #if DEVICE_ETHERNET #include "Base.h" namespace mbed { /* Class: Ethernet * An ethernet interface, to use with the eth...
stvnrhodes/CNCAirbrush
mbed/mbed/PortOut.h
<reponame>stvnrhodes/CNCAirbrush /* mbed Microcontroller Library - PortOut * Copyright (c) 2006-2011 ARM Limited. All rights reserved. */ #ifndef MBED_PORTOUT_H #define MBED_PORTOUT_H #include "device.h" #if DEVICE_PORTOUT #include "platform.h" #include "PinNames.h" #include "Base.h" #include "P...