repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
X-rays5/elden_pause | elden_pause/include/mem/aligned_alloc.h | <filename>elden_pause/include/mem/aligned_alloc.h
/*
Copyright 2018 Brick
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 righ... |
X-rays5/elden_pause | elden_pause/include/mem/char_queue.h | <filename>elden_pause/include/mem/char_queue.h
/*
Copyright 2018 Brick
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 ... |
pombreda/nssecurity | config.h | #ifndef __CONFIG_H
#define __CONFIG_H
struct registry;
struct plugin;
struct registry {
char *mime_description;
NPNetscapeFuncs *netscape_funcs;
struct plugin *global;
struct plugin *plugins;
};
struct plugin {
char *allow_insecure;
char *allow_domains;
... |
pombreda/nssecurity | netscape.h | #ifndef __NETSCAPE_H
#define __NETSCAPE_H
NPError netscape_plugin_destroy(NPP instance, NPSavedData **save);
NPError netscape_plugin_getvalue(NPP instance,
NPPVariable variable,
void *value);
NPError netscape_plugin_new(NPMIMEType pluginType,
... |
pombreda/nssecurity | apple.c | <filename>apple.c
// Copyright 2012 Google Inc. All Rights Reserved.
//
// Author: <EMAIL>
//
// Platform specific code for managing plugins on Mac OS X.
//
// 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 ... |
pombreda/nssecurity | netscape.c | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Author: <EMAIL>
//
// Main NPP (non exported plugin-side APIs) implementations.
//
// 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
//... |
pombreda/nssecurity | policy.c | <reponame>pombreda/nssecurity
// Copyright 2012 Google Inc. All Rights Reserved.
//
// Author: <EMAIL>
//
// Policy decision logic for plugin loading.
//
// 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... |
pombreda/nssecurity | export.c | <reponame>pombreda/nssecurity
// Copyright 2012 Google Inc. All Rights Reserved.
//
// Author: <EMAIL>
//
// The main NP (plugin side) exported symbols queried by the browser.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You... |
pombreda/nssecurity | instance.c | <gh_stars>1-10
// Copyright 2012 Google Inc. All Rights Reserved.
//
// Author: <EMAIL>
//
// Mapping instances (opaque pointers) to owner plugins.
//
// 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 Li... |
pombreda/nssecurity | instance.h | #ifndef __INSTANCE_H
#define __INSTANCE_H
bool netscape_instance_resolve(NPP instance, struct plugin **result);
bool netscape_instance_map(NPP instance, struct plugin *plugin);
bool netscape_instance_destroy(NPP instance);
bool netscape_instance_list_destroy(void);
#endif
|
pombreda/nssecurity | util.c | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Author: <EMAIL>
//
// Miscellaneous utility routines.
//
// 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.o... |
pombreda/nssecurity | log.c | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Author: <EMAIL>
//
// Logging routines.
//
// 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/LICE... |
pombreda/nssecurity | util.h | <filename>util.h<gh_stars>1-10
#ifndef __UTIL_H
#define __UTIL_H
// This useful routine is only available for _GNU_SOURCE
#ifndef _GNU_SOURCE
# define strdupa(str) strcpy(alloca(strlen(str) + 1), (str))
// Ugh. I hope this is equivalent to the GNU routine.
# define strndupa(str, len) strncpy(memset(alloca((len) + 1),... |
pombreda/nssecurity | linux.c | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Author: <EMAIL>
//
// Platform specific code for managing plugins on Linux.
//
// 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
//
// ... |
pombreda/nssecurity | policy.h | #ifndef __POLICY_H
#define __POLICY_H
bool policy_plugin_allowed_domain(struct plugin *plugin, char *url);
bool policy_plugin_allowed_protocol(struct plugin *plugin, char *url);
bool policy_plugin_allowed_url(struct plugin *plugin, char *url);
#endif
|
pombreda/nssecurity | log.h | <reponame>pombreda/nssecurity
#ifndef __LOG_H
#define __LOG_H
#ifdef NDEBUG
# define l_debug(format...)
#else
# define l_debug(format...) do { \
l_debug_(__FUNCTION__, ## format); \
} while (false)
#endif
#define l_message(format...) do { \
l_message_(__FUNCTION_... |
pombreda/nssecurity | export.h | #ifndef __EXPORT_H
#define __EXPORT_H
NPError NP_GetEntryPoints(NPPluginFuncs *pFuncs);
NPError NP_GetValue(NPP instance, NPPVariable variable, void *value);
NPError NP_Initialize(NPNetscapeFuncs *aNPNFuncs, NPPluginFuncs *aNPPFuncs);
NPError NP_Shutdown(void);
char * NP_GetMIMEDescription(void);
char * NP_GetPlugin... |
pombreda/nssecurity | config.c | <filename>config.c<gh_stars>1-10
// Copyright 2012 Google Inc. All Rights Reserved.
//
// Author: <EMAIL>
//
// Parse the configuration file and prepare all the plugins discovered.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
/... |
pombreda/nssecurity | platform.h | #ifndef __PLATFORM_H
#define __PLATFORM_H
// Some wrappers to hide the functional differences between Apple and Linux.
char * platform_getmimedescription(struct plugin *plugin);
void * platform_dlopen(const char *plugin);
void * platform_dlsym(void *handle, const char *symbol);
char * platform_getname(void);
char * p... |
CycleRank/cyclerank-dev | pageloop/interruptible.h | #ifndef INTERRUPTIBLE_H
#define INTERRUPTIBLE_H
#include <map>
#include <string>
#include <vector>
#include <sys/stat.h>
#include "node.h"
using namespace std;
namespace interruptible {
bool file_exists(const string& filename);
int read_restart(const string& filename);
void dump(const vector<node>& grafo);
... |
CycleRank/cyclerank-dev | pageloop/node.h | <gh_stars>0
#ifndef NODE_H
#define NODE_H
#include <vector>
#include <list>
using namespace std;
// ***************************************************************************
struct node{
bool active;
bool blocked;
int dist;
vector<int> adj;
list<int> B;
node(){
active = true;
blocked = false;
... |
gaurabdg/ESP8266_Arduino_serial-uploader | src/firmware/ESPcode/FTPserver.h | <reponame>gaurabdg/ESP8266_Arduino_serial-uploader<gh_stars>1-10
#ifndef FTPserver_h
#define FTPserver_h
#include <ESP8266WiFi.h>
#include "Arduino.h"
#include "FS.h"
#include "HEXparser.h"
#include "UploadProtocol.h"
#include "FTPserver.h"
class FTPserver
{
public:
FTPserver(int res);
int OptionCall(String x);... |
gaurabdg/ESP8266_Arduino_serial-uploader | src/firmware/ESPcode/UploadProtocol.h | #ifndef UploadProtocol_h
#define UploadProtocol_h
#include "Arduino.h"
class UploadProtocol
{
public:
UploadProtocol(int reset);
void reset();
void DeviceSetup();
int sync();
int setParams();
int setExtParams();
int startProgMode();
void ProgramPage... |
SarahTamayao/Twitter-1 | twitter/View Controllers/WebViewController.h | <reponame>SarahTamayao/Twitter-1
//
// WebViewController.h
// twitter
//
// Created by laurentsai on 7/1/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface WebViewController : UIViewController
@property (strong, nonatomic) N... |
SarahTamayao/Twitter-1 | twitter/View Controllers/TimelineViewController.h | //
// TimelineViewController.h
// twitter
//
// Created by emersonmalca on 5/28/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TweetCell.h"
#import "ResponsiveLabel.h"
#import "User.h"
#import "InfiniteScrollActivityView.h"
@interface TimelineViewController : UIViewContr... |
SarahTamayao/Twitter-1 | twitter/View Controllers/DetailTweetViewController.h | //
// DetailTweetViewController.h
// twitter
//
// Created by laurentsai on 6/30/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Tweet.h"
#import "ResponsiveLabel.h"
NS_ASSUME_NONNULL_BEGIN
@interface DetailTweetViewController : UIViewController
@property (weak, nonatomic... |
SarahTamayao/Twitter-1 | twitter/Views/InfiniteScrollActivityView.h | //
// InfiniteScrollActivityView.h
// twitter
//
// Created by laurentsai on 7/2/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface InfiniteScrollActivityView : UIActivityIndicatorView
@property (class, nonatomic, readonly) CGFloat defaultHeight;
-(... |
SarahTamayao/Twitter-1 | twitter/View Controllers/ComposeViewController.h | <gh_stars>0
//
// ComposeViewController.h
// twitter
//
// Created by laurentsai on 6/30/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Tweet.h"
#import "UIImageView+AFNetworking.h"
NS_ASSUME_NONNULL_BEGIN
@protocol ComposeViewControllerDelegate
- (void)didTweet:(Tweet ... |
SarahTamayao/Twitter-1 | twitter/Models/User.h | <gh_stars>0
//
// User.h
// twitter
//
// Created by laurentsai on 6/29/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface User : NSObject
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *screenName;
@p... |
SarahTamayao/Twitter-1 | twitter/Views/TweetCell.h | //
// TweetCell.h
// twitter
//
// Created by laurentsai on 6/29/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Tweet.h"
#import "ResponsiveLabel.h"
NS_ASSUME_NONNULL_BEGIN
@interface TweetCell : UITableViewCell
@property (weak, nonatomic) IBOutlet ResponsiveLabel *tweet... |
SarahTamayao/Twitter-1 | twitter/View Controllers/ProfileViewController.h | //
// ProfileViewController.h
// twitter
//
// Created by laurentsai on 6/30/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "User.h"
#import "TweetCell.h"
#import "Tweet.h"
NS_ASSUME_NONNULL_BEGIN
@interface ProfileViewController : UIViewController
@property (strong, nonat... |
SarahTamayao/Twitter-1 | twitter/AppDelegate.h | //
// AppDelegate.h
// twitter
//
// Created by emersonmalca on 5/28/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "User.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) User *cur... |
24KYang/FFTest | FFTest/FFTest/FFTest.h | <reponame>24KYang/FFTest
//
// FFTest.h
// FFTest
//
// Created by 四五20 on 2021/1/13.
// Copyright © 2021 四五20. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface FFTest : NSObject
- (void)test;
@end
|
24KYang/FFTest | FFTest/FFTOne/One.h | //
// One.h
// FFTest
//
// Created by 四五20 on 2021/6/11.
// Copyright © 2021 四五20. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface One : NSObject
@end
NS_ASSUME_NONNULL_END
|
24KYang/FFTest | Example/Pods/FFTest/FFTest/Test.h | <filename>Example/Pods/FFTest/FFTest/Test.h
//
// Test.h
// FFTest
//
// Created by 四五20 on 2021/6/8.
// Copyright © 2021 四五20. All rights reserved.
//
#ifndef Test_h
#define Test_h
#endif /* Test_h */
|
24KYang/FFTest | Example/Pods/FFTest/FFTest/Core/FFTCore.h | //
// FFTCore.h
// FFTest
//
// Created by 四五20 on 2021/6/11.
// Copyright © 2021 四五20. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface FFTCore : NSObject
@end
NS_ASSUME_NONNULL_END
|
NZME/react-native-landmarksid | Libraries/LandmarksID-LOD/LandmarksIDSDK.framework/Headers/LandmarksIDSDK.h | //
// LandmarksIDSDK.h
// LandmarksIDSDK
//
// Created by <NAME> on 5/3/18.
// Copyright © 2018 LandmarksID. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for LandmarksIDSDK.
FOUNDATION_EXPORT double LandmarksIDSDKVersionNumber;
//! Project version string for LandmarksIDSDK.
FOUNDATI... |
NZME/react-native-landmarksid | Libraries/LandmarksID-LOD/LandmarksIDSDK.framework/Headers/LandmarksIDLocationManager.h | //
// LandmarksIDLocationManager.h
// LandmarksID-iOS-SDK
//
// Created by <NAME> on 4/3/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@import BDPointSDK;
@interface LandmarksIDLocationManager : BDLocationManager
+ (LandmarksIDLocationManager *) getInstance;
@end
|
NZME/react-native-landmarksid | Libraries/LandmarksID-LOD/LandmarksIDSDK.framework/Headers/LandmarksIDManagerDelegate.h | <reponame>NZME/react-native-landmarksid
//
// LandmarksIDManagerDelegate.h
// LandmarksID-ObjectiveC
//
// Created by <NAME> on 28/2/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
@interface LandmarksIDManage... |
Thomvis/FutureProofing | FutureProofing/FutureProofing.h | <gh_stars>10-100
//
// FutureProofing.h
// FutureProofing
//
// Created by <NAME> on 15/01/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for FutureProofing.
FOUNDATION_EXPORT double FutureProofingVersionNumber;
//! Project version string fo... |
jiankaiwang/seed | cpp/seedalgorithm.h | <gh_stars>0
namespace std {
/*
desc : quicksort algorithm
parm :
|- array_data : all data in array for sorting
|- left : left boundary
|- right : right boundary
oupt : data array already sorted
e.g. :
int data[] = {1, -1, 2, 5, -3, 5, 7, 9, -10, 10};
quicksort(data, 0, 10);
... |
jiankaiwang/seed | cpp/common.h | #include <string>
#include <vector>
namespace std {
/*
* description : string is split by delimit words
* parameter :
* |- getStr@String : "string prepared for being split"
* |- delimit@String : "split char in the string"
* return : vector<string>
* example :
* vector<string> getVect =... |
mathiasAichinger/talker-framework | TalkerFramework.h | //
// talker-framework-ios.h
// talker-framework-ios
//
// Created by <NAME> on 20/11/2016.
//
//
#import <Foundation/Foundation.h>
//! Project version number for talker-framework.
FOUNDATION_EXPORT double talkerFrameworkVersionNumber;
//! Project version string for talker-framework.
FOUNDATION_EXPORT const unsig... |
Tiger-OS/nanos | src/unix/unix.c | <reponame>Tiger-OS/nanos
#include <unix_internal.h>
#include <ftrace.h>
#include <gdb.h>
#include <log.h>
#include <filesystem.h>
//#define PF_DEBUG
#ifdef PF_DEBUG
#define pf_debug(x, ...) do {log_printf("FAULT", "[%02d] tid %02d " x "\n", current_cpu()->id, \
current->tid, ##_... |
Tiger-OS/nanos | src/runtime/runtime.h | <reponame>Tiger-OS/nanos
#include <predef.h>
#include <config.h>
#include <machine.h>
#include <attributes.h>
#if !defined(BOOT) && !defined(KERNEL) && !defined(KLIB)
#include <unix_process_runtime.h>
#endif
typedef u8 boolean;
typedef u32 character;
typedef u64 timestamp;
#define true 1
#define false 0
#define infin... |
Tiger-OS/nanos | test/runtime/netsock.c | <reponame>Tiger-OS/nanos<gh_stars>1-10
#include <netinet/in.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <sys/epoll.h>
#define NETSOCK_TEST_FIO_COUNT 8
#define t... |
Tiger-OS/nanos | src/boot/uefi.c | #include <runtime.h>
#include <kernel_machine.h>
#include <page.h>
#include <elf64.h>
#include <pagecache.h>
#include <storage.h>
#include <tfs.h>
#include <uefi.h>
/* Number of spare memory descriptors allocated to cover any additional descriptors that may be
* inserted in the memory map between a get_memory_map() c... |
Frky/scat | src/pintool/utils/functions_registry.h | #ifndef __FUNCTIONS_REGISTRY_H__
#define __FUNCTIONS_REGISTRY_H__
#include "pin.H"
#include "debug.h"
// Type of the unique ID given to each registered
// function allowing for fast lookup
typedef unsigned int FID;
// The unknown function ID
#define FID_UNKNOWN 0
struct FnEntry {
/* The couple (image(=binary), ... |
Frky/scat | src/pintool/utils/memory.h | #ifndef MEMORY_H_
#define MEMORY_H_
#include <map>
std::map<ADDRINT, long> allocated;
ADDRINT last_allocated = 0;
int fake_alloc(ADDRINT addr, long size) {
std::cerr << "alloc(" << size << "): " << addr << endl;
allocated[addr] = size;
last_allocated = addr;
return 0;
}
int fake_free(ADDRINT addr) {
... |
Frky/scat | src/pintool/utils/debug.h | #ifndef DEBUG_H_
#define DEBUG_H_
#if defined (SCAT_DEBUG_ENABLED) || defined (SCAT_TRACE_ENABLED)
char debug_trace_buf[3000];
#define debug_trace_init() { \
LOG("Starting pintool\n"); \
}
#else
#define debug_trace_init()
#endif
#ifdef SCAT_DEBUG_ENABLED
#define debug(...) { \
spr... |
Frky/scat | test/proto/src/void__int.c |
#include <stdlib.h>
// ORACLE INT foo(VOID)
int foo(void) {
int a, b;
int i;
a = rand() % 65536;
b = rand() % 65536;
for (i = 0; i < b; i++)
a += b;
return a % 65536;
}
int main(void) {
int a = 0, b = 0, i;
for (i = 0; i < 100; i++) {
a += foo();
b +... |
Frky/scat | src/pintool/utils/hollow_stack.h | <gh_stars>10-100
#ifndef HOLLOW_STACK_H_
#define HOLLOW_STACK_H_
#include <exception>
class ForgottenElementException : public std::exception {};
/**
* HollowStack
*
* Acts as a regular stack with the methods:
* `push`, `top` and `pop`
* but also adds :
* - Random access to elements for a given height.
... |
Frky/scat | src/pintool/utils/registers.h | <reponame>Frky/scat
#ifndef REGISTERS_H_
#define REGISTERS_H_
#include "pin.H"
#include <stdexcept>
/**
* Register families
*
* A set of register corresponding to the same "register memory space"
* (e.g: REG_RAX, REG_EAX, REG_AX, REG_AH, REG_AL) with different
* sizes forms a family.
* Since we mostly care abou... |
Frky/scat | test/proto/src/float__int.c | <gh_stars>10-100
#include <stdlib.h>
// ORACLE FLOAT foo(INT)
float foo(int a) {
float b;
int i;
b = ((float) (rand() % 65536)) / ((float) (rand() % 65536));
for (i = 0; i < 100; i++)
b /= a;
return b;
}
int main(void) {
int i;
float a = 0;
for (i = 0; i < 1000; i++... |
Frky/scat | test/proto/src/int__int.c |
#include <stdlib.h>
// ORACLE INT foo(INT)
int foo(int a) {
int b;
int i;
int res = 0;
b = rand() % 65536;
for (i = 0; i < b; i++)
res += a;
return res % 65536;
}
int main(void) {
int a = 0, i;
for (i=0; i < 1000; i++) {
a += foo(rand() % 65536);
}
... |
Frky/scat | test/proto/src/call_stack_overflow.c | /*
* This test highlights that even with a huge recursion,
* all relevant functions are detected (start, rec, end),
* despite the fact that our arity and type pintools only
* keep tracks of only a limited subset of the call stack.
*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
// ORACLE INT start(I... |
Frky/scat | test/proto/src/void__float.c | <filename>test/proto/src/void__float.c<gh_stars>10-100
#include <stdlib.h>
// ORACLE FLOAT foo(VOID)
float foo(void) {
int a;
float b;
int i;
a = rand() % 65536;
b = 1.0 / a;
for (i = 0; i < a; i++)
b += ((float) a) / ((float) i);
return b;
}
int main(void) {
int i;... |
Frky/scat | test/proto/src/float__float.c |
#include <stdlib.h>
// ORACLE FLOAT foo(FLOAT)
float foo(float a) {
float b;
int i;
b = ((float) (rand() % 65536)) / ((float) (rand() % 65536));
for (i = 0; i < b; i++)
a += b;
// Avoid compilation warning
b = a;
return b;
}
int main(void) {
int i;
float a = 0;
... |
Frky/scat | src/pintool/log/read.h | <gh_stars>10-100
#include <iostream>
#include <string>
string read_part(std::ifstream &ifile) {
char m;
string str = "";
ifile.read(&m, 1);
while (ifile && m != ':' && m != ',' && m != '\n') {
str += m;
ifile.read(&m, 1);
}
return str;
}
string read_line(std::ifstream &ifile)... |
Frky/scat | test/proto/src/void__void.c |
#include <stdlib.h>
// ORACLE VOID foo(VOID)
void foo(void) {
int a, b;
int i;
a = rand() % 65536;
b = rand() % 65536;
for (i = 0; i < b; i++)
a += b;
// to avoid warning
i = a;
return;
}
int main(void) {
int i;
for (i = 0; i < (rand() % 65536); i++)
fo... |
Frky/scat | test/proto/src/float_stack.c | <reponame>Frky/scat<filename>test/proto/src/float_stack.c
#include <stdlib.h>
// ORACLE FLOAT foo(FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, FLOAT)
float foo(float r1, float r2, float r3, float r4,
float r5, float r6, float r7, float r8,
float stack1, float stack2, float sta... |
Frky/scat | src/pintool/utils/memory_default.h | <filename>src/pintool/utils/memory_default.h
#include <list>
#include <map>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include "../pin.H"
#include "debug.h"
#include "functions_regis... |
Frky/scat | test/proto/src/intaddr_stack.c | #include <stdlib.h>
// ORACLE INT foo(INT, INT, INT, ADDR, ADDR, INT, ADDR, INT, ADDR, INT)
int foo(int r1, int r2, int r3, int* r4, int* r5, int r6,
int* stack1, int stack2, int* stack3, int stack4) {
return r1 + r2 + r3 + *r4 + *r5 + r6
+ *stack1 + stack2 + *stack3 + stack4;
}
int main() {
... |
Frky/scat | src/pintool/log/type.h |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "pin.H"
#include "read.h"
typedef struct {
string img_name;
ADDRINT img_addr;
string name;
unsigned int nb_param;
vector<bool> type_param;
} fn_type_t;
void read_parameters(std::ifstream &ifile, fn_type_t *fn)... |
Frky/scat | src/pintool/log/ftable.h |
#ifndef __FTABLE_H__
#define __FTABLE_H__
#include "../utils/functions_registry.h"
void log_ftable(ofstream &ofile) {
FID fid = 1;
ofile << _fn_nb - 1 << endl;
while (fid < _fn_nb) {
ofile << fn_img(fid) << ":" << fn_imgaddr(fid) << ":" << fn_name(fid) << endl;
fid++;
}
}
#endif
|
Frky/scat | test/proto/src/int__void.c |
#include <stdlib.h>
// ORACLE VOID foo(INT)
void foo(int b) {
int a;
int i;
a = rand();
for (i = 0; i < b; i++)
a += b;
// to avoid warning
i = a;
return;
}
int main(void) {
int i;
for (i = 0; i < rand() % 65536; i++)
foo(rand() % 65536);
return 0;
}
|
StratoAG/google-authenticator-wrappers | src/gauthctl.c | <filename>src/gauthctl.c
/* gauthctl -- manage secure gauth configs
* (c) 2018 <NAME>
* 2021 extended <NAME>, STRATO AG
* Licensed under 2-clause BSD license
*/
#define _GNU_SOURCE
#include <assert.h>
#include <errno.h>
#include <getopt.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <... |
StratoAG/google-authenticator-wrappers | src/gauth-test.c | <filename>src/gauth-test.c
/* gauth-test -- trivial helper to test gauth PAM stack
* (c) 2018 <NAME>
* Licensed under 2-clause BSD license
*/
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>
#include <security/pam_appl.h>
#include <security/pam_misc.h>
int main()
{
const struct pam_conv conv = {
mis... |
wjn-name/DNSQLiteDemo | DNSQLiteDemo/DNSQLiteDemo/DNBaseDB.h | //
// DNBaseDB.h
// DNSQLiteDemo
//
// Created by mainone on 16/9/8.
// Copyright © 2016年 wjn. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "sqlite3.h"
@interface DNBaseDB : NSObject
/**
* 创建表
*
* @param sql 执行的sql语句
* @param dataName 数据库名称
*/
- (void)createTable:(NSString *)sql... |
wjn-name/DNSQLiteDemo | DNSQLiteDemo/DNSQLiteDemo/UserModel.h | //
// UserModel.h
// DNSQLiteDemo
//
// Created by mainone on 16/9/8.
// Copyright © 2016年 wjn. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface UserModel : NSObject
@property (nonatomic, copy) NSString *nickName;
@property (nonatomic, copy) NSString *userID;
@property (nonatomic, copy) NSStr... |
wjn-name/DNSQLiteDemo | DNSQLiteDemo/DNSQLiteDemo/UserMethod.h | //
// UserMethod.h
// DNSQLiteDemo
//
// Created by mainone on 16/9/8.
// Copyright © 2016年 wjn. All rights reserved.
//
#import "DNBaseDB.h"
#import "UserModel.h"
@interface UserMethod : DNBaseDB
// 单利
+ (UserMethod *)shareUserMethod;
/**
* 创建数据库
*
* @param dbName 数据库名称
*/
- (void)createTableWithDataBase... |
k21971/NAO-3.6.6 | include/patchlevel.h | <filename>include/patchlevel.h
/* NetHack 3.6 patchlevel.h $NHDT-Date: 1583508697 2020/03/06 15:31:37 $ $NHDT-Branch: NetHack-3.6-Mar2020 $:$NHDT-Revision: 1.139 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) <NAME>, 2012. */
/* NetHack may be freely redistributed. See lice... |
t4thswm/Course | MGSwipeTableCell.framework/Headers/MGSwipeTableCell.h | <reponame>t4thswm/Course
/*
* MGSwipeTableCell is licensed under MIT license. See LICENSE.md file for more information.
* Copyright (c) 2016 <NAME> @MortimerGoro
*/
#import <UIKit/UIKit.h>
#import "MGSwipeButton.h"
/** Transition types */
typedef NS_ENUM(NSInteger, MGSwipeTransition) {
MGSwipeTransitionBorder... |
wangjianan186/HUD | Toast/Toast/RightView.h | <reponame>wangjianan186/HUD<filename>Toast/Toast/RightView.h
//
// RightView.h
// Toast
//
// Created by Bigbang on 15/10/10.
// Copyright © 2015年 Bigbang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface RightView : UIView
@end
|
wangjianan186/HUD | Toast/Toast/PayToast.h | //
// PayToast.h
// Toast
//
// Created by Bigbang on 15/10/10.
// Copyright © 2015年 Bigbang. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, PayResult) {
PaySuccess = 0,
PayFail,
};
@interface PayToast : UIView
- (instancetype)initWithFrame:(CGRect)frame showMessage:(NSString... |
wangjianan186/HUD | Toast/Toast/ViewController.h | //
// ViewController.h
// Toast
//
// Created by Bigbang on 15/10/10.
// Copyright © 2015年 Bigbang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
TerrickThib/SteeringBehaviors | raygame/WanderComponent.h | #pragma once
#include "SteeringComponent.h"
#include <Vector2.h>
#include "MoveComponent.h"
class WanderComponent :
public SteeringComponent
{
public:
WanderComponent(float circleDistance, float circleRadius, float wanderForce);
MathLibrary::Vector2 calculateForce() override;
private:
float m_circleDistance = 0;
... |
TerrickThib/SteeringBehaviors | raygame/Decision.h | <gh_stars>0
#pragma once
class Agent;
/// <summary>
/// Abstract class for all decisions
/// </summary>
class Decision
{
public:
virtual void makeDecision(Agent* actor, float deltaTime) = 0;
};
|
TerrickThib/SteeringBehaviors | raygame/WanderDecision.h | #pragma once
#include "Decision.h"
class WanderDecision :
public Decision
{
void makeDecision(Agent* agent, float deltaTime) override;
};
|
TerrickThib/SteeringBehaviors | raygame/Agent.h | <reponame>TerrickThib/SteeringBehaviors
#pragma once
#include "Actor.h"
#include "ActorArray.h"
#include "raymath.h"
#include "Transform2D.h"
class SteeringComponent;
class MoveComponent;
class Agent :
public Actor
{
public:
Agent(float x, float y, const char* name, float maxForce, float maxSpeed);
void start() ov... |
TerrickThib/SteeringBehaviors | raygame/FleeComponent.h | #pragma once
#include "Component.h"
#include <Vector2.h>
#include "MoveComponent.h"
#include "SteeringComponent.h"
class FleeComponent :
public SteeringComponent
{
public:
MathLibrary::Vector2 calculateForce() override;
};
|
TerrickThib/SteeringBehaviors | raygame/Enemy.h | #pragma once
#include "Agent.h"
class Enemy :
public Agent
{
public:
Enemy(float x, float y, const char* name, float maxForce, float maxSpeed, Actor* target);
void start() override;
bool getTargetInSight();
Actor* getTarget() { return m_target; }
void setTarget(Actor* target) { m_target = target; }
bool getIs... |
TerrickThib/SteeringBehaviors | raygame/SeekDecision.h | <filename>raygame/SeekDecision.h<gh_stars>0
#pragma once
#include "Decision.h"
class SeekDecision :
public Decision
{
public:
void makeDecision(Agent* agent, float deltaTime);
};
|
ShaoqiangPei/IncrementUpdate | BigNews-master/library/src/main/jni/err.h | #pragma once
#define err(n, ...) _exit(n)
#define errx(n, ...) _exit(n) |
mfkiwl/laika-gnss | examples/kalman/generated/loc_4.h | /******************************************************************************
* Code generated with sympy 1.5.1 *
* *
* See http://www.sympy.org/ for more information. *
... |
mfkiwl/laika-gnss | examples/kalman/generated/live.h | <reponame>mfkiwl/laika-gnss
/******************************************************************************
* Code generated with sympy 1.5.1 *
* *
* See http://www.sympy.org/ for more i... |
mfkiwl/laika-gnss | examples/kalman/generated/gnss.h | /******************************************************************************
* Code generated with sympy 1.5.1 *
* *
* See http://www.sympy.org/ for more information. *
... |
LEGO-SDK/Plugin-Volume | ios/Source/LGOVolumePlugin.h | //
// LGOVolumePlugin.h
// plugin
#import <Foundation/Foundation.h>
#import <LEGO-SDK/LGOProtocols.h>
@interface LGOVolumePlugin : LGOModule
@end
|
mkchmiel/VisualME7Logger | VisualME7Logger.Output/resources/ME7Logger/lib/example.c | /*
* EXAMPLE.C
*
* Example for using the library ME7Logger.dll / libME7Logger.so
*
* This example opens a connection and logs 50 samples, then terminates.
* mki, 03/2013
*/
#include <stdio.h>
#include <stdlib.h>
#include "ME7Logger.h"
ME7LoggerHandle handle;
ME7LoggerDataDesc * data_desc;
/*
* This is ... |
mkchmiel/VisualME7Logger | VisualME7Logger.Output/resources/ME7Logger/lib/ME7Logger.h | /*
* ME7Logger.h
*
* See README.txt and LICENSE.txt of ME7Logger distribution
*
* mki, 10/2011, 03/2013
*/
#ifndef _ME7LOGGER_H_
#define _ME7LOGGER_H_
#if defined(_WIN32) || defined(__CYGWIN__)
#define ME7LOGGERAPI __declspec( dllimport )
#define ME7LOGGERCALL __cdecl
#else
#define ME7LOGGERAPI
#define ME7... |
Webtrekk/Webtrekk-iOS-v5 | MappIntelligence/Properties/MIEcommerceParameters.h | //
// EcommerceProperties.h
// MappIntelligenceSDK
//
// Created by <NAME> on 26/10/2020.
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MIProduct.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, MIStatus) {
noneStatus = 0,
addedToBasket ... |
Webtrekk/Webtrekk-iOS-v5 | MappIntelligence/MappIntelligenceSDK.h | //
// MappIntelligenceSDK.h
// MappIntelligenceSDK
//
// Created by <NAME> on 22/07/2020.
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
//
#import "MappIntelligence.h"
|
Webtrekk/Webtrekk-iOS-v5 | MappIntelligence/Trackers/MIUIFlowObserver.h | //
// MIUIFlowObserver.h
// MappIntelligenceSDK
//
// Created by <NAME> on 3/11/20.
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MIDefaultTracker.h"
NS_ASSUME_NONNULL_BEGIN
@interface MIUIFlowObserver : NSObject
- (instancetype)initWith:(MIDefaultT... |
Webtrekk/Webtrekk-iOS-v5 | MappIntelligenceSDK-watchOS/MappIntelligenceSDK_watchOS.h | <gh_stars>1-10
//
// MappIntelligenceSDK_watchOS.h
// MappIntelligenceSDK-watchOS
//
// Created by <NAME> on 04/05/2020.
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MappIntelligenceSDK_watchOS/MappIntelligenceWatchOS.h>
//! Project version number fo... |
Webtrekk/Webtrekk-iOS-v5 | MappIntelligence/Network/Tracking Request/MIURLSizeMonitor.h | //
// MIURLSizeMonitor.h
// MappIntelligenceSDK
//
// Created by <NAME> on 3/7/20.
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface MIURLSizeMonitor : NSObject
@property int currentRequestSize;
@property int currentProductSize... |
Webtrekk/Webtrekk-iOS-v5 | MappIntelligence/Network/Tracking Request/MIRequestUrlBuilder.h | <gh_stars>1-10
//
// MIRequestUrlBuilder.h
// MappIntelligenceSDK
//
// Created by <NAME> on 3/7/20.
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MITrackerRequest.h"
#import "MIRequest.h"
NS_ASSUME_NONNULL_BEGIN
@interface MIRequestUrlBuilder : NSOb... |
Webtrekk/Webtrekk-iOS-v5 | MappIntelligence/include/MITrackingEvent.h | <reponame>Webtrekk/Webtrekk-iOS-v5
//
// TrackingEvent.h
// MappIntelligenceSDK
//
// Created by <NAME> on 3/5/20.
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface MITrackingEvent : NSObject
@property NSString *pageName;
@prop... |
Webtrekk/Webtrekk-iOS-v5 | MappIntelligence/include/MIFormField.h | <reponame>Webtrekk/Webtrekk-iOS-v5
//
// MIFormField.h
// MappIntelligenceSDK
//
// Created by <NAME> on 26.1.22..
// Copyright © 2022 Mapp Digital US, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface MIFormField : NSObject
@property (nonatomic, nullable) NSStrin... |
Webtrekk/Webtrekk-iOS-v5 | MappIntelligence/Network/MappIntelligenceBasicRequestBuilder.h | //
// MappIntelligenceBasicRequestBuilder.h
// MappIntelligenceSDK
//
// Created by <NAME> on 20/02/2020.
// Copyright © 2020 <NAME>. All rights reserved.
//
#ifndef MappIntelligenceBasicRequestBuilder_h
#define MappIntelligenceBasicRequestBuilder_h
#endif /* MappIntelligenceBasicRequestBuilder_h */
|
Webtrekk/Webtrekk-iOS-v5 | MappIntelligence/include/MIProperties.h | //
// MIProperties.h
// MappIntelligenceSDK
//
// Created by <NAME> on 2/12/20.
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, ConnectionType) {
cellular_2G = 0,
cellular_3G = 1,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.