repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/include/lldb/Symbol/LineEntry.h
<filename>SymbolExtractorAndRenamer/lldb/include/lldb/Symbol/LineEntry.h //===-- LineEntry.h ---------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/include/lldb/Core/ValueObjectConstResultCast.h
<gh_stars>100-1000 //===-- ValueObjectConstResultCast.h ----------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/include/lldb/Breakpoint/Breakpoint.h
<gh_stars>100-1000 //===-- Breakpoint.h --------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/include/lldb/Core/StreamFile.h
//===-- StreamFile.h --------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/unittests/gtest_common.h
<reponame>Polidea/SiriusObfuscator //===-- gtest_common.h ------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/include/lldb/Target/ThreadList.h
//===-- ThreadList.h --------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/clang/test/CodeGen/ppc64-complex-parms.c
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s float crealf(_Complex float); double creal(_Complex double); long double creall(_Complex long double); float foo_float(_Complex float x) { return crealf(x); } // CHECK: define float @foo_float(float {{[%A-Za-z0-9.]+}}, float {...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/tools/lldb-mi/MIUtilThreadBaseStd.h
//===-- MIUtilThreadBaseStd.h -----------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.h
<filename>SymbolExtractorAndRenamer/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.h //===-- PlatformFreeBSD.h ---------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. S...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.h
<filename>SymbolExtractorAndRenamer/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.h //===-- ThreadGDBRemote.h ---------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License....
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/clang/test/Index/Store/unit-with-vfs.c
// RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/overlay.yaml > %t.yaml // REQUIRES: shell #include "using-overlay.h" // RUN: rm -rf %t.idx // RUN: %clang_cc1 %s -index-store-path %t.idx -I %t -ivfsoverlay %t.yaml // RUN: c-index-test core -print-unit %t.idx | FileCheck %s // XFAIL: linux // C...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/include/lldb/Core/ValueObjectCast.h
<filename>SymbolExtractorAndRenamer/lldb/include/lldb/Core/ValueObjectCast.h //===-- ValueObjectDynamicValue.h -------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/clang/test/CodeGen/mcount.c
// RUN: %clang_cc1 -pg -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s // RUN: %clang_cc1 -pg -triple i386-unknown-unknown -emit-llvm -O2 -o - %s | FileCheck %s // RUN: %clang_cc1 -pg -triple powerpc-unknown-gnu-linux -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-PREFIXED %s // RUN: %clang_cc1 -pg -...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.h
//===-- DWARFDIE.h ----------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/clang/test/Modules/module-impl-with-link.c
// RUN: rm -rf %t // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fmodule-name=Clib %s -I %S/Inputs/module-impl-with-link -emit-llvm -o - #include "foo.h" // CHECK: !{{[0-9]+}} = !{i32 6, !"Linker Options", ![[LINK_OPTIONS:[0-9]+]]} // Make sure we don't generate linker option for module Cl...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/include/lldb/Core/DataEncoder.h
<reponame>Polidea/SiriusObfuscator //===-- DataEncoder.h -------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/source/Plugins/ExpressionParser/Swift/SwiftPersistentExpressionState.h
<reponame>Polidea/SiriusObfuscator //===-- SwiftPersistentExpressionState.h ------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exce...
reitiscapital/ReitisWallet-Core
src/qt/qtipcserver.h
<reponame>reitiscapital/ReitisWallet-Core #ifndef QTIPCSERVER_H #define QTIPCSERVER_H // Define REITIS-Core message queue name #define BITCOINURI_QUEUE_NAME "REITISURI" void ipcScanRelay(int argc, char *argv[]); void ipcInit(int argc, char *argv[]); #endif // QTIPCSERVER_H
adityapandey2811/data-structures
SquareRootNthNode.c
#include<stdio.h> #include<stdlib.h> #include"ll.h" node* fractionalNode(node *head){ node *temp = NULL; int i=1,k=1; while(head){ if(i == k*k){ if(temp == NULL) temp = head; else temp = temp->next; k++; } i++; head = head->next; } return temp; } void main(){ int i; node *head = NULL,*te...
adityapandey2811/data-structures
SeperateAlternateLists.c
#include<stdio.h> #include<stdlib.h> #include"ll.h" node* seperateLists(node **head){ node *temp1 , *temp2, *spare = *head, *rnode; if(spare == NULL || spare->next == NULL) return NULL; temp1 = *head; temp2 = temp1->next; rnode = temp2; spare = spare->next->next; while(spare){ temp1->next = spare; temp1 = ...
adityapandey2811/data-structures
SeperateEvenOddData.c
<reponame>adityapandey2811/data-structures<gh_stars>1-10 #include<stdio.h> #include<stdlib.h> #include"ll.h" node *evenOddConundrum(node *head){ node *temp = head,*spare = NULL, *link = NULL,*even = NULL,*odd = NULL; while(temp){ if(temp->data%2==0){ if(spare == NULL) spare = temp; else even->next = t...
adityapandey2811/data-structures
ReverseList.c
<filename>ReverseList.c //Aditya’s code for reversing list #include<stdio.h> #include<stdlib.h> #include"ll.h" node *reverse(node *head){ node *temp = head,*prev = NULL,*link = NULL; //Reversing list while(temp){ link = temp->next; temp->next = prev; prev = temp; temp ...
adityapandey2811/data-structures
PartitionList.c
<gh_stars>1-10 #include<stdio.h> #include<stdlib.h> #include"ll.h" node* partitionList(node *head, int X){ int i = 0; node *lessThanX = NULL, *current = NULL, *moreThanX = NULL, *temp = head, *l, *m; lessThanX = (node*)malloc(sizeof(node)); moreThanX = (node*)malloc(sizeof(node)); l = lessThanX; m = moreThanX; w...
adityapandey2811/data-structures
RecursiveListReverse.c
//Aditya’s code for recursive list reverse #include<stdio.h> #include<stdlib.h> #include"ll.h" node *reverse(node *head,node *temp){ //Reversing node *final; if(head->next==NULL){ final = head; } else if(head->next!=NULL){ temp = head; head = head->next; reve...
adityapandey2811/data-structures
NthNodeFromEnd.c
//nth node from end #include<stdio.h> #include<stdlib.h> #include"ll.h" int main(){ int i,n,k; node *head = NULL,*temp; for(i = 10;i > 0;i--){ head = insertAtEnd(head); } printf("Enter k: "); scanf("%d",&k); n = length(head); if(n>=k && k>0){ n-=k; ...
adityapandey2811/data-structures
InsertingInSortedList.c
//Aditya’s code for inserting in sorted list #include<stdio.h> #include<stdlib.h> #include"ll.h" node *insert(node *head){ node *new = NULL,*temp = head,*prev = NULL; int i,j,k,n,flag = 0; //Creating node new = (node*)malloc(sizeof(node)); new->next = NULL; printf("Enter data: "); sca...
adityapandey2811/data-structures
ReverseListDisplayRecursive.c
//Aditya’s code for backward list display #include<stdio.h> #include<stdlib.h> #include"ll.h" //Displaying using recursion void recursiveDisplay(node *head){ if(head->next!=NULL){ recursiveDisplay(head->next); } printf("%d ",head->data); } //Main Function void main(){ int ...
adityapandey2811/data-structures
XorLinkedListStarter.c
//Aditya's code for xor linked list(memory efficient doubly linked list) #include<stdio.h> #include<stdlib.h> #include<inttypes.h> typedef struct n{ int data; struct n *next; }node; //Convert links to XOR node *xor(node *prev, node *next){ return (node*) ((uintptr_t) (prev) ^ (uintptr_t) (next));...
adityapandey2811/data-structures
SinglyLinkedListStarter.c
//Aditys’s Code for SinglyLinkList #include<stdio.h> #include<stdlib.h> typedef struct n{ int data; struct n *next; }node; //Display Linked list void display(node *head){ node *d = head; if(d == NULL){ printf("List Empty\n"); } while(d!=NULL){ printf("%d ",d->data); d=d->...
AdelBenAshraf/online_library_system
online_library_system_classes/UserList.h
#ifndef OOP_ASSIGNMENT2_USERLIST_H #define OOP_ASSIGNMENT2_USERLIST_H #include "User.h" #include "Book.h" class UserList { private: User* users_; int capacity_; int usersCount_; public: UserList(int); UserList(const UserList&); void addUser(User);// at the end of the array. User& searchUse...
AdelBenAshraf/online_library_system
online_library_system_classes/Book.h
<filename>online_library_system_classes/Book.h /* @author <NAME> @Explaination: This is.h Bookwhich is responsible for making objects of type Books which have these attributes: (title, ISBN, ID, Category, author and average rating). It have setters and getters for every attribute, have the equality operator overlo...
AdelBenAshraf/online_library_system
online_library_system_classes/User.h
<reponame>AdelBenAshraf/online_library_system<filename>online_library_system_classes/User.h<gh_stars>0 /* @author <NAME> @Explaination: This User.h which have the declaration of the attribute and methods for the class which make type users which have these attributes (name, age, email, password, id) and It have sette...
AdelBenAshraf/online_library_system
online_library_system_classes/BookList.h
#ifndef OOP_ASSIGNMENT2_BOOKLIST_H #define OOP_ASSIGNMENT2_BOOKLIST_H #include "Book.h" class BookList { private: Book* books_; int capacity_; int booksCount_; public: BookList(const BookList&); BookList(int); Book& searchBook(string); Book& searchBook(int); void addBook(Book); void...
sethvoltz/dotfiles
zsh/src/colorize.c
/* $Id: colorize.c 3816 2004-07-03 17:01:32Z lefevre $ * * Colorize the standard input. Written for zsh stderr coloring. * Found at http://www.zsh.org/mla/users/2004/msg00804.html * Compile with `gcc colorize.c -o colorize` and move to bin folder */ #include <stdio.h> #include <stdlib.h> #include <limits.h> #incl...
KHYehor/UniversityPractice
C++/LAB2/tasks.h
#ifndef tasks_h #define tasks_h #include <iostream> #include <limits.h> #include <cassert> #include <cmath> #include <list> #include <cstdlib> #include "ClassTree.h" using namespace std; #endif
KHYehor/UniversityPractice
C++/LAB3/bool:intMethods.h
#ifndef bool_intMethods_h #define bool_intMethods_h #include <iostream> #include <vector> #include "ClassGrapgNode.h" template<typename T> int Graph<T>::getSize() { return Size; } template<typename T> int Graph<T>::getCountOfRibs() { vector<vector<int> *> * matrix = buildMatrixAdjacency(); int ribs = 0; ...
KHYehor/UniversityPractice
C++/LAB3/voidMethods.h
#ifndef voidMethods_h #define voidMethods_h #include <iostream> #include <string> #include "ClassGrapgNode.h" using namespace std; template<typename T> Graph<T>::Graph() { Size = 0; } template<typename T> void Graph<T>::addNode(T el) { if (hasDataInList(el)) cout << "Graph has already this element." << endl; ...
KHYehor/UniversityPractice
C++/LAB2/methods.h
#ifndef methods_h #define methods_h #include <iostream> #include <limits.h> #include <cassert> #include <cmath> #include <list> #include <queue> #include "ClassTree.h" using namespace std; template<typename T> BinaryTree<T>::BinaryTree() { root = nullptr; Depth = 0; Size = 0; } template<typename T> boo...
KHYehor/UniversityPractice
C++/LAB2/voidmethods.h
<filename>C++/LAB2/voidmethods.h #ifndef voidmethods_h #define voidmethods_h #include "ClassTree.h" template<typename T> void BinaryTree<T>::fixdepth(Node<T> *node) { node->depth--; if (node->pleft != nullptr) fixdepth(node->pleft); if (node->pright != nullptr) fixdepth(node->pright); } template<typename...
KHYehor/UniversityPractice
C++/LAB2/ClassTree.h
#ifndef ClassTree_h #define ClassTree_h template<typename T> struct Node { T data; int depth; Node *pleft; Node *pright; Node *parent; }; template<typename T> class BinaryTree { private: Node<T> *root; int Depth; int Size; void fixdepth(Node<T> *node); void fixmaxdepth(); ...
KHYehor/UniversityPractice
C++/LAB3/ClassGrapgNode.h
<reponame>KHYehor/UniversityPractice #ifndef ClassGrapgNode_h #define ClassGrapgNode_h #include <iostream> #include <list> using namespace std; template<typename T> struct Node { T data; list<Node<T> *> neighbours; }; template<typename T> class Graph { private: int Size; list<Node<T> *> LIST; ...
KHYehor/UniversityPractice
C++/TA3LAB/autoFill.h
#ifndef autoFill_h #define autoFill_h #include <iostream> #include <string> string random_string( size_t length ) { auto randchar = []() -> char { const char charset[] = "0123456789" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz"; const size_t max_index = (si...
KHYehor/UniversityPractice
C++/TA3LAB/BTREE.h
<reponame>KHYehor/UniversityPractice #ifndef BTREE_h #define BTREE_h #include <iostream> #include <string> using namespace std; const int t=1000; struct BNode { string keys[2*t]; string nameOfFile = ""; BNode *children[2*t+1]; BNode *parent; int count; //количество ключей int countSons; //коли...
KHYehor/UniversityPractice
C++/LAB3/EulerLoop.h
<filename>C++/LAB3/EulerLoop.h // // EulerLoop.h // LAB3 // // Created by <NAME> on 27.05.2018. // Copyright © 2018 <NAME>. All rights reserved. // #ifndef EulerLoop_h #define EulerLoop_h #endif /* EulerLoop_h */
Asmod4n/mruby-lmdb
src/mrb_lmdb.c
#include "mruby/lmdb.h" #include "mrb_lmdb.h" static mrb_value mrb_fix2bin_le(mrb_state* mrb, mrb_value self) { mrb_int number = mrb_integer(self); mrb_value pp = mrb_str_new(mrb, NULL, sizeof(mrb_int)); unsigned char* p = (unsigned char*)RSTRING_PTR(pp); #ifdef MRB_INT64 p[0] = (unsigned char)number ...
Asmod4n/mruby-lmdb
include/mruby/lmdb.h
<gh_stars>10-100 #ifndef MRUBY_LMDB_H #define MRUBY_LMDB_H #include <mruby.h> #ifdef MRB_INT16 # error MRB_INT16 is too small for mruby-lmdb. #endif MRB_BEGIN_DECL #define E_LMDB_ERROR (mrb_class_get_under(mrb, mrb_module_get(mrb, "MDB"), "Error")) MRB_END_DECL #endif
Asmod4n/mruby-lmdb
src/mrb_lmdb.h
<reponame>Asmod4n/mruby-lmdb<gh_stars>10-100 #ifndef MRB_LMDB_H #define MRB_LMDB_H #include <stdint.h> #include "lmdb.h" #include <string.h> #include <mruby.h> #include <mruby/data.h> #include <mruby/class.h> #include <mruby/string.h> #include <mruby/array.h> #include <mruby/dump.h> #include <errno.h> #include <mruby/...
jessie-murray/webdis
src/server.h
#ifndef SERVER_H #define SERVER_H #include <event.h> #include <pthread.h> #include <hiredis/async.h> #ifdef HAVE_SSL #include <hiredis/hiredis.h> #include <hiredis/hiredis_ssl.h> #endif struct worker; struct conf; struct server { int fd; struct event ev; struct event_base *base; struct conf *cfg; #ifdef HAVE...
jessie-murray/webdis
src/conf.h
<gh_stars>1000+ #ifndef CONF_H #define CONF_H #include <sys/types.h> #include "slog.h" struct auth { /* 1 if only password is used, 0 for username + password */ int use_legacy_auth; char *username; char *password; }; struct conf { /* connection to Redis */ char *redis_host; int redis_port; struct auth *redi...
tsmekal/nodemcu
WifiDisplay/SensorData/SensorData.h
<gh_stars>0 #ifndef Morse_h #define Morse_h #include "Arduino.h" #include <ArduinoJson.h> class SensorData { public: float temperature; float humidity; float pressure; float VOC; String label; bool stateLed; bool stateDisplay; bool stateWarning; SensorData(); String toJson(); }; #...
tsmekal/nodemcu
WifiDisplay/htmlDashboard.h
const char htmlPageHeader[] = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n"; const char htmlPageBody[] = R"=====( <!DOCTYPE html> <html> <head> <meta name='viewport' content='width=device-width, initial-scale=1.0'/> <meta charset='utf-8'> <link href='https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bo...
Demogorgon314/M5Paper_FactoryTest
src/global_setting.h
<filename>src/global_setting.h #ifndef _GLOBAL_SETTING_H_ #define _GLOBAL_SETTING_H_ #include <M5EPD.h> #include <nvs.h> #define WALLPAPER_NUM 3 enum { LANGUAGE_EN = 0, // default, English LANGUAGE_JA, // Japanese LANGUAGE_ZH // Simplified Chinese }; void SetLanguage(uint8_t language); uint8_t GetL...
Demogorgon314/M5Paper_FactoryTest
src/frame/frame_fileindex.h
#ifndef _FRAME_FILEINDEX_H_ #define _FRAME_FILEINDEX_H_ #include "frame_base.h" #include "../epdgui/epdgui.h" #include <SD.h> class Frame_FileIndex : public Frame_Base { public: Frame_FileIndex(String path); ~Frame_FileIndex(); void listDir(fs::FS &fs, const char *dirname); int init(epdgui_args_vec...
Demogorgon314/M5Paper_FactoryTest
src/frame/frame_lifegame.h
<reponame>Demogorgon314/M5Paper_FactoryTest #ifndef _FRAME_LIFEGAME_H_ #define _FRAME_LIFEGAME_H_ #include "frame_base.h" #include "../epdgui/epdgui.h" class Frame_Lifegame : public Frame_Base { public: Frame_Lifegame(); ~Frame_Lifegame(); int init(epdgui_args_vector_t &args); int run(); void ...
Demogorgon314/M5Paper_FactoryTest
src/frame/frame_pictureviewer.h
<filename>src/frame/frame_pictureviewer.h<gh_stars>0 #ifndef _FRAME_PICTUREVIEWER_H_ #define _FRAME_PICTUREVIEWER_H_ #include "frame_base.h" #include "../epdgui/epdgui.h" class Frame_PictureViewer : public Frame_Base { public: Frame_PictureViewer(String path); ~Frame_PictureViewer(); int init(epdgui_arg...
Demogorgon314/M5Paper_FactoryTest
src/frame/frame_wifiscan.h
#ifndef _FRAME_WIFISCAN_H_ #define _FRAME_WIFISCAN_H_ #include "frame_base.h" #include "../epdgui/epdgui.h" class Frame_WifiScan : public Frame_Base { public: Frame_WifiScan(); ~Frame_WifiScan() override; int init(epdgui_args_vector_t &args) override; int scan(); int run() override; void ...
Demogorgon314/M5Paper_FactoryTest
src/frame/frame_compare.h
#ifndef _FRAME_COMPARE_H_ #define _FRAME_COMPARE_H_ #include "frame_base.h" #include "../epdgui/epdgui.h" class Frame_Compare : public Frame_Base { public: Frame_Compare(); ~Frame_Compare(); int init(epdgui_args_vector_t &args); int run(); private: EPDGUI_Button *_key_updatemode[8]; uint8_...
Demogorgon314/M5Paper_FactoryTest
src/epdgui/epdgui_keyboard.h
<filename>src/epdgui/epdgui_keyboard.h #ifndef __EPDGUI_KEYBOARD_H #define __EPDGUI_KEYBOARD_H #include "epdgui_button.h" #include "epdgui_switch.h" class EPDGUI_Keyboard : public EPDGUI_Base { public: static const uint32_t STYLE_INPUTMODE_NORMALTEXT = 0x00000001; static const uint32_t STYLE_INPUTMODE_NEEDCON...
Demogorgon314/M5Paper_FactoryTest
src/systeminit.h
#ifndef __SYSTEMINIT_H #define __SYSTEMINIT_H #include <M5EPD.h> void SysInit_Start(void); void SysInit_Loading(void *pvParameters); void SysInit_UpdateInfo(const String &info); #endif //__SYSTEMINIT_H
Demogorgon314/M5Paper_FactoryTest
src/frame/frame_home.h
#ifndef _FRAME_HOME_H_ #define _FRAME_HOME_H_ #include "frame_base.h" #include "../epdgui/epdgui.h" class Frame_Home : public Frame_Base { public: Frame_Home(); ~Frame_Home(); int init(epdgui_args_vector_t &args); void InitSwitch(EPDGUI_Switch *sw, String title, String subtitle, const uint8_t *img1...
AlbertChen/CYAlertController
AlertControllerDemo/AlertControllerDemo/DatePickerView/DatePickerView.h
<reponame>AlbertChen/CYAlertController<filename>AlertControllerDemo/AlertControllerDemo/DatePickerView/DatePickerView.h // // DatePickerView.h // AlertControllerDemo // // Created by <NAME> on 5/10/16. // Copyright © 2016 <NAME>. All rights reserved. // #import "CYAlertController.h" //typedef NS_ENUM(NSInteger, U...
AlbertChen/CYAlertController
CYAlertController/CYAlertController.h
// // CYAlertController.h // CYAlertController // // Created by <NAME> on 3/1/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> /* CYAlertController *alertController = [CYAlertController alertControllerWithImage:[UIImage imageNamed:@"已勾选"] message:@"Message"]; CYAlertAction *cancel...
AlbertChen/CYAlertController
AlertControllerDemo/AlertControllerDemo/ViewController.h
// // ViewController.h // AlertControllerDemo // // Created by <NAME> on 4/28/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
kumanmushi/SwipeDownDismissViewController
SwipeDownDismissViewController/SwipeDownDismissViewController.h
// // SwipeDownDismissViewController.h // SwipeDownDismissViewController // // Created by 村田真矢 on 2019/06/22. // Copyright © 2019 村田真矢. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for SwipeDownDismissViewController. FOUNDATION_EXPORT double SwipeDownDismissViewControllerVersionNumbe...
liufeigit/Van-lang
src/van_environ.c
// clang #include "van_environ.h" static void environ_evalExpr(VanEnviron *env,ASTNode *astNode); static void environ_evalAssign(VanEnviron *env,ASTNode *astNode); static void environ_evalIf(VanEnviron *env,ASTNode *astNode); static void environ_evalWhile(VanEnviron *env,ASTNode *astNode); static void environ_evalFo...
liufeigit/Van-lang
src/van_lex.c
// clang #include <stdio.h> #include <string.h> #include <stdlib.h> #include "van_lex.h" int __lex_strLen=0; int __lex_curRow=0; int __lex_curCol=0; static Token *lexComment(char *str,int cur,int end); static Token *lexIdentify(char *str,int cur,int end); static Token *lexKeyword(char *str,int cur,int end); static...
liufeigit/Van-lang
src/van_error.h
<gh_stars>1-10 #ifndef VAN_ERROR_H #define VAN_ERROR_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include "van_enum.h" #include "van_lex.h" // van_error 相关 typedef struct ErrorInfor{ ErrorType type; unsigned int row; unsigned int column; char *data; // i...
liufeigit/Van-lang
src/van_builtin.h
<reponame>liufeigit/Van-lang #ifndef VAN_BUILTIN_H #define VAN_BUILTIN_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include "van_data.h" #include "van_lex.h" /*** str1="123"; str1=new String("123"); ****/ VanWrap *wrap_setValueWithKey(VanWrap *wrap,char *key...
liufeigit/Van-lang
src/van_environBridge.c
// clang #include <dirent.h> #include <dlfcn.h> #include "van_environ.h" void environ_initDynamic(VanEnviron *env){ char *dirName="./External/"; DIR *dp=NULL; struct dirent *dirp=NULL; void *fp=NULL; void *handler=NULL; char *filePath=NULL; dp=opendir(dirName); if(dp){ while((dirp = readdir(dp)) != NUL...
liufeigit/Van-lang
src/van_gen.h
#ifndef VAN_GEN_H #define VAN_GEN_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include "van_enum.h" #include "van_parse.h" // add a #ifdef __cplusplus } #endif #endif
liufeigit/Van-lang
src/enum/van_lexEnum.h
#ifndef VAN_LEXENUM_H #define VAN_LEXENUM_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> typedef enum { TokenType_Comment=1, TokenType_Identify, TokenType_Keyword, TokenType_Literal, TokenType_Operator, TokenType_Delimiter } TokenType; typedef enum { // k...
liufeigit/Van-lang
src/van_type.h
#ifndef VAN_TYPE_H #define VAN_TYPE_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include "van_data.h" // String VanWrap *VanString_new(VanWrap *self,VanList *arglist); VanWrap *VanString_length(VanWrap *self,VanList *arglist); VanWrap *VanString_add(VanWrap *se...
liufeigit/Van-lang
src/enum/van_parseEnum.h
#ifndef VAN_PARSENUM_H #define VAN_PARSENUM_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> typedef enum{ ASTType_Expr=1, ASTType_Assign, ASTType_If, ASTType_While, ASTType_For, ASTType_Function, ASTType_Class, ASTType_Continue, ASTType_Break, ASTType_Re...
liufeigit/Van-lang
src/enum/van_errorEnum.h
#ifndef VAN_ERRORENUM_H #define VAN_ERRORENUM_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> // van_error 相关 typedef enum { ErrorType_LexError=1, // 词法错误 ErrorType_ExprSyntaxError, // 语法错误 ErrorType_AssignSyntaxError, ErrorType_ContinueSyntaxError, ErrorType...
liufeigit/Van-lang
src/van_enum.h
<filename>src/van_enum.h #ifndef VAN_ENUM_H #define VAN_ENUM_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include "./enum/van_errorEnum.h" #include "./enum/van_lexEnum.h" #include "./enum/van_parseEnum.h" #include "./enum/van_dataEnum.h" #ifdef __cplusplus } ...
liufeigit/Van-lang
src/van_environ.h
#ifndef VAN_ENVIRON_H #define VAN_ENVIRON_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include "van_data.h" #include "van_type.h" #include "van_parse.h" #include "van_parseUtil.h" typedef struct { VanMap *scopeDict; // var/function/class VanMap *curScope; VanWrap *curBindObj; // self cls/ins Va...
liufeigit/Van-lang
src/van_parse.c
// clang #include "van_parse.h" #include "van_lexUtil.h" #include "van_parseUtil.h" static Token *parseState(Token *token, ASTNode **node); static Token *parseBlock(Token *start,Token *end,ASTNode **node); static Token *parseExprState(Token *token, ASTNode **node); static Token *parseAssignState(Token *token,ASTNod...
liufeigit/Van-lang
src/van_vm.c
// clang #include "van_vm.h"
liufeigit/Van-lang
src/van_data.h
#ifndef VAN_DATA_H #define VAN_DATA_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include "van_enum.h" typedef enum { FieldDesc_IsNull=0, // read FieldDesc_IsRead=1, // hidden FieldDesc_IsWrite=2, // overwrite FieldDesc_IsGet=4, // readProperty FieldDesc...
liufeigit/Van-lang
src/van_data.c
<filename>src/van_data.c // clang #include "van_data.h" #include <stdlib.h> static Node *node_getNodeFromIndex(Node *head,int index,int length); static Node *node_getNodeFormKey(Node *head,char *key,int length,int *flag); void __map_setValue(VanMap *map,char *key,VanWrap *value,int outFlag); // string VanString *s...
liufeigit/Van-lang
src/van_parseUtil.c
<gh_stars>1-10 // clang #include "van_parseUtil.h" ASTNode *astNode_getRootNode(ASTNode *node){ ASTNode *rootNode=NULL; if(node){ rootNode=node; while(rootNode->parent){ rootNode=rootNode->parent; } } return rootNode; } ASTNode *astNode_findLoseNode(ASTNode *node){ ASTNode *loseNode=NULL; ASTNode **...
liufeigit/Van-lang
src/van_gen.c
// clang #include "van_gen.h"
liufeigit/Van-lang
src/van_builtin.c
// clang #include "van_builtin.h" VanWrap *wrap_builtinList(){ VanWrap *wrap=NULL; VanClass *listClass=NULL; VanWrap *lengthFunc=NULL; listClass=class_create("List", NULL); class_addInsField(listClass, "length", lengthFunc); return wrap; } VanWrap *VanString_new(VanWrap *data){ } VanWrap *VanStr...
liufeigit/Van-lang
src/van_type.c
// clang #include "van_type.h" // new String(""|true|false|null|1) VanWrap *VanString_new(VanWrap *self,VanList *arglist){ VanWrap *wStr=NULL; VanString *vStr=NULL; char *cStr=""; VanWrap *_arg=NULL; if(!arglist){ vStr=string_create(cStr); wStr=wrap_wrapString(vStr); return wStr; } _arg=list_getVal...
liufeigit/Van-lang
src/enum/van_dataEnum.h
#ifndef VAN_DATAENUM_H #define VAN_DATAENUM_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> typedef enum { DataType_Null=1, DataType_True, DataType_False, DataType_Int, DataType_Float, DataType_String, DataType_List, DataType_Map, DataType_Function, Da...
liufeigit/Van-lang
src/van_repl.c
// clang #include "van_lex.h" #include "van_parse.h" #include "van_data.h" #include "van_environ.h" void execStr(char *data); int main(int argc,char **argv){ char *fileName=NULL; FILE *file=NULL; int len=0; char *data=NULL; char str[128]; if(argc<2){ return 0; } fileName=argv[1]; file=fopen(fileName,...
liufeigit/Van-lang
src/van_lexUtil.c
<gh_stars>1-10 // clang #include "van_lexUtil.h" Token *filterEmpty(Token *token){ Token *cur=NULL; cur=token; while(cur){ if(cur->subType!=TokenSubType_Semicolon){ break; } cur=cur->next; } return cur; } int __calCommaCount(Token *token,Token *end,int flag){ int length=0; Token *start=NULL; star...
liufeigit/Van-lang
External/extendTest1.c
<reponame>liufeigit/Van-lang // clang -g -fPIC -shared -L. -lvan extendTest1.c -o ./External/libextendTest1.so #include "../src/van_data.h" #include "../src/van_environ.h" void module_init(); int sub(int a,int b); VanWrap *wrap_sub(VanWrap *self,VanList *argList); // static/dynamic void nativeFunction_Load(VanE...
liufeigit/Van-lang
src/van_main.c
// clang -g van_lex.c van_lexUtil.c van_parse.c van_type.c van_parseUtil.c van_data.c van_dataUtil.c van_environ.c van_environBridge.c van_error.c van_main.c -o van // clang -g -fPIC -shared van_lex.c van_lexUtil.c van_parse.c van_type.c van_parseUtil.c van_data.c van_dataUtil.c van_environ.c van_environBridge.c van_e...
liufeigit/Van-lang
src/van_dataUtil.c
// clang #include "van_data.h" VanWrap *wrap_binaryCal(VanWrap *leftWrap,VanWrap *rightWrap,ASTOp op){ VanWrap *wrap=NULL; if(leftWrap&&rightWrap){ if((leftWrap->type==DataType_Int||leftWrap->type==DataType_Float)&& (rightWrap->type==DataType_Int||rightWrap->type==DataType_Float)){ if(leftWrap->type==Da...
liufeigit/Van-lang
src/van_lex.h
#ifndef VAN_LEX_H #define VAN_LEX_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include "van_enum.h" typedef struct Token{ TokenType type; TokenSubType subType; union { long long l; double d; } value; // int/float char *data; // indentify/string struct Token *next; struct Token *pre; ...
cran/meanr
src/score.c
#include <stdlib.h> #include <stdint.h> #include <string.h> #include <ctype.h> // for ispunct() #include <safeomp.h> #include <reactor.h> #include <RNACI.h> #include "hashtable/poshash.h" #include "hashtable/neghash.h" #define THROW_MEMERR() error("unable to allocate memory") #define FREE(ptr) if(ptr!=NULL) free(ptr...
cran/meanr
src/meanr_native.c
<gh_stars>0 /* Automatically generated. Do not edit by hand. */ #include <R.h> #include <Rinternals.h> #include <R_ext/Rdynload.h> #include <stdlib.h> extern SEXP R_meanr_nthreads(); extern SEXP R_score(SEXP s_, SEXP nthreads_); static const R_CallMethodDef CallEntries[] = { {"R_meanr_nthreads", (DL_FUNC) &R_meanr...
cran/meanr
src/hashtable/poshash.h
<gh_stars>0 /* C code produced by gperf version 3.0.4 */ /* Command-line: gperf --includes --readonly-tables --pic --hash-function-name=poshash --lookup-function-name=in_pos_set --slot-name=word positive.txt */ /* Computed positions: -k'1-7,9,$' */ #include <stdint.h> #if !((' ' == 32) && ('!' == 33) && ('"' == 34) ...
cran/meanr
src/meanr_nthreads.c
<filename>src/meanr_nthreads.c #ifdef _OPENMP #include <omp.h> #endif #include <RNACI.h> #define MIN(a,b) ((a)<(b)?(a):(b)) static inline int num_threads() { int n = 0; #ifdef _OPENMP int nth, tl; #pragma omp parallel { nth = omp_get_num_threads(); tl = omp_get_thread_limit(); } n = MIN(nth...
ayushev/aws-cloud-and-xilinx-workshop
zynq7k_demo/lib/utils/aws_system_init.c
<filename>zynq7k_demo/lib/utils/aws_system_init.c /* * Amazon FreeRTOS System Initialization * Copyright (C) 2017 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 "So...
ayushev/aws-cloud-and-xilinx-workshop
zynq7k_demo/tests/xilinx/microzed/common/application_code/xilinx_code/memcpy.c
/* * An memcpy() in C which does not use the FPU registers, as the default does. */ #include <string.h> #include <stdint.h> #ifndef SIMPLE_MEMCPY #define SIMPLE_MEMCPY ( 0 ) #endif #ifndef SIMPLE_MEMSET #define SIMPLE_MEMSET ( 0 ) #endif #if( SIMPLE_MEMCPY != 0 ) void *memcpy( void *pvDest, cons...
ayushev/aws-cloud-and-xilinx-workshop
zynq7k_demo/demos/xilinx/microzed/common/application_code/xilinx_code/uzed_iot.c
/* * Amazon FreeRTOS MQTT UZed Demo V1.0 * Copyright (C) 2017 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 Software without r...
ayushev/aws-cloud-and-xilinx-workshop
zynq7k_demo/tests/xilinx/microzed/common/application_code/xilinx_code/hr_gettime.h
<reponame>ayushev/aws-cloud-and-xilinx-workshop #ifndef HR_GETTIME_H #define HR_GETTIME_H void init_timer( int xTimer ); /* Start-up the high-resolution timer. */ void vStartHighResolutionTimer( void ); /* Get the current time measured in uS. */ unsigned long long ullGetHighResolutionTime( void ); #end...
dimarusyy/roster-display
src/fetchjson.h
<gh_stars>0 #pragma once #include <QObject> #include <QMetaType> #include <QNetworkAccessManager> #include <3rdparty/nlohmann/json.hpp> Q_DECLARE_METATYPE(std::shared_ptr<nlohmann::json>) class FetchJson : public QObject { Q_OBJECT public: static const QUrl defaultUrl; explicit FetchJson(QObject *paren...