text
stringlengths
4
6.14k
/* * Platform data for the chipidea USB dual role controller */ #ifndef __LINUX_USB_CHIPIDEA_H #define __LINUX_USB_CHIPIDEA_H #include <linux/usb/otg.h> struct ci_hdrc; struct ci_hdrc_platform_data { const char *name; /* offset of the capability registers */ uintptr_t capoffset; unsigned power_budget; struc...
/* * BCMSDH Function Driver for the native SDIO/MMC driver in the Linux Kernel * * Copyright (C) 1999-2012, Broadcom Corporation * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, this software is licensed to you * under the terms of the GNU ...
/* * Copyright (C) 2003 Jana Saout <jana@saout.de> * * This file is released under the GPL. */ #include <linux/device-mapper.h> #include <linux/module.h> #include <linux/init.h> #include <linux/bio.h> #define DM_MSG_PREFIX "zero" /* * Construct a dummy mapping that only returns zeros */ static int zero_ctr(st...
/***************************************************************************/ /* */ /* cffpic.c */ /* */ /* Th...
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Defines for Mobile Industry Processor Interface (MIPI(R)) * Display Working Group standards: DSI, DCS, DBI, DPI * * Copyright (C) 2010 Guennadi Liakhovetski <g.liakhovetski@gmx.de> * Copyright (C) 2006 Nokia Corporation * Author: Imre Deak <imre.deak@nokia.com> */...
//////////////////////////////////////////////////////////////////////////////// // // TYPHOON FRAMEWORK // Copyright 2013, Typhoon Framework Contributors // All Rights Reserved. // // NOTICE: The authors permit you to use, modify, and distribute this file // in accordance with the terms of the license agreement a...
/* $OpenBSD: ieee.h,v 1.1.1.1 2009/07/31 09:26:25 miod Exp $ */ /* public domain */ #include <mips64/ieee.h>
/* Copyright 2017-2019 Igor Petrovic 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, p...
// // AppDelegate.h // DPDataStorageDemo // // Created by Alex Bakhtin on 10/6/15. // Copyright © 2015 dmitriy.petrusevich. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // Play Sound.h // Play Sound // // Created by James Badger on 27/10/05. // Copyright 2005 James Badger. All rights reserved. // #import <Cocoa/Cocoa.h> #import <Automator/AMBundleAction.h> @interface Play_Sound : AMBundleAction { bool exitNow; NSSound *file; } - (bool)runWithInput:(id)input fromAction:(...
#ifndef _ACTION_FIND_TARGET_H #define _ACTION_FIND_TARGET_H #include "action.h" #include "character.h" class ActionFindTarget: public Action { public: ActionFindTarget(Character * character); virtual void Start(); virtual void Run(); virtual void End(); private: Character * m_target; }; #endif//!_ACTION_FIND_T...
/** * Copyright (C) 2013 Tobias P. Becker * * 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...
/* * testRandomNumber.h * * Created on: Apr 20, 2012 * Author: jchen */ #ifndef TESTRANDOMNUMBER_H_ #define TESTRANDOMNUMBER_H_ #include <cxxtest/TestSuite.h> #include <vector> #include "patNBParameters.h" #include "patDisplay.h" #include "patError.h" #include "patRandomNumber.h" #include <boost/random.hp...
#pragma once #include <SDL.h> #include <string.h> #include "../Core/C_Vec2.h" ///Forward declaration of StateManager for the pointer to the StateManager. class S_StateManager; /** @brief Contains State functions and data to be inherited by all other states. @author Jamie Slowgrove */ class S_State { public: /** @b...
// // RestaurantCells.h // Restaurants // // Created by Philip Tolton on 2013-10-08. // Copyright (c) 2013 Philip Tolton. All rights reserved. // #import <UIKit/UIKit.h> #import "RestoScrollView.h" @interface RestaurantCells : UITableViewCell @property (strong, nonatomic) IBOutlet UILabel *opened_closed; ...
// // LMMessageAdapter.h // Connect // // Created by MoHuilin on 2017/5/16. // Copyright © 2017年 Connect. All rights reserved. // #import <Foundation/Foundation.h> #import "Protofile.pbobjc.h" #import "MMMessage.h" @interface LMMessageAdapter : NSObject /** * Encapsulates the data body of the im message * @par...
//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2016, Paul Beckingham, Federico Hernandez. // // 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...
#if LOW_PASS { float RC = 1.0/(CUTOFF*2*3.14); float dt = 1.0/SAMPLE_RATE; float alpha = dt/(RC+dt); float output[numSamples]; output[0] = input[0]; for(i=1; i<numSamples; i++){ output[i] = output[i-1] + (alpha*(input[i] - output[i-1])); } } #endif #if HIGH_PASS { ...
/****************************************************************************//** \file memAt25dd041a.c \brief Some commands for at25df041a implementation. \author Atmel Corporation: http://www.atmel.com \n Support email: avr@atmel.com Copyright (c) 2008-2011, Atmel Corporation. All rights r...
/****************************************************************************/ /* imaxdiv v15.12.3 */ /* */ /* Copyright (c) 2003-2016 Texas Instruments Incorporated */ /* h...
// // UIControl+YYAdd.h // YYCategories <https://github.com/ibireme/YYCategories> // // Created by ibireme on 13/4/5. // Copyright (c) 2015 ibireme. // // This source code is licensed under the MIT-style license found in the // LICENSE file in the root directory of this source tree. // #import <UIKit/UIKit.h> N...
#pragma once #include <string> #include <functional> #include <net/asio/http/uri.h> namespace net { namespace http { /** * Represents an endpoint with distinct connection * characteristics. * * Details may include: * * Hostname, IP or vhost * * Port * * SSL certificate */ class details { public: details( c...
/* * Copyright (c) 2017-2018 Arm Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
/** * This is a generated file. Do not edit or your changes will be lost */ @interface ComPlainprogramsStreamingmetadataModuleAssets : NSObject { } - (NSData*) moduleAsset; @end
/* This file is part of cpp-ethereum. cpp-ethereum 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 Foundation, either version 3 of the License, or (at your option) any later version. cpp-ethereum is distributed in the...
// To check if a library is compiled with CocoaPods you // can use the `COCOAPODS` macro definition which is // defined in the xcconfigs so it is available in // headers also when they are imported in the client // project. // LTHPasscodeViewController #define COCOAPODS_POD_AVAILABLE_LTHPasscodeViewController #defin...
/** * Copyright (c) 2019 Kylart <kylart.dev@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 limitation the rights * to use, copy, mod...
// Copyright (c) 2012-2018 The DigiByte Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef DIGIBYTE_BLOOM_H #define DIGIBYTE_BLOOM_H #include <serialize.h> #include <vector> class COutPoint; class CTransa...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "UIView.h" @class MPImageCache, MPImageCacheRequest, MPTimeMarker, UIImage; @interface MPVideoChapterCellContentView : UIView { unsigned int _current:1; unsigne...
#include "hash.h" #include "list.h" extern void *hash_init(hash_table *h, size_t elem_size, hash_fn_t hash_fn, comp_fn_t comp, unsigned long table_size) { array *a; if ((a = malloc(sizeof(array))) == NULL) return NULL; h->a = a; h->table_size = table_size; h->tsize = elem_size; h->hash_fn = h...
/* * Header: semaphore.h * * Provides wrapper functions around POSIX system calls semget, * semctl and semop allowing the creation, initialization, opening * and removal of a single semaphore at a time and implementing * operations down (also known as P or wait) and up (also known as V * or signal) on it. *...
#import "MOBProjection.h" @interface MOBProjectionEPSG5786 : MOBProjection @end
// // OWClient.h // OzoneWeather // // Created by Suzanne Kiihne on 09/05/2014. // Copyright (c) 2014 Suzanne Kiihne. All rights reserved. // #import <Foundation/Foundation.h> @import CoreLocation; #import <ReactiveCocoa/ReactiveCocoa/ReactiveCocoa.h> @interface OWClient : NSObject - (RACSignal *)fetchCurrentCon...
/* ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, 2011,2012,2013 Giovanni Di Sirio. This file is part of ChibiOS/RT. ChibiOS/RT 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 Foun...
// // TWPhotoImageItem.h // Pods // // Created by Madao on 12/8/15. // // #import <UIKit/UIKit.h> @interface TWPhotoImageItem : UIView @property (nonatomic, strong) UIImageView *image; @property (nonatomic, strong) UIView *iconContent; @property (nonatomic, strong) UIImageView *icon; @end
#ifndef BIOSENSOR_MODELING_PARAMETERS_UTILS_H #define BIOSENSOR_MODELING_PARAMETERS_UTILS_H #include <cmath> #include <string> struct parameters { // Width of bio-sensor parts widths double d_e; double d_m; // Width and time mesh parameters unsigned N_b; unsigned T; unsigned M; // Mode...
#pragma once #include "VoreealActor.h" #include "VoreealPagedVolumeComponent.h" #include "VoreealPagedVolumeActor.generated.h" UCLASS(ComponentWrapperClass) class VOREEAL_API APagedVolumeActor : public AVoreealActor { GENERATED_BODY() public: UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Voreeal", met...
// // XiuXiuViewController.h // AiyoyouCocoapods // // Created by aiyoyou on 2017/6/30. // Copyright © 2017年 zoenet. All rights reserved. // #import "BaseViewController.h" @interface XiuXiuViewController : BaseViewController @end
#pragma once #include <zlib.h> #include "istream.h" namespace nano { /// /// \brief zlib-based streaming of gzip-compressed binary data. /// struct NANO_PUBLIC zlib_istream_t final : public istream_t { explicit zlib_istream_t(istream_t& istream, const std::strea...
// // ______ _____ _____ // | ____/ ____/ ____| // | |__ | | | | __ // | __|| | | | |_ | // | |___| |___| |__| | // |______\_____\_____| // // // NSObject+Swizzling.h // SnapEcgDoctor // // Created by tan on 2017/2/14. // Copyright © 2017年 baotiao ni. All rights reserved. // #import <Foundation/Found...
#pragma once /* Copyright (c) 2013, Phil Vachon <phil@cowpig.ca> 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 must retain the above copyright notice, th...
#import <Foundation/Foundation.h> #import "JSONAPIRequest.h" @class ShuttleStop; @class ShuttleRoute; @class ShuttleRouteCache; @class ShuttleStopLocation; @protocol ShuttleDataManagerDelegate<NSObject> // everything is optional. @optional // message sent when routes were received. If request failed, this is calle...
// Created by Yang Meyer on 03.02.12. // Copyright (c) 2012 compeople. All rights reserved. #import <UIKit/UIKit.h> @interface UIResponder (MotionRecognizers) /** Registers the receiver for future motion events. The `action` message will be sent to the receiver when a motion event occurs and is not intercepted ...
// // EGTiledLayerViewController.h // Widgets // // Created by EG on 2017/9/4. // Copyright © 2017年 EGMade. All rights reserved. // #import "EGBasicViewController.h" @interface EGTiledLayerViewController : EGBasicViewController @end
/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #import "TiProxy.h" @interface Com0x82SocialRequestProxy : TiProxy { } @end
#import <UIKit/UIKit.h> @class ViewController; @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) ViewController *viewController; @end
// // AppDelegate.h // practice // // Created by na on 14-3-3. // Copyright (c) 2014年 na. All rights reserved. // #import <UIKit/UIKit.h> #import "LockViewController.h" @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // NSData+QGOCCAES256.h // QGOCCategory // // Created by 张如泉 on 15/10/4. // Copyright © 2015年 QuanGe. All rights reserved. // #import <Foundation/Foundation.h> @interface NSData (QGOCCAES256) /** * 对NSData进行AES256加密 * @param key:加密钥匙 * return 加密后的NSData */ - (NSData *)qgocc_aes256_encrypt:(NSString *...
// // MUTextKitContext.h // MUKit_Example // // Created by Jekity on 2018/9/6. // Copyright © 2018年 Jeykit. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface MUTextKitContext : NSObject /** Initializes a context and its associated TextKit components. Initialization ...
/* * CompletionCheck.h * * Created on: 27/05/2011 * Author: vgil */ #ifndef COMPLETIONCHECK_H_ #define COMPLETIONCHECK_H_ #include "../RRTNode.h" #include "RRTBaseAlgorithm.h" #include "RRTMetric.h" class CompletionCheck : public RRTBaseAlgorithm { public: CompletionCheck (RRTMetric* m = NUL...
/* * Copyright (c) 1995 The University of Utah and * the Computer Systems Laboratory at the University of Utah (CSL). * All rights reserved. * * Permission to use, copy, modify and distribute this software is hereby * granted provided that (1) source code retains these copyright, permission, * and disclaimer no...
// // AMSlideMenuLeftMenuSegue.h // AMSlideMenu // // The MIT License (MIT) // // Created by : arturdev // Copyright (c) 2014 SocialObjects Software. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Sof...
// // PlayingCard.h // Matchismo // // Created by Horia Jurcut on 02/07/16. // Copyright © 2016 Horia Jurcut. All rights reserved. // #import <Foundation/Foundation.h> #import "Card.h" @interface PlayingCard : Card @property (strong, nonatomic) NSString *suit; @property (nonatomic) NSUInteger rank; + (NSArray *...
/****************************************************************************** * FILE: mpi_latency.c * DESCRIPTION: * MPI Latency Timing Program - C Version * In this example code, a MPI communication timing test is performed. * MPI task 0 will send "reps" number of 1 byte messages to MPI task 1, * waiting for...
/* * defs.h * * Created on: Jul 4, 2016 * Author: kosmaz */ #ifndef DEFS_H_ #define DEFS_H_ #include <stdlib.h> #include <string.h> #include <stdint.h> #include "lcd.h" //#define TEST #define F_CPU 12000000UL //External clock frequency 12 MHz #define HIGH 0x01 //8 bit value for 1 #define LOW 0x00 //8 bit ...
//****************************************************************************************************** // ZeroMQClient.h - Gbtc // // Copyright © 2015, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the ...
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
/* * monitor.c - Routines for monitors within the runtime. * * Copyright (C) 2003 Southern Storm Software, Pty Ltd. * * Authors: Thong Nguyen (tum@veridicus.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * t...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
#include "cmd-run.h" char** cmd_run_mkcl(int argc,char** argv,struct sub_command* cmd) { char* home=configdir(); char* arch=uname_m(); char* os=uname_s(); char* impl=(char*)cmd->name; char* version=(char*)cmd->short_name; /*[binpath for mkcl] -norc -q -eval init.lisp [terminating NULL] that total 6 are...
// // heligun: 3D flight sim shooter // Copyright (c) 2016 Joseph Kuziel // // This software is MIT licensed. // #include "sdlext.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <SDL2/SDL_rwops.h> #include <SDL2/SDL_error.h> void sdlextPrintError() { printf("[SDL] %s\n", SDL_GetError());...
#include <stdio.h> void push(int key,int a[],int *top){ (*top)++; a[*top] = key; } int pop(int a[],int *top){ int t = a[*top]; (*top)--; return t; } int main(void) { int a[20]; int top = -1; int num = 123; int rev=0; int i = 1; while(num!=0){ push(num%10,a,&top); num = num/10; } while(top != -1){...
#ifndef tresholdFunctions_h #define tresholdFunctions_h namespace Treshold{ // ==== polynom order 0 inline double p0i( double x ){ if ( x < 0 ){ return 0; } else { return x; } }; inline double p0( double x ){ if ( x < 0 ){ return 0; } else { return 1; } }; // ==== polynom order 1...
// // AppDelegate.h // ios-WK-UI-Webview // // Created by Emiliano Barbosa on 9/15/15. // Copyright © 2015 Bocamuchas. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @prope...
#ifndef _EZ_DRAW_PROTOTYPES_ #define _EZ_DRAW_PROTOTYPES_ #include "EzDraw.h" #ifdef __cplusplus extern "C" { #endif typedef struct tag_ezdFunctions { HINSTANCE hInst; EZDBOOL (EZDCDECL* ezdInitialize)(void); void (EZDCDECL* ezdCleanUp)(void); EZDHANDLE (EZDCDECL* ezdDrawLine)(EZDFLOAT fX1,...
/*********************************************************************** Copyright (c) 2008, 2009, Memo Akten, www.memo.tv, Douglas Edric Stanley, www.abstractmachine.net * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
// Copyright (c) 2017-2018 The DigiByte Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef DIGIBYTE_INDEX_TXINDEX_H #define DIGIBYTE_INDEX_TXINDEX_H #include <chain.h> #include <index/base.h> #include <txdb...
#ifndef _EASYEDITOR_SHAPES_CONTAINER_H_ #define _EASYEDITOR_SHAPES_CONTAINER_H_ #include "DataContainer.h" #include "ObjectVector.h" #include "Shape.h" namespace ee { class ShapesContainer : public DataContainer<ee::Shape> { public: virtual ~ShapesContainer(); // // DataContainer interface // virtual void Trav...
// Copyright Sigurdur Gunnarsson. All Rights Reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. // Example cylinder mesh #pragma once #include "CoreMinimal.h" #include "RuntimeMeshActor.h" #include "SimpleCylinderActor.generated.h" UCLASS() class PROCEDU...
#include <stdlib.h> #ifndef NEWSTATE #error "NEWSTATE not specified" #endif #ifndef WRITESTRING #error "WRITESTRING not specified" #endif extern void * NEWSTATE(void (*f)(void), void * ud); void *lua_newstate( void (*f)(void), void * ud) { return NEWSTATE(f,ud); } extern size_t WRITESTRING(char *s, size_t l...
#ifndef DW_RAYTRACER_RAY_H #define DW_RAYTRACER_RAY_H #include "Vector3.h" namespace raytracer { class Ray { public: inline Ray() { } inline Ray(const Vector3& rOrigin, const Vector3& rDirection) { setOrigin(rOrigin); setDirection(rDirection); } inline Vector3 pointAtParameter(...
/*========================================================================= Program: Visualization Toolkit Module: vtkCellTypes.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This softw...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "UIWindow.h" @interface UIWindow (MPAdditions) - (id)copyIOSurfaceSnapshotView:(long long)arg1; @end
#ifndef IntCell_H #define IntCell_H /** * A class for siulating an integer memory cell. */ class IntCell { public: explicit IntCell(int initialValue = 0); int read() const; void write(int x); private: int *storedValue; }; #endif
// // Gateway+Foreground.h // Vihome // // Created by Air on 15-1-27. // Copyright © 2017年 orvibo. All rights reserved. // #import "Gateway.h" @interface Gateway (Foreground) - (void)searchMdnsResult:(NSNotification *)notif; -(void)readTable:(NSString *)tableName uid:(NSString *)uid completion:(commonBlock)comp...
#pragma once /** * @file PluginHelper.h * @brief Contains helper functions to make writing plugin classes easier. * * @author Michael Albers */ #include <cstdint> #include <functional> #include <stdexcept> #include <string> #include "PluginEntity.h" namespace QS { /** * Contains helpful functions for writi...
// // CLCAppDelegate.h // CLCBannerNotifications // // Created by CocoaPods on 06/02/2015. // Copyright (c) 2014 Calvin Cestari. All rights reserved. // @import UIKit; @interface CLCAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // AppDelegate.h // JRTLeftSliderController // // Created by Juan Garcia on 1/7/16. // Copyright © 2016 jerti. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
/** * Copyright (C) 2013-2015 * * @author coding.tom@gmail.com * @date 2013-7-9 * * @file tiny_malloc.h * * @remark * set tabstop=4 * set shiftwidth=4 * set expandtab * */ #ifndef __TINY_MALLOC_H__ #define __TINY_MALLOC_H__ #if defined(__ANDROID__) #include "linux/tiny_malloc.h" #...
// Demonstrate using qpilotsync for carrier recovery. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <getopt.h> #include <assert.h> #include "liquid.h" void usage() { printf("%s [options]\n", __FILE__); printf(" h : print usage\n"); printf(" n...
/*! \file update.h \brief Update definition \author Ivan Shynkarenka \date 09.08.2017 \copyright MIT License */ #ifndef CPPTRADER_MATCHING_UPDATE_H #define CPPTRADER_MATCHING_UPDATE_H #include "utility/iostream.h" #include <cstdint> namespace CppTrader { namespace Matching { //! Update type enu...
/* * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * ...
#include <stdlib.h> #include <stdio.h> #define CHUNK_SIZE 3000 int main(void) { int i; char * chunk; while (1) { chunk = malloc(CHUNK_SIZE * sizeof(*chunk)); if (chunk == NULL) { return 1; } for (i = 0; i < CHUNK_SIZE; i++) { chunk[i] = i; } } return 0; }
/* Copyright (c) Ludo Visser * * This file is part of the mbed-lib project, and is distributed under the * terms of the MIT License. The full license agreement text can be found * in the LICENSE file. */ #include "mbed.h" /* LED initialization function */ void initLED(void) { PINSEL_CFG_Type pinConfig; /* Che...
// // 2019-10-26, jjuiddong // visual programming editor // - ui definition // // 2021-07-27 // - rename vprog -> vpl // #pragma once #include "pin.h" #include "node.h" #include "link.h" #include "nodefile.h" #include "editmanager.h" namespace vpl { ImColor GetIconColor(ePinType::Enum type); void DrawPinIcon(co...
/* //%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor l...
#include <time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "vm.h" ProcessorState * ProcessorState_new() { // State box for this processor ProcessorState *new_procstate = (ProcessorState *) malloc(sizeof(ProcessorState)); // Setup the processor Processor *new_proc = (Pro...
#ifdef DEBUG #if(DEBUG) #define DBGPRINTF(...) fprintf(stderr,__VA_ARGS__); #else #define DBGPRINTF(...) 0 #endif #endif
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organization // ...
// // SBAppDelegate.h // SBLibrary // // Created by NguyenTran on 08/24/2017. // Copyright (c) 2017 NguyenTran. All rights reserved. // @import UIKit; @interface SBAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 Steve Nygard. // #import <IDEKit/IDENavigableItemDomainProvider.h> @interface IDENavigableItemSourceControlDomainProvider : IDENavigableItemDomainProvider { } + (id)domainObjectForWorkspace:(i...
// Operational amplifier extern struct { // OPAMP1 control register struct { unsigned int OPAMP1_EN: 1; // OPAMP1 enable unsigned int FORCE_VP: 1; // FORCE_VP unsigned int VP_SEL: 2; // OPAMP1 Non inverting input selection unsigned int : 1; // Reserved unsigned int VM_SEL: 2; // OPAMP1 i...
// Copyright (c) 2013 Richard Long & HexBeerium // // Released under the MIT license ( http://opensource.org/licenses/MIT ) // #import <Foundation/Foundation.h> #import "CABaseException.h" #import "CAJob.h" @protocol CAJobListener <NSObject> -(void)jobCompleted:(id<CAJob>)job; -(void)jobFailed:(id<...
// // UIButton+SKClickInterval.h // SKExtension // // Created by CFsyk on 2017/10/23. // Copyright © 2017年 CFsyk. All rights reserved. // #import <UIKit/UIKit.h> //设置按钮的点击间隔为"kDefaultClickInterval" @interface UIButton (SKClickInterval) @end
#ifndef MARKER_OBJECT_H #define MARKER_OBJECT_H class StateGraphicsObject; class MarkerObject { public: MarkerObject(int id, int color, StateGraphicsObject* parent = nullptr); public: void connectToState(StateGraphicsObject* state); void disconnectFromState(); int getId(); int getColor(); private...
#ifndef _LIBP_VPX_H_ #define _LIBP_VPX_H_ #ifdef __cplusplus extern "C" { #endif void* vpx_init(const char* filename); const unsigned char* vpx_read(void *input, unsigned int *length); void vpx_destroy(void *input); #ifdef __cplusplus } #endif #endif
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "WXPBGeneratedMessage.h" @interface IMBehaviorMsgOP : WXPBGeneratedMessage { } + (void)initialize; // Remaining properties @property(nonatomic) int appMsgInnerType; // @d...
#ifndef LIC_NUMBER_TYPE #define LIC_NUMBER_TYPE #include "RuntimeType.h" namespace lic { // TODO: Make generic and inherit actual types class NumberType : public RuntimeType { public: virtual std::string Name() const; virtual std::string ToString(gsl::byte* data) const; virtual void PerformUnaryOp(Opcod...
#include <stdio.h> #include <math.h> #define MAX_POS 9 int main(){ unsigned long int x, y; int dx, dy, pos, carry, ncrry; while (scanf("%lu %lu", &x, &y) && !(x == 0 && y == 0)){ carry = ncrry = 0; for (pos = 0; pos < MAX_POS; pos++){ dx = x % 10; dy = y % 10; x /= 10; y /= 10; ...
// // 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...