text stringlengths 4 6.14k |
|---|
# /* ********************************************************************
# * *
# * (C) Copyright Paul Mensonides 2003-2005. *
# * *
# * Distributed unde... |
//
// ViewController.h
// ThemeManagerExample
//
// Created by sosobtc on 15/5/28.
// Copyright (c) 2015年 yinnieryou. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
/*
Copyright (c) 2015 Orson Peters <orsonpeters@gmail.com>
This software is provided 'as-is', without any express or implied warranty. In no event will the
authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, includin... |
//
// yas_type_traits.h
//
#pragma once
#include <array>
#include <type_traits>
#include <vector>
namespace yas {
template <typename T>
class has_operator_bool {
private:
template <typename U>
static auto confirm(U v) -> decltype(v.operator bool(), std::true_type());
static auto confirm(...) -> declt... |
#include "ctype0.h"
#include <stddef.h>
size_t detab(char *dest, const char *src)
{
int len = 0;
for (int j = 0; *(src + j); ++j) {
if (*(src + j) == '\t') {
for (int i = 0; i < 4; ++i) {
*dest = ' ';
++dest;
++len;
}
} else {
*dest = *(src + j);
++dest;
++len;
}
}
return len;... |
//
// Image.h
// Dribbble Shots
//
// Created by IEvgen Verkush on 11/22/15.
// Copyright © 2015 IEvgen Verkush. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Image : NSObject
@property (nonatomic, strong) NSString *hidpi;
@property (nonatomic, strong) NSString *normal;
@property (nonatomi... |
#ifndef __VR_CAMERA_H
#define __VR_CAMERA_H
#include <memory>
#include <glm/glm.hpp>
namespace vr
{
class SceneObject;
enum class CameraTrackingMode
{
none,
point,
object
};
class Camera
{
public:
inline auto getPosition() const noexcept { return position; }
inline void setPositio... |
//
// SettingViewController.h
// CoreDataCache-Demo
//
// Created by Jakey on 15/1/30.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//
#import "BaseViewController.h"
@interface SettingViewController : BaseViewController
@end
|
//
// GRMBrewery.h
// GM Taplist
//
// Created by Daniel Miedema on 11/2/14.
// Copyright (c) 2014 Growl Movement. All rights reserved.
//
#import "GRMBaseObject.h"
#import "GRMBeer.h"
@interface GRMBrewery : GRMBaseObject
@property NSInteger brewery_id;
@property NSString * city;
@property NSString *logo_url;
... |
#pragma once
#include "Enum.h"
#include "Value.h"
#include "Macro.h"
#include "Struct.h"
#include "../../../../server/2017 server/serverBoostModel/serverBoostModel/protocol.h"
//Àü¿ªº¯¼ö
extern HWND g_hWnd;
extern HINSTANCE g_hInst;
extern DWORD g_dwLightIndex;
extern D3DXVECTOR3 g_vLightDir;
extern bool g_bLog... |
//
// FlyingCubes.c
// GLESCompute
//
// Created by Michael Kwasnicki on 06.12.13.
//
//
#include "playgrounds/playground.h"
#include "Math3D.h"
#include "OpenGLES2Core.h"
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#define DEBUG 1
#define free_s( X ) free(... |
#ifndef __Flashes_H__
#define __Flashes_H__
#include "Effect.h"
class WhiteFlash : public Effect
{
public:
void Init();
void Do(float timer, int pos = 0, int row = 0);
};
class BlackFade : public Effect
{
public:
void Init();
void Do(float timer, int pos = 0, int row = 0);
};
#endif |
#ifndef __DS_TYPES_H__
#define __DS_TYPES_H__
#include <stddef.h>
#include <stdint.h>
/**
* typedefs
*/
typedef int64_t s64;
typedef int32_t s32;
typedef int16_t s16;
typedef int8_t s8;
typedef uint64_t u64;
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
struct list_head {
st... |
//
// SDHomegameCollectionViewCell.h
// SDDouYu
//
// Created by shendong on 16/5/17.
// Copyright © 2016年 com.sybercare.enterprise. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SDGameCategoryModel.h"
@interface SDHomegameCollectionViewCell : UICollectionViewCell
- (void)configureHomegameCollectionVi... |
#pragma once
#if defined(__WIN32__) && !defined(GLEW_STATIC)
#define GLEW_STATIC
#endif
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#ifdef __cplusplus
extern "C" {
#endif
int setupGLFW();
int setupGLEW();
void setupCoreGL();
#define TRI_RECT_SIZE (108 * sizeof(float))
#define TRI_RECT_VERTS 36
GLchar* shaderErro... |
// 20100301 Port from *USG_BLK.h, consolidate, WB_USG_BLK.h and USG_BLK.h
#pragma once
#include "USG_BLK_DEF.h" // 20100301
void init_wb_usg_blk_seg();
void wb_usg_blk_set_segment(unsigned int uiBlk, unsigned int uiSeg, USG_UNIT_SEG *stpUSG_Seg);
void wb_usg_blk_get_segment(unsigned int uiBlk, unsigned int u... |
//
// Copyright (c) 2008-2016 the Urho3D project.
//
// 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, modify, m... |
/*
liblightmodbus - a lightweight, multiplatform Modbus library
Copyright (C) 2017 Jacek Wieczorek <mrjjot@gmail.com>
This file is part of liblightmodbus.
Liblightmodbus is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software... |
/***************************************************************************/
/* */
/* psnamerr.h */
/* */
/* ... |
//
// MLHomeController.h
// MiaoLive
//
// Created by 王鑫 on 16/12/1.
// Copyright © 2016年 王鑫. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MLHomeController : UIViewController
@end
|
//
// BSUINavigationController.h
// ZombieTanks
//
// Created by Corey Schaf on 1/15/13.
//
//
#import <UIKit/UIKit.h>
@interface BSUINavigationController : UINavigationController
-(UIInterfaceOrientation) getCurrentOrientation;
@end
|
/*******************************************************************************
* FILE: rwsync.h
* TITLE: Header file for reader-writer synchronization
* application with pthreads.
* Date: October 25, 2012.
* Author: Rohit Sinha
* Emai... |
//
// CreateSubviewViewController.h
// CreateSubview
//
// Created by Sean Reed on 9/12/14.
// Copyright (c) 2014 seanreed.test. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BNRHypnosisView.h"
@interface CreateSubviewViewController : UIViewController
@property (strong, nonatomic) BNRHypnosisView *view... |
/***************************************************************
KinOS - Microkernel for ARM Evaluator 7-T
Seniors project - Computer Engineering
Escola Politecnica da USP, 2009
Felipe Giunte Yoshida
Mariana Ramos Franco
Vinicius Tosta Ribeiro
*/
/*
The program was based on the mutex program by AR... |
/**
* Copyright (c) 2021 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#pragma once
#include "saiga/core/imgui/imgui.h"
#include "saiga/core/imgui/imgui_renderer.h"
#include "saiga/core/imgui/imgui_timer_system.h"
#include "saiga/opengl/indexedVertexBuffer.h"
#includ... |
// Автор: Алексей Журавлев
// Описание: Класс CNotepadWindow. Cильно упрощённый текстовый редактор.
#pragma once
#include <Windows.h>
#include "EditControlWindow.h"
class CNotepadWindow {
public:
CNotepadWindow();
~CNotepadWindow();
// Зарегистрировать класс окна
static bool RegisterCla... |
#pragma once
#include "provider.h"
#include "../base/key.h"
#include <mini/common.h>
#include <windows.h>
#include <wincrypt.h>
namespace mini::crypto::capi {
//
// MS CryptoAPI key.
//
class key
: public base::key
{
public:
~key(
void
) override
{
destroy();
}
void
destr... |
/*
MIT LICENSE
Copyright 2014-2019 Inertial Sense, Inc. - http://inertialsense.com
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 u... |
#ifndef __LUALAYER
#define __LUALAYER
#include "LuaCpp.h"
#ifdef __cplusplus
extern "C" {
#endif
int luaLayer(lua_State *L);
#ifdef __cplusplus
}
#endif
#endif |
///////////////////////////////////////////////////////////////////////////////
// Name: wx/ownerdrw.h
// Purpose: interface for owner-drawn GUI elements
// Author: Vadim Zeitlin
// Modified by: Marcin Malich
// Created: 11.11.97
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr... |
/*
Bulllord Game Engine
Copyright (C) 2010-2017 Trix
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including co... |
//
// Plane.h
// RCTARKit
//
// Created by Zehao Li on 7/10/17.
// Copyright © 2017 HippoAR. All rights reserved.
//
#import <SceneKit/SceneKit.h>
#import <ARKit/ARKit.h>
@interface Plane : SCNNode
- (instancetype)initWithAnchor:(ARPlaneAnchor *)anchor isHidden:(BOOL)hidden;
- (void)update:(ARPlaneAnchor *)anchor... |
#import "RuleMatcher.h"
#define STATUS_ITEM_VIEW_WIDTH 24.0
#pragma mark -
@class StatusItemView;
@interface MenubarController : NSObject {
@private
StatusItemView *_statusItemView;
}
@property (nonatomic) BOOL hasActiveIcon;
@property (nonatomic, strong, readonly) NSStatusItem *statusItem;
@property (nonatomi... |
// ****************************************************************
// Copyright (c) 2013 by Francisco Javier Paz Menendez
//
// This content is licensed under the MIT License. See LICENSE.txt
// in the top directory of this distribution for more information
// **********************************************************... |
//
// UIAlertController+DDRotate.h
// DDCategoryDemo
//
// Created by 李林刚 on 2017/10/25.
// Copyright © 2017年 huami. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIAlertController (DDRotate)
@end
|
#ifndef DISPLAYLIST_H
#define DISPLAYLIST_H
#include <GL/gl.h>
#include <stdbool.h>
#include <stdint.h>
#include "types.h"
extern displaylist_t *dl_alloc();
extern void dl_append(displaylist_t *dl, packed_call_t *call);
extern void dl_append_block(displaylist_t *dl, block_t *block);
extern void dl_call(displaylist_t ... |
#include <unistd.h>
#include <stdio.h>
#include "circa/circa.h"
// This script will constantly write a script to a file, and will constantly
// refresh and run that module, to make sure that block reloading works correctly.
void write_script_to_file(int key)
{
FILE* file = fopen("file_to_reload.ca", "w");
... |
//
// Copyright (c) 2016 Advanced Micro Devices, Inc. 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 restriction, including without limitation the rights
/... |
#include <stdio.h>
#include <stdlib.h>
struct doubly_linked_list
{
int val;
struct doubly_linked_list* prev;
struct doubly_linked_list* next;
};
typedef struct doubly_linked_list d_link;
d_link* create(){
d_link* link = (d_link*)malloc(sizeof(d_link));
link->val = 0;
link->prev=NULL;
link->next=NULL;
retur... |
#ifndef __STACK_H__
#define __STACK_H__
typedef enum SR {
STACK_OK = 0,
STACK_ERROR = -1
} STACK_RETURN;
typedef int StackItem;
struct StackStruct {
int capacity;
int top;
StackItem* stack;
};
typedef struct StackStruct StackType;
STACK_RETURN init_stack(StackType* sp, int max_size);
STACK_RETURN dest... |
#ifndef SkSize_DEFINED
#define SkSize_DEFINED
template <typename T> struct SkTSize {
T fWidth;
T fHeight;
void set(T w, T h) {
fWidth = w;
fHeight = h;
}
/** Returns true iff fWidth == 0 && fHeight == 0
*/
bool isZero() const {
return 0 == fWidth && 0 == fHeight... |
/* Copyright (c) 2010-2013 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "str.h"
#include "env-util.h"
#include "execv-const.h"
#include "write-full.h"
#include "restrict-access.h"
#include "master-interface.h"
#include "master-service.h"
#include <stdlib.h>
#include <... |
#ifndef CommandTree_h
#define CommandTree_h
#include "unordered_map"
#include "functional"
class CommandNode{ public:
CommandNode* parrent=0;
std::string info;
std::function<void(void)> func;
std::unordered_map<std::string,CommandNode*> leafs;
CommandNode() = default;
CommandNode( CommandN... |
#ifndef ATOM_H
#define ATOM_H
#include "term.h"
#include "variable.h"
class Atom : public Term
{
public:
Atom (std::string s);
bool match(Term &term);
std::string symbol() const;
private:
std::string _symbol;
};
#endif
|
#pragma once
class INIReader
{
public:
INIReader(string mediakey);
float getf(string key);
int geti(string key);
string gets(string key);
~INIReader();
private:
unordered_map<string, string> data;
void readString(string str);
};
|
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSExpression.h"
#import "IBDocumentArchiving.h"
@class NSString;
@interface NSExpression (IBDocumentArchiving) <IBDocumentArchiving>
+ (id)instantiateWithDocumentUnarchi... |
//
// JLAlertView.h
// JLAlertView
//
// Created by skyline on 16/4/6.
// Copyright © 2016年 skyline. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for JLAlertView.
FOUNDATION_EXPORT double JLAlertViewVersionNumber;
//! Project version string for JLAlertView.
FOUNDATION_EXPORT const u... |
/*
* _math_manip.c
*
* Created on: Jan 30, 2016
* Author: enerccio
*/
#define __INCLUDED_FROM_CLIB
#include <math.h>
#include "intinc/math.h"
|
//
// The MIT License (MIT)
//
//
// Copyright (c) 2014 Broad Institute
//
//
// 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 rig... |
// Copyright 2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
#ifndef PLAYGROUND_BINDINGS_MODULES_MYSQL_CONNECTION_MESSAGES_H_
#define PLAYGROUND_BINDINGS_MODULES_MYSQL_CONNECTION_MESSAGES_H_
#include <me... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code mu... |
#import <UIKit/UIKit.h>
@interface KPBMoreInfoViewController : UIViewController
@end
|
//
// XMBasePayloadModel.h
// XMMobileConfig
//
// Created by chi on 15/6/4.
// Copyright (c) 2015年 chi. All rights reserved.
//
//The MIT License (MIT)
//
//Copyright (c) 2015 devcxm <devcxm@qq.com>
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated ... |
// Copyright (c) 2014, ultramailman
// This file is licensed under the MIT License.
#include <assert.h>
#include <stdio.h>
#include <time.h>
#include "rhtable.h"
#include "rhtable_safe.h"
typedef struct{
uint32_t n;
} Key;
typedef struct{
uint64_t index;
} Val;
int KeyEq(Key const * a, Key const * b)
{
return... |
//
// FTESettingsViewController.h
// FreeTamilEbook
//
// Created by Kishore on 23/1/14.
// Copyright (c) 2014 KishoreK. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FTESettingsViewController : FTEBaseViewController
- (IBAction)nightModeTapped:(id)sender;
- (IBAction)resetTapped:(id)sender;
- (IBAc... |
//
// IYWPushService.h
//
//
// Created by huanglei on 14/12/16.
// Copyright (c) 2014年 taobao. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol IYWMessage;
@class YWPerson;
/// Push服务错误域
FOUNDATION_EXTERN NSString *const YWPushServiceDomain;
/**
Push服务
*/
@protocol IYWPushService <NSObje... |
//
// XMDatePicker.h
// XMDatePicker
//
// Created by guoran on 2017/3/6.
// Copyright © 2017年 hanna. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "XMDateEnum.h"
typedef enum{
PickerViewTypeLongSperator = 1,//Default
PickerViewTypeDynamicSperator,
PickerViewTypeStaticSperator
} PickerViewTyp... |
#include "figure.h"
#define FIGURE_LENGTH 4
/*
0 1 2 3 0 1 1
4 5 6 7 5 6 4 5
8 9 A B 8
C D E F
*/
/* ------------------------------------------------------------------------ */
static unsigned int get_figure(int fig, int angle)
{
static const unsigned short c_figures[] = {... |
//
// AOJ0074.c
//
//
// Created by n_knuu on 2014/03/03.
//
//
#include <stdio.h>
int main(void) {
int hour,minute,second,rest,rh,rm,rs;
while (1) {
scanf("%d %d %d\n",&hour,&minute,&second);
if (hour==-1&&minute==-1&&second==-1) break;
rest=7200-(hour*3600+minute*60+second);
... |
//
// Created by Bartel on 16.07.15.
//
#import <Foundation/Foundation.h>
#import "IVISPERWireframePresentationType.h"
@protocol IVISPERWireframePresentationTypeModal <IVISPERWireframePresentationType>
-(UIModalPresentationStyle)presentationStyle;
-(void)setPresentationStyle:(UIModalPresentationStyle)presentationStyl... |
/*
Author: Steve Wood <swood@cromulence.com>
Copyright (c) 2016 Cromulence LLC
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 us... |
//Author//
//Miroslav Vitkov 2013
//sir.vorac(at)gmail(dot)com
//License//
//Beerware
#include "OnOffController.h"
#include <stdlib.h>
#include <string.h>
error_t ONOFFcreate(ONOFF_o **obj, const ONOFFconfig_s *const config){
if(!config)
return ERROR_NULL_POINTER;
*obj = (ONOFF_o*)malloc(sizeof(ONOFF_o));
if(... |
#ifndef _onewire_h_
#define _onewire_h_
unsigned char onewire_reset(void);
void onewire_bit_write(unsigned char b);
unsigned char onewire_bit_read(void);
void onewire_byte_write(unsigned char b);
unsigned char onewire_byte_read(void);
unsigned char onewire_read(unsigned char bits);
#endif
|
#include <sys/inotify.h>
#include <unistd.h>
#include <limits.h>
#include <cups/cups.h>
#define BUF_LEN (sizeof(struct inotify_event) + NAME_MAX + 1)
#define WATCHPATH "/home/ian/.PRINT"
int main(int argc, char *argv[]) {
cups_dest_t *dest;
char *printer;
int notify = inotify_init();
if (inotify_add_watch(no... |
/**
#*******************************************************************************
# Projet : VOR-005
# Sous projet : calibrateur de servo moteurs
# Auteurs: Gille De Bussy
#
# Classe potar: fichier d'entete
Classe qui s'utilise avec un timer
Elle filtre les faibles variations
jusqu'a ce qu'elles soient suffisement... |
// This file was generated based on 'C:\ProgramData\Uno\Packages\UnoCore\0.13.2\Source\Uno\UX\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#ifndef __APP_UNO_U_X_VALUE_CHANGED_ARGS__FUSE_FONT_H__
#define __APP_UNO_U_X_VALUE_CHANGED_ARGS__FUSE_FONT_H__
#include <app/Uno.EventArgs.h>
#includ... |
/*
* adxl345.h
*
* Created: 9/7/2015 3:53:35 PM
* Author: Chip
*/
#ifndef MOD_ADXL345_H_
#define MOD_ADXL345_H_
#define MADX_I2C_ADRS 0x53
void mod_adxl_init();
void mod_adxl_sendCmd( uint8_t reg, uint8_t val );
void mod_adxl_readReg( uint8_t reg, uint8_t* val );
void mod_adxl_readData( uint8_t reg, uint8_t... |
#include "main_inc.h"
int mainIwdg(void)
{
/*系统延时定时器初始化*/
SysTickDelay_DriverRegister(SysTickDelayF103_Init, SysTickDelayF103_DelayMs,
SysTickDelayF103_DelayUs);
SysTickDelay_Init();
/*系统LED初始化*/
DeviceLed_DriverRegister(BOARD_LED_RED, DeviceLedF103_RedInit, DeviceLedF103_RedSet,
... |
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtWidgets module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licens... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_environment_w32_spawnvp_22a.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-22a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input fr... |
//
// NCSV.h
// NNRObC
//
// Created by Karl-Johan Alm on 20/11/14.
// Copyright (c) 2014 Me. All rights reserved.
//
#ifndef included_NCSV_h
#define included_NCSV_h
#include <stdio.h>
#include "N.h"
N_in();
struct NCSV {
int entries; ///< Number of entries
int properties;///< Number of pro... |
//
// TTContentViewController.h
// WeiXinHot
//
// Created by Eason on 06/04/2015.
// Copyright (c) 2015 www.xyzs.com. All rights reserved.
//
#import "TTBaseViewController.h"
@interface TTContentViewController : TTBaseViewController
@end
|
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_SpaceBunnyTestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_SpaceBunnyTestsVersionString[];
|
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import <IDEFoundation/IDELocalizationStream.h>
@class NSMutableArray;
@interface _IDELocalizationStreamReturn : IDELocalizationStream
{
NSMutableArray *_remainingDataToPublis... |
#ifndef KEYPADLINCDEVICE_H
#define KEYPADLINCDEVICE_H
#include "InsteonDevice.h"
class KeypadLinc: public InsteonDevice{
private:
// unsigned char mButtonGroups[8];
public:
KeypadLinc(std::string name, InsteonID id, InsteonModem *p);
~KeypadLinc();
virtual void turnOnOrOff(bool on, unsigned char level, unsi... |
#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
@interface RNAppMetadata : NSObject <RCTBridgeModule>
@end
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int64_t_fscanf_square_64b.c
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-64b.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: fscanf Read data from the console using fscanf()
... |
/*
* variable_store.h
*
* Created on: Apr 22, 2016
*/
#ifndef INCLUDES_MCC_TAC_VARIABLE_STORE_H_
#define INCLUDES_MCC_TAC_VARIABLE_STORE_H_
#include <map>
#include <memory>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "mcc/tac/scope_manager.h"
#include "mcc/tac/scope.h"
#includ... |
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... |
#include "http.h"
struct http_message_s {
unsigned short http_version_major, http_version_minor;
enum http_message_type type;
};
int http_message_get_type(http_message* msg) {
return msg->type;
}
|
//
// Extensions.h
// RadialLayer
//
// Created by Soheil Yasrebi on 11/15/15.
// Copyright © 2015 Soheil Yasrebi. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface UITableViewCell (Animation)
@end
@interface UIImageView (Animation)
@end
@interface UIButton (Animation)... |
//
// AppDelegate.h
// CusNavigationAnimation
//
// Created by JianRongCao on 15/7/24.
// Copyright (c) 2015年 JianRongCao. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SNNavigationController.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window... |
/****************************************************************************/
/* Copyright (c) 2013, Trevin Liberty
*
* 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... |
#pragma once
#include "CommandList.h"
namespace cmd {
class Parallel : public CommandList {
// ----------------------------------------
//
// MEMBER
//
// ----------------------------------------
public:
protected:
private:
int completeCount;
// ----------------------------------------
/... |
#pragma once
#include <BF/Application/Scene.h>
#include <BF/System/Log.h>
class AndroidTestScene : public BF::Application::Scene
{
public:
AndroidTestScene();
~AndroidTestScene();
private:
void Initialize() override;
void Load() override;
void Update() override;
void FixedUpdate() override;
void Render() overr... |
//
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: ./suggest/src/java/org/apache/lucene/search/spell/StringDistance.java
//
#include "J2ObjC_header.h"
#pragma push_macro("INCLUDE_ALL_OrgApacheLuceneSearchSpellStringDistance")
#ifdef RESTRICT_OrgApacheLuceneSearchSpellStringDistance
#define INCLUDE_A... |
#pragma once
#include "../base.h"
namespace scene
{
using namespace object;
typedef vector<obj_ptr_t> objects_t;
typedef objects_t::iterator scene_iter_t;
class scene_t
{
public:
scene_t ();
~scene_t();
// push back one object
void push( obj_ptr_t const ... |
//
// SYMLMarkdownParser-Internals.h
// Syml
//
// Created by Harry Jordan on 17/01/2013.
// Copyright (c) 2013 Harry Jordan. All rights reserved.
//
// Released under the MIT license: http://opensource.org/licenses/mit-license.php
//
#import "SYMLMarkdownParserAttributes.h"
#import "SYMLAttributedObjectCollectio... |
#pragma once
#include <QObject>
#include <QString>
#include <qmltoolbox/AbstractMessageReceiver.h>
namespace qmltoolbox
{
/**
* @brief
* Message receiver to forward output messages to a QML item
*/
class QMLTOOLBOX_API QmlMessageForwarder : public QObject, public AbstractMessageReceiver
{
Q_OBJECT
sig... |
#pragma once
#include <memory>
#include <Wt/WInteractWidget.h>
namespace sparc
{
class ThreeWidget;
namespace Three
{
/// Represents a generic scene node in a Three scene.
class Object3D
{
public:
/// Fully qualified reference access to this instance in Js.
std::string jsRef() const;
/// Pendin... |
/*
Copyright (c) 2015 - present Advanced Micro Devices, Inc. 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 restriction, including without limitation the rights
to us... |
#ifndef LYNX_LEPUS_CODE_GENERATOR_H_
#define LYNX_LEPUS_CODE_GENERATOR_H_
#include "lepus/visitor.h"
#include "lepus/op_code.h"
#include "lepus/value.h"
#include "lepus/function.h"
#include "lepus/vm_context.h"
#include <vector>
#include <unordered_map>
namespace lepus {
struct VariableNameInfo {
in... |
//
// StubFileUtil.h
// Radars
//
// Created by Toni on 07/10/15.
// Copyright © 2015 Toni. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface StubFileUtil : NSObject
+ (NSDictionary *)dictionaryWithJSONStubFileNamed:(NSString *)stubFilename;
@end
|
// NOTE - eventually this file will be automatically updated using a Perl script that understand
// the naming of test case files, functions, and namespaces.
#ifndef _TESTCASES_H
#define _TESTCASES_H
#ifdef __cplusplus
extern "C" {
#endif
// declare C good and bad functions
#ifndef OMITGOOD
/* BEGIN-AUT... |
/*
100% free public domain implementation of the SHA-1 algorithm
by Dominik Reichl <dominik.reichl@t-online.de>
Web: http://www.dominik-reichl.de/
Version 1.6 - 2005-02-07 (thanks to Howard Kapustein for patches)
- You can set the endianness in your files, no need to modify the
header file of the CSHA1 class a... |
#pragma once
// Helper functions for error handling
// 2.5.6 Error handling
// 3.6 Error handling
#include "SYCL/detail/common.h"
#include "SYCL/detail/debug.h"
#include "SYCL/detail/error_code.h"
#include "SYCL/exception.h"
namespace cl {
namespace sycl {
// Forward declaration
class context;
namespace detail {
... |
//
// HRTabbar.h
// TabarDefined
//
// Created by sincere on 15/12/9.
// Copyright © 2015年 sincere. All rights reserved.
//
#import <UIKit/UIKit.h>
@class HRTabbar;
@protocol TabBarDelegate <NSObject>
@optional
- (void)tabbarDidClickMiddleButon : (HRTabbar *)tabbar;
@end
@interface HRTabbar : UITabBar
@proper... |
/**
* See Copyright Notice in picrin.h
*/
#include "picrin.h"
static void
setup_default_env(pic_state *pic, struct pic_env *env)
{
pic_put_variable(pic, env, pic_obj_value(pic->sDEFINE_LIBRARY), pic->uDEFINE_LIBRARY);
pic_put_variable(pic, env, pic_obj_value(pic->sIMPORT), pic->uIMPORT);
pic_put_variable(pic,... |
// Copyright (c) 2011-2013 The Testcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef Testcoin_QT_PEERTABLEMODEL_H
#define Testcoin_QT_PEERTABLEMODEL_H
#include "main.h"
#include "net.h"
#include <QAb... |
#ifndef SOUNDMANAGER_H
#define SOUNDMANAGER_H
#include "portaudio.h"
#include "sndfile.h"
#include <vector>
#include <string>
#define SAMPLE_RATE 44100
#define NUM_MUSICS 32
#define PAUSE_FADE_RATE (0.996f)
#define PAUSE_FADE_LIMIT (0.01f)
#define UPDATE_GAIN_RATE (0.00005f)
#define UPDATE_BALANCE_RATE (0.0001f)
#d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.