text
stringlengths
4
6.14k
// Copyright (c) 2015 The BTX developers // Copyright (c) 2009-2012 The Darkcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef SPORK_H #define SPORK_H #include "bignum.h" #include "sync.h" #include "net....
#include "../src/vm.h" int main(void) { word code[] = { 0x01000009, /* SET A 4 */ 0x01001007, /* SET B 2 */ 0x02000001, /* ADD A B */ 0x01002006, /* SET C 1 */ 0x03000002, /* SUB A C */ 0x04001000 /* MULT B A */ }; /* Expected output: A = 5, B = A, C = ...
#pragma comment(lib, "user32.lib") #include "C:\Factory\Common\all.h" int main(int argc, char **argv) { ClipCursor(NULL); if(argIs("/P")) { sint x = atoi(nextArg()); sint y = atoi(nextArg()); SetCursorPos(x, y); return; } error(); // •s–¾‚ȃRƒ}ƒ“ƒhˆø” }
/* * Generated by class-dump 3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard. */ #import "NSObject.h" @interface NSObject (MainThreadMessaging) + (void)mf_performBlockOnMainThread:(id)arg1 waitUntilDone:(void)arg2; + (void)_mf_mainThreadPerform:(id)arg1; @end ...
#ifndef _SHA_1_UTILS_H_ #define _SHA_1_UTILS_H_ #include <unistd.h> #include <stdint.h> #define SWAP_ENDIAN (1) /* * A simple array printing in the following form : /xde/xad/xbe/xef. * Set swap_endianess to SWAP_ENDIAN in order to reverse the byte order. */ void md4_utils_print_array(uint8_t* array, size_t arra...
#pragma once #include <config.h> #include <iostream> #include <math.matrix/MatrixOperations.h> namespace nspace { // Matrix is a base class for all matrices. it has a very slim interface template<typename T, typename IndexType=int, typename SizeType = int> class Matrix { public: typedef IndexType Index...
// // 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 NSString; @interface MMSafeModeInfo : NSObject { int m_version; NSString *m_path; _Bool _shouldNotUpdateConfig; _Bool _isCrashBySpecial...
#ifndef MONITOR_H #define MONITOR_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <sys/mman.h> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <stdlib.h> #include <signal.h> #include <semaphore.h> #define SHM_PATH "/shmpath" #define SEM_PATH "/sempat...
// Copyright (c) 2013 Eryllium Developers #ifndef PBKDF2_H #define PBKDF2_H #include <openssl/sha.h> #include <stdint.h> typedef struct HMAC_SHA256Context { SHA256_CTX ictx; SHA256_CTX octx; } HMAC_SHA256_CTX; void HMAC_SHA256_Init(HMAC_SHA256_CTX * ctx, const void * _K, size_t Klen); void HMAC_SHA256_Upda...
// OVCManagedStore.h // // Copyright (c) 2014 Guillermo Gonzalez // // 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, ...
// // BGNanoWebDataStore.h // BGLibrary // // Created by Lawrence Lomax on 06/11/2012. // Copyright (c) 2012 Bell George. All rights reserved. // #import <Foundation/Foundation.h> #import "BGWebDataStore.h" #import "BGNanoDataStore.h" @interface BGNanoWebDataStore : BGNanoDataStore<BGWebDataStore> @end
// // SWMViewController.h // Orgo // // Created by Spencer MacKinnon on 12/23/12. // Copyright (c) 2012 Spencer MacKinnon. All rights reserved. // #import <UIKit/UIKit.h> #import <GLKit/GLKit.h> #import "SWMAtom.h" #import "SWMAtomFactory.h" #import "SWMModelGraph.h" #import "SWMMaterialCollection.h" @interface ...
// // SavedNumbersTableViewController.h // Mega Winner // // Created by Joshua Alvarado on 3/5/14. // Copyright (c) 2014 Joshua Alvarado. All rights reserved. // #import <UIKit/UIKit.h> @interface SavedNumbersTableViewController : UITableViewController @end
// // Scenario.h // Athena // // Created by Scott McClaugherty on 1/26/11. // Copyright 2011 Scott McClaugherty. All rights reserved. // #import <Foundation/Foundation.h> #import "LuaCoding.h" #import "ResCoding.h" #import "IndexedObject.h" @class IndexedObject; @class XSPoint, XSText; @class ScenarioPar; @class...
// // OCTEvent+Persistence.h // Scarecrow // // Created by duanhongjin on 8/4/16. // Copyright © 2016 duanhongjin. All rights reserved. // #import <OctoKit/OctoKit.h> @interface OCTEvent (Persistence) + (BOOL)ad_saveUserReceivedEvents:(NSArray *)eventArray; + (BOOL)ad_saveUserPerformedEvents:(NSArray *)eventArra...
#pragma once #ifndef MAIN_H #define MAIN_H class wxCommandEvent; class wxMenuBar; class wxWindow; class wxFrame; class wxNotebook; class windowDeleter { public: void operator()(wxWindow* window){window->Destroy();} }; class mainApp : public wxApp { public: bool OnInit(); private: std::unique_ptr<wxFrame, wi...
#ifndef HANDLEBARS_HELPERS_H #define HANDLEBARS_HELPERS_H #include <functional> #include <QHash> #include <QList> #include <QVariant> namespace Handlebars { using escape_fn = std::function< QString (const QString&) >; class RenderingContext; class Node; using helper_params = QVariantList; using helpe...
#ifndef SELECTION_SORT_H #define SELECTION_SORT_H #include <stddef.h> void selection_sort(int array[], size_t length); #endif // SELECTION_SORT_H
#ifndef __H_VECTOR__ #define __H_VECTOR__ struct Vector3D { float x, y, z; }; #endif /* __H_VECTOR__ */
#ifndef GUARD_Kinematics_h #define GUARD_Kinematics_h // class Kinematics double pAbs (double,double,double,double); double pt (double,double,double,double); double calculatetheta (double,double,double,double); double phi (double,double,double,double); double invariantmass (double,double,double,double); double lambda ...
/********************************************************************************************************************* Microsft HLS SDK for Windows Copyright (c) Microsoft Corporation All rights reserved. MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and a...
// // Calculator.h // EX-RAC-DEMO // // Created by weiying on 2016/12/5. // Copyright © 2016年 amoby. All rights reserved. // #import <Foundation/Foundation.h> typedef int (^valueBlock)(int value); typedef BOOL (^boolBlock)(int value); @interface Calculator : NSObject @property (nonatomic, assign) int result; @...
// // 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 "IDEKeyDrivenNavigableItemRepresentedObject-Protocol.h" @class DVTDocumentLocation, DVTFileDataType, IDEFileReference, NSImage, NSMutableDictionar...
// // CRZoomScrollView.h // CRMotionViewDemo // // Created by Tanguy Aladenise on 2014-11-06. // Copyright (c) 2014 Tanguy Aladenise. All rights reserved. // @protocol CRZoomScrollViewDelegate; #import <UIKit/UIKit.h> @interface CRZoomScrollView : UIScrollView @property (nonatomic, assign) id <CRZoomScrollView...
#include <numeric> namespace rtHMM { using namespace std; template<typename FDT, typename SDT, typename... DT> mixture_distribution<FDT, SDT, DT...>::mixture_distribution(array<double, num_dists> w, const FDT& first_dist, const SDT& second_dist, const DT& ... dists) : distributions(fi...
// // FLPrintf.h // FishLampFrameworks // // Created by Mike Fullerton on 8/22/12. // Copyright (c) 2013 GreenTongue Software LLC, Mike Fullerton.. // The FishLamp Framework is released under the MIT License: http://fishlamp.com/license // #import "FLCoreRequired.h" extern void FLPrintFormatWithIndent(NSUInteg...
/* * misc-private.h: Miscellaneous internal support functions * * Author: * Dick Porter (dick@ximian.com) * * (C) 2002 Ximian, Inc. */ #ifndef _WAPI_MISC_PRIVATE_H_ #define _WAPI_MISC_PRIVATE_H_ #include <glib.h> #include <sys/time.h> #include <time.h> extern void _wapi_calc_timeout(struct timespec *timeout,...
//******************************************************************************* // COPYRIGHT NOTES // --------------- // This is a part of the BCGControlBar Library // Copyright (C) 1998-2000 BCGSoft Ltd. // All rights reserved. // // This source code can be used, distributed or modified // only under terms a...
/* * ssd1306_i2c.c * * Created: 5/9/2017 6:25:16 PM * Author: pvallone */ #include <asf.h> #include "ssd1306_i2c.h" void configure_i2c(void) { #if BOARD == SAMD21_XPLAINED_PRO /* Initialize config structure and software module */ struct i2c_master_config config_i2c_master; i2c_master_get_conf...
// // GKWYMusicFindViewController.h // GKNavigationBarViewControllerDemo // // Created by QuintGao on 2017/7/10. // Copyright © 2017年 QuintGao. All rights reserved. // #import <UIKit/UIKit.h> #import "GKBaseViewController.h" @interface GKWYMusicFindViewController : GKBaseViewController @end
// // HuiJinMessageView.h // HuiJing // // Created by Peter on 6/22/16. // Copyright © 2016 Peter. All rights reserved. // #import <UIKit/UIKit.h> @interface HuiJinMessageView : UIView @end
#pragma once #include "../common/InnoType.h" #include "GLRenderPassComponent.h" #include "GLShaderProgramComponent.h" class GLShadowRenderPassComponent { public: ~GLShadowRenderPassComponent() {}; static GLShadowRenderPassComponent& get() { static GLShadowRenderPassComponent instance; return instance; } Obj...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Aureus Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef AUREUS_UINT256_H #define AUREUS_UINT256_H #include <assert.h> #include <c...
// // CMAutoCompletTableViewCell.h // I_NScreen // // Created by 조백근 on 2015. 10. 1.. // Copyright © 2015년 STVN. All rights reserved. // #import <UIKit/UIKit.h> typedef void(^AutoCompletCloseEvent)(NSIndexPath* indexPath); @interface CMAutoCompletTableViewCell : UITableViewCell @property (nonatomic, strong) NSI...
// // CDDTopScrollView.h // BaseProject // // Created by 曹冬冬 on 2017/4/6. // Copyright © 2017年 曹冬冬. All rights reserved. // #import <UIKit/UIKit.h> @class CDDTopScrollView; @protocol CDDTopScrollViewDelegate <NSObject> - (void)topScrollView:(CDDTopScrollView *)topScrollView didSelectTitleAtIndex:(NSInteger)index...
//NOT_CREATE_META_DATA #ifndef __SOC_NORMAL_MAPPING_H__ #define __SOC_NORMAL_MAPPING_H__ float3 UnpackNormal(float3 normalMapXYZ, float3 normal, float3 tangent) { float3 binormal = normalize( cross(normal, tangent) ); float3x3 TBN = float3x3(normalize(tangent), normalize(binormal), normalize(normal)); float3 tan...
/* This example reads from the default PCM device and writes to standard output for 5 seconds of data. To compile: gcc recorder.c -o recorder -lasound */ /* Use the newer ALSA API */ #define ALSA_PCM_NEW_HW_PARAMS_API #include <alsa/asoundlib.h> int main() { long loops; int rc; int size; snd_pcm_t *handle...
// // ConvertingAnImageToGrayscale.h // XFCrystalKitExample // // Created by 付星 on 16/8/19. // Copyright © 2016年 yizzuide. All rights reserved. // #import <UIKit/UIKit.h> @interface ConvertingAnImageToGrayscale : UIView @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/IDEInspectorAbstractActionProperty.h> @class IDEInspectorKeyPath, NSButton, NSString; @interface IDEInspectorActionButtonProperty : IDEInspectorAbstractActionP...
#ifndef NWJS_CONTENT_HOOKS_H #define NWJS_CONTENT_HOOKS_H #include "nw_package.h" #include "third_party/WebKit/public/web/WebNavigationPolicy.h" namespace base { class DictionaryValue; } namespace blink { class WebFrame; class WebLocalFrame; class WebURLRequest; class WebString; } namespace content { cl...
// vim:ts=4:sw=4:expandtab #pragma once #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <err.h> #include <xcb/xcb.h> #include <xcb/xcb_atom.h> #include <xcb/xcb_aux.h> #include <xcb/randr.h> #include <xcb/dpms.h> #include <pango/pangocairo.h> #include <cairo/cairo-xcb.h> #in...
// AMD AMDUtils code // // Copyright(c) 2017 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 limitati...
#ifndef EDGE_H #define EDGE_H class Vertex; class Edge { public: Edge(Vertex* to, Vertex* from, int weight) : from(from), to(to), weight(weight) {} Vertex* from; Vertex* to; int weight; bool deleted = false; bool bridge = false; bool oriented = true; bool weighted = true; /// Returns the o...
#ifndef CURRENT_SENSOR_DEVICE_INTERFACE_H #define CURRENT_SENSOR_DEVICE_INTERFACE_H #include "../../../device/deviceInterface.h" #include "../../../device/deviceConstants.h" // List of CURRENT SENSOR COMMAND HEADER /** * Defines the header to read the temperature sensor */ #define COMMAND_READ_CURRENT...
// Copyright (c) 2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef VIRTAUNIQUECOIN_LIMITEDMAP_H #define VIRTAUNIQUECOIN_LIMITEDMAP_H #include <map> #include <deque> /** STL-like map contain...
// (C) Copyright 2018, Nanbo Sun (nanbosun@u.nus.edu), Xiuming Zhang // This file is part of POLARLDA-C. // POLARLDA-C 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 2 of the License, or (a...
#ifndef __CORPUS_H #define __CORPUS_H #include <fstream> #include <sstream> #include <string> #include <vector> #include <unordered_map> #include "types.h" using std::vector; using std::string; using std::unordered_map; class Corpus { public: Corpus(const char *vocabPath, const char *dataPath); Corpus(co...
/********************************************************************* ** Copyright (C) 2003 Terabit Pty Ltd. All rights reserved. ** ** This file is part of the POSIX-Proactor module. ** ** ** ** ** ** ** ** **********************************************************************/ // ============================...
// // MDBaseRequest.h // MadeInChinaDemo // // Created by mac on 16/1/13. // Copyright © 2016年 Onego. All rights reserved. // #import <MadeInChina/MadeInChina.h> #import <MICHttpRequestForThirdnet.h> @interface MDBaseRequest : MICHttpRequestForThirdnet /** * 服务地址 */ + (NSString *)getServiceAddress; - (NSStrin...
/** * Interface GameController * @author Patricio Ferreira <3dimentionar@gmail.com> * Copyright (c) 2017 nahuelio. All rights reserved. **/ #ifndef GAME_GAMECONTROLLER_H #define GAME_GAMECONTROLLER_H #include "Controller.h" #include "../game/headers/ShaderController.h" namespace game_controller { class Game...
#include <SDL2/SDL_keyboard.h> #include <SDL2/SDL_scancode.h> #include <SDL2/SDL_stdinc.h> #include <mruby.h> #include <mruby/class.h> #include <mrgss/mrgss.h> #include <mrgss/mrgss_keyboard.h> /* Maximun amount of keys in the */ #define MAX_KEYS 512 /** * buffers */ static char press[MAX_KEYS]; static char trigg...
/* * 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 "NSCopying-Protocol.h" @class NSMutableArray, NSString; @interface PBXFindOptionsSet : NSObject <NSCopying> { NSString *_name; struct { ...
/* This file is part of the MicroPython project, http://micropython.org/ * MIT License; Copyright (c) 2021 Damien P. George */ // STM32F407VET6 Mini by VCC-GND Studio // http://vcc-gnd.com/ // https://item.taobao.com/item.htm?ft=t&id=523361737493 // https://www.aliexpress.com/wholesale?SearchText=STM32F407VET6+Mini ...
// // gd-proto // Copyright (c) 2015 Borislav Stanimirov // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // http://opensource.org/licenses/MIT // // Main profiling macros #pragma once #define GDPROTO_PERF_PROFILING_ON 1 #if GDPROTO_PERF_PROFILING_ON #include "PerfProf...
// // QueueDestroyer.h // // Created by Craig Fortune on 04/08/2012. // #import <Foundation/Foundation.h> #import "box2d.h" // Base that that provides singleton management // and simple queue management @interface CFQueueDestroyer : NSObject // There isn't an NSQueue class, but an NSMutableArray // serves our need...
// // PDFReaderBookDelegate.h // // Copyright (C) 2011-2013 Julius Oklamcak. All rights reserved. // Portions (C) 2014 Mark Eissler. 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 ...
#pragma once #include "Common/primitive_type.h" #include "Math/TVector3.h" #include "FileIO/SDL/TCommandInterface.h" #include "Core/Texture/TTexture.h" #include "Core/Quantity/SpectralStrength.h" #include "Core/Texture/TConstantTexture.h" #include <iostream> #include <memory> namespace ph { class CookingContext; cl...
// // DYMovieVController.h // LoveMovie // // Created by xudingyang on 16/5/13. // Copyright © 2016年 许定阳. All rights reserved. // #import <UIKit/UIKit.h> @interface DYMovieVController : UIViewController @end
// // AMGolTableViewCell.h // aMenjar // // Created by Mauro Vime Castillo on 12/9/14. // Copyright (c) 2014 Mauro Vime Castillo. All rights reserved. // #import <UIKit/UIKit.h> @interface AMGolTableViewCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *foto; @property (weak, nonatomic) IBO...
#ifndef __CAMERA_H__ #define __CAMERA_H__ #include "Object.h" #include <glm/glm.hpp> /** @ingroup game * @{ */ /// A camera through which the world can be rendered. class Camera : public Object { public: /// Create new camera. Camera(); /// Destructor virtual ~Camera() { } /// Get the direction in whi...
// // TrainingLevelSectionTableViewCell.h // HighCBar // // Created by shadow on 14-7-25. // Copyright (c) 2014年 genio. All rights reserved. // #import <UIKit/UIKit.h> @interface TrainingLevelSectionTableViewCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *iconImageView; @property (weak, ...
/* * Copyright (C) 2011 Philippe Gerum <rpm@xenomai.org>. * * Xenomai 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 2 of the License, or * (at your option) any later version. * * Xenom...
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: android/libcore/luni/src/main/java/org/apache/harmony/security/pkcs7/SignedData.java // #ifndef _OrgApacheHarmonySecurityPkcs7SignedData_H_ #define _OrgApacheHarmonySecurityPkcs7SignedData_H_ #include "J2ObjC_header.h" @class OrgApacheHarmonySecuri...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Styling/SlateStyle.h" /** */ class FLuaDebuggerStyle { public: static void Initialize(); static void Shutdown(); /** reloads textures used by slate renderer */ static void ReloadTextures(); /** @ret...
// // AppDelegate.h // PXCOCHelper // // Created by peixinchen on 15-4-18. // Copyright (c) 2015年 peixinchen. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // StandViewController.h // Stand for Something // // Created by Alper Cugun on 12/8/13. // Copyright (c) 2014 Hubbub. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreMotion/CoreMotion.h> #import <CoreLocation/CoreLocation.h> #import <AudioToolbox/AudioToolbox.h> #import <Social/Social.h> #import <...
/*========================================================== * Copyright 2017 Institute for X-ray Physics (University of Göttingen) * * 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 wi...
#pragma once #include "Exps.h" #include "Stms.h" #include "CLabel.h" namespace IRTTRANSLATOR { using IRT::TBINOP; using IRT::TCJUMP; using IRT::CLabel; using IRT::CTemp; using IRT::IExp; using IRT::IStm; using IRT::CCONST; using IRT::CNAME; using IRT::CTEMP; using IRT::CBINOP; using IRT::CMEM; using IRT::CCALL; u...
// // Copyright 2009-2011 Facebook // // 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/LICENSE-2.0 // // Unless required by applicable law or agreed to...
// // MIDIReciever.h // MidiKeyboard // // Created by Volter on 20.04.14. // Copyright (c) 2014 volter9. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreMIDI/CoreMIDI.h> @protocol MIDIReceiver <NSObject> @optional - (void)receiveMIDIInput: (NSArray *)packet; - (void)receiveMIDINotification...
#include <pebble.h> #include "description.h" #include "../types.h" #include "../constants.h" static Window *s_window; static ScrollLayer *s_scroll_layer; static TextLayer *s_name_layer; static TextLayer *s_description_layer; static const int max_scroll_height = 10000; extern GFont s_font_semi_bold_20; extern GFont...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_listen_socket_execlp_66b.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-66b.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data using a...
QString HQt_LatexShowAlert (QString String);
// // The MIT License (MIT) // // Copyright (c) 2015 Microsoft // // 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...
// // Created by Yuanjun Xiong on 18/11/2015. // #ifndef DENSEFLOW_UTILS_H #define DENSEFLOW_UTILS_H #include "common.h" void writeZipFile(std::vector<std::vector<uchar> >& data, std::string name_temp, std::string archive_name); #endif //DENSEFLOW_UTILS_H
/** * Copyright (c) 2016 Peter Cannici * Licensed under the MIT (X11) license. See LICENSE. */ #include "test.h" int main(int argc __attribute__((unused)), char **argv __attribute__((unused))) { ptrdiff_t num_suites = suite_registry_end - suite_registry_begin; for (int i = 0; i < num_suites; i++) p...
#ifndef FLTPROPSLIDER_H #define FLTPROPSLIDER_H #include <QWidget> #include "util.h" namespace Ui { class FltPropSlider; } class FltPropSlider : public QWidget { Q_OBJECT public: explicit FltPropSlider(QWidget *parent = 0); FltPropSlider(QString caption, float minVal, float maxVal, float ste...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__wchar_t_type_overrun_memcpy_03.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow.label.xml Template File: point-flaw-03.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * Sinks: type_overrun_memcpy * ...
#ifndef ScheduledAction_h #define ScheduledAction_h #include "script/include/squirrel.h" #include <wtf/Timer.h> class DOMTimer; class ThreadTimers; class ScheduledAction { public: ScheduledAction(HSQUIRRELVM v, HSQOBJECT* function, int timeout, bool singleShot, ThreadTimers* threadTimers, DOMTimer* pDOMTimer); ~Sc...
// // AppDelegate.h // FWPageControl // // Created by Chin on 15/3/16. // Copyright (c) 2015年 Chin. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
/** * \file blas/blas_vector.h * * \brief Dense vector arithmetic using BLAS. * */ #ifndef BLAS_BLAS_VECTOR_H #define BLAS_BLAS_VECTOR_H #include "invlib/dense/vector_data.h" #include "invlib/sparse/sparse_data.h" #include "invlib/blas/blas_generic.h" namespace invlib { // -------------------- // // Forward Dec...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_connect_socket_w32_spawnv_66b.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-66b.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data u...
/* * 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 NSArray, NSLayoutManager, NSTextContainer, NSTextStorage; @interface XCETextLayout : NSObject { NSLayoutManager *_layoutManager; struct _NSR...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE476_NULL_Pointer_Dereference__struct_14.c Label Definition File: CWE476_NULL_Pointer_Dereference.label.xml Template File: sources-sinks-14.tmpl.c */ /* * @description * CWE: 476 NULL Pointer Dereference * BadSource: Set data to NULL * GoodSource: Initialize...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE806_wchar_t_memmove_52a.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE806.label.xml Template File: sources-sink-52a.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initiali...
#include "../termo.h" #include "taplib.h" int main (int argc, char *argv[]) { termo_t *tk; termo_key_t key; termo_mouse_event_t ev; int button, line, col; char buffer[32]; size_t len; plan_tests (60); tk = termo_new_abstract ("vt100", NULL, 0); termo_push_bytes (tk, "\e[M !!", 6); key.type = -1; is_int ...
#ifndef Distance_IS_INCLUDED #define Distance_IS_INCLUDED #include "../Coor/Coor.h" #include <blitz/array.h> #include <cmath> using namespace blitz; #ifndef sqr_IS_INCLUDED #define sqr_IS_INCLUDED inline double sqr(double x) {return x*x;}; #endif // **************************************************************** //...
// -*- C++ -*- /*************************************************************************** * blitz/vecexprwrap.h Vector expression templates wrapper class * * $Id: vecexprwrap.h,v 2.0 2009/01/22 17:03:42 patrime Exp $ * * Copyright (C) 1997-2001 Todd Veldhuizen <tveldhui@oonumerics.org> * * This program is fr...
#ifndef dplyr_tools_all_na_H #define dplyr_tools_all_na_H template <int RTYPE> inline bool all_na_impl(const Vector<RTYPE>& x) { return all(is_na(x)).is_true(); } template <> inline bool all_na_impl<REALSXP>(const NumericVector& x) { return all(is_na(x) & !is_nan(x)).is_true(); } inline bool all_na(SEXP x) { R...
/* * timer.c * * Created on: Dec 7, 2015 * Author: longqi */ #include "timer.h" #include "CanBus.h" float32 heartbeat = 0; void configureTimer0() { DINT; // Disable CPU interrupts // Interrupts that are used in this example are re-mapped to // ISR functions found within this file. EALLOW; PieVectTab...
#include <stdio.h> int main() { char *name = "Andrew"; printf("Hello %s\n", name); return 0; }
/* * File: maincode.c * Author: klnla * * Created on June 10, 2021, 2:42 PM */ /* 1. condicion START 2. enviar direccion slave 3. esperar Ack 4. enviar dato 5. esperar Ack 6. condicion STOP*/ #include <xc.h> #include "cabecera.h" #define _XTAL_FREQ 48000000UL unsigned char cuenta = 0; v...
// This library is distributed in the hope that it will be useful but without // any warranty; without even the implied warranty of merchantability or // fitness for a particular purpose. // The use and distribution terms for this software are covered by the Eclipse // Public License 1.0 (http://opensource.org/...
/* $Id: memory.c,v 1.4 2011/01/25 16:30:49 ellson Exp $ $Revision: 1.4 $ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made avail...
/* Copyright (C) 2002, The IPDR Organization, all rights reserved. * The use and distribution of this software is governed by the terms of * the license agreement which can be found in the file LICENSE.TXT at * the top of this source tree. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF * ANY ...
/* * This file is part of the KDE project * * Copyright (c) 2005 Cyrille Berger <cberger@cberger.net> * * 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; either version 2 of the Licens...
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __javax_print_attribute_Attribute__ #define __javax_print_attribute_Attribute__ #pragma interface #include <java/lang/Object.h> extern "Java" { namespace javax { namespace print { namespace attribute { class Attri...
/* PR c/7652 */ /* { dg-do compile } */ /* { dg-require-effective-target alloca } */ /* { dg-options "-Wimplicit-fallthrough" } */ extern void bar (int); extern int bar2 (void); extern int *map; void f (int i) { switch (i) { case 1: bar (0); /* { dg-warning "statement may fall through" } */ stati...
/* ncmpc (Ncurses MPD Client) * (c) 2004-2010 The Music Player Daemon Project * Project homepage: http://musicpd.org * * 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; either version 2 of t...
// // EnemyFactory.h // TowerDefense // // Created by jowu on 15/11/30. // // #ifndef __TowerDefense__EnemyFactory__ #define __TowerDefense__EnemyFactory__ #include "cocos2d.h" #include "Enemy.h" class EnemyFactory { public: static Enemy* create(EnemyID id); }; #endif /* defined(__TowerDefense__EnemyFactory_...