text
stringlengths
4
6.14k
/* $NetBSD: obio.c,v 1.1 2002/05/02 15:17:58 nonaka Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Charles M. Hannum. * * Redistribution and use in source and binary forms, with or without * m...
/* $NetBSD: aout_machdep.h,v 1.1 2000/06/14 15:39:55 soren Exp $ */ #include <mips/aout_machdep.h>
// Copyright 2015 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 SKY_SHELL_SHELL_H_ #define SKY_SHELL_SHELL_H_ #include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #...
/**/ #include<stdio.h> int main(){ float A, B, C, D, grade; printf("Enter thresholds for A, B, C, D\nin that order decreasing percentages > "); scanf("%f %f %f %f", &A, &B, &C, &D); printf("Thank you. Now enter student score (percent) > "); scanf("%f", &grade); if(grade<D){ printf("Student has an F grade\...
//---------------------------------------------------------------------------- // Anti-Grain Geometry - Version 2.3 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) // // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all...
/* * cam_MeadeDSI.h * PHD Guiding * * Created by Craig Stark. * Copyright (c) 2006, 2007, 2008, 2009, 2010 Craig Stark. * All rights reserved. * * This source code is distrubted under the following "BSD" license * Redistribution and use in source and binary forms, with or without * modificat...
#ifndef incline_driver_sharded_h #define incline_driver_sharded_h #include "incline_driver_async_qtable.h" class incline_def_sharded; class incline_driver_sharded : public incline_driver_async_qtable { public: typedef incline_driver_async_qtable super; struct connect_params { std::string file; std::st...
/* * Copyright (c) 2012,2014,2015 Apple Inc. All rights reserved. * * corecrypto Internal Use License Agreement * * IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple") * in consideration of your agreement to the following terms, and your download or use * of this Apple softwar...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE806_wchar_t_loop_13.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE806.label.xml Template File: sources-sink-13.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize da...
#ifndef ASPRINTF_H_INCLUDED #define ASPRINTF_H_INCLUDED int vasprintf( char **sptr, char *fmt, va_list argv ); int asprintf( char **sptr, char *fmt, ... ); #endif /* ASPRINTF_H_INCLUDED */
/* * 2007 – 2013 Copyright Northwestern University * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/annotation-and-image-markup/LICENSE.txt for details. */ #ifndef _ALTOVA_INCLUDED_AIMXML_ALTOVA_iso_ALTOVA_CCOLL_ED_Signature #define _ALTOVA_INCLUDED_AIMXML_ALTOVA_iso...
// Copyright 2018 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 BASE_TASK_SEQUENCE_MANAGER_THREAD_CONTROLLER_H_ #define BASE_TASK_SEQUENCE_MANAGER_THREAD_CONTROLLER_H_ #include "base/message_loop/timer_slack.h...
/*ckwg +5 * Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef __vtkVgCompositeEventRepresentation_h #define __vtkVgCompositeEventRepresentation_h ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int64_t_max_preinc_18.c Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-18.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: max Set data to the max value for int64_t * GoodSource...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import "A...
// Copyright 2017 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 ASH_SYSTEM_POWER_SCOPED_BACKLIGHTS_FORCED_OFF_H_ #define ASH_SYSTEM_POWER_SCOPED_BACKLIGHTS_FORCED_OFF_H_ #include "ash/ash_export.h" #include "b...
// // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // CompilerD3D.h: Defines the rx::CompilerD3D class, an implementation of rx::CompilerImpl. #ifndef LIBANGLE_RENDERER_COMPILERD3D_H_ #defi...
/* * Copyright (c) 2004 Marcel Moolenaar * 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 code must retain the above copyright * notice, this list of ...
namespace CGAL { /*! \ingroup PkgMesh2Functions Refines the constrained Delaunay triangulation `t` into a conforming Delaunay triangulation. After a call to this function, all edges of `t` are Delaunay edges. \tparam CDT must be a 2D constrained Delaunay triangulation and its geometric traits class must be a mode...
#include <cassert> #include <cmath> #include <omp.h> #define INTEGER_MAX 3000000 #include "../util.h" using namespace std; typedef struct { int nWords; int nVocs; int nDocs; vector< pair<int,int> >* doc_lookup; vector< pair<int,int> >* word_lookup; vector< vector<int> >* voc_lookup; } Lookups ...
#ifndef MTF_PARALLEL_PARAMS_H #define MTF_PARALLEL_PARAMS_H #include "mtf/Macros/common.h" #define PARL_ESTIMATION_METHOD 0 #define PARL_RESET_TO_MEAN 0 #define PARL_AUTO_REINIT 0 #define PARL_REINIT_ERR_THRESH 1 #define PRL_SM_REINIT_FRAME_GAP 1 _MTF_BEGIN_NAMESPACE struct ParallelParams { enum clas...
#ifndef _RAM_H #define _RAM_H #include <stdio.h> #include <stdlib.h> #define BYTES_OF_MEMORY 4096 typedef struct { unsigned char data; // The data of the memory unit unsigned char deletedFlag; // If 1 is deleted. If 0 not deleted }MemUnit; typedef struct { MemUnit RAMArray[BYTES_OF_MEMORY]; }RAM; /** * Inserts ...
// // OCHamcrest - NeverMatch.h // Copyright 2011 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid // // Inherited #import <OCHamcrest/HCBaseMatcher.h> @interface NeverMatch : HCBaseMatcher + (id)neverMatch; + (NSString *)mismatchDescription; - (BOOL)matches:(id)item; - (void)describeMismatchOf:(id)i...
// Copyright (c) 2013, Tencent Inc. // All rights reserved. // // Author: <guofutan@tencent.com> // Created: 2013-07-01 // Description: #ifndef _MIO_TCP_SERVER_H #define _MIO_TCP_SERVER_H #include <string> #include <vector> #include <boost/function.hpp> #include <boost/bind.hpp> #include <vector> #include <list> #...
/* $NetBSD: sa11x0_ppcreg.h,v 1.2 2001/07/30 12:19:04 rjs Exp $ */ /*- * Copyright (c) 2001, The NetBSD Foundation, Inc. All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by IWAMOTO Toshihiro. * * Redistribution and use in source and binary forms, with or wi...
/* dptt02.f -- translated by f2c (version 20061008). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
/* Copyright (c) 2006, NIF File Format Library and Tools All rights reserved. Please see niflib.h for license. */ //-----------------------------------NOTICE----------------------------------// // Some of this file is automatically filled in by a Python script. Only // // add custom code in the designated areas o...
#ifndef _UTILS_H_ #define _UTILS_H_ // collection of common defines/utilities used here and there #define XPLOIT_OK 0 #define XPLOIT_ERROR -1 #define TRUE 1 #define FALSE 0 #define MAX_NUM_OF_PARAMS 8 #define NOT_SET 0 extern int debugMode(); // bash colors static const char *txtrst="\e[0m"; static const char *tx...
#ifndef SORTS_MERGESORT_H #define SORTS_MERGESORT_H void merge(int *l, int *tmp, int left, int center, int right) { int i = left; int j = center + 1; int ptr = left; while(i <= center && j <= right) { if(l[i] <= l[j]) tmp[ptr++] = l[i++]; else tmp[ptr++] = l[j++]...
// Copyright © 2018 650 Industries. All rights reserved. #import <Foundation/Foundation.h> #import <JavaScriptCore/JavaScriptCore.h> @protocol ABI39_0_0UMJavaScriptContextProvider <NSObject> - (JSGlobalContextRef)javaScriptContextRef; - (void *)javaScriptRuntimePointer; @end
// Copyright (c) 2013, Tencent Inc. // All rights reserved. // // Author: <guofutan@tencent.com> // Created: 2013-07-01 // Description: #ifndef BLOCKQUEUE_H #define BLOCKQUEUE_H /** * a block queue by condition and mutex */ #define MAX_SIZE 10000 #include <boost/function.hpp> #include <boost/shared_ptr.hpp> #incl...
// Copyright (c) 2014, Primiano Tucci (www.primianotucci.com) // 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 // n...
/* * Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt....
#ifndef __EASYODE_H__ #define __EASYODE_H__ #include "World.h" #include "Simulator.h" #include "Sphere.h" #include "Box.h" #include "Capsule.h" #include "HingeJoint.h" #include "FixedJoint.h" #endif /* __EASYODE_H__ */
// Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ #include <memory> #incl...
// Copyright 2019 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 COMPONENTS_CRASH_CORE_APP_CLIENT_UPLOAD_INFO_H_ #define COMPONENTS_CRASH_CORE_APP_CLIENT_UPLOAD_INFO_H_ #include <string> #include "build/build_...
/*- * Copyright (c) 2003-2009 RMI 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. Redistributions of source code must retain the above copyright * notice, this list o...
// Copyright 2017 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 DEVICE_FIDO_PUBLIC_KEY_CREDENTIAL_PARAMS_H_ #define DEVICE_FIDO_PUBLIC_KEY_CREDENTIAL_PARAMS_H_ #include <string> #include <tuple> #include <vect...
/*--------------------------------------------------------------------------- (c) 2004 Scorpio Software 19 Wittama Drive Glenmore Park Sydney NSW 2745 Australia ----------------------------------------------------------------------------- $Workfile:: ...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2008, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
/* BSD 3-Clause License Copyright (c) 2017, John Ventura 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 conditio...
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
// // ViewController.h // BluetoothDump // // Created by John Brewer on 4/6/13. // Copyright (c) 2013 Jera Design LLC. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreBluetooth/CoreBluetooth.h> @interface ViewController : UIViewController <CBCentralManagerDelegate, CBPeripheralDelegate> @property (w...
#include <glib.h> int main (int argc, char **argv) { g_autoptr(GVariant) v = NULL; g_autoptr(GError) error = NULL; gsize size; const gchar *data; if (argc < 2) { g_printerr ("Usage: %s GVARIANT_TEXT\n", argv[0]); return 1; } v = g_variant_parse (NULL, argv[1], NULL, NULL, &error); ...
#ifndef PANEL_ENGINE_H #define PANEL_ENGINE_H /*************************************************************************** * * * Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] * * Writen by: ...
// // FTTableViewAdapter+Subclassing.h // Fountain // // Created by Tobias Kraentzer on 12.08.15. // Copyright © 2015 Tobias Kräntzer. All rights reserved. // #import "FTTableViewAdapter.h" @interface FTTableViewAdapter (Subclassing) - (void)rowPreperationForItemAtIndexPath:(NSIndexPath *)indexPath ...
// Copyright (c) 2012 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 CHROME_BROWSER_CHROME_BROWSER_MAIN_POSIX_H_ #define CHROME_BROWSER_CHROME_BROWSER_MAIN_POSIX_H_ #include "base/macros.h" #include "chrome/bro...
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: pschoenhoefer #ifndef __MANIFOLD_CLASS_XY_PLANE_H__ #define __MANIFOLD_CLASS_XY_PLANE_H__ #include "hoomd/BoxDim.h" #include "hoomd/HOOMDMath.h"...
// Copyright (c) 2014, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // baidu/common/logging.h #ifndef BUBBLEFS_PLATFORM_BDCOM_LOGGING_H_ #define BUBBLEFS_PLATFORM_BDCOM_LOGGING_H_ #include <sstream> namespace bubblefs ...
// Copyright (c) 2012 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 CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ #define CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ ...
// Copyright 2021 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 CHROME_BROWSER_ASH_ARC_INSTANCE_THROTTLE_ARC_PROVISIONING_THROTTLE_OBSERVER_H_ #define CHROME_BROWSER_ASH_ARC_INSTANCE_THROTTLE_ARC_PROVISIONING_T...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE806_char_snprintf_68a.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE806.label.xml Template File: sources-sink-68a.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize...
/* This file contains functions that handle complex arrays and Fast Fourier Transform operations: FFTShift - can be used to re-center cross correlation result AllocCmplxArray - complex array memory management FreeCmplxArray InitCmplxArray fft2d - forward 2-D FFT ifft2d - ...
// Copyright 2017 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 MEDIA_AUDIO_FUCHSIA_AUDIO_MANAGER_FUCHSIA_H_ #define MEDIA_AUDIO_FUCHSIA_AUDIO_MANAGER_FUCHSIA_H_ #include "media/audio/audio_manager_base.h" na...
#include <convexHull/convexHull.h> #include <stdlib.h> static convexHullVector comparePoint; static float convexHullOrientation(const convexHullVector p, const convexHullVector q, const convexHullVector r) { return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y); } static void convexHullSwap(convexHullVector...
// // CVSPhoneColorWell.h // DrawQuest // // Created by David Mauro on 9/17/13. // Copyright (c) 2013 Canvas. All rights reserved. // #import <UIKit/UIKit.h> @interface CVSPhoneColorWell : UIView @property (nonatomic, strong) UIColor *fillColor; @property (nonatomic, strong) UIColor *strokeColor; @property (nona...
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_SERVER_H_ #define XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_SERVER_H_ #include <stdint.h> #include <map> #...
#include "hmc5883.h" #include "hal_hmc5883.h" #include "OSConfig.h" void HMC5883_I2C_Init(void) //³õʼ»¯I2C×ÜÏß { I2C_InitTypeDef I2C_InitStructure; GPIO_InitTypeDef GPIO_InitStructure; /* Enable I2C and GPIO clocks */ RCC_APB1PeriphClockCmd(HMC5883_I2C_RCC_Periph, ENABLE); RCC_APB2PeriphClockCmd(HMC5883_I...
/* * Blowfish - a fast block cipher designed by Bruce Schneier * * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> * 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. Redis...
// Copyright (c) 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 ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ #define ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ #include <stdint.h> #include <map> #include <memory>...
/* $NetBSD: svr4_32_types.h,v 1.2 2001/02/11 01:10:25 eeh Exp $ */ /*- * Copyright (c) 1994 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Christos Zoulas. * * Redistribution and use in source and binary forms, with or without...
/* LibMemcached * Copyright (C) 2006-2009 Brian Aker, Trond Norbye * All rights reserved. * * Use and distribution licensed under the BSD license. See * the COPYING file in the parent directory for full text. * * Summary: Change the behavior of the memcached connection. * */ #ifndef __LIBMEMCACHED_CONFIGURE_...
/* * Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider, * Jérémie Comarmond, Didier Colin. * 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 ...
//===-- Either.h -----------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------------...
/*- * Copyright (c) 2012 Chelsio Communications, Inc. * 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 code must retain the above copyright * notice, thi...
/* * Henry Crute * hcrute@ucsc.edu * * Extra library functions for string to int and int to string * conversions * */ #ifndef __EXTRALIB_H #define __EXTRALIB_H #include "c_types.h" uint64_t stringtoint(char *); char *inttohexstring(uint64_t, char *); #endif
@interface ARSearchViewController (Private) - (void)closeSearch:(id)sender; - (void)searchText:(NSString *)text; @property(readonly, nonatomic) UIView *contentView; @end
/* * sha1.h -- * * SHA1 encryption */ #ifndef _SHA1_H_ #define _SHA1_H_ #include "bios/c_types.h" /********************************************************* * Copyright (C) 1998 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of t...
// // FKFlickrGroupsDiscussRepliesAdd.h // FlickrKit // // Generated by FKAPIBuilder on 12 Jun, 2013 at 17:19. // Copyright (c) 2013 DevedUp Ltd. All rights reserved. http://www.devedup.com // // DO NOT MODIFY THIS FILE - IT IS MACHINE GENERATED #import "FKFlickrAPIMethod.h" typedef enum { FKFlickrGroupsDiscus...
/* * Test program for Allegro. * * Constrains the window to a minimum and or maximum. */ #include "allegro5/allegro.h" #include "allegro5/allegro_image.h" #include "allegro5/allegro_font.h" #include "common.c" int main(int argc, char **argv) { ALLEGRO_DISPLAY *display; ALLEGRO_BITMAP *bmp; ALLEGRO...
/* Copyright The kNet Project. 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 ...
/**************************************************************************** Copyright (c) 2013 cocos2d-x.org http://www.cocos2d-x.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 Software without re...
/* * Generated by class-dump 3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard. */ #import "DVTGenericButtonViewController.h" @class DVTObservingToken; @interface IDEMiniDebuggerToolbarConsoleViewController : DVTGenericButtonViewController { DVTObservingTok...
/* Copyright (C) 2011- 2012 Reetu Raj (reetu.raj@gmail.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, copy, modif...
#include <stdio.h> main() { int c, i, nwhite, nother, ndigit[10]; nwhite = nother = 0; for (i = 0; i < 10; i++) { ndigit[i] = 0; } while ((c = getchar()) != EOF) { switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': cas...
// // DownloadProgressView.h // VideoDownloader // // Created by Jack Cox on 4/7/12. // // #import <UIKit/UIKit.h> #define kShowProgressView @"showProgressView" #define kHideProgressView @"hideProgressView" @interface DownloadProgressView : UIView { // total number of bytes to download long long am...
/************************************************************************* Crytek Source File. Copyright (C), Crytek Studios, 2001-2004. ------------------------------------------------------------------------- $Id: RealtimeRemoveUpdate.h,v 1.1 2009/01/03 10:45:15 PauloZaffari Exp wwwrun $ $DateTime$ Description: This...
#ifndef _VIDEO_OPS_H #define _VIDEO_OPS_H #include "video/color.h" #include "video/surface.h" #include <SDL2/SDL.h> typedef struct video_state_t video_state; typedef void (*render_close_cb)(video_state *state); typedef void (*render_reinit_cb)(video_state *state); typedef void (*render_prepare_cb)(video_state *state...
// // NSError+FSClassExtensions.h // // The MIT License (MIT) // // Copyright (c) 2014 FocalShift // // 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...
// http://www.spoj.com/problems/TDKPRIME #include <stdio.h> #include <stdlib.h> #define MAX 86044176 #define SQRT 9267 #define isp(n) (seive[n>>6]&(1<<((n>>1)&31))) #define setp(n) (seive[n>>6]|=(1<<((n>>1)&31))) int seive[MAX >> 6] = {0}; int primes[5000100]; int main(void) { int i, j, k; for (i = 3; i < SQR...
#include <heman.h> #include "hut.h" #define COUNT(a) (sizeof(a) / sizeof(a[0])) #define OUTFOLDER "build/" #define HEIGHT 128 static int CP_LOCATIONS[] = { 000, // Dark Blue 126, // Light Blue 127, // Yellow 150, // Dark Green 170, // Brown 200, // Brown 240, // White 255, // W...
// // AppDelegate.h // JSPatchHotfix // // Created by bob on 2017/5/29. // Copyright © 2017年 wenbobao. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
@import Foundation; #import "DATAStack.h" @interface APIClient : NSObject - (void)fetchStoryUsingDataStack:(DATAStack *)dataStack; @end
// // MenuButton.h // JackFastKit // // Created by 曾 宪华 on 14-10-13. // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. // // ========================================== // MenuButton 菜单视图 UIView 处理点击事件等 // ======...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_CocoaPodsVerificationVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_CocoaPodsVerifi...
/* Copyright (c) 2015, Apple Inc. 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 code must retain the above copyright notice, this list of conditions and the follow...
/* * 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" #import "DVTCancellable.h" @class IDESourceControlRequest, NSString; @interface IDESourceControlMultipleStepInvalidationToken : NSObject <DVTCancellable> { ...
/********************************************************************** Copyright (c) 2016 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...
// // SeeURL.h // SeeURL // // Created by Alsey Coleman Miller on 12/6/15. // Copyright © 2015 PureSwift. All rights reserved. // #import "cURLSwift.h"
/* * Copyright (c) 2006-2009 Erin Catto http://www.gphysics.com * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any pur...
/* * Copyright 2012 Aarhus University * * 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 agre...
// RUN: %tool "%s" > "%t" // RUN: %diff %CORRECT "%t" int x; int y; int bar() ensures x == \old(x) + 1 { x = x + 1; return 0; } int main() { x = 0; while(x < 10) { int t; t = bar(); } assert x == 10; return 0; }
// // AVFooterRefresh.h // AVRefreshExtension // // Created by 周济 on 16/1/13. // Copyright © 2016年 swiftTest. All rights reserved. // #import "AVRefreshExtension.h" #import "AVRefresh.h" @interface AVFooterRefresh : AVRefresh + (instancetype)createFooterWithRefreshingBlock:(AVRefreshRefreshingBlock)refreshingBlock...
#if defined(PEGASUS_OS_HPUX) # include "UNIX_SystemSettingContextDeps_HPUX.h" #elif defined(PEGASUS_OS_LINUX) # include "UNIX_SystemSettingContextDeps_LINUX.h" #elif defined(PEGASUS_OS_DARWIN) # include "UNIX_SystemSettingContextDeps_DARWIN.h" #elif defined(PEGASUS_OS_AIX) # include "UNIX_SystemSettingContextDeps_AIX....
/* Module : AAPhysicalMars.h Purpose: Implementation for the algorithms which obtain the physical parameters of Mars Created: PJN / 04-01-2004 Copyright (c) 2003 - 2019 by PJ Naughter (Web: www.naughter.com, Email: pjna@naughter.com) All rights reserved. Copyright / Usage Details: You are allowed to incl...
/* * CRC32 code derived from work by Gary S. Brown. */ /* * Pre-populated Table used for calculating CRC32. */ static const unsigned int crc_32_tab[] = { 0x00000000L, 0x77073096L, 0xEE0E612CL, 0x990951BAL, 0x076DC419L, 0x706AF48FL, 0xE963A535L, 0x9E6495A3L, 0x0EDB8832L, 0x79DCB8A4L, 0xE0D5E91EL, 0x97D2D988L,...
/* This file is part of the Pangolin Project. * http://github.com/stevenlovegrove/Pangolin * * Copyright (c) Steven Lovegrove * * 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 ...
#ifndef _WLC_LOGIND_H_ #define _WLC_LOGIND_H_ #if HAS_LOGIND /** Use wlc_fd_open instead, it automatically calls this if logind is used. */ int wlc_logind_open(const char *path, int flags); /** Use wlc_fd_close instead, it automatically calls this if logind is used. */ void wlc_logind_close(int fd); /** Check if lo...
/* * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...