text
stringlengths
4
6.14k
#ifndef UI_H_INCLUDED #define UI_H_INCLUDED typedef struct { ; } UI; /// private methods void ui__printMenu(); int ui__getCmd(); int ui__getInteger(const char *message); /// public methods void run(UI *self); void uiInit(UI *self); void uiDestroy(UI *self); /// TODO commands #endif // UI_H_INCLUDED
#include "memory.h" #include <stdint.h> void* kmemcpy(void* dst, const void* src, size_t n) { uint8_t* dst8 = (uint8_t*)dst; const uint8_t* src8 = (const uint8_t*)src; if(n >= 4) { uint32_t* dst32 = (uint32_t*)dst; const uint32_t* src32 = (const uint32_t*)src; size_t n32 = n >> 2; ...
// // ReverseString.h // Recursion_HW // // Created by Yongyang Nie on 9/30/16. // Copyright © 2016 Yongyang Nie. All rights reserved. // #import <Foundation/Foundation.h> @interface ReverseString : NSString @property (strong, nonatomic) NSString *reverse; -(void)reverseString:(NSString *)string; @end
///////////////////////////////////////////////////////////////////////////// // Copyright (c) 2009-2014 Alan Wright. All rights reserved. // Distributable under the terms of either the Apache License (Version 2.0) // or the GNU Lesser General Public License. ////////////////////////////////////////////////////////////...
/** ****************************************************************************** * @file ADC/ADC_VBATMeasurement/stm32f4xx_it.h * @author MCD Application Team * @version V1.1.0 * @date 18-January-2013 * @brief This file contains the headers of the interrupt handlers. *******************...
// // AppDelegate.h // BPActivityCollection // // Created by Haozhen Li on 15-2-25. // Copyright (c) 2015年 Refineit. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
/* 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 a...
#pragma once #include "world/core/WorldConfig.h" #include "VoxelGrid.h" namespace world { class WORLDAPI_EXPORT VoxelOps { public: VoxelOps() = delete; static void ball(VoxelField &voxels, const vec3d &origin, double radius, double value); static double getPixelDistance(const Voxe...
#pragma once #include "gep/interfaces/subsystem.h" #include "gep/math3d/vec3.h" #include "gep/math3d/quaternion.h" #include "gep/weakPtr.h" #include "gep/interfaces/resourceManager.h" namespace gep { // forward declarations class ISoundLibrary; class ISound; class ISoundInstance; /...
// ==================================================================================== // // AGEIA PHYSX // // Content: Tool to read mesh data and cooking flags from cooked mesh file // // Comment: Works for convex and non-convex mesh files // // Author: Michael Sauter // // ==========...
// // Cauly.h // Cauly // // Created by Neil Kwon on 9/2/15. // Copyright (c) 2015 Cauly. All rights reserved. // #import <UIKit/UIKit.h> @interface Cauly : NSObject @end #define TEST_APP_CODE (@"CAULY") #define CAULY_SDK_VERSION (@"3.1.0") #define CAULY_ERR_SUCCESS (0) #define CAULY_ERR_FAILED (1) #defi...
#include "pila.h" #include <stdlib.h> /* Definición del struct pila proporcionado por la cátedra. */ struct pila { void** datos; size_t cantidad; // Cantidad de elementos almacenados. size_t capacidad; // Capacidad del arreglo 'datos'. }; /* *************************************************************...
%% %% KDE4xHb - Bindings libraries for Harbour/xHarbour and KDE 4 %% %% Copyright (C) 2020 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> %% $project=KDE4xHb $module=KDEUI $header $includes $beginSlotsClass $signal=|currentFontChanged( const QFont & font ) $endSlotsClass
#include "alignment_support.h" #include "needleman_wunsch.h" int match_Miss(char column_char_value, char row_char_value) { int match_value; match_value = (column_char_value == row_char_value) ? MATCH_SCORE : MISSMATCH_SCORE; return match_value; } int insideBand(int i , int j , int k){ if (-k <= (i - j) <= k) ...
#if 0 // // Generated by Microsoft (R) D3D Shader Disassembler // // // fxc /nologo Raymarching.hlsl /Tvs_4_0 /Zi /Zpc /Qstrip_reflect // /Qstrip_debug /EVS_Main /FhRaymarching_VS_Main.h /VnRaymarching_VS_Main // // // Input signature: // // Name Index Mask Register SysValue Format Used // ----...
// // WZC_DataModalParser.h // IXcodeTool // // Created by Symond on 14-4-24. // Copyright (c) 2014年 WZC. All rights reserved. // #import <Foundation/Foundation.h> @interface WZC_DataModalParser : NSObject { } /** * 获取WZC_DataModalParser实例对像 * * @return 返回WZC_DataModalParser实例对像 */ + (WZC_DataModalParser ...
#include "fib.h" #include <time.h> #include <stdio.h> #include <ctype.h> /* Macros for printing colored outputs */ #define KRED "\x1B[31m" #define KGRN "\x1B[32m" #define KBLU "\x1B[34m" #define RESET "\033[0m" // int compare function for passing to qsort function int cmpfunc (const void * a, const void * b) { ...
// // Catamount.h // Tuannv.Animal // // Created by VTIT on 9/10/13. // Copyright (c) 2013 VTIT. All rights reserved. // #import <Foundation/Foundation.h> @interface Catamount : NSObject @end
/* * ITG3200.h * * Created on: April 20, 2013 * Author: Ryler Hockenbury * * Library for ITG3200 3-channel gyroscope sensor * NOTE: Sensor is packaged with HMC5883L and ADXL345 * */ #ifndef ITG3200_h #define ITG3200_h #include "I2Cdev.h" #include <inttypes.h> #define ITG3200_ADDR_LOW ...
/* * $Id: OfferedDeadlineWatchdog.h 6898 2015-01-30 19:12:02Z mitza $ * * * Distributed under the OpenDDS License. * See: http://www.opendds.org/license.html */ #ifndef OPENDDS_OFFERED_DEADLINE_WATCHDOG_H #define OPENDDS_OFFERED_DEADLINE_WATCHDOG_H #include "dds/DdsDcpsPublicationC.h" #if !defined (ACE_LACKS_P...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // @protocol UXBarPositioning <NSObject> @property(readonly, nonatomic) long long barPosition; @end
// // SVGContext.h // SVGgh // The MIT License (MIT) // Copyright (c) 2011-2014 Glenn R. Howes // 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 withou...
_SWIZZLE_DECL_(x,0) _SWIZZLE_DECL_(y,1) _SWIZZLE_DECL_(z,2) _SWIZZLE_DECL_(w,3) _SWIZZLE_DECL_(xy,0,1) _SWIZZLE_DECL_(yx,1,0) _SWIZZLE_DECL_(xz,0,2) _SWIZZLE_DECL_(zx,2,0) _SWIZZLE_DECL_(xw,0,3) _SWIZZLE_DECL_(wx,3,0) _SWIZZLE_DECL_(yz,1,2) _SWIZZLE_DECL_(zy,2,1) _SWIZZLE_DECL_(yw,1,3) _SWIZZLE_DECL_(wy,3,1) _SWIZZLE_D...
/* * Copyright (c) 2014 Nicholas Trampe * * 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, pub...
// // XMGNewViewController.h // ProblemSister // // Created by michael on 2016/10/2. // Copyright © 2016年 Michael. All rights reserved. // #import <UIKit/UIKit.h> @interface XMGNewViewController : UIViewController @end
/* ----------------------------------------------------------------------------- This source file is part of ogre-procedural For the latest info, see http://code.google.com/p/ogre-procedural/ Copyright (c) 2010-2013 Michael Broutin Permission is hereby granted, free of charge, to any person obtaining a copy of this ...
/** ****************************************************************************** * @file mqtt.h * $Author: ·Éºè̤ѩ $ * $Revision: 17 $ * $Date:: 2012-07-06 11:16:48 +0800 #$ * @brief MQTTÓ¦Óò㺯Êý. ****************************************************************************** * @attenti...
// // MainViewController.h // AgeDistinguish // // Created by Mac on 16/6/27. // Copyright © 2016年 chenfengfeng. All rights reserved. // #import <UIKit/UIKit.h> @interface MainViewController : UIViewController @end
/** * @file glfw_buffered_mesh.h * @brief Defines GLFWBufferedMesh. */ #pragma once #include "std/ogle_std.inc" #include "renderer/buffered_mesh.h" namespace ogle { /** * @brief A BufferedMesh implementation for OpenGL, GLSL, and GLFW. */ class GLFWBufferedMesh : public BufferedMesh { public: /** * @brie...
#include <stdlib.h> // So, flex has an option %bison-bridge that gives the yylex function an // additional argument that is the union structure from bison. I'm not using // bison, so I need to do it's job with the YYSTYPE. I define the union in // union.h, but scan.h refers to it and so it must be defined before scan....
// // FirstViewController.h // CommandCenter // // Created by Evan Wu on 2014/6/11. // Copyright (c) 2014年 Evan Wu. All rights reserved. // #import <UIKit/UIKit.h> #import "BarcodeView.h" @interface ScanViewController : UIViewController <ReceiveCommandHandler, NotificationHandler> @property (nonatomic, assign) I...
// // CameraPreViewController.h // ObjectRecognition // // Created by stefan on 11/4/14. // Copyright (c) 2014 Silviu Ojog. All rights reserved. // #import <UIKit/UIKit.h> #import <AVFoundation/AVFoundation.h> #import "ECSlidingViewController.h" @interface CameraPreViewController : UIViewController <UIGestureReco...
// // UTStateViewFactoryProtocol // State View Manager // // Created by Paul Taykalo on 7/17/13. // Copyright (c) 2012 Stanfy LLC. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger , UTViewState) { UTStateViewStateBase, UTStateViewStateLoading, UTStateViewStateNoData...
#import "MOBProjection.h" @interface MOBProjectionEPSG4815 : MOBProjection @end
/* ** $Id: lundump.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp $ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ #ifndef lundump_h #define lundump_h #include "llimits.h" #include "lobject.h" #include "lzio.h" /* data to catch conversion errors */ #define LUAC_DATA "\x19\x93\r\n\x1...
// // AppDelegate.h // Bluegogo // // Created by 袁杰 on 2017/6/4. // Copyright © 2017年 VIPLimited. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // DataVersion.h // genera // // Created by Simon Sherrin on 8/01/12. /* Copyright (c) 2011 Museum Victoria 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 wi...
// // MCAppDelegate.h // TestCoreData // // Created by CocoaBob on 24/04/2014. // Copyright (c) 2014 CocoaBob. All rights reserved. // #import <UIKit/UIKit.h> @interface MCAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // try.c // JW Broadcasting // // Created by Austin Zelenka on 11/22/15. // Copyright © 2015 xquared. All rights reserved. // #include "try.h"
// // HAlertView.h // HarryAlertView // // Created by Harry on 14-10-16. // Copyright (c) 2014年 Harry. All rights reserved. // #import <UIKit/UIKit.h> #define Main_Size ([[UIScreen mainScreen] bounds].size) #define HAV_Init_X 18 #define default_cornerRadius 6 #define default_durati...
// // 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 <IDEKit/IDEDistributionStepViewController.h> @class NSLayoutConstraint; @interface IDEDistributionManifestStepViewController : IDEDistributionStep...
// // DateRangePickerViewController.h // SLexUtil // // Created by Robert Saccone on 9/10/12. // Copyright (c) 2017 Robert Saccone. All rights reserved. // #import <UIKit/UIKit.h> @class DateRangePickerViewController; @protocol DateRangePickerViewControllerDelegate <NSObject> - (void)dateRangePickerViewControll...
/* Copyright (c) 2006-2007 Christopher J. W. Lloyd 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...
#ifndef TRMAIN_H #define TRMAIN_H #include <QMainWindow> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> #include <sys/select.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <linux/ip.h> #include <linux/icmp.h> #include <string.h...
#include "CascadeClassifier.h" #ifndef __FF_CASCADECLASSIFIERBINDINGS_H_ #define __FF_CASCADECLASSIFIERBINDINGS_H_ namespace CascadeClassifierBindings { struct NewWorker : CatchCvExceptionWorker { public: std::string xmlFilePath; bool unwrapRequiredArgs(Nan::NAN_METHOD_ARGS_TYPE info) { return FF::StringCo...
/* Copyright (C) 2004 loveyou12300liumao@163.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed ...
/* [1] code from: Cheney, Nick, Robert MacCurdy, Jeff Clune, and Hod Lipson. "Unshackling evolution: evolving soft robots with multiple materials and a powerful generative encoding." In Proceeding of the fifteenth annual conference on Genetic and evolutionary computation conference, pp. 167-174. ACM, 2013. */ #ifndef H...
/* 2014, Copyright © Intel Coporation, license MIT, see COPYING file */ #pragma once int unzip (const char *targetdir, const char *zipfile);
/*#include "datatypes.h"*/ /*#include "status.h"*/ /*uint8_t set_status(struct _status_state state){*/ /*if(global_status->latch == 0){*/ /*_reset_status_leds(global_status->led_state);*/ /*global_status = &state; */ /*_set_status_leds(global_status->led_state);*/ /*return 1;*/ ...
/* * BkZOO! * * Copyright 2011-2017 yoichibeer. * Released under the MIT license. */ #ifndef BKZ_CONFIG_CONFIGFACTORY_H #define BKZ_CONFIG_CONFIGFACTORY_H #include "Config.h" #include <Windows.h> #include <vector> #include <memory> #include "defs.h" namespace bkzoo { namespace config { clas...
#include "dbd_mysql.h" int dbd_mysql_statement_create(lua_State *L, connection_t *conn, const char *sql_query); /* * connection,err = DBD.MySQl.New(dbname, user, password, host, port) */ static int connection_new(lua_State *L) { int n = lua_gettop(L); connection_t *conn = NULL; const char *host = NULL...
#ifndef _LPMS_LOGGING_H_ #define _LPMS_LOGGING_H_ // LOGGING MACROS #define LPMS_ERR(label, msg) {\ char errstr[AV_ERROR_MAX_STRING_SIZE] = {0}; \ if (!ret) ret = AVERROR(EINVAL); \ if (ret <-1) av_strerror(ret, errstr, sizeof errstr); \ av_log(NULL, AV_LOG_ERROR, "ERROR: %s:%d] %s : %s\n", __FILE__, __LINE__, msg, e...
/* * 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 "AVAsynchronousKeyValueLoading-Protocol.h" #import "NSCopying-Protocol.h" @class AVAssetInternal; @interface AVAsset : NSObject <NSCopying, AVAsyn...
/* * 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 NSMutableData, NSTimer, NSURLConnection, SWSyncHost; @interface SWSyncServiceConnection : NSObject { SWSyncHost *_host; NSURLConnection *_UR...
/** * This header is generated by class-dump-z 0.1-11o. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. */ #import "UIKit-Structs.h" #import <UIKit/UIControl.h> @interface UIRemoveControlMinusButton : UIControl { unsigned _rotated : 1; unsigned _rotating : 1; unsigned _hiding : 1; unsi...
/** File: hwm35fd.c Project: DCPU-16 Tools Component: LibDCPU-vm Authors: Jose Manuel Diez Description: Implements the M35FD specification. **/ #include <stdio.h> #include <stdlib.h> #include <debug.h> #include <iio.h> #include "vm.h" #include "dcpuhook.h" #include "dcpuops.h" #incl...
/* ** $Id: lbitlib.c,v 1.30 2015/11/11 19:08:09 roberto Exp $ ** Standard library for bitwise operations ** See Copyright Notice in lua.h */ #define lbitlib_c #define LUA_LIB #include "lprefix.h" #include "lua.h" #include "lauxlib.h" #include "lualib.h" #if defined(LUA_COMPAT_BITLIB) /* { */ ...
#import <UIKit/UIKit.h> #import <OpenGLES/EAGL.h> #import <OpenGLES/ES1/gl.h> #import <OpenGLES/ES1/glext.h> #import "GLViewController.h" @class GLViewController; @interface EAGLView : UIView<UIAccelerometerDelegate> { @private GLint backingWidth; GLint backingHeight; EAGLContext *context; GLuint viewRende...
#pragma once #ifndef __WIND32WINDOW_H__ #define __WIND32WINDOW_H__ #include "../Core/Config.h" #include "../Core/Timer.h" #include "../Core/Application.h" namespace WindGE { class WIND_CORE_API Win32Window { public: Win32Window(HINSTANCE hInst); ~Win32Window(); bool init(Application* app, std::wstring title...
/***************************************************************************** The following code is derived, directly or indirectly, from the SystemC source code Copyright (c) 1996-2008 by all Contributors. All Rights reserved. The contents of this file are subject to the restrictions and limitations ...
// // SoftwareListVC.h // OSChina // // Created by sky on 15/7/2. // Copyright (c) 2015年 bluesky. All rights reserved. // #import "OSCObjsViewController.h" typedef NS_ENUM(int, SoftwaresType) { SoftwaresTypeRecommended, SoftwaresTypeNewest, SoftwaresTypeHottest, SoftwaresTypeCN }; @interface Soft...
// // ViewController.h // TONetworkingDemo // // Created by Tony on 16/6/6. // Copyright © 2016年 Tony. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
#ifndef __SGL_MACOSX_COCOA_H__ #define __SGL_MACOSX_COCOA_H__ /** * Copyright (C) 2011 by Tobias Thiel * 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 ...
/* * This file is part of cryptopp-bin+dings-api. * * (c) Stephen Berquet <stephen.berquet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #ifndef API_CRYPTOPP_EXCEPTION_H #define API_CRYPTOPP_EXCEPTION_H #include "sr...
// // BNRReminderViewController.h // HypoNerd // // Created by Bo Yan on 6/11/15. // Copyright (c) 2015 Fred Yan. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface BNRReminderViewController : UIViewController @end
#ifndef _ROS_SERVICE_ForcePower_h #define _ROS_SERVICE_ForcePower_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace realsense_camera { static const char FORCEPOWER[] = "realsense_camera/ForcePower"; class ForcePowerRequest : public ros::Msg { public: typedef b...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "SBIconView.h" #import "_UISettingsKeyObserver-Protocol.h" @class SBFolderSettings; @interface SBFolderIconView : SBIconView <_UISettingsKeyObserver> { SBFolderSet...
#pragma once #include "codegen.h" #include "statement.h" namespace CodeGen { struct MADGINE_CODEGEN_EXPORT ShaderFile : File { ShaderFile(); ShaderFile(const ShaderFile &); ShaderFile(ShaderFile &&) = default; ShaderFile &operator=(const ShaderFile &); std::vector<CodeGen::Function> *nextInst...
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 Steve Nygard. // #import <Foundation/NSMutableOrderedSet.h> @interface NSMutableOrderedSet (DVTNSOrderedSetAdditions) - (void)dvt_addObjectIfNotNil:(id)arg1; @end
#pragma once #include "ofThread.h" /// This is a simple example of a ThreadedObject created by extending ofThread. /// It contains data (count) that will be accessed from within and outside the /// thread and demonstrates several of the data protection mechanisms (aka /// mutexes). class ThreadedObject: public ofTh...
// // WDLocalization.h // Bubbles // // Created by 王 得希 on 12-3-18. // Copyright (c) 2012年 BMW Group ConnectedDrive Lab China. All rights reserved. // #ifndef Bubbles_WDLocalization_h #define Bubbles_WDLocalizationr_h #import <Foundation/Foundation.h> // DW: normal actions #define kActionSheetButtonCopy [WD...
#ifndef R_H #define R_H //structures typedef struct { double onShellClosure; double onSubshellClosure; double radioactive; double lowRelativeLevelDensity, highRelativeLevelDensity; int maxDistFromStability; int excludeStable; }nuclide_rank_par; //parameters for ranking nulides #endif
#ifdef __cplusplus extern "C" { #endif uint8_t temprature_sens_read(); #ifdef __cplusplus } #endif
#pragma once #include "../Util.h" /** * @param s1, s2 两线段 * @return false 若两线段不相交 true 若两线段相交 */ bool SegmentIntersection(const Segment &s1, const Segment &s2);
// Determine endian and pointer size based on known defines. // TS_BIG_ENDIAN and TS_PTR_SIZE can be set as -D compiler arguments // to override this. #if !defined(TS_BIG_ENDIAN) #if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) \ || (defined( __APPLE_CC__) && (defined(__ppc__) || defined(__pp...
// // ______ ______ ______ // /\ __ \ /\ ___\ /\ ___\ // \ \ __< \ \ __\_ \ \ __\_ // \ \_____\ \ \_____\ \ \_____\ // \/_____/ \/_____/ \/_____/ // // // Copyright (c) 2014-2015, Geek Zoo Studio // http://www.bee-framework.com // // // Permission is hereby granted, free of charge, to any person ob...
// Explores setting a new file position indicator inside a function. // Conclusion: works! #include <stdio.h> void file_center(FILE *); void print_file(FILE *); int main(void) { FILE *file = fopen("fseek_test_1.asc", "r"); file_center(file); print_file(file); fclose(file); return 0; } void file_center(FILE...
#ifndef _BSD_SOURCE #define _BSD_SOURCE #endif #include <stdio.h> #include <dirent.h> #include <sys/stat.h> #include <unistd.h> #undef _BSD_SOURCE #include <assert.h> #include "types.h" #include "string_array.h" #include "string_buffer.h" // s1 `is_prefix_of` s2 static bool is_prefix_of(char* s1, char* s2){ assert...
/** * Appcelerator Titanium Mobile * Copyright (c) 2011-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ /** This is generated, do not edit by hand. **/ #include <jni.h> #include "Prox...
int main() { int a[12]; int i; int j; a [i + 1] = a[j*2] + 3; return 0; }
#ifndef TIME_H #define TIME_H #include <kernel/ktime.h> typedef struct timer_user { struct ktimer *timer; } timer_t; void time_usleep(unsigned int usec); void time_oneshot(timer_t *timer, int delay, void (*handler)(void *), void *arg); #endif /* TIME_H */
#include <sys/types.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include "../libft/includes/get_next_line.h" #include "../libft/includes/libft.h" static void ft_chartobin(char c, char *tab); static void send(char c, int pid); void prompt(int pid, char *line) { int i; i = 0; whi...
#pragma once namespace opcua { OPCUA_DEFINE_METHODS(QualifiedName); inline void Copy(const OpcUa_QualifiedName& source, OpcUa_QualifiedName& target) { target.NamespaceIndex = source.NamespaceIndex; Copy(source.Name, target.Name); } class QualifiedName { public: QualifiedName() { Initialize(v...
// Generated by Haxe 3.3.0 #ifndef INCLUDED_flixel_input_gamepad_lists_FlxGamepadAnalogStateList #define INCLUDED_flixel_input_gamepad_lists_FlxGamepadAnalogStateList #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_CLASS3(flixel,input,gamepad,FlxGamepad) HX_DECLARE_CLASS4(flixel,input,gamepad,lists,FlxGamepadAna...
#ifndef _BITSET_H #define _BITSET_H #include <stdbool.h> #include <stddef.h> #include <stdio.h> /** Defines the base unit of storage used. */ typedef unsigned int BS_WORD; /** * The bit set structure */ typedef struct { /** The storage. */ BS_WORD *bits; /** The number of bits that the set holds. */ ...
#pragma once #include <math.h> #include <GL/freeglut.h> #include "../models/SceneObject.h" class Scene { public: Scene(); ~Scene(); void display(); void special(int, int, int); void key(unsigned char, int, int); private: int cameraIndex = 0; SceneObject* cameraObject = NULL; void initialize(); void drawCam...
// // WTtempData.h // wetan-oc // // Created by Sunday on 2017/4/6. // Copyright © 2017年 Carl Sun. All rights reserved. // #import <Foundation/Foundation.h> @interface WTtempData : NSObject + (NSDictionary *)getData; @end
#ifndef QTCOMPONENTS_DEFINE_H #define QTCOMPONENTS_DEFINE_H #ifdef QtComponents_EXPORTS # define QTCOMPONENTS_EXPORT __declspec(dllexport) #else # define QTCOMPONENTS_EXPORT __declspec(dllimport) #endif #endif // QTCOMPONENTS_DEFINE_H
#pragma once // Copyright (c) 2016 Genoil <jw@meneer.net> // Copyright (c) 2016 Jack Grigg <jack@z.cash> // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "libstratum/ZcashStratum.h" #include <iostream> #include <boost/a...
#ifndef FONT_H #define FONT_H #include <string> #define GL_ES #include <drawtext.h> class Font { public: Font(); Font(string filename, int sz); ~Font(); void draw(string text); void use(); private: int sz; struct dtx_font* fnth; }; #endif // FONT_H
#ifndef ADMIN_H #define ADMIN_H #include<fstream> #include "teacher.h" #include "student.h" #include<iostream> using namespace std; class admin { public: void addstudent() { ofstream fout; student S; fout.open("student.dat",ios::in|ios::app); cout<<"\n\nEnter the details of the student to be adde...
// // UIImage+Custom.h // Voffice2.1 // // Created by VTIT on 2/24/14. // // #import <UIKit/UIKit.h> @interface UIImage (Custom) + (UIImage *)imageWithOverlayColor:(UIColor *)color; @end
#include <stdlib.h> #include "TRSpeex.h" #include <stdio.h> int TRSpeexDecodeInit(TRSpeexDecodeContex* stDecode) { int modeID = -1; const SpeexMode *decmode=NULL; int nframes; int vbr_enabled; int chan; int rate; void *st; int quality; int dec_frame_size; int complexity; int n...
#pragma once #include <array> #include <stdexcept> #include "util/NonCopyable.h" #include "client/CommonTypes.h" #include "client/Result.h" #include "client/Dispatcher.h" namespace dh { namespace client { class Device : util::NonCopyable { public: Device(Dispatcher& dispatcher, const std::string& name); ~Device(...
// Fill out your copyright notice in the Description page of Project Settings. #pragma once // @third party code - BEGIN #include "AllowWindowsPlatformTypes.h" #include "oscpkt.hh" #include "zmq.h" #include "czmq.h" #include "HideWindowsPlatformTypes.h" // @third party code - END #include "Core.h" #includ...
//MIT License // //Copyright (c) 2017 tvelliott // //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,...
// // NSTimeZone+Coordinate.h // // Created by Jason Wray on 2/14/17. // Copyright © 2019 Jason Wray. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreLocation/CoreLocation.h> @interface NSTimeZone (Coordinate) /** Coordinate for the largest populated place within the given time zone. */ @pr...
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2017 Francois Beaune, The appleseedhq Organization // ...
// // NSString+XLESize.h // Pods // // Created by Randy on 15/12/5. // // #import <Foundation/Foundation.h> @interface NSString (XLESize) - (CGSize)XLE_maxSizeWithConstrainedSize:(CGSize)size font:(UIFont *)font lineMode:(NSLineBreakMode)lineMode; @end
/* * The MIT License (MIT) TLS Extensions * Copyright (c) 2015 Daniel Kubec <niel@rtfm.cz> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"),to...