text
stringlengths
4
6.14k
// // Cars+CoreDataClass.h // TransportList // // Created by Renat Gafarov on 29/03/2017. // Copyright © 2017 Сергей. All rights reserved. // #import <Foundation/Foundation.h> #import "Transport+CoreDataClass.h" NS_ASSUME_NONNULL_BEGIN @interface Cars : Transport @end NS_ASSUME_NONNULL_END #import "Cars+CoreD...
// // BaseNavigationController.h // Beme // // Created by Eric Lewis on 11/22/15. // Copyright © 2015 Eric Lewis. All rights reserved. // #import <UIKit/UIKit.h> #import "CommonViewHeaders.h" @interface BaseNavigationController : UINavigationController @end
/* * Copyright (C) 2008 Philippe Gerum <rpm@xenomai.org>. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version....
/********************************* ** Tsunagari Tile Engine ** ** windows-condition-variable.h ** ** Copyright 2019 Paul Merrill ** *********************************/ // ********** // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation f...
//****************************************************************************** // Project: Weather-based simulation framework (WBSF) // Programmer: Rémi Saint-Amant // // It under the terms of the GNU General Public License as published by // the Free Software Foundation // It is provided "as is" w...
// // ESDOMCore.h // ESXML // // Created by Tracy E(tracy.cpp@gmail.com) on 12-9-8. // Copyright (c) 2012 EsoftMobile.com. All rights reserved. // #if ! __has_feature(objc_arc) #warning ESXML must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif #import "ESXMLNode.h" #import "ESXMLEle...
#pragma once #include <QString> /** * Enumeration of the possible modes in which frame-grabbing is performed. */ enum GrabbingMode { /** Frame grabbing is switched off */ GRABBINGMODE_OFF, /** Frame grabbing during video */ GRABBINGMODE_VIDEO, GRABBINGMODE_PAUSE, GRABBINGMODE_PHOTO, GRABBINGMODE_AUDIO, GRAB...
// // ViewController.h // fastlane_xcode8 // // Created by everettjf on 9/18/16. // Copyright © 2016 everettjf. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
// // MessageViewController.h // HanbitBibleMemory // // Created by Jaehong Chon on 2/23/14. // Copyright (c) 2014 Hanbit Church. All rights reserved. // #import <UIKit/UIKit.h> @interface MessageViewController : UIViewController @end
#pragma once namespace PhysX { public enum class ControllerBehaviorFlag { CctCanRideOnObject = PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT, CctSlide = PxControllerBehaviorFlag::eCCT_SLIDE, CctUserDefinedRide = PxControllerBehaviorFlag::eCCT_USER_DEFINED_RIDE }; };
// // Chronos.h // Chronos // // Copyright (c) 2015 Comyar Zaheri. 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 limi...
//https://www.acmicpc.net/problem/1008 #include <stdio.h> #include <inttypes.h> int main(void) { int8_t a, b; scanf("%"SCNd8"%"SCNd8, &a, &b); printf("%.9llf", (long double)a/(long double)b); return 0; }
/* Copyright (c) 2015 Patrick Dumais http://www.dumaisnet.ca 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, mer...
/** * __ ____ * / /__ _ __ / __/ __ * / //_/(_)/ /_ / / ___ ____ ___ __ __ / /_ * / ,< / // __/_\ \ / _ \ / __// _ \/ // // __/ * /_/|_|/_/ \__//___// .__//_/ \___/\_,_/ \__/ * /_/ github.com/KitSprout * * @file nrf5x_c...
#ifndef SLOWENEMY_H #define SLOWENEMY_H #include "thing.h" /** Class that handles every instance of * the slow enemy. Inherits from Thing. */ class SlowEnemy : public Thing { public: /** Default constructor. */ SlowEnemy(); /** Move the slow enemy. */ void move(int speedMult); /** Animates the slow enemy's spr...
/** \file * \brief Windows WMF Driver * Aldus Placeable Metafile * * See Copyright Notice in cd.h */ #include <stdlib.h> #include <stdio.h> #include "cdwin.h" #include "cdwmf.h" static void cdkillcanvas(cdCtxCanvas *ctxcanvas) { HMETAFILE hmf; cdwKillCanvas(ctxcanvas); hmf = CloseMetaFile(ctxcanv...
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
// // UIImageView+download.h // InstaPix // // Created by Ahmed Eid Air on 5/22/14. // Copyright (c) 2014 Ahmed_Eid_Inc. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImageView (download) -(void) downloadImageFromUrl:(NSString*)urlString; @end
// Mass3D.h // created by Kuangdai on 2-Jun-2016 // 3D mass #pragma once #include "Mass.h" class Mass3D : public Mass { public: Mass3D(const RColX &invMass); // compute accel in-place void computeAccel(CMatX3 &stiff) const; void computeAccel(CColX &stiff) const; void checkCompatibility...
// // Created by Dariusz Rybicki on 19/05/15. // Copyright (c) 2015 Darrarski. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
//Organism.h by Kostya Kozachuck as neurocod - 2016.05.22 14:16:41 #pragma once #include "Genome.h" class Organism { public: Organism(const Organism*father, const Organism* mother, const QDateTime & birth); virtual ~Organism() {} const QDateTime _birth; QDateTime _death; Genome _genome; const Organism* ...
// // EReaderView.h // E_Reader // // Created by 阿虎 on 2017/3/20. // Copyright © 2017年 tigerWF. All rights reserved. // #import <UIKit/UIKit.h> #import "EMagnifiterView.h" #import "ECursorView.h" @class EReaderView; @protocol EReaderViewDelegate <NSObject> - (void)eReaderView:(EReaderView *)eReaderView hideSetti...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import <IDEInterfaceBuilderKit/IBDocumentArchivingSchemaEnumerationComponent.h> @interface IBDocumentArchivingSchemaEnumerationComponent_NSBrowserColumnResizingType : IBDocumentAr...
#include "mySocket.h" #include "rio.h" #include <unistd.h> #include <stdlib.h> #include <stdio.h> #define MAXLINE 1024 int main(int argc, char **argv) { int clientfd, port; char *host, buf[MAXLINE]; rio_t rio; if(argc != 3) { fprintf(stderr, "usage: ./%s <host> <port>\n", argv[0]); ...
/****************************************************************************** Developed and Copyright (c) by Erik Unger Contact: erik@erikunger.com ...
#ifndef INTERPRETER_H #define INTERPRETER_H #include "eval.h" #include <QStringListIterator> class Interpreter { public: Interpreter(); ~Interpreter(); Block * read(QString codeIn); void reset(); private: Action * getAction(const QString & token, QStringListIterator & it, Eval * parentB...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved // Plugin written by Philipp Buerki. Copyright 2017. All Rights reserved.. #pragma once #include "CoreMinimal.h" #include "Interfaces/OnlineNotificationTransportInterface.h" #include "OnlineSubsystemPackage.h" struct FOnlineNotification; //forward declare ...
#ifndef CLASS_H #define CLASS_H #include <string> #include <unordered_map> #include <vector> #include "feSkill.h" #include "feStats.h" class feClass { private: std::string name; feStats base; feStats cap; feStats growth; std::vector<std::string> weaponTypes; std::vector<std::string> promotions; // pos...
#include "map.h" map_t generate_map(struct map_info *info) { // TODO map terrain types, for now just flat terrain map_t map = malloc(info->length * sizeof(map_height_t)); int cur_height = info->height / 2; srand(info->seed); for (int i=0; i < info->length; i++) { if (rand() % 2 == 1) ...
#pragma once #include "Engine\Component\BaseComponent.h" #include "Game\Player\PlayerTriggerCallback.h" #include "..\Engine\Engine\Physics\Events\OnCollisionEvent.h" namespace SB { struct OnTriggerEnterEvent; } class BasePickup; struct RoundEndMessage; class PickupComponent : public SB::BaseComponent, public Play...
#ifndef tcpip_h #define tcpip_h /* Server socket initialization */ int tcp_server_sock(int port, int qlen); int udp_server_sock(int port, int qlen); int tcp_connect(char *host, int port, int dowait, bool doThrow=false); int udp_connect(char *host, int port, int dowait); /* Selection of blocking versus non-blocking ...
/////////////////////////////////////////////////////////////////////////////// /// @file AdsCan_Hs_Transceiver.c /// @brief /// /// /// /// @author William Coady /// @date January 9, 2017 /// @bug No known bugs. /////////////////////////////////////////////////////////////////////////////// #include "AdsCa...
/* * Copyright (c) 2018 Pedro Falcato * This file is part of Onyx, and is released under the terms of the MIT License * check LICENSE at the root directory for more information */ #ifndef _WINDOW_H #define _WINDOW_H #include <display.h> #include <stddef.h> #include <memory> class Window { private: unsigned i...
#include "CSelectable.h" #include "Vector3.h" class CUnit : CSelectable { public: _DWORD field_54; _DWORD field_58; _DWORD field_5C; _DWORD field_60; _DWORD field_64; _DWORD field_68; _DWORD field_6C; _DWORD field_70; _DWORD field_74; _DWORD field_78; _DWORD field_7C; _...
#ifndef CQGnuPlotCreateDialog_H #define CQGnuPlotCreateDialog_H #include <CQDialog.h> #include <CQGnuPlotEnum.h> #include <CGnuPlotPosition.h> #include <CLineDash.h> class CQEnumCombo; class CQColorChooser; class CQGnuPlotPositionEdit; class CQAngleSpinBox; class CQIntegerSpin; class CQRealSpin; class CQLineDash; cla...
#pragma once #include <ntifs.h> /// <summary> /// Allocate new Unicode string from Paged pool /// </summary> /// <param name="result">Resulting string</param> /// <param name="size">Buffer size in bytes to alloacate</param> /// <returns>Status code</returns> NTSTATUS BBSafeAllocateString( OUT PUNICODE_STRING result, I...
#pragma once #include <evr.h> #include "VideoSourcePropertyExtension.h" interface IDirect3DDeviceManager9; class CEvrCustomMixer; class CVideoSourceEvrEx : public IDisplayVideoSource, public IMFGetService, public IMFTopologyServiceLookupClient, public IMFVideoDeviceID, public IMFVideoPresenter, public IMFVideo...
/******************************* Copyright (c) 2016-2021 Grégoire Angerand 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...
/* * Copyright (c) 2015 Jonathan Howard * License: https://github.com/v3n/altertum/blob/master/LICENSE */ #pragma once #include <climits> #include "foundation/collection_types.h" #include "foundation/memory_types.h" #include "math/math_types.h" #include "entity.h" #include "entity_manager.h" namespace altertum...
// // PostageClient.h // PostageKit // // Created by Stephan Leroux on 2013-01-08. // Copyright (c) 2013 PostageApp. All rights reserved. // #import <Foundation/Foundation.h> #import "AFHTTPClient.h" @class MessageParams, MessageReceipt, AccountInfo, ProjectInfo, RecipientInfo, MessageDeliveryStatus; typedef vo...
/* This file is part of TableGUI. Copyright (c) 2014 Felipe Ferreira da Silva TableGUI is licensed under MIT license. See the file "LICENSE" for license details. */ #include <stdio.h> #include <math.h> #include <GL/gl.h> #include <GLFW/glfw3.h> #include <basicutils.h> #include "GUI.h" #include "GUI_theme.h...
#pragma once #include <mixal_parse/types/expression.h> namespace mixal_parse { class Address { public: Address(); Address(const Expression& expr); Address(const WValue& wvalue); const Expression& expression() const; const WValue& w_value() const; bool empty() const; bool has_expression() cons...
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "SBAlertItem.h" @class NSString; @interface SBInsecureDrawingAlertItem : SBAlertItem { NSString *_processName; } @property(copy, nonatomic) NSString *processName; // ...
// // ROLogger.h // Test // // This App has been generated using IBM Mobile UI Builder // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, ROLoggerLevel) { ROLoggerLevelTrace, ROLoggerLevelDebug, ROLoggerLevelLog, ROLoggerLevelInfo, ROLoggerLevelWarn, ROLoggerLevelError, RO...
/* * Copyright (c) 1997-1999, 2003 Massachusetts Institute of Technology * * 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 License, or * (at your option) any later ...
#ifndef _ADD_H #define _ADD_H #ifdef __cplusplus extern "C" { #endif int add(int a, int b); #ifdef __cplusplus } #endif #endif
// // ASOverlaidChessBoardViewController.h // ASTransparentImage // // Created by Adam Szabo on 14/10/2015. // Copyright © 2015 Adam Szabo. All rights reserved. // #import "ASChessBoardViewController.h" @interface ASOverlaidChessBoardViewController : ASChessBoardViewController @property (nonatomic, readonly) UII...
/* * myAssert.h * * Created on: Aug 21, 2016 * Author: daniel */ #ifndef MYASSERT_H_ #define MYASSERT_H_ extern void AssertFailure(void) ; #define ASSERT(conditionThatShouldBeTrue) if ( !(conditionThatShouldBeTrue) ) AssertFailure(); #endif /* MYASSERT_H_ */
// // RTCLiveViewController.h // UCloudMediaRecorderDemo // // Created by Sidney on 23/05/17. // Copyright © 2017年 https://ucloud.cn. All rights reserved. // #import <UIKit/UIKit.h> #import "CameraServer.h" #import "NSString+UCloudCameraCode.h" #import "FilterManager.h" @interface RTCLiveViewController : UIViewCo...
/* * 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-Protocol.h" @protocol MPAssetKeyDelegate <NSObject> - (id)absolutePathForStillAssetAtPath:(id)arg1 andSize:(struct CGSize)arg2; - (id)absolutePathForAssetKey:(...
/* ******************************************************************************* * * File: dist.h * RCS: $Header: /tmp/mss/nwchem/src/perfm/dist.h,v 1.1 2006-05-19 18:59:26 edo Exp $ * Description: Distribution table implemented with an array * Author: Fabrizio Petrini * Created: * Modified: ...
#include<stdio.h> #define MOD 1000000007 int main(){ int t; long long int n1, n2, n3, i, j, k, count=0; scanf("%d", &t); while(t--){ scanf("%lld%lld%lld", &n1, &n2, &n3); for(i=1;i<=n1;i++){ for(j=1;j<=n2;j++){ if(j==i){ ...
#ifndef BOX_H #define BOX_H #define L 1000000000 #define S -1000000000 #include "Point.h" #include "Vector.h" class Box { public: //Point lastNormal; Box(Point* min, Point* max); Box(float x=L,float y=L,float z=L,float x2=S,float y2=S,float z2=S); ~Box() {} ...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "CALayer.h" #import "DVTInvalidation.h" @class CABasicAnimation, DVTDelayedInvocation, DVTStackBacktrace, IDESpinnerLayer, NSImage, NSString; @interface IDEActivityProgre...
#ifndef CLIENTMODEL_H #define CLIENTMODEL_H #include <QObject> class OptionsModel; class AddressTableModel; class TransactionTableModel; class CWallet; QT_BEGIN_NAMESPACE class QDateTime; class QTimer; QT_END_NAMESPACE enum BlockSource { BLOCK_SOURCE_NONE, BLOCK_SOURCE_REINDEX, BLOCK_SOURCE_DISK, BL...
// // BeaconCat.h // BeaconCat // // Created by Kevin Y. Kim on 10/22/13. // Copyright (c) 2013 AppOrchard, LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> #define BEACON_CATS_UUID @"31FD3DD3-28D5-4DEA-BDB4-BDF020937E07" #define BEACON_C...
/* * Acidx * * Acidx is a simple wrapper for X applications that accept the -fg and -bg parameters. * Specifically designed to have a low memory footprint, it will wrap X programs such as * xterm and randomly determine the background and foreground colors for the program, * while keeping the co...
#pragma once #include "ofMain.h" #include "DataController.hpp" //============================================================== // utils //============================================================== // マウスポインタ座標を画面サイズで0-1正規化した値を返す #define debugMouseX(a) (((float)ofGetMouseX()/(float)ofGetWidth())*a) #define debugM...
// // SQLifestyleSearchCell.h // SQLifestyle // // Created by Doubles_Z on 16-6-24. // Copyright (c) 2016年 Doubles_Z. All rights reserved. // #import <UIKit/UIKit.h> @interface SQLifestyleSearchCell : UITableViewCell + (instancetype)cellWithTableView:(UITableView *)tableView; + (CGFloat)cellHeight; @end
/* The MIT License (MIT) * * Copyright (c) 2016 rbnn * * 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, mo...
/** * @file debug.c * @brief Debugging facilities * * @section License * * Copyright (C) 2010-2015 Oryx Embedded SARL. All rights reserved. * * 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 Founda...
#include <stdlib.h> #include "bit_set.h" void bit_set_init(BitSet *bit_set, u32 size_in_bits) { bit_set->size_in_bits = size_in_bits; if (size_in_bits <= 64) { bit_set->bits = &bit_set->inline_bits; } else { bit_set->bits = malloc(8 * SIZE_IN_U64S(bit_set)); } } void bit_set_free(BitSet *bit_set) { if (bit_...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <CoreDAV/CoreDAVGetAccountPropertiesTaskGroup.h> @class NSSet; @interface CardDAVGetAccountPropertiesTaskGroup : CoreDAVGetAccountPropertiesTaskGroup { NSSet *_addr...
// // LoadingIndicatorViewController.h // ARIS // // Created by Phil Dougherty on 00/00/15. // // #import <UIKit/UIKit.h> #import "ARISViewController.h" @protocol LoadingIndicatorViewControllerDelegate @end @interface LoadingIndicatorViewController : ARISViewController - (id) initWithDelegate:(id <LoadingIndicat...
/* * Copyright (c) 2020 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 * rights ...
// // PriceOption.h // iGuidFC // // Created by dampier on 15/4/15. // Copyright (c) 2015年 Artur Mkrtchyan. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @interface PriceOption : NSObject @property (nonatomic, retain) NSArray * agents; @property (nonatomic, retain) NSNu...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <inttypes.h> #include "macros.h" #include "matrix_helpers.h" /* some utilities. NOTE: matrices are assumed to be stored as columns. */ extern void free_matrix( double **A, int n ) { if ( A != NULL ) { for ( int i = 0; i < ...
#pragma once /** * This is adoption of nice technique for automatic treatment of resources at * the end of scope. Original article comes from: * [1] http://www.cuj.com/documents/s=8000/cujcexp1812alexandr/ * * ScopeGuard is a generalization of a typical detailementation of the * "initialization is resource acquis...
#pragma once #include "Math/Math.h" namespace P2D { struct ManifoldPair { f32v2 position0; /**< Position 0*/ f32v2 position1; /**< Position 1*/ f32v2 normal; /**< Normal*/ f32 separation; /**< Separation*/ }; // Structure containing a set of points, used to calculate the collision after detection ...
// // 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" @protocol PBSViewServiceInterface <NSObject> - (void)dismissWithResult:(id <NSSecureCoding>)arg1; @end
/* * Copyright (C) 2009-2013 Gil Mendes * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS...
#ifndef LILY_KEYWORD_TABLE_H # define LILY_KEYWORD_TABLE_H typedef struct { const char *name; uint64_t shorthash; } keyword_entry; keyword_entry constants[] = { {"true", 1702195828}, {"self", 1718379891}, {"unit", 1953066613}, {"false", 435728179558}, {"__fil...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2002 Thomas Moestl <tmm@FreeBSD.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source...
// // TableDataCell.h // GGFMDB // // Created by Hugin on 16/9/2. // Copyright © 2016年 Hugin. All rights reserved. // #import <UIKit/UIKit.h> #import "Person.h" @interface TableDataCell : UITableViewCell @property(nonatomic, strong) Person *model; @end
#include "soundpipe.h" #include "md5.h" #include "tap.h" #include "test.h" typedef struct { sp_hilbert *hilbert; sp_osc *cos, *sin; sp_ftbl *ft; sp_diskin *diskin; } UserData; int t_hilbert(sp_test *tst, sp_data *sp, const char *hash) { uint32_t n; int fail = 0; SPFLOAT real = 0, imag = 0;...
// // BBGeneralHeader.h // SoloVideo // // Created by 项羽 on 16/9/18. // Copyright © 2016年 项羽. All rights reserved. // #ifndef BBGeneralHeader_h #define BBGeneralHeader_h #define WeakObj(o) __weak typeof(o) weak##o = o; /** 系统版本精确判断 @param v 要传入的系统版本字符串 @return 返回bool */ #define SYSTEM_VERSION_EQUAL_TO(v) ...
#ifndef HASH_FN_H #define HASH_FN_H #define STRING_ALPHABET_SIZE 26 #define SEED 3234213 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <gmp.h> typedef unsigned long int ulint; typedef struct hash_fn_t { mpz_t p; mpz_t a; mpz_t b; mpz_t m; gmp_randstate_t state; } hash_fn; /** * I...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_file_popen_68a.c Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml Template File: sources-sink-68a.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: file Read input from a file * Goo...
/* * Copyright (C) 2006, 2007 Rob Buis * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This librar...
/***************************************************************************** * VLCExternalDisplayController.h * VLC for iOS ***************************************************************************** * Copyright (c) 2013 VideoLAN. All rights reserved. * $Id$ * * Authors: Gleb Pinigin <gpinigin # gmail.com> * * Refe...
#ifdef __OBJC__ #import <Cocoa/Cocoa.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_Animal_AgeVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_Animal_AgeVersionString[];...
/************************************************************************************ * Copyright (c) 2015, Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistri...
#ifndef SRC_GRAPHICS_CUBE_H_ #define SRC_GRAPHICS_CUBE_H_ #include <Eigen/Core> #include <vector> #include <string> #include "./render_data.h" #include "./renderable.h" #include "./object_manager.h" #include "./shader_program.h" namespace Graphics { /** * \brief Draws a cube of size 1x1x1 centered at the origin *...
#ifndef BITCOINFIELD_H #define BITCOINFIELD_H #include <QWidget> //#include <QVariant> QT_BEGIN_NAMESPACE class QDoubleSpinBox; class QValueComboBox; QT_END_NAMESPACE /** Widget for entering bitcoin amounts. */ class BitcoinAmountField: public QWidget { Q_OBJECT Q_PROPERTY(qint64 value READ value WRITE set...
// // PersonModel.h // glimworm_ibeacon // // Created by Jonathan Carter on 22/12/2013. // Copyright (c) 2013 Jonathan Carter. All rights reserved. // @import CoreLocation; @import CoreBluetooth; @interface BTDeviceModel : NSObject { NSString * name; NSString * UUID; CFUUIDRef * uuidref; NSNumber *...
#ifndef NETTOMON_TRANSPORTLAYERPROCESSOR_H #define NETTOMON_TRANSPORTLAYERPROCESSOR_H #include <stdint.h> #include <sys/types.h> class TransportLayerProcessor { public: virtual ~TransportLayerProcessor() { } virtual uint16_t getSourcePort(const u_char *header) = 0; virtual uint16_t getDestinationPort(co...
#ifndef __COMMON_PROTOCOL_H__ #define __COMMON_PROTOCOL_H__ #include <stdint.h> #include "../main.h" #include "../ingame.h" typedef enum PacketType PacketType; enum PacketType { PACKET_TYPE_LOBBY, PACKET_TYPE_JOIN, PACKET_TYPE_START, PACKET_TYPE_MOVE_OBJECT, PACKET_TYPE_SOUND, PACKET_TYPE_KEYPRESS, PACKET_TYP...
#ifndef PLAYER_Equipment_H_INCLUDED #define PLAYER_Equipment_H_INCLUDED #include <SFML/Graphics.hpp> #include "Equipment_Data.h" class Equippable { public: void setData (const Equipment::Data& data); void setUp(const sf::Vector2f& size, const sf::RectangleShape& at...
/* * rtGetNaN.c * * Real-Time Workshop code generation for Simulink model "Template_test.mdl". * * Model Version : 1.13 * Real-Time Workshop version : 7.3 (R2009a) 15-Jan-2009 * C source code generated on : Thu Mar 20 15:07:33 2014 * * Target selection: nidll.tlc * Note: GRT includes extra in...
#include <stdio.h> #include <ctype.h> #include <math.h> double atof(char s[]); int main(void) { char t1[5] = "30"; // -> 30 char t2[5] = "30."; // 30 char t3[5] = "0.30"; // 0.3 char t4[5] = ".30"; // 0.3 char t5[5] = "3e1"; // 30 char t6[6] = "3.0e1"; // 30 char t7[5] = "e1"; // -> 0, perhaps it should...
#pragma once namespace Event { class ListenerInterface; class Event; } namespace Allocator { class MainAllocator; } #include <vxLib/Container/array.h> #include <vxLib/Container/DoubleBuffer.h> #include <gamelib/DebugAllocator.h> #include <gamelib/Event.h> class EventManager { struct ListenerEntry { Event::Li...
// // AxcUI_StarRatingView.h // AxcUIKit // // Created by Axc on 2017/7/3. // Copyright © 2017年 Axc_5324. All rights reserved. // @import UIKit; IB_DESIGNABLE // XIB老大,我干你先人。。api就不能详细点 /** 星级评分器 */ @interface AxcUI_StarRatingView : UIControl /** * 最大值 */ @property (nonatomic) IBInspectable NSUInteger axcUI...
/* * rfc.h, part of "knet" project. * * Created on: 05.06.2015, 23:00 * Author: Vsevolod Lutovinov <klopp@yandex.ru> */ #ifndef RFC_H_ #define RFC_H_ #include "../klib/config.h" #include <time.h> char * rfc1123_date( char * buf, time_t t ); #endif /* RFC_H_ */
#pragma once // #include "sprite.h" #include <allegro5/allegro.h> #include <allegro5/allegro_image.h> enum mouse_state { normal, attack, selection, repair, }; class cursor{ public: cursor(ALLEGRO_BITMAP *parent, ALLEGRO_DISPLAY *display); void set_cursor(ALLEGRO_DISPLAY *display, int cursor_t...
// // UIImageView+FKLDownload.h // BuDeJie // // Created by kun on 16/8/27. // Copyright © 2016年 kun. All rights reserved. // #import <UIKit/UIKit.h> #import <UIImageView+WebCache.h> @interface UIImageView (FKLDownload) - (void)fkl_setOriginImage:(NSString *)originImageURL thumbnailImage:(NSString *)thumbnailImag...
#ifndef MAKISE_COLORS_H #define MAKISE_COLORS_H 1 #ifdef __cplusplus extern "C" { #endif #include <stdint.h> #include "makise_config.h" #ifndef MAKISE_COLOR_CUSTOM_TYPE typedef uint32_t MColor; #define MC_Transparent UINT32_MAX #endif #ifndef MC_Transparent #define MC_Transparent UINT32_MAX #endif #ifndef MC_IS_T...
#include "clay.h" #include "server.h" clay_variables build_clay_variables(spade_server* server, http_request* request, clay_handler* handler, int incoming_socket) { clay_variables variables; variables.incoming_socket = incoming_socket; strcpy(variables.server_software, SPADE_SERVER_DESCRIPTOR); ...
/******************************************************************************** ** Form generated from reading UI file 'transactiondescdialog.ui' ** ** Created: Fri May 30 16:04:39 2014 ** by: Qt User Interface Compiler version 4.8.4 ** ** WARNING! All changes made in this file will be lost when recompiling UI f...
#pragma once #include "guilibimpl/win32.h" namespace GuiLib { class WidgetImpl; using WndProcAdapter = LRESULT(*)(WidgetImpl*, UINT aMsg, WPARAM aWP, LPARAM aLP); SafeVirtualSpace makeThunk(const HWND* aHwnd, const WidgetImpl* aWidgetImpl, WndProcAdapter wndProcAdapter); void optimizeThunkCall(SafeV...