text
stringlengths
4
6.14k
/* * Copyright (C) 2012 Avionic Design GmbH * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/err.h> #include <linux/i2c.h> #include <linux/module.h> #include...
/* With -ffast-math, the latice value for t changes from -0.0 to 0.0 in this testcase. */ /* { dg-do compile } */ /* { dg-options "-O2 -ffast-math" } */ double test (int param) { double a = 0.0, b = -1.0, t; int i; for (i = 0; i < 100; i++) { t = a * b; if (param) b = 2.0; } return ...
/* * digi00x.h - a part of driver for Digidesign Digi 002/003 family * * Copyright (c) 2014-2015 Takashi Sakamoto * * Licensed under the terms of the GNU General Public License, version 2. */ #ifndef SOUND_DIGI00X_H_INCLUDED #define SOUND_DIGI00X_H_INCLUDED #include <linux/compat.h> #include <linux/device.h> #i...
/* { dg-do compile } */ /* { dg-options "-mcpu=ultrasparc -mvis" } */ typedef char vec8 __attribute__((vector_size(4))); typedef short vec16 __attribute__((vector_size(4))); extern vec8 foo1_8(void); extern vec8 foo2_8(void); vec8 fun8(void) { return foo1_8 () & foo2_8 (); } extern vec16 foo1_16(void); extern vec1...
extern int zzz; int zzz = 123;
/* * Copyright (C) 2012 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/cpuidle.h> #include <linux/module.h> #include <asm/sys...
/* Copyright (C) 2000 MySQL AB 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 the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT AN...
#include "BF538_cdef.h"
/* linux/arch/arm/plat-s3c/dev-i2c1.c * * Copyright 2008,2009 Simtec Electronics * Ben Dooks <ben@simtec.co.uk> * http://armlinux.simtec.co.uk/ * * S3C series device definition for i2c device 1 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Publ...
/* ISC license. */ #ifndef FTRIGW_H #define FTRIGW_H #include <skalibs/bytestr.h> extern int ftrigw_fifodir_make (char const *, int, int) ; extern int ftrigw_notify (char const *, char) ; extern int ftrigw_notifyb (char const *, char const *, unsigned int) ; extern int ftrigw_notifyb_nosig (char const *, char const ...
#include <stdio.h> #include <string.h> #include <fcntl.h> #include <sys/stat.h> #include "channel-http.h" struct serveable { const char *urlpath; const char *mimetype; }; static const struct serveable whitelist[] = { { "/favicon.ico", "image/x-icon" }, { "/libwebsockets.org-logo.png", "image/png" }...
// // File: data_filter.h // // MATLAB Coder version : 2.8 // C/C++ source code generated on : 24-Nov-2016 16:51:51 // #ifndef __DATA_FILTER_H__ #define __DATA_FILTER_H__ // Include Files #include <stddef.h> #include <stdlib.h> #include <string.h> #include "rtwtypes.h" #include "data_filter_types.h" // Fu...
#pragma once #include "Drawable2D.h" class Circle : public Drawable2D { public: Circle() {} ~Circle() { Drawable2D::~Drawable2D(); } void Initialize(float x, float y, int radius); void Draw(float dt); void SetColor(float r, float g, float b, float a); protected: int radius, angles; int r, g, b, a; voi...
/* * rtc.h * * Created on: 24 Dec 2018 * Author: raffael */ #ifndef FW_RTC_H_ #define FW_RTC_H_ void rtc_config(); void rtc_set_clock(uint32_t unix_timestamp); void rtc_update_system_time(); // set new values for pause and resume times: void rtc_set_pause_times(uint8_t p_hour, uint8_t p_min, uint8_t r_ho...
#import <UIKit/UIKit.h> @interface UIFont (Martel) + (instancetype)martelBoldFontOfSize:(CGFloat)size; + (instancetype)martelDemiBoldFontOfSize:(CGFloat)size; + (instancetype)martelExtraBoldFontOfSize:(CGFloat)size; + (instancetype)martelHeavyFontOfSize:(CGFloat)size; + (instancetype)martelLightFontOfSize:(CGFloat)siz...
#ifdef __MAKECINT__ #pragma link C++ namespace PLASMA; #pragma link C++ class PLASMA::D1+; #endif
/* malloc.c Copyright (c) 23 Yann BOUCHER (yann) 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,...
/* * 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" @class NSString, UIAlertView, UIPrintingProgressViewController; // Not exported @interface UIPrintingProgress : NSObject { NSString *_printerName; ...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "AWSSimpleDB.h" #import "AWSSimpleDBModel.h" #import "AWSSimpleDBResources.h" #import "AWSSimpleDBService.h" FOUNDAT...
#pragma once class fenwick_tree { public: fenwick_tree(int capacity); ~fenwick_tree(); void update(int index, int delta); int running_sum(int index) const; private: int m_capacity; int* m_elements; };
// // TestObjectProvider.h // CalendarView // // Created by Christian Tietze on 09.09.14. // Copyright (c) 2014 Christian Tietze. All rights reserved. // #import <Foundation/Foundation.h> #import "CCLProvidesCalendarObjects.h" @class CCLDateRange; @interface TestObjectProvider : NSObject <CCLProvidesCalendarObje...
#pragma once #include "stdafx.h" #include "GarageDoor/GPIO/Pin.h" #include "GarageDoor/Filesystem.h" #include "GarageDoor/Config.h" #include "GarageDoor/Door.h" #include "nlohmann/json/json.hpp" typedef std::shared_ptr<GarageDoor::GPIO::Pin> pin_ptr; typedef std::vector<pin_ptr> pin_map; typedef std::shared_ptr<pin_ma...
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "AWSRequest.h" @class NSArray, NSString; @interface AWSCognitoSyncUpdateRecordsRequest : AWSRequest { NSString* _clientContext; NSString* _datasetName; NS...
#import <Foundation/Foundation.h> @class CMTraversalObjectDir; @class CMTraversalObjectFile; @class CMTraversalObjectHardlink; @class CMTraversalObjectSymlink; @class CMTraversalObjectFifo; @class CMTraversalObjectChar; @class CMTraversalObjectBlock; @class CMTraversalObjectOther; @protocol...
/* * rf Class Core * * Copyright (C) 2005 John Lenz <lenz@cs.wisc.edu> * Copyright (C) 2005-2007 Richard Purdie <rpurdie@openedhand.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software F...
#ifndef GRAPH_H #define GRAPH_H #include <set> #include <iostream> class Graph { protected: enum { MAX_NODE = 20, MAX_COORDINATE = 10000, ERROR_TOO_MANY_NODES = 0x3000ffff }; /* a node indicates a point on the plane */ class Node { private: double x, y; int id; public: /* cmp used t...
// // AttachmentListViewController.h // CECiTurbo // // Created by DongXing on 4/28/15. // Copyright (c) 2015 CEC. All rights reserved. // #import "MailListViewController.h" @interface AttachmentListViewController : UITableViewController @property (nonatomic,strong) AttachmentsFolder *attachmentsFolder; @end
/** * @cond ___LICENSE___ * * Copyright (c) 2016-2018 Zefiros Software. * * 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 <stdint.h> #include "compositeTypes.h" typedef struct { int foo; // FIXME } notification_t; typedef void (*ntfy_delegate_t)(uint32_t notificationId, constFatPtr_t msg, uint32_t senderId); int ntfy_init(void); int ntfy_post(uint32_t notificationId); //int ntfy_postWith
// // SecurityLoginViewController.h // HRCocoaKit // // Created by 许昊然 on 2017/3/24. // Copyright © 2017年 许昊然. All rights reserved. // #import <UIKit/UIKit.h> @interface SecurityLoginViewController : UIViewController @end
// // PizzaStore.h // FactoryPattern // // Created by Vito on 12/10/13. // Copyright (c) 2013 Vito. All rights reserved. // #import <Foundation/Foundation.h> #import "Pizza.h" #import "SimplePizzaFactory.h" @interface PizzaStore : NSObject - (id)initWithFactory:(SimplePizzaFactory *)factory; - (Pizza *)orderPiz...
/* fspectral.h for ANSI C */ #ifndef FSPECTRAL_H #define FSPECTRAL_H #include "ffam.h" #include "fres.h" #include "fcho.h" extern long fspectral_MaxN; void fspectral_Fourier3 (ffam_Fam *fam, fres_Cont *res, fcho_Cho *cho, int k, int r, int s, int Nr, int j1, int...
//The MIT License(MIT) // //Copyright(c) 2016 R-CO // //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, merg...
#ifndef scheduler_h #define scheduler_h #include "wren.h" void schedulerResume(WrenValue* fiber); void schedulerResumeBytes(WrenValue* fiber, const char* bytes, size_t length); void schedulerResumeDouble(WrenValue* fiber, double value); void schedulerResumeString(WrenValue* fiber, const char* text); void schedulerRes...
#include <pebble.h> #include <Watch_App_Face.h> void init2(); void deinit2(); static Window *s_main_window; Window *g_window; // ------------------- BLUETOOTH combo attempt begin -------------------------- static TextLayer *try; //Helper function-send numbers 1-3 corresponding to the options //to the phone ...
// // UIAlertController+Speed.h // LYCategory // // CREATED BY LUO YU ON 2017-03-17. // Email: indie.luo@gmail.com // // The MIT License (MIT) // // Copyright (c) 2017 骆昱(Luo Yu). All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associate...
#pragma once #include <exception> #include "include.h" #include "environment.h" #include "user.h" //课程类 class Course { public: Course(){} Course(std::string id, std::string name, int credit); ~Course(); friend bool operator < (const Course& course1, const Course& course2); friend std::istream& operat...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__malloc_char_ncpy_14.c Label Definition File: CWE127_Buffer_Underread__malloc.label.xml Template File: sources-sink-14.tmpl.c */ /* * @description * CWE: 127 Buffer Under-read * BadSource: Set data pointer to before the allocated memory b...
@protocol IPosition, IVelocity, IMovable; @protocol IRotation, IAngularVelocity, IRotatable; @protocol IRadius, IRectangleSize; @protocol IMass; @protocol ICoefficientOfRestition; @protocol IParticleCollider; @protocol IHalfPlaneCollider, IAAHalfPlaneCollider; @protocol IRectangleCollider, IAARectangleCollider; @pro...
#define GLI_INCLUDE_ATI_SEPARATE_STENCIL enum Main { //GL_STENCIL_BACK_FUNC_ATI = 0x8800, //GL_STENCIL_BACK_FAIL_ATI = 0x8801, //GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802, //GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803, }; void glStencilOpSeparateATI( GLenum...
// // GOLPosition.h // GameOfLife // // Created by Will Grange on 16/07/2014. // Copyright (c) 2014 Will Grange. All rights reserved. // #import <Foundation/Foundation.h> @interface GOLPosition : NSObject @property (nonatomic, assign, readonly) NSInteger x; @property (nonatomic, assign, readonly) NSInteger y; -...
/** ****************************************************************************** * @file stm32f4xx_hal_bluenrg_gpio.h * @author MCD Application Team * @version V1.0.0 * @date 01-October-2014 * @brief HAL specific implementation for stm32xx_lppuart.c **************************************...
#ifndef _TENSORFLOW_GPU_GEMM_H_ #define _TENSORFLOW_GPU_GEMM_H_ #include "gemm_engine.h" namespace tensorflow { class OpKernelContext; class GEMMEngineTF : public octree::GEMMEngine<float> { public: void set_context(OpKernelContext* ctx) { context_ = ctx; } virtual void gemm(const bool TransA, const bool Tr...
/** * Gallerizer — an image gallery indexing tool * CLI version (pure libjpeg, no GD required) * © 2012 Ilya I. Averkov (WST) <admin@jsmart.web.id> */ #include "string_functions.h" #include <time.h> #ifdef WIN32 char *strndup (const char *s, size_t n) { char *result; size_t len = strlen(s); if(n < len) len = n...
// libbari Copyright (C) Travis Whitaker 2015-2016 #include <math.h> #include <bari.h> // Magnitude (length) on bari_vec3. float bari_mag3(bari_vec3 a) { return sqrtf((a.x * a.x) + (a.y * a.y) + (a.z * a.z)); }
// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_H_ #define ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_H_ #include "base/strings/string16.h" #include "content/public/renderer/render_view_...
// // NSString+CZPath.h // // Created by 郑强飞 on 16/6/10. // Copyright © 2016年 itcast. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (CZPath) /// 给当前文件追加文档路径 - (NSString *)cz_appendDocumentDir; /// 给当前文件追加缓存路径 - (NSString *)cz_appendCacheDir; /// 给当前文件追加临时路径 - (NSString *)cz_appen...
#include "pstructmember.h" #include "pstringobject.h" #include "pintobject.h" #include "pfloatobject.h" #include "plongobject.h" #include "../pycodegen.h" #include "../Python/pyver.h" DEFINEFN vinfo_t* PsycoMember_GetOne(PsycoObject* po, vinfo_t* addr, PyMemberDef* l) { condition_code_t cc; vinfo_t* v; vinfo_t* w1...
/* * automaton_transition_file_loader.h * * Created on: 5 Mar 2010 * Author: David */ #ifndef AUTOMATON_TRANSITION_FILE_LOADER_H_ #define AUTOMATON_TRANSITION_FILE_LOADER_H_ #include "ezxml/ezxml.h" struct automaton; struct automaton_set; /* * The maximum length of a line in the transition file. If this...
// // RootViewController.h // IanScrollView // // Created by ian on 15/3/6. // Copyright (c) 2015年 ian. All rights reserved. // #import <UIKit/UIKit.h> @interface RootViewController : UIViewController @end
#ifndef _IVM_VM_INLINE_NUM_H_ #define _IVM_VM_INLINE_NUM_H_ #include "pub/com.h" #include "pub/vm.h" #include "vm/num.h" #include "vm/obj.h" IVM_COM_HEADER IVM_INLINE ivm_object_t * ivm_numeric_new(ivm_vmstate_t *state, ivm_number_t val) { ivm_numeric_t *ret = ivm_vmstate_alloc(state, sizeof(*ret)); ivm_object_i...
#ifndef __INPUT_H__ #define __INPUT_H__ #include "data.h" void handleInput(char ch, AtcsoData *data, WINDOW *msgWin); #endif
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ 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. ...
/*************************************************************************************************** * * SUBJECT: * A Benckmark for Massive Multiplayer Online Games * Game Server and Client * * AUTHOR: * Mihai Paslariu * Politehnica University of Bucharest, Bucharest, Romania * mihplaesu@yahoo.com * * T...
#include "user_config.h" #if MOD_TC_MK2_ENABLE & I2C_ENABLE #include "ets_sys.h" #include "osapi.h" #include "mem.h" #include "queue.h" #include "mod_tc_mk2.h" #include "driver/i2c_master.h" #include "driver/i2c_extention.h" i2c_command tc_commands[] = { { .code = 0x20, .description = "Get ID" }, { .cod...
// // NotasViewController.h // MackNotas // // Created by Caio Remedio on 17/04/15. // Copyright (c) 2015 Caio Remedio. All rights reserved. // #import <UIKit/UIKit.h> @interface NotasViewController : UITableViewController <UITabBarDelegate> @end
void puts(char* string); void putc(char* c); void print_hex(int i);
/************************************************************ * Student Name: TreeBots * * Exercise Name: Ex6 * * File description: Declaration of Vector Class * ***********************************************************/ #ifndef _...
////////////////////////////////////////////////////////////////////////////// // // Copyright 2014 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...
#include <stdio.h> #include <string.h> /* M1_A_L PC15 M1_B_L PC14 M1_C_L PC13 M2_A_L PD2 M2_B_L PC11 M2_C_L PC12 M3_A_L PC10 M3_B_L PB2 M3_C_L PB13 M4_A_L PB15 M4_B_L PB12 M4_C_L PB14 */ const char motor_channel_l[4][3][5] = { "PC15", "PC14", "PC13", "PD2", "PC1...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "bits.h" void test1() { unsigned int a = 9; unsigned int b = 3; printf("a:\n"); printBits(a); printf("b:\n"); printBits(b); printf("a&b:\n"); printBits(a&b); printf("a|b:\n"); printBits(a|b); printf("a^b:\n"); printBits(a^b); ...
#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <em/em.h> #include <matrix/matrix.h> size_t const PREC = 53; void print_help(char const* const name); int read_mtx(char const* const file, struct mtx ma, struct mtx mc, struct mtx mb0, struct mtx mb1); int main (int argc, char *argv[]) { ...
 // @file hit_spark.h // @brief The hit_spark related functions and enumerates // @author Mamoru Kaminaga // @date 2017-08-13 14:22:51 // Copyright 2017 Mamoru Kaminaga #ifndef HIT_SPARK_H_ #define HIT_SPARK_H_ #include <Vecmath.h> #include <deque> #include <vector> #include "./counter.h" #include "./scene.h"...
/* * Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved. * * See the file EXAMPLES-LICENSE for license information. * */ /* * Head file for MacDonald Self-Service Ordering System. */ #include <sys/types.h> #include <errno.h> #include <fstream> #include <iostream> #include <stddef.h> ...
#pragma once #include <ionCore.h> #include <ionMath.h> #include "Enums.h" #include "IShaderProgram.h" #include "IVertexBuffer.h" #include "IIndexBuffer.h" #include "IUniform.h" #include "ITexture.h" #include "IPipelineState.h" #include "IRenderTarget.h" #include "CGraphicsAPI.h" //! \defgroup ionG...
//----------------------------------------------------------------------------- // MAEVARM M4 STM32F373 mBus // version: 1.0 // date: March 22, 2013 // author: Neel Shah (neels@seas.upenn.edu) //----------------------------------------------------------------------------- #ifndef __m_bus #define __m_bus #include "mG...
// // ExamineCell.h // Guardian // // Created by WangQiang on 16/8/9. // Copyright © 2016年 WangQiang. All rights reserved. // #import <UIKit/UIKit.h> @interface ExamineCell : UITableViewCell @property (weak ,nonatomic)IBOutlet UILabel *contentLabel; @end
#ifndef NATIVEHELPERS_H #define NATIVEHELPERS_H #include <QObject> #include <QDomDocument> #include <QDomElement> #include <QtNetwork/QNetworkReply> #include <QtCore/QFile> #include <QtCore/QTime> #include "helpers.h" class nativehelpers : public QObject { Q_OBJECT public: nativehelpers(QObject *parent, helpe...
#ifndef PIPELINE_H #define PIPELINE_H #include <functional> #include <vector> template<class T> class Pipeline { public: typedef typename std::function<bool (T &)> ApplyFunction; typedef typename std::function<void (T &)> RollbackFunction; Pipeline<T> &AddStage( ApplyFunction applyFunc, RollbackFunction rollb...
/* VerbLoad.h (c)2000 Palestar Inc, Richard Lyle */ #ifndef VERBLOAD_H #define VERBLOAD_H #include "World/Verb.h" #include "NounShip.h" #include "GameDll.h" //------------------------------------------------------------------------------- class DLL VerbLoad : public Verb { public: DECLARE_WIDGET_CLASS(); DECLAR...
// // Stack.c // 算法实战 // // Created by 马远 on 2018/11/1. // Copyright © 2018 Yuan. All rights reserved. // #include "Stack.h" Stack *InitStack(void) { Stack *stack = (Stack *)malloc(sizeof(Stack)); if (!stack) { return NULL; } stack->top = -1; return stack; } int IsFull(Stack *stack) {...
// // FMChartSupport.h // FMChartSupport // // Created by Keisuke Mori on 2015/09/21. // Copyright © 2015 Keisuke Mori. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for FMChartSupport. FOUNDATION_EXPORT double FMChartSupportVersionNumber; //! Project version string for FMChart. FOUN...
#ifndef CGUI_PIXEL_RENDERER_H #define CGUI_PIXEL_RENDERER_H #include <CDirectionType.h> class CPixelRenderer; class CGUIPixelRenderer { private: CPixelRenderer *renderer_; public: enum FrameStyle { FRAME_RAISED, FRAME_SUNKEN }; CGUIPixelRenderer(CPixelRenderer *renderer) : renderer_(renderer) ...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "NSNumber.h" @interface NSNumber (iCalendarImport) + (id)boolFromICSString:(id)arg1; @end
#pragma once #include "ofMain.h" //#include "surinachOsc.h" #include "oscFFT.h" //all other classes #include "kai_01.h" #include "soundizeMeApp.h" #include "Angela.h" #include "kiyo_circle.h" #include "yu.h" #define nBANDS 512 class ofApp : public ofBaseApp { public: void setup(); void update(); void draw(...
// // AppDelegate.h // WLActivityViewController // // Created by Ling Wang on 3/17/15. // Copyright (c) 2015 Moke. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // SecondViewController.h // Chatter // // Created by Steven on 4/5/13. // Copyright (c) 2013 Steven. All rights reserved. // #import "ChannelHelper.h" #import <UIKit/UIKit.h> @interface HomeViewController : UIViewController <ChannelUpdatesDelegate, UITextFieldDelegate> @property (strong, nonatomic) NSMutabl...
// // JsenHomeViewController.h // JsenKit // // Created by WangXuesen on 2017/11/2. // Copyright © 2017年 WangXuesen. All rights reserved. // #import <UIKit/UIKit.h> #import "JsenViewController.h" @interface JsenHomeViewController : JsenViewController @end
// // RVViewController.h // RVAlertViewWithBlock // // Created by Rubén Vázquez on 9/15/13. // #import <UIKit/UIKit.h> @interface RVViewController : UIViewController @end
#define _WIN32_IE _WIN32_IE_IE70 #include "progress.h" #include <stdio.h> #include <windows.h> #include <assert.h> #include <versionhelpers.h> #include <initguid.h> #include <shlobj.h> #define CHECK(result) if (FAILED(result)) {\ return result;\ } #define CHECK_OBJ(obj, result) if (FAILED(result)) {\ obj->lpVtbl->...
#include "cpio.h" unsigned int cpio_validate(struct cpio_header *header) { return header->magic == 0x71C7; } unsigned int cpio_filedata(struct cpio_header *header) { return sizeof (struct cpio_header) + header->namesize + (header->namesize & 1); } unsigned int cpio_filesize(struct cpio_header *header) { ...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double ContactCardVersionNumber; FOUNDATION_EXPORT const unsigned char ContactCardVersionString[];
// // RDMTeacherSignInViewController.h // URLPusher-Teacher // // Created by Reese McLean on 8/5/13. // Copyright (c) 2013 Reese McLean. All rights reserved. // #import <UIKit/UIKit.h> #import "RDMTeacherDataController.h" @protocol RDMTeacherSignInViewControllerDelegate; @interface RDMTeacherSignInViewControlle...
//Thred Block Example #include <stdio.h> #define NUM_BLOCKS 16 #define BLOCK_WIDTH 1 __global__ void hello(){ printf("Hello world! I'm a thread in block %d\n", blockIdx.x); } int main(int argc, char **argv){ //launch the kernel hello<<<NUM_BLOCKS, BLOCK_WIDTH>>>(); //force the printf()s to flush cudaDeviceSyn...
int main(void) { float f; float* ff = &f; f = *ff; f = ff; }
/* * Generated by class-dump 3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard. */ #import "MCMessage.h" @interface MCMessage (MCMailboxAdapter) - (id)mailMailbox; @end
/* * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
// // AppDelegate.h // PaypalTestWebView // // Created by dev on 4/21/15. // Copyright (c) 2015 self. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // FOQueuedNavigationController.h // FOQueuedNavigationController // // Created by Fábio Oliveira on 22/03/14. // Copyright (c) 2014 Fábio Oliveira. All rights reserved. // #import <UIKit/UIKit.h> @interface FOQueuedNavigationController : UINavigationController @end
// // HomeViewController.h // MyTabbar // // Created by 蔡成汉 on 2017/4/19. // Copyright © 2017年 上海泰侠网络科技有限公司. All rights reserved. // #import "BaseViewController.h" @interface HomeViewController : BaseViewController @end
#ifndef GITCONFIG_H #define GITCONFIG_H // generated from class_header.h #include <nan.h> #include <string> extern "C" { #include <git2.h> } #include "../include/config.h" // Forward declaration. struct git_config { }; using namespace node; using namespace v8; class GitConfig : public ObjectWrap { public: st...
#include "quad.h" /* * Shift an (unsigned) quad value right (logical shift right). */ quad_t __lshrdi3(quad_t a, qshift_t shift) { union uu aa; if (shift == 0) { return (a); } aa.q = a; if (shift >= INT_BITS) { aa.ul[L] = aa.ul[H] >> (shift - INT_BITS); aa.ul[H] = 0; } else { aa.ul[L] = (aa.ul[L] >>...
// // AMCollectionViewController.h // ScrollingNavbarDemo // // Created by David on 28/12/2013. // Copyright (c) 2013 Andrea Mazzini. All rights reserved. // #import <UIKit/UIKit.h> #import "AMScrollingCollectionViewController.h" @interface AMCollectionViewController : AMScrollingCollectionViewController @end
#ifndef FIGHTERMENU_H #define FIGHTERMENU_H #include "Sprite.h" #include "Text.h" #include <utility> #include <string> #include <vector> using std::string; using std::vector; #define N_SKINS 4 #define SKIN_SCALE 3 class FighterMenu { private: Sprite skin[N_SKINS]; Sprite disabled; Text* name_text; string name;...
#ifndef _PURPLE_BLOCK_H_ #define _PURPLE_BLOCK_H_ #include <animation.h> #include <bitmapbase.h> #include <graphics.h> #include <nds.h> #include "normalblock.h" #include "purpleblockbmp.h" #include "purpleblockbottombmp.h" #include "purpleblockbottomleftbmp.h" #include "purpleblockbottomleftrightbmp.h" ...
/* * Copyright (c) 2016 Cormac Grindall (Mithreindeir) * * 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, * includi...
// // 4sum.h // // Created by jeswang 27/06/2014. // /* Description: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: Elements in a quadruplet (a,b,c,d) must be in non-descending orde...
/** * The MIT License (MIT) * * Copyright (c) 2013 cad-projects * * 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...
// // 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 DVTMacroDefinitionTable, NSArray, NSMutableDictionary; @interface IDEOverridingBuildProperties : NSObject { NSMutableDictionary *_macros; NSArr...
#pragma once #include <string> #include <map> #include <vector> #include <boost/rational.hpp> #include "hex_generator.h" /// TODO: replace with something slimmer /// I don't need the 10 or so boost libraries that /// boost rational includes using rational_t = boost::rational<int32_t>; // http://theale...