text
stringlengths
4
6.14k
#ifndef GUICONSTANTS_H #define GUICONSTANTS_H /* Milliseconds between model updates */ static const int MODEL_UPDATE_DELAY = 250; /* AskPassphraseDialog -- Maximum passphrase length */ static const int MAX_PASSPHRASE_SIZE = 1024; /* AtheistCoinGUI -- Size of icons in status bar */ static const int STATUSBAR_ICONSIZE...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import <IDEFoundation/IDERunnable.h> #import "DVTXMLUnarchiving.h" @class IDESchemeBuildableReference, NSString; @interface IDEBuildableProductRunnable : IDERunnable <DVTXMLUnar...
// // BDVRCustomRecognitonViewController.h // BDVRClientSample // // Created by Baidu on 13-9-25 // Copyright 2013 Baidu Inc. All rights reserved. // // 头文件 #import <UIKit/UIKit.h> #import "BDVoiceRecognitionClient.h" #import "A_VoiceViewController.h" // 前向声明 @class BDVRViewController; // @class - BDVRCustomRecog...
#ifndef _PLUGIN_H #define _PLUGIN_H #include "xLCB.h" //menu identifiers #define MENU_SEPARATOR 0 #define MENU_ABOUT 1 #define MENU_COMMENTS_EXPORT 2 #define MENU_COMMENTS_IMPORT 3 #define MENU_COMMENTS_CLEAR 4 #define MENU_LABELS_EXPORT 5 #define MENU_LABELS_IMPORT 6 #define MENU_LABELS_CLEAR 7 #define MENU_BP_E...
#pragma once // The BuildingCompletion class is used to describe how far along a Build-Item is to completion. // For example, if a city is building a battleship, and it has completed 15 turns of production, this class describes that. // This information is useful to the AI so that it knows to continue building it...
// // FirstRequest.h // SUIMVVMDemo // // Created by yuantao on 16/4/8. // Copyright © 2016年 lovemo. All rights reserved. // #import <Foundation/Foundation.h> #import "SMKRequestProtocol.h" #import "NSObject+SMKRequest.h" @interface FirstRequest : NSObject<SMKRequestProtocol> @end
// Copyright 2017 ibelie, Chen Jie, Joungtao. All rights reserved. // Use of this source code is governed by The MIT License // that can be found in the LICENSE file. #ifndef TYPY_FIXEDPOINT_H__ #define TYPY_FIXEDPOINT_H__ #include "typy.h" #define FIXEDPOINT FixedPoint<precision, floor> namespace typy { template ...
/* COPYRIGHT 2012 ESRI TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL Unpublished material - all rights reserved under the Copyright Laws of the United States and applicable international laws, treaties, and conventions. For additional information, contact: Environmental Systems Research Institute, Inc. A...
#ifndef LEVELEDITOR_H #define LEVELEDITOR_H #include <QWidget> #include "ui_leveleditor.h" QT_BEGIN_NAMESPACE class QFileSystemModel; class QFileSystemWatcher; class QSortFilterProxyModel; QT_END_NAMESPACE class Resource; class Model; class LevelEditor : public QWidget { Q_OBJECT public: explicit LevelEdit...
// Copyright (c) 2011-2013 The Yescoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef TRANSACTIONDESCDIALOG_H #define TRANSACTIONDESCDIALOG_H #include <QDialog> namespace Ui { class TransactionDescD...
#pragma once #include "Madgine/resources/resourceloader.h" #include "textureloader.h" #include "util/directx12texture.h" namespace Engine { namespace Render { struct MADGINE_DIRECTX12_EXPORT DirectX12TextureLoader : Resources::VirtualResourceLoaderImpl<DirectX12TextureLoader, DirectX12Texture, TextureLoader> {...
/// \login.h /// \brief 登录界面 /// \author 汪超 #ifndef LOGIN_H #define LOGIN_H #include <QMainWindow> namespace Ui { class Login; } class Login : public QMainWindow { Q_OBJECT public: explicit Login(QWidget *parent = 0); ~Login(); private slots: void on_loginButton_clicked(); void on_registerButt...
#ifndef EMBEDDEDHELPERLIBRARY_CIRCULAR_BUFFER_H #define EMBEDDEDHELPERLIBRARY_CIRCULAR_BUFFER_H namespace ehl { using isr_circular_buffer_size_t = unsigned int; template <typename T, isr_circular_buffer_size_t buffer_elements> class isr_circular_buffer { private: volatile isr_circular_buffer_size_t head{0}; ...
// // DHAppDelegate.h // DHSidebarViewController // // Created by Jay Roberts on 3/6/13. // Copyright (c) 2013 DesignHammer. All rights reserved. // #import <UIKit/UIKit.h> @interface DHAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
#include <stdio.h> int main(int argc, char *argv[]) { printf("Hello World!\n"); printf("I turned 100 today!\n"); printf("But I am Old\n"); return 0; }
// // Created by Anastasiya Gorban on 7/31/15. // Copyright (c) 2015 Techery. All rights reserved. // #import <Foundation/Foundation.h> #import "OSActor.h" @interface OSActorExecutor : NSObject <OSActorHandler> @property(nonatomic, readonly) id<OSActorHandler> actorHandler; @property(nonatomic, readonly) NSOperatio...
// // Created by deangeli on 5/21/17. // #ifndef LIBFL_VECTORUTIL_H #define LIBFL_VECTORUTIL_H #include "vector.h" #define mergeVectorsSameType_macro(type, vector1, size1, vector2, size2, vector3) \ if(vector1 == NULL && vector2 == NULL){ \ vector3 = NULL; \ }\ else if(vector1 == NULL){ \ ...
/* * libdpkg - Debian packaging suite library routines * pkg-array.h - primitives for pkg array handling * * Copyright © 2009 Guillem Jover <guillem@debian.org> * * This 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 Soft...
// // MySharedViewController.h // SUMusic // // Created by 万众科技 on 16/2/2. // Copyright © 2016年 KevinSu. All rights reserved. // #import "BaseViewController.h" @interface MySharedViewController : BaseViewController @end
// // Members.h // Bage // // Created by Duger on 14-1-13. // Copyright (c) 2014年 Duger. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class MemberPoints; @interface Members : NSManagedObject @property (nonatomic, retain) NSString * m_Jid; @property (nonatomic, retain)...
// // UINavigationController+DragToDismiss.h // TransitionViewController // // Created by ThuyenBV on 8/5/15. // Copyright (c) 2015 ThuyenBV. All rights reserved. // #import <UIKit/UIKit.h> #import "TransitionObject.h" #import "DetectScrollPanGesture.h" @interface UINavigationController (DragToDismiss) <UIGesture...
/* * FLObjcRuntime.h * PackMule * * Created by Mike Fullerton on 6/29/11. * Copyright (c) 2013 GreenTongue Software LLC, Mike Fullerton. // The FishLamp Framework is released under the MIT License: http://fishlamp.com/license * */ #import "FLCoreRequired.h" #import <objc/runtime.h> #import "FLRuntimeInfo...
#ifndef RANDOM_H #define RANDOM_H #include <stdint.h> #include <stddef.h> #include "sha256.h" struct fortuna_generator { uint8_t key[32]; // 256-bit AES key union { struct { uint64_t l; // 128-bit counter uint64_t h; } counter; uint8_t counter_bytes[16]; }; ...
/* * The X Men, June 1996 * Copyright (c) 1996 Probe Entertainment Limited * All Rights Reserved * * Authors: Phillipd, Philipy */ /* * Copyright (C) 1995, 1996 Microsoft Corporation. All Rights Reserved. * * File: d3dappi.h * * Internal header. Part of D3DApp. * * D3DApp is a collection of helper fu...
#ifndef JSUTILS_H #define JSUTILS_H #include <string> #include <fstream> #include <cassert> #include <iostream> #include "../../google/v8/v8.h" #include "Macros.h" #include "PrettyPrinter.h" class JsUtils { public: static void forceGarbageCollection() { /** * http://athile.net/library/blog/?p=1333 ...
#ifndef LIBUTIL_NODE_H #define LIBUTIL_NODE_H #include <stdint.h> #include <libutil/string.h> #include <libutil/vector.h> enum msgu_node_type { msgnode_stream = 1, msgnode_file = 2, msgnode_dir = 3, }; /* * objects shared on a host * nodes can be block devices, sockets or directories * nodes ...
void mpiexchange(int taskid, double *c, int Mx); void sendtomaster(int taskid, double *c); void receivefrmworker(double *c);
//--------------------------------------------------------------------------- #ifndef ComPtrH #define ComPtrH //--------------------------------------------------------------------------- #include <objbase.h> struct ECom: public Exception { ECom(AnsiString FunctionName, HRESULT hr); HRESULT hr; }; #define COM_CHECK...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2015 The DynamicCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_POW_H #define BIT...
// // DCMarkVisitor.h // CuriousCaptain // // Created by Chen XiaoLiang on 12-10-30. // Copyright (c) 2012年 Chen XiaoLiang. All rights reserved. // #import <Foundation/Foundation.h> @protocol DCMark; @class DCDot, DCVertex, DCStroke; @protocol DCMarkVisitor <NSObject> - (void)visitMark:(id<DCMark>)mark; - (void...
/* Copyright (c) 2011, 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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
#ifndef ossimGeneralRasterElevationDatabase_HEADER #define ossimGeneralRasterElevationDatabase_HEADER 1 #include <ossim/elevation/ossimElevationCellDatabase.h> #include <ossim/base/ossimFilename.h> #include <ossim/elevation/ossimGeneralRasterElevHandler.h> #include <mutex> class OSSIM_DLL ossimGeneralRasterElevationD...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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 BITCOIN_KEY_H #define BITCOIN_KEY_H #include <stdexcept> #include <vector>...
// // 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" @interface DVTFileIconCreator : NSObject { } + (BOOL)_checkIfDirty:(id)arg1; + (id)iconForDVTFilePath:(id)arg1 fileDataTypeHint:(id)arg2 decorated:(BOOL)arg3;...
// // NotificationController.h // NSUserNotificationCenterDelegateSample // // Created by Keith Smiley on 1/13/15. // Copyright (c) 2015 keithsmiley. All rights reserved. // #import <Foundation/Foundation.h> @interface NotificationController : NSObject <NSUserNotificationCenterDelegate> - (void)presentNotificati...
#ifndef MPU_H #define MPU_H #include <Arduino.h> struct s_mympu { float ypr[3]; float gyro[3]; float accel[3]; #ifdef MPU9150 float comp[3]; #endif float gravity; }; extern struct s_mympu mympu; extern bool mympu_inverted; int8_t mympu_open(short addr,unsigned int rate,unsigned short orient); int8_t mymp...
// Copyright (c) 2014 Darach Ennis < darach at gmail dot 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, c...
/// @file Hg/message_byte_order.h /// /// An extraction of the Network to Host conversion functions. /// /// The MIT License(MIT) /// @copyright 2014 Paul M Watt // **************************************************************************** #ifndef MESSAGE_BYTE_ORDER_H_INCLUDED #define MESSAGE_BYTE_ORDER_H_INCLUDED...
// // MetalImageOrigin.h // MetalImage // // Created by ericking on 10/8/2017. // Copyright © 2017 erickingxu. All rights reserved. // #ifndef MetalImageOrigin_h #define MetalImageOrigin_h #import <AVFoundation/AVFoundation.h> //////////////////////////////////////Core texture data struct for CPU-Processing//////...
/* * Copyright (C) 2017 - 2020 FIX94 * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #ifndef _ppu_h_ #define _ppu_h_ #include "common.h" void ppuInit(); void ppuAddCycles(); FIXNES_ALWAYSINLINE void ppuCycle(); FIXNES_ALWAYSINLINE boo...
// ------------------------------------------------------------------ // Open-bomber - open-source online bomberman remake // ------------------------------------------------------------------ #pragma once #include <string> ////////////////////////////////////////////////////////////////////////// // map /...
// // Created by netmind on 18. 2. 23. // #ifndef NETMEDIA_TIMERMGR_H #define NETMEDIA_TIMERMGR_H #include "UvTimer.h" namespace uvcpp { class TimerMgr { public: virtual ~TimerMgr(); uint32_t setTimeout(uint64_t start, uint64_t interval, std::function<void(uint32_t fire_handle)> lis); void clearTimeout(uin...
#pragma once #include <filesystem> #include "../BUILD_OPTIONS.h" #include "../Platform.h" #include "../Memory/Memory.h" namespace AE { class FileSystem; class FileStream { friend class FileSystem; public: FileStream() = delete; FileStream( FileSystem * file_system ); FileStream( FileStream & other ) =...
#ifndef MTLU_LUXUTIL_H #define MTLU_LUXUTIL_H #include <maya/MMatrix.h> #include <maya/MPoint.h> #include <maya/MVector.h> #include <vector> void setZUp( MMatrix& matrix); void setZUp( MMatrix& matrix, float *fm); void setZUp( MPoint& point); void setZUp( MVector& point); void setZUp( MVector& point, float *pos); vo...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_max_square_03.c Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-03.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: max Set data to the max value for int * GoodSource: S...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <IDEInterfaceBuilderKit/IBAbstractClassProvider.h> @class IBTargetRuntime, NSMutableDictionary; @interface IBSystemClassProvider : IBAbstractClassProvider { NSMutab...
// // SMQuantityEvaluator.h // UnitsKit // // Created by Steve Moser on 4/13/13. // Copyright (c) 2013 Steve Moser (http://stevemoser.org) // // 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 ...
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "my_random.h"
#ifndef DIALOG_H #define DIALOG_H #include "game/gui/component.h" #include "utils/vector.h" #include "video/surface.h" typedef enum dialog_style_t { DIALOG_STYLE_YES_NO, DIALOG_STYLE_OK } dialog_style; typedef enum dialog_result_t { DIALOG_RESULT_CANCEL, DIALOG_RESULT_YES_OK, DIALOG_RESULT_NO } d...
// // DIRootViewController.h // DinoKitDemo // // Created by xjf on 16/6/29. // Copyright © 2016年 Dino. All rights reserved. // #import <UIKit/UIKit.h> @interface DIRootViewController : UITableViewController @end
// Copyright (c) 2011-2013 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 GUIUTIL_H #define GUIUTIL_H #include <QMessageBox> #include <QObject> #include <QString> class QValidatedLineEdit; c...
#pragma once #include <string> #include <memory> #include <rapidjson/document.h> namespace Yorozuya { namespace Module { using ModuleVersion_t = uint32_t; using ModuleName_t = ::std::string; class IModule { public: virtual void load() = 0; virt...
//!< Author: Allan J Moore 07/ 11/ 2014 /*************************************************************************************** * Nightmare Engine, Unorthodox Game Studios * * Copyright (C) 2014, Allan J Moore * * All rights reserved * * * * See "licence.txt" ...
#pragma once #ifndef __GameObjectFactory__ #define __GameObjectFactory__ #include <string> #include <map> #include "GameObject.h" class BaseCreator { public: virtual GameObject* createGameObject() const = 0; virtual ~BaseCreator() {} }; class GameObjectFactory { std::map<std::string, BaseCreator*> m_creators; ...
// // AFSessionOperation.h // // Created by Robert Ryan on 8/6/15. // Copyright (c) 2015 Robert Ryan. All rights reserved. // #import "AsynchronousOperation.h" @class AFHTTPSessionManager; NS_ASSUME_NONNULL_BEGIN @interface AFHTTPSessionOperation : AsynchronousOperation /** The NSURLSessionTask associated with ...
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2017-2018 Esteban Tovagliari, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any perso...
/************************************************************** * Copyright (c) Wuzhiyi * Introduction to Algorithms * * 题目: Chapter 6 * 名称: HEAP-SORT * 作者: Anker * 语言: c * 内容摘要: 堆排序 * * 修改记录: * 修改日期 版本号 修改人 修改内容 * ------------------------------------------------------------ * 2015070...
#include <stdio.h> #include <limits.h> int uadd_ok(unsigned, unsigned); int main() { int x1 = UINT_MAX - 100; int y1 = 200; int y2 = 10; printf("uadd_ok(UINT_MAX-100, 200) = %d\n", uadd_ok(UINT_MAX-100, 200)); printf("uadd_ok(UINT_MAX-100, 10 = %d\n", uadd_ok(UINT_MAX-100, 10)); return 0; } int uadd_ok(unsigne...
#include<stdio.h> #include<stdlib.h> int main() { char ch; do { /* code */ ch=_getch(); /*-32 77*/ if(ch==-32) /*if special arrow? */ ch=_getch(); /*read which arrow automatically*/ /* L-75 R-77 U-72 D-80*/ if(ch==75) { printf("Left\n"); ...
#include <stdlib.h> #define HB_START 1 #define HB_ACTIVE 2 #define HB_READY 3 #define HB_BOOT 4 #define HB_INIT 5 #define HB_CYCLE 30 #define MSG_RUN_STATUS 1 #define MSG_CONFIG 2 #define MSG_STATUS 3 typedef struct hbconfig hbconfig; struct hbconfig { volatile unsigned long time; volatile unsigned char temp; }...
// ImGui GLFW binding with OpenGL3 + shaders // You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. // If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and ImGui_ImplXXXX_Shutdown(). // I...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <IDEFoundation/IDEScriptingWrapper.h> @interface IDEContainerItemWrapper : IDEScriptingWrapper { } - (void)setProject:(id)arg1; - (id)project; - (void)setScriptingID:(i...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__struct_twoIntsStruct_realloc_03.c Label Definition File: CWE401_Memory_Leak.c.label.xml Template File: sources-sinks-03.tmpl.c */ /* * @description * CWE: 401 Memory Leak * BadSource: realloc Allocate data using realloc() * GoodSource: Alloc...
#pragma once // --------------------------------------------------- // The CodeSizer Project // Github: https://github.com/shishir993/codesizer // Author: Shishir Bhat [http://www.shishirbhat.com] // The MIT License (MIT) // Copyright (c) 2014 // // Including SDKDDKVer.h defines the highest available Windows platform...
// NDG_headers.h // // 2006/12/15 //--------------------------------------------------------- #ifndef NDG__headers_H__INCLUDED #define NDG__headers_H__INCLUDED #include "LOG_funcs.h" // forward declarations bool InitGlobalInfo(); void FreeGlobalInfo(); #ifdef WIN32 // process management routines #include <Windows....
// This code is part of the Super Play Library (http://www.superplay.info), // and may only be used under the terms contained in the LICENSE file, // included with the Super Play Library. // // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING B...
// // // MIT License // // Copyright (c) 2017 Stellacore Corporation. // // 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 ...
// JavaScriptEngine.h #pragma once #include <memory> #include <Core/Reflection/Reflection.h> #include "config.h" namespace sge { struct Scene; struct SGE_JAVASCRIPT_API JavaScriptEngine { SGE_REFLECTED_TYPE; struct State; //////////////////////// /// Constructors /// ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_console_execlp_01.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-01.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: console Read input from the console ...
// // UIResponder+Helpers.h // CocoaTouchHelpers // // Created by Maxim Khatskevich on 5/27/13. // Copyright (c) 2013 Maxim Khatskevich. All rights reserved. // #import <UIKit/UIKit.h> @interface UIResponder (Helpers) @property (readonly, nonatomic) NSURL *applicationDocumentsDirectory; @property (readonly, nona...
// // AppDelegate.h // WBTableViewDemo // // Created by Bing on 15/5/18. // Copyright (c) 2015年 Bing. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
#ifndef GEZIRA_MATRIX_H #define GEZIRA_MATRIX_H #include <math.h> typedef struct { float a, b, c, d, e, f; } Matrix_t; static Matrix_t Matrix () { Matrix_t M = { 1, 0, 0, 1, 0, 0 }; return M; } static Matrix_t Matrix_translate (Matrix_t M, float x, float y) { Matrix_t M_ = { M.a, M.b, M.c, M.d, ...
#pragma once #include <vector> #include <array> #include <SDL2\SDL.h> #include <glm/glm.hpp> #include "ShaderProgram.h" #include "ScreenQuad.h" #include "Cube.h" #include "WireframeCube.h" #include "CellularAutomaton.h" #include "ColorGradient.h" class MainWindow { public: MainWindow(const int width, const int he...
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: ./analysis/common/src/java/org/tartarus/snowball/ext/LithuanianStemmer.java // #include "J2ObjC_header.h" #pragma push_macro("INCLUDE_ALL_OrgTartarusSnowballExtLithuanianStemmer") #ifdef RESTRICT_OrgTartarusSnowballExtLithuanianStemmer #define INCLU...
/* Deformable convolution Python module. The original code for the convolution is largely based on that of Song Ho An. http://www.songho.ca/dsp/convolution/convolution.html Accessed: 14/03/2015 */ #include <Python.h> #include <numpy/arrayobject.h> #include <math.h> #define QUOTE(s) # s #define get_double(a, i, j) *...
#include <reg52.h> #include <stdio.h> #include <absacc.h> #include <intrins.h> #include "init_serial.h" sbit SCL_IC_CARD = P1^0; sbit SDA_IC_CARD = P1^1; sbit WP_IC_CARD = P1^2; bdata char com_data; sbit mos_bit = com_data^7; sbit low_bit = com_data^0; unsigned char data display_buffer[3] _at_ 0x40; ...
/* // @(#) keepalivecfg.h // // License: Creative Commons CC0 // http://creativecommons.org/publicdomain/zero/1.0/legalcode // Author: James Sainsbury // toves@sdf.lonestar.org // */ # if !defined(KEEPALIVECFG_H) # define KEEPALIVECFG_H # if !defined(LIBKEEPALIVE_CFG) # define LIBKEEPALIVE_CFG "/proxy/keep.cfg" # ...
/* ** JNetLib ** Copyright (C) 2000-2001 Nullsoft, Inc. ** Author: Justin Frankel ** File: netinc.h - network includes and portability defines (used internally) ** License: see License.txt ** ** Unicode support by Jim Park -- 08/24/2007 */ #ifndef _NETINC_H_ #define _NETINC_H_ #include <windows.h> #incl...
#include <stdio.h> void main(void) { int i; int a[] = { 1,-1,0, 6,5 }; printf("origin value:{"); for (i = 0; i < 5; i++) { printf(",%d", a[i]); } printf("}\n"); printf("sorted value:{"); for (i = 0; i < 5; i++) { printf(",%d", a[i]); } printf("}\n"); }
/* $Id: dotprocs.h,v 1.16 2011/01/25 16:30:48 ellson Exp $ $Revision: 1.16 $ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made a...
/* * StreamUtils.h * * This file is a part of LZMA compression module for NSIS. * * Original LZMA SDK Copyright (C) 1999-2006 Igor Pavlov * Modifications Copyright (C) 2003-2016 Amir Szekely <kichik@netvision.net.il> * * Licensed under the Common Public License version 1.0 (the "License"); * you may not use...
/** * @file es_mpool.h * @brief ES memory pool manager, not thread safe! */ #ifndef __ESO_MEMPOOL_H__ #define __ESO_MEMPOOL_H__ #include "es_types.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifdef WIN32 //#define ES_MEMPOOL_DEBUG #endif /* * memory node find mode */ type...
//----------------------------------------------------------------------------- // File: SystemViewsModel.h //----------------------------------------------------------------------------- // Project: Kactus2 // Author: Joni-Matti Määttä // Date: 13.7.2012 // // Description: // The model to manage system views f...
#ifndef _DEF_OPENCV_INTERFACES_ #define _DEF_OPENCV_INTERFACES_ #ifdef __APPLE__ #include <opencv/cv.h> #include <opencv/highgui.h> #else #include <opencv/cv.h> #include <opencv/highgui.h> #endif #include <vector> #define VIDEO_TYPE 2 #define IMAGE_TYPE 1 typedef uchar elem_t; namespace OpenCVInterfaces { bool...
/* This file is part of the KDE Libraries Copyright (C) 2006 Tobias Koenig (tokoe@kde.org) 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 Lic...
// ====================================================================== // Author : $Author$ // Version: $Revision$ // Date : $Date$ // Url : $URL$ // ====================================================================== // ====================================================================== // _/| ...
/** * */ #ifndef __ADT7310P16S16_H #define __ADT7310P16S16_H #include <stdint.h> #include <stdbool.h> void app_setup(); void app_start(); void app_stop(); void app_set_threshold(uint16_t threshold); void app_set_periode(uint16_t periode); uint16_t app_get_value(); /* The user has to provide th...
// Copyright 2015 Citra Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. #pragma once #include "gl_state.h" #include "gl_resource_manager.h" #include "video_core/debug_utils/debug_utils.h" #include "video_core/pica.h" #include <memory> #include <map> class Ras...
/*************************************************************************** * file klfpreviewbuilderthread.h * This file is part of a file that was part of the KLatexFormula Project. * Copyright (C) 2011 by Philippe Faist * philippe.faist at bluewin.ch * ...
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/IMCore.framework/Frameworks/IMDAppleServices.framework/IMDAppleServices */ #import <IMDAppleServices/IMDAppleServices-Structs.h> #import <IMDAppleServices/IMDAppleIDRegistrationCenter.h> #import <IMDAppleServices/IMD...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SYNC_SYNCABLE_SYNCABLE_BASE_WRITE_TRANSACTION_H_ #define SYNC_SYNCABLE_SYNCABLE_BASE_WRITE_TRANSACTION_H_ #include "sync/base/sync_export.h" #inc...
#include<stdio.h> void main(){ char c1[30] = {'I',' ','l','o','v','e'}; char c2[10] = {'k','n','\0','o','w'}; int i,j=0; for(i=0;i<30;i++){ if(c1[i]=='\0'){ c1[i] = c2[j]; if(c2[j]=='\0') break; j++; }else continue; } printf("%s",c1); }
#ifndef __SUBSCRIPTION_T__H_ #define __SUBSCRIPTION_T__H_ typedef struct subscription_t { void (*free) (struct subscription_t *); int (*subscribe) (struct subscription_t *, void *issuerData, PF_SOH_CREATE_RESPONSE_CB createRespCb); int (*reSubscribe) (struct subscription_t *, void *issuerData, PF_SOH...
// Copyright 2013 Mobilinkd LLC <info@mobilinkd.com> // All rights reserved. #ifndef MOBILINKD_VERSION_H_ #define MOBILINKD_VERSION_H_ #include <cpu/pgm.h> #include "buildrev.h" #define VERS_MAJOR 2 #define VERS_MINOR 0 #define VERS_PATCH 1 #define VERS_SEP . #define VERSION_CAT_NX(MAJOR, MINOR, PATCH, BUILD) MAJ...
/* File: autoset.h Copyright (C) 2009 Christophe GRENIER <grenier@cgsecurity.org> This software 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 ...
/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the qt3to4 porting application of the Qt Toolkit. ** ** $QT_BEGIN_LIC...
#ifndef __OSA_H__ #define __OSA_H__ /* * Created by Liu Papillon, on Sep 6, 2017. */ #ifndef OSA_MODULE_NAME #error "The `OSA_MODULE_NAME` macro must be defined." #endif #include "osa_platforms.h" #include "osa_primary_types.h" #include "osa_types.h" #include "osa_status.h" #include "osa_definitions.h" #includ...
/* * Intel(R) Enclosure LED Utilities * Copyright (C) 2009-2013 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distri...
/* $Id$ DVBSNOOP a dvb sniffer and mpeg2 stream analyzer tool http://dvbsnoop.sourceforge.net/ (c) 2001-2006 Rainer.Scherg@gmx.de (rasc) -- PS misc. -- PES misc. */ #include "dvbsnoop.h" #include "pes_misc.h" #include "strings/dvb_str.h" #include "misc/hexprint.h" #include "misc/helper.h" #include...
#include <linux/mm.h> #include <linux/suspend.h> #include <linux/spinlock.h> #include <linux/kernel.h> #include <linux/major.h> #include <linux/swap.h> #include <linux/pm.h> #include <linux/swapops.h> #include <linux/bootmem.h> #include <linux/syscalls.h> #include <linux/highmem.h> #include <linux/time.h> #include <l...