text stringlengths 4 6.14k |
|---|
#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
#include<string.h>
int main(){
int pid1,pid2,pid3,pid4;
int p1[2],p2[2];
char bufr[30],rev[30];
int countL=0,countU=0,i=-1,j=0,countV=0,len;
pipe(p1);
pipe(p2);
if(pid1=fork()==0){
if(pid2=fork()==0){
read(p2[0],bufr,sizeof(bu... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: ... |
#define NC0_As 0x0E
#define NC0_B 0x0D
#define NC1_C 0x15
#define NC1_Cs 0x1E
#define NC1_D 0x1D
#define NC1_Ds 0x26
#define NC1_E 0x24
#define NC1_F 0x2D
#define NC1_Fs 0x2E
#define NC1_G 0x2C
#define NC1_Gs ... |
#include "src/math/float/log10f.c"
#include "log.h"
int main(void)
{
test(log10f, log10);
}
|
#include <math.h>
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#define THREAD_COUNT 4
typedef struct {
int start;
int end;
} range_t;
void *calculate_range(void* range) {
range_t* curr_range = (range_t*)range;
void* result = (void*)1;
for (int i = curr_range->start; i < curr_range... |
#ifndef VECTOR4_H
#define VECTOR4_H
#include "gamemath_internal.h"
GAMEMATH_NAMESPACE_BEGIN
GAMEMATH_ALIGNEDTYPE_PRE class GAMEMATH_ALIGNEDTYPE_MID Vector4 : public AlignedAllocation
{
friend class Matrix4;
friend GAMEMATH_INLINE Vector4 operator +(const Vector4 &a, const Vector4 &b);
friend GAMEMATH_INLINE Vector4 ... |
//
// LJRouterPath.h
// LJControllerRouterExample
//
// Created by Jinxing Liao on 12/14/15.
// Copyright © 2015 Jinxing Liao. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface LJRouterPath : NSObject
@property (nonatomic, strong) NSString *schema;
@property (nonatomic, strong) NSArray *compo... |
//
// EPTTimer.h
// PodcastTimer
//
// Created by Eric Jones on 6/7/14.
// Copyright (c) 2014 Effective Programming. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol EPTTimerDelegate <NSObject>
- (void)timerFired;
@end
@interface EPTTimer : NSObject
@property (nonatomic) id<EPTTimerDelegat... |
#pragma once
#include "platform.h"
#include "value.h"
#include "vm.h"
#include "result.h"
#include <memory>
#include <vector>
namespace imq
{
class IMQ_API ScriptFunction : public QFunction
{
public:
ScriptFunction(const String& funcName, Context* outerCtx, const std::shared_ptr<VBlock> block, const std::vector... |
//
// AAAreaspline.h
// AAChartKit
//
// Created by An An on 17/3/15.
// Copyright © 2017年 An An. All rights reserved.
//*************** ...... SOURCE CODE ...... ***************
//***...................................................***
//*** https://github.com/AAChartModel/AAChartKit ***
//*** https://git... |
#include <pthread.h>
#include <assert.h>
int g = 17; // matches expected precise read
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&B);
pthread_mutex_lock(&C);
g = 42;
pt... |
#pragma once
#include "animations/display.h"
#include "animations/AnimationProgram.h"
#include "animations/PaintPixel.h"
#include "blewiz/BLECharacteristic.h"
#include "freertos/task.h"
class BadgeService : public BLEService {
public:
BadgeService(Display &display, AnimationProgram &animationProgram);
virtu... |
//
// Copyright(c) 2017-2018 Paweł Księżopolski ( pumexx )
//
// 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, m... |
#ifndef LWEXML_H
#define LWEXML_H
#include <LWCore/LWText.h>
#include <functional>
#include "LWETypes.h"
#define LWEXMLMAXNAMELEN 32
#define LWEXMLMAXVALUELEN 256
#define LWEXMLMAXTEXTLEN 1024
struct LWXMLAttribute {
char m_Name[LWEXMLMAXNAMELEN];
char m_Value[LWEXMLMAXVALUELEN];
};
struct LWEXMLNod... |
//
// SLWordViewController.h
// 百思不得姐
//
// Created by Anthony on 17/3/30.
// Copyright © 2017年 SLZeng. All rights reserved.
//
#import "SLTopicViewController.h"
@interface SLWordViewController : SLTopicViewController
@end
|
//
// YWPayViewController.h
// YuWa
//
// Created by 黄佳峰 on 16/10/10.
// Copyright © 2016年 Shanghai DuRui Information Technology Company. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,PayCategory){
PayCategoryQRCodePay=0, //二维码支付
PayCategoryWritePay //手写支付
};
@int... |
/****************************************************************************
*
* Copyright (c) 2005 - 2012 by Vivante Corp. All rights reserved.
*
* The material in this file is confidential and contains trade secrets
* of Vivante Corporation. This is proprietary information owned by
* Vivante Corporation... |
@import Foundation;
#import "FDObjectTransformerAdapter.h"
@interface FDURLComponentsTransformerAdapter : NSObject
<
FDObjectTransformerAdapter
>
@end
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "search.h"
#include "marcov.h"
#define ORDER 2
int main(int argc, char **argv) {
int limit = 128;
if(argc > 1) {
limit = atoi(argv[1]);
}
void *strings = NULL;
struct timespec t;
clock_gettime(CLOCK_MONOTONIC, &t);
srand... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin developers
// Copyright (c) 2015-2020 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_POLICY_POL... |
/*
* main.c
*
* Created on: 31 May 2016
* Author: ajuaristi <a@juaristi.eus>
*/
#include <stdio.h>
#include <signal.h>
#include <getopt.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <linux/videodev2.h>
#include <sys/stat.h>
#include "utils.h"
#include "appbase.h"
#include "uvc.h"
#... |
//estrutura com os dados lidos
struct {
float tensao;
float corrente;
float temperaturaBaterias;
float temperaturaCockpit;
float velocidade; //velocidade calculada do carro
double hodometro; //armazena a quantidade de metros percorridos
} dados;
//estrutura com as configuracoes do controlador
struct {
lo... |
/*******************************************************
* File name: pando_subdevice.h
* Author: razr
* Versions: 1.0
* Description: pando iot embeded framework.
* History:
* 1.Date: Sep 11, 2015
* Author: razr
* Modification: initial code
*********************************************************/
#... |
#ifndef ZOMBIE_HUMANPLAYER_H
#define ZOMBIE_HUMANPLAYER_H
#include "device.h"
#include "physics/moving/unit.h"
#include "player.h"
#include "physics/moving/unit.h"
#include <glm/gtx/rotate_vector.hpp>
namespace zombie {
class HumanPlayer : public Player {
public:
HumanPlayer(DevicePtr device, std::unique_ptr<Un... |
// Copyright (c) 2014 The Okcash Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#ifndef COIN_STATE_H
#define COIN_STATE_H
#include <string>
#include <limits>
#include "sync.h"
enum eNodeType
{
NT_FULL =... |
/***********************************************************************
* Copyright (c) 2015 Pieter Wuille *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or https://www.opensource.org/licenses/mit-license.php.*
***************************... |
// This file was generated based on 'C:\ProgramData\Uno\Packages\Uno.Collections\0.13.2\Extensions\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#ifndef __APP_UNO_COLLECTIONS_UNION_ENUMERATOR__OUTRACKS_SIMULATOR_BYTECODE_STATEMENT_H__
#define __APP_UNO_COLLECTIONS_UNION_ENUMERATOR__OUTRACKS... |
#ifndef SKULL_SERVICE_TYPES_H
#define SKULL_SERVICE_TYPES_H
#include "api/sk_txn.h"
#include "api/sk_service.h"
struct _skull_service_t {
sk_service_t* service;
const sk_txn_t* txn;
sk_txn_taskdata_t* task;
// If freezed == 1, user cannot use set/get apis to touch data. Instead
// user s... |
#ifndef APPSETTINGSSTORAGE_H
#define APPSETTINGSSTORAGE_H
#include <QDebug>
#include <QCoreApplication>
#include <QString>
#include <QMap>
#include <QSettings>
#include <QDir>
class AppSettingsStorage
{
public:
enum Settings {
ACCOUNT_LOGIN = 0,
ACCOUNT_PASS,
APP_RUN_ON_BOOT,
APP_S... |
#include <stdio.h>
int main() {
int current_char, previous_char;
printf("Input text below, multiple spaces will be escaped:\n");
previous_char = -1;
while((current_char = getchar()) != EOF) {
if (!(current_char == ' ' && previous_char == ' ')) {
putchar(current_char);
}
previous_char = cu... |
6650 #include "types.h"
6651 #include "x86.h"
6652
6653 void*
6654 memset(void *dst, int c, uint n)
6655 {
6656 if ((int)dst%4 == 0 && n%4 == 0){
6657 c &= 0xFF;
6658 stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4);
6659 } else
6660 stosb(dst, c, n);
6661 return dst;
6662 }
6663
6664 int
6665 memcmp(const... |
#ifndef LM75_H_
#define LM75_H_
/******************************************************************************/
/** \file Lm75.h
*******************************************************************************
*
* \brief This module allows to read the temperature of an attached lm75
* devic... |
#include<stdio.h>
#include<math.h>
#include<conio.h>
#include<ctype.h>
int i,j,cash=100;
void wheel();
void game(int r);
void game_over();
int suit_bet();
int cash_bet();
int roll_wheel();
int roll_dice();
void wheel_count(int c,int h,int s);
void dice_count(int d,int h);
int w[9][9]={
{32,32,32,32,2,32,32,32,32... |
#include "..\stdafx.h"
#pragma once
class CMutex
{
private:
HANDLE m_mutex;
bool m_isLocked;
void Lock()
{
WaitForSingleObject(this->m_mutex, INFINITE);
}
void Unlock()
{
if (this->m_isLocked)
{
this->m_isLocked = false;
ReleaseMutex(this->m_mutex);
}
}
public:
CMutex()
{
this->m_mutex =... |
/********************************************************************************
* The MIT License (MIT) *
* *
* Copyright (C) 2016 Alex Nolasco ... |
//
// ViewController.h
// MKDevice
//
// Created by Michal Konturek on 18/11/2013.
// Copyright (c) 2013 Michal Konturek. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@property (nonatomic, strong) IBOutlet UIButton *button;
- (IBAction)onAction:(id)sender;
@end
|
//
// UIBarButtonItem+initWithImageName.h
// lottowinnersv2
//
// Created by Mac Mini on 4/17/14.
// Copyright (c) 2014 com.qaik. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIBarButtonItem (initWithImageName)
+ (instancetype)barbuttonItemWithImage:(UIImage *)image target:(id)target action:(SEL)act... |
#ifndef _SIMPLE_POLYGON_H
#define _SIMPLE_POLYGON_H
#include <vector>
#include <QtOpenGL>
#include "AGVector.h"
#include "Triangulate.h"
#define MAX_DIST 0.1
using std::vector;
class SimplePolygon {
public:
SimplePolygon();
~SimplePolygon();
void DrawPolygon();
void Clear();
void Update(AGVector v,... |
//
// XCPreferenceController.h
// XCRegex
//
// Created by alexiuce on 2017/6/22.
// Copyright © 2017年 zhidier. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface XCPreferenceController : NSWindowController
@end
|
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
@class IBConnection, NSSet, NSString;
@interface IBDragConnectionContext : NSObject
{
NSString *connectionName;
long long relationshipType;
NSStri... |
/*
* engine.h
*
* Created on: Mar 9, 2017
* Author: sushil
*/
#ifndef ENGINE_H_
#define ENGINE_H_
class InputMgr;
#include <GfxMgr.h>
#include <inputMgr.h>
#include <EntityMgr.h>
#include <gameMgr.h>
#include <Types.h>
#include <UiMgr.h>
#include <SoundMgr.h>
#include <Grid.h>
class EntityMgr;
class Eng... |
//
// ViewController.h
// Examples
//
// Created by Tim Moose on 2/11/14.
// Copyright (c) 2014 Tractable Labs. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <TLIndexPathTools/TLTableViewController.h>
@interface SelectorTableViewController : TLTableViewController
@end
|
/*
* PanoramaGL library
* Version 0.1
* Copyright (c) 2010 Javier Baez <javbaezga@gmail.com>
*
* 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/LIC... |
/*
* Copyright (c) Tomohiro Iizuka. All rights reserved.
* Licensed under the MIT license.
*/
#ifndef SYSTEM_HASHEDRAWARRAY_H_
#define SYSTEM_HASHEDRAWARRAY_H_
namespace alinous {
template <typename T, typename H, typename C>
class HashedRawArray {
public:
void* operator new(size_t size) throw() {
ret... |
#ifndef MYY_DATA_SECTION_H
#define MYY_DATA_SECTION_H 1
#include <stdint.h>
struct data_section_status {
unsigned int allocated;
void * address;
};
struct data_symbol {
uint32_t id;
uint32_t align;
uint32_t size;
uint8_t * name;
uint8_t * data;
};
struct data_section {
struct data_symbol * symbols;
uint32_t... |
//**********************************************
//Singleton Texture Manager class
//Written by Ben English
//benjamin.english@oit.edu
//
//For use with OpenGL and the FreeImage library
//**********************************************
#ifndef TextureManager_H
#define TextureManager_H
#include <windows.h>
... |
#import "MOBProjection.h"
@interface MOBProjectionEPSG102713 : MOBProjection
@end
|
#ifndef __UIDICTIONARY_H
#define __UIDICTIONARY_H
#include <System/Tools/Array.h>
#include <System/Tools/HashHelper.h>
namespace suic
{
template<typename TKey, typename TValue, typename Comparer>
class Dictionary1
{
public:
Dictionary1()
{
Initialize(0);
}
Dictionary1(int capacity)
... |
/*******************************************************************************
@file startup.h
@author Rajmund Szymanski
@date 11.12.2019
@brief Startup file header for iar c compiler.
*******************************************************************************/
#pragma once
/***********************... |
#ifndef TELEMETRY_H
#define TELEMETRY_H
#include <Arduino.h>
#include <HardwareSerial.h>
#include "common.h"
#include "queuelist.h"
static const unsigned WHEEL_EVENT_MIN_INTERVAL = 5;
class Telemetry
{
public:
Telemetry(HardwareSerial port, unsigned speed);
void serialPolling();
void wheelEvent(rot_one l... |
//
// parser.h
// homework_4
//
// Created by Asen Lekov on 12/29/14.
// Copyright (c) 2014 fmi. All rights reserved.
//
#ifndef __homework_4__parser__
#define __homework_4__parser__
#include <string>
class XMLParser {
public:
//private:
bool is_open_tag(const std::string& tag) const;
bool is_close_tag(c... |
/********************************************************************
Software License Agreement:
The software supplied herewith by Microchip Technology Incorporated
(the "Company") for its PIC(R) Microcontroller is intended and
supplied to you, the Company's customer, for use solely and
exclusively on Microchip ... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "CDStructures.h"
#import "IDEProvisioningSigningIdentity-Protocol.h"
@class NSDate, NSString;
@interface IDEProvisioningSigningIdentityPrototype : NSObject <IDEProvisioni... |
//
// DZTextFieldStyle.h
// DZStyle
//
// Created by baidu on 15/7/23.
// Copyright (c) 2015年 dzpqzb. All rights reserved.
//
#import "DZViewStyle.h"
#import "DZTextStyle.h"
#define DZTextFiledStyleMake(initCode) DZStyleMake(initCode, DZTextFieldStyle)
#define IMP_SHARE_TEXTFIELD_STYLE(name , initCode) IMP_SHARE... |
#include "mesh_adapt.h"
#include "mesh_adj.h"
#include "mesh_mod.h"
#include "cavity_op.h"
static void find_best_edge_split(mesh* m, split* s, ment e, ment v[2])
{
double mq;
double q;
unsigned ne;
unsigned i;
ment v_[2];
ne = simplex_ndown[e.t][EDGE];
mq = -1;
for (i = 0; i < ne; ++i) {
mesh_down(... |
//
// TextViewController.h
// Galary
//
// Created by joshuali on 16/6/24.
// Copyright © 2016年 joshuali. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TextViewController : UIViewController
@end
|
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright 2018 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompanies th... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h> /* Definition of AT_* constants */
#ifndef _MSC_VER
#include <unistd.h>
#include <dirent.h>
#else
#pragma warning(disable:4996)
#endif
#include "logging.h"
#include "config.h"
#include "... |
//
// This file is part of nuBASIC
// Copyright (c) Antonino Calderone (antonino.calderone@gmail.com)
// All rights reserved.
// Licensed under the MIT License.
// See COPYING file in the project root for full license information.
//
/* -------------------------------------------------------------------------- */... |
#ifndef __BK_MESH_SAMPLING_H__
#define __BK_MESH_SAMPLING_H__
// blackhart headers.
#include "foundation\BkExport.h"
#include "foundation\BkAtomicDataType.h"
// Forward declarations.
struct BkPoint3;
// ~~~~~ Dcl(PUBLIC) ~~~~~
/*! \brief Samples a list of triangles.
*
* \param vertices The vertices of each triang... |
//
// ISNetworkingResponse.h
// InventorySystemForiPhone
//
// Created by yangboshan on 16/4/28.
// Copyright © 2016年 yangboshan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ISNetworkingConfiguration.h"
@interface ISNetworkingResponse : NSObject
@property (nonatomic, assign, readonly) ISUR... |
#pragma once
#include "toolscollector.h"
#include "widgetsettings.h"
#include "toolbase.h"
namespace Engine {
namespace Tools {
struct GuiEditor : public Tool<GuiEditor> {
SERIALIZABLEUNIT(GuiEditor);
GuiEditor(ImRoot &root);
virtual Threading::Task<bool> init() override;
vi... |
#ifndef BARBERPOLE_H
#define BARBERPOLE_H
#include "iLampAnimation.h"
#include "Lamp.h"
class BarberPole : public iLampAnimation
{
public:
BarberPole(Lamp* lamp);
int itterate();
void reset();
protected:
int cur_led = 0;
int offset = 0;
uint8_t hue = 0;
uint8_t fps = 60;
private:
};
... |
#pragma once
#include "SYCL/detail/common.h"
namespace cl {
namespace sycl {
namespace detail {
using counter_t = unsigned int;
template <class T, counter_t start = 0>
class counter {
private:
static counter_t internal_count;
counter_t counter_id;
public:
counter() : counter_id(internal_count++) {}
coun... |
// EX.1 - READ A TEXT FILE CHAR BY CHAR
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
FILE *bin; //declare a file pointer variable
FILE *numfile;
char s[20] = "1234";
int ch;
int i;
char line[50];
numfile = fopen("numbers.txt","r");
bin = fopen("numbers.... |
/*****************************************************************
* syscall.c
* adapted from MIT xv6 by Zhiyi Huang, hzy@cs.otago.ac.nz
* University of Otago
*
********************************************************************/
#include "types.h"
#include "defs.h"
#include "param.h"
#include "mem... |
//
// EmailComposer.h
//
//
// Created by Jesse MacFadyen on 10-04-05.
// Copyright 2010 Nitobi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MessageUI/MFMailComposeViewController.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import <Cordova/CDV.h>
@interface EmailCompose... |
#pragma once
#include "cinder/app/App.h"
namespace reza { namespace paths {
bool createDirectory( const ci::fs::path& path );
bool createDirectories( const ci::fs::path& path );
void createAssetDirectories();
ci::fs::path getWorkingPath();
ci::fs::path getPath( std::string path = "" );
ci::fs::path getPresetsPat... |
// MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#pragma once
#include "mxtest/control/CompileControl.h"
#ifdef MX_COMPILE_CORE_TESTS
#include "mxtest/core/HelperFunctions.h"
#include "mx/core/Elements.h"
namespace mxtest
{
mx::core::FullNoteGroupPtr tgenFul... |
//
// MSProfileViewController.h
// Minsta
//
// Created by maocl023 on 16/5/12.
// Copyright © 2016年 jjj2mdd. All rights reserved.
//
#import <AsyncDisplayKit/AsyncDisplayKit.h>
@interface MSProfileViewController : ASViewController
@end
|
//
// GKCartServiceMock.h
// GKCommerce
//
// Created by 小悟空 on 1/31/15.
// Copyright (c) 2015 GKCommerce. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface GKCartServiceMock : NSObject
- (RACSignal *)fetchCartWithUser:(GKUser *)user;
- (RACSignal *)addItem:(CartItem *)item;
- (RACSignal *)add... |
/**
* The MIT License (MIT)
*
*
* Copyright (C) 2013 Yu Jing (yujing5b5d@gmail.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 li... |
#include "../common/gba.h"
#include "../common/fixed.c"
typedef struct{
union{
struct{
fixed x;
fixed y;
};
fixed vec[2];
};
} Vec2;
fixed DotProduct(Vec2 a, Vec2 b){
return fixMult(a.x, b.x) + fixMult(a.y, b.y);
}
Vec2 VecSub(Vec2 a, Vec2 b){
Vec2 retVal = {a.x - b.x, a.y - b.y};
return retVal;
}
... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import <iWorkImport/GQDBGPlaceholder.h>
#import "GQDNameMappable-Protocol.h"
@class GQDWPLayoutFrame;
// Not exported
@interface GQDBGTitlePlaceholder : GQDBGPlaceholder <GQD... |
/*
Copyright (c) 2017-2018 Tom Hancocks
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, merge, publish, dis... |
static void cnrom_switchchr(int bank)
{
int size = 8192;
backend_read(romfn, 16 + (16384 * header.prgromsize) + (bank * size), size, ppu_memory);
}
static void cnrom_access(unsigned int address, unsigned char data)
{
if (address > 0x7fff && address < 0x10000)
cnrom_switchchr(data & (header.chrr... |
/* Copyright (c) 2015 Mathias Panzenböck
*
* 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, merge, pub... |
//
// SettingVCPopAnimator.h
// BlackNoise
//
// Created by 李金 on 2016/11/24.
// Copyright © 2016年 kingandyoga. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SettingVCPopAnimator : NSObject<UIViewControllerAnimatedTransitioning>
@end
|
//
// TuneFightAppDelegate.h
// TuneFight
//
// Created by Pit Garbe on 14.01.11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RootViewController;
@interface TuneFightAppDelegate : NSObject <UIApplicationDelegate>
@property (nonatomic, strong) UIWindow *window;
@... |
#ifndef _RELLIK_H_
#define _RELLIK_H_
#include "gametime.h"
typedef struct rellik Rellik;
Rellik *rellik_Create();
void rellik_Destroy(Rellik *self);
void rellik_Initialize(Rellik *self);
void rellik_Update(Rellik *self, GameTime gameTime);
void rellik_Render(Rellik *self);
#endif
|
//
// BlackHoleDemo.h
// Drawing
//
// Created by Adrian Russell on 16/12/2013.
// Copyright (c) 2013 Adrian Russell. All rights reserved.
//
#ifndef __Drawing__BlackHoleDemo__
#define __Drawing__BlackHoleDemo__
#include "PhysicsDemo.h"
#include "ForceGenerator.h"
class BlackHoleDemo : public PhysicsDemo {
... |
#import <Flutter/Flutter.h>
@interface AdbflibPlugin : NSObject<FlutterPlugin>
@end
|
//
// ViewController.h
// DSCrashDemo
//
// Created by dasheng on 16/4/11.
// Copyright © 2016年 dasheng. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
/* crypto/bf/blowfish.h */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-... |
// Copyright (c) 2018 Slack Technologies, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_UTIL_H_
#define SHELL_COMMON_GIN_UTIL_H_
#include "gin/converter.h"
#include "gin/function_template.h"
namespace gin_util {
template <typename T... |
//
// PASConnectionTransformation.h
// ximber
//
// Created by Paul Samuels on 15/09/2014.
// Copyright (c) 2014 Paul Samuels. All rights reserved.
//
@import Foundation;
/**
* The connection transformation is a basic data structure that holds a block that is
* executed on each node found at the xpath
*/
@inte... |
#include "strm.h"
#include <math.h>
static int
num_plus(strm_stream* strm, int argc, strm_value* args, strm_value* ret)
{
strm_value x, y;
strm_get_args(strm, argc, args, "NN", &x, &y);
if (strm_int_p(x) && strm_int_p(y)) {
*ret = strm_int_value(strm_value_int(x)+strm_value_int(y));
return STRM_OK;
}
... |
//
// AWSAppDelegate.h
// TAWS
//
// Created by CocoaPods on 05/27/2015.
// Copyright (c) 2014 suwa.yuki. All rights reserved.
//
@import UIKit;
@interface AWSAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_w32spawnl_18.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-18.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read data u... |
/*
* file: twi.h
* created: 20160807
* author(s): mr-augustine
*
* These are the Two-Wire Interface (TWI) bit mask definitions
* They were copied from the following site:
* http://www.nongnu.org/avr-libc/user-manual/group__util__twi.html
*
* The mnemonics are defined as follows:
* TW_MT_xxx: Master Transmitte... |
#ifndef ACCOUNTDIALOG_H
#define ACCOUNTDIALOG_H
#include <QDialog>
namespace Ui {
class AccountDialog;
}
class AccountDialog : public QDialog
{
Q_OBJECT
public:
explicit AccountDialog(QWidget *parent = 0);
~AccountDialog();
private slots:
// TODO: 三个槽变成一个
void on_azureDefaultRadioButton_clicked... |
//
// JMColor.h
// JMChartView
//
// Created by chengjiaming on 15/3/26.
// Copyright (c) 2015年 chengjiaming. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
* 主色系
*/
#define JMBlue [UIColor colorWithRed:38 / 255.0 green:173 / 255.0 blue:223 / 255.0 alpha:1]
/**
* 背景色
*/
#define JMCloudWhite [UIColor col... |
#include "../include/csl.h"
void
MultipleEscape ( )
{
_MultipleEscape ( _Context_->Lexer0 ) ;
}
void
CSL_Strlen ( )
{
DataStack_Push ( (int64) Strlen ( (char*) DataStack_Pop ( ) ) ) ;
}
void
CSL_Strcmp ( )
{
DataStack_Push ( (int64) Strcmp ( (byte*) DataStack_Pop ( ), (byte*) DataStack_Pop ( ) ) ) ;
}
... |
#pragma once
#include <stddef.h>
#include <sys/queue.h>
#include "options.h"
#include "util.h"
struct window {
struct window *parent;
enum window_split_type {
WINDOW_LEAF,
WINDOW_SPLIT_VERTICAL,
WINDOW_SPLIT_HORIZONTAL
} split_type;
// The size of the window. Only valid for the root window.
s... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
#import "IBBinaryArchiving-Protocol.h"
#import "NSCoding-Protocol.h"
@interface IBAutolayoutGuide : NSObject <NSCoding, IBBinaryArchiving>
{
}
- (void)enc... |
//
// EnlargedImageViewController.h
// ProjectCrystalBlue-iOS
//
// Created by Ryan McGraw on 4/20/14.
// Copyright (c) 2014 Project Crystal Blue. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Sample.h"
#import "AbstractCloudLibraryObjectStore.h"
@interface EnlargedImageViewController : UIViewControlle... |
#include "genfft.h"
/**
* NAME: cc1fft
*
* DESCRIPTION: complex to complex FFT
*
* USAGE:
* void cc1fft(complex *data, int n, int sign)
*
* INPUT: - *data: complex 1D input vector
* - n: number of samples in input vector data
* - sign: sign of the Fourier kernel
*
* OUTP... |
/*
* This file contains pieces of the Linux TCP/IP stack needed for modular
* TOE support.
*
* Copyright (C) 2006-2009 Chelsio Communications. All rights reserved.
* See the corresponding files in the Linux tree for copyrights of the
* original Linux code a lot of this file is based on.
*
* Written by Dimitris... |
/*
** rq_xml_util.h
**
** Written by Brett Hutley - brett@hutley.net
**
** Copyright (C) 2009 Brett Hutley
**
** This file is part of the Risk Quantify Library
**
** Risk Quantify is free software; you can redistribute it and/or
** modify it under the terms of the GNU Library General Public
** License as published by t... |
#include <string.h>
#include <stdlib.h>
#include "libterm.h"
#include "cursor.h"
#include "screen.h"
#include "bitarr.h"
int cursor_visibility(int tid, int sid, char visibility) {
if(SCR(tid, sid).curs_invisible != !visibility) {
SCR(tid, sid).curs_invisible = !visibility;
if(!record_update(tid, sid, visibility... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.