text stringlengths 9 948k |
|---|
/*
* Copyright (c) 2013, The Linux Foundation. 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 li... |
// 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_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_
#define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H... |
// MIT License
// Copyright (c) 2021 Evan Pezent
// 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... |
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
volatile uint16_t x145 = 5U;
volatile int16_t x146 = 0;
volatile int16_t x185 = 3;
static int32_t t4 = -48;
int... |
/*
* nas_emm.h
*
* Created on: Dec 1, 2018
* Author: root
*/
#ifndef SRC_NAS_EMM_NAS_EMM_H_
#define SRC_NAS_EMM_NAS_EMM_H_
int nas_emm_init(mme_config_t* mme_config_p);
#endif /* SRC_NAS_EMM_NAS_EMM_H_ */ |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memset.c :+: :+: :+: ... |
//
// PYEchartsView.h
// iOS-Echarts
//
// Created by Pluto Y on 15/9/4.
// Copyright (c) 2015年 Pluto Y. All rights reserved.
//
@class PYEchartsView;
@protocol PYEchartsViewDelegate <NSObject>
@optional
/**
* When the title link or other http links occur, this method will be called for user
* If return NO, ... |
/*
tre-mem.c - TRE memory allocator
Copyright (c) 2001-2009 Ville Laurikari <vl@iki.fi>
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... |
#ifndef MAILMESSAGE_H
#define MAILMESSAGE_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Metadata of the email message
* that is typically displayed
* without opening it.
*/
typedef struct mailmetadata_t {
char *subject;
char *from;
char *to;
char *cc;
char *bcc;
char *preview;
/* ha... |
/*
*
* Copyright (C) 2011-2019, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were slightly modified by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
* For the original copyright, see the ... |
/* $NetBSD: catrigl.c,v 1.2 2017/05/07 21:59:06 christos Exp $ */
/*-
* Copyright (c) 2012 Stephen Montgomery-Smith <stephen@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:
*... |
//
// Copyright 2020 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.
//
#ifndef ANGLE_TESTS_ANGLE_TEST_PLATFORM_H_
#define ANGLE_TESTS_ANGLE_TEST_PLATFORM_H_
#include <string>
#include "util/util_gl.h"
// Driver ... |
/**
* (C) Copyright 2016-2018 Intel Corporation.
*
* 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 l... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <unordered_map>
#include <vector>
#include "Debug.h"
namespace graph {
/*
* Iterative implementation of ... |
//
// PGWhitelistTests.h
// PhoneGapLib
//
// Created by Shazron Abdullah on 11-09-01.
// Copyright 2011 Nitobi Software Inc. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
@interface PGWhitelistTests : SenTestCase {
}
@end |
// FieldMap.h
// Copyright 2018/8/3 Robin.Rowe@cinepaint.org
// License MIT open source
#ifndef FieldMap_h
#define FieldMap_h
#include <map>
#include <string_view>
template <class T>
struct string_view_compare
{ bool operator() (const T& x, const T& y) const
{ return x.compare(y)<0;
} };
class FieldMap
: public... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+---------... |
/* DirectSound
*
* Copyright 1998 Marcus Meissner
* Copyright 1998 Rob Riggs
* Copyright 2000-2002 TransGaming Technologies, Inc.
*
* 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 Foundat... |
// This program is a part of NT MudLIB
// Written by Lonely@nitan.org
#include <ansi.h>
#include <armor.h>
inherit CLOTH;
void create()
{
set_name(HIY "神" HIW "之" HIM "祝福" NOR YEL "戰衣" NOR, ({ "zhufu cloth", "cloth", "buyi" }) );
set_weight(500);
if( clonep() )
set_default... |
//
// CDAResourcesCollectionViewController.h
// ContentfulSDK
//
// Created by Boris Bügling on 19/03/14.
//
//
#import <ContentfulDeliveryAPI/CDAClient.h>
#import <UIKit/UIKit.h>
/**
The `CDAResourcesCollectionViewController` makes it easy to display content from different kinds
of Resources in an `UICollection... |
#ifndef STORAGE_CLEAR_SET_H
#define STORAGE_CLEAR_SET_H
#include "Object.h"
#include "Handle.h"
#include "PDBString.h"
// PRELOAD %StorageClearSet%
namespace pdb {
// encapsulates a request to add a set in storage
class StorageClearSet : public Object {
public:
StorageClearSet() {}
~StorageClearSet() {}
... |
/*
* Copyright (c) 2005-2006 Rincon Research 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, th... |
#pragma once
// Copyright 2015 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "crypto/SecretKey.h"
#include "main/Application.h"
#include "test/TxTest... |
//
// HomeViewController.h
// FashionLife
//
// Created by yzz on 15/10/26.
// Copyright (c) 2015年 project. All rights reserved.
//
#import "RootViewController.h"
@interface HomeViewController : RootViewController
@end |
//
// Created by t5w0rd on 19-4-20.
//
#include <string.h>
#include "tinterpreter.h"
#include "tlexer.h"
#include "tmisc.h"
#include "terror.h"
// string
#define STRING_ALLOC_SIZE (256)
static char *st_string_literal_buffer = NULL;
static int st_string_literal_buffer_size = 0;
static int st_string_literal_buff... |
#include "test.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
void test_comparison()
{
double a = 10.0;
double b = -2.0;
Assert( a > b, "a > b");
Assert( a >= b, "a >= b");
Assert( a != b, "a != b");
Assert( b < a, "b < a");
Assert( b <= a, "b <= a");
Assert( a == ... |
#ifndef _DCDARKNET_APP_H
#define _DCDARKNET_APP_H
#include "error_type.h"
class DCDarkNetApp {
public:
DCDarkNetApp();
ErrorType init();
private:
};
#endif |
#pragma once
// Name: SeaOfThieves, Version: 2.0.23
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Classes
//----------------------------------------------------... |
/*
* Copyright (C) 2010 Renesas Electronics America Inc. All rights reserved.
*/
#include <tinyhal.h>
//--//
#ifndef _DRIVERS_FLASH_SF_BL_H_
#define _DRIVERS_FLASH_SF_BL_H_ 1
typedef BYTE SERIAL_WORD;
#define SF_PAGE_SIZE 256
//#define SF_SECTOR_SIZE 0x1000
//--//
struct SF_BS_Driver
{
typede... |
/* Routines to make our own gossip messages. Not as in "we're the gossip
* generation, man!" */
#include <ccan/cast/cast.h>
#include <ccan/mem/mem.h>
#include <common/features.h>
#include <common/memleak.h>
#include <common/status.h>
#include <common/timeout.h>
#include <common/type_to_string.h>
#include <common/wire... |
// Copyright (c) 2017-2019 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef cryptowithacause_ACCUMULATORS_H
#define cryptowithacause_ACCUMULATORS_H
#include "libzerocoin/Accumulator.h"
#include "libze... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkDisplacementMapEffect_DEFINED
#define SkDisplacementMapEffect_DEFINED
#include "SkImageFilter.h"
class SK_API SkDisplacementMapEffect : public SkImageFilter {
publ... |
#pragma once
#include <ext/shared_ptr_helper.h>
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class Context;
/** Implements `metrics` system table, which provides information about the operation of the server.
*/
class StorageSystemMetrics : public ext::shared_ptr_helper<StorageSystemMetric... |
//----------------------------------------------------------------------------------------
// THIS CODE AND INFORMATION IS PROVIDED "AS-IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.... |
// this tests pthread_create
#include <pthread.h>
extern void echo(int);
volatile int ft_set = 0;
volatile pthread_t first_thread;
volatile pthread_t second_thread;
void* check (void* ft) {
while(!ft_set) {
}
pthread_t me = pthread_self();
if (pthread_equal(me,*(pthread_t*)ft)) {
echo(0);
} else {
... |
/*
* Copyright 2010-2012 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... |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
static ngx_int_t ngx_http_write_filter_init(ngx_conf_t *cf);
static ngx_http_module_t ngx_http_write_filter_module_ctx = {
NULL, /* preconfigur... |
#pragma once
struct Vec3 {
float x = 0;
float y = 0;
float z = 0;
Vec3() = default;
Vec3(float x, float y, float z);
Vec3& operator+=(const Vec3& v);
};
class Object {
public:
using Offset = size_t;
static void Init(Offset maxObjects);
static void Done();
static Object* Ne... |
/*!
* Copyright (c) 2015 by Contributors
* \file data.h
* \brief The input data structure of xgboost.
* \author Tianqi Chen
*/
#ifndef XGBOOST_DATA_H_
#define XGBOOST_DATA_H_
#include <dmlc/base.h>
#include <dmlc/data.h>
#include <dmlc/serializer.h>
#include <xgboost/base.h>
#include <xgboost/span.h>
#include <xg... |
/*---------------------------------------------------------------------------------
Copyright (C) 2007 Acekard, www.acekard.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 restrictio... |
#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_TestLibrary4_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_TestLibrary4_Tests... |
#ifndef STORAGE_LEVELDB_DB_MEM_VERSION_SET_H_
#define STORAGE_LEVELDB_DB_MEM_VERSION_SET_H_
#include <set>
#include <vector>
#include "table/two_level_iterator.h"
#include "db/dbformat.h"
#include "db/mem_version_edit.h"
#include "port/port.h"
#include "port/thread_annotations.h"
#include "db/version_set.h"
namespa... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:40:01 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/Frameworks/CoreImage.framework/CoreImage
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limn... |
/* Support for printing Modula 2 values for GDB, the GNU debugger.
Copyright (C) 1986-2017 Free Software Foundation, Inc.
This file is part of GDB.
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 Softwar... |
// Copyright (c) 2011 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_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_
#include <vector>
#include "base/bas... |
/*!
* Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
*
* Licensed under the BSD 2-Clause License.
* You should have received a copy of the BSD 2-Clause License
* along with the software. If not, See,
*
* <https://opensource.org/licenses/BSD-2-Clause>
*
* --------------------------------------------------... |
#pragma once
#include <boost/filesystem/path.hpp>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
using LibHandleType = HMODULE;
#else
using LibHandleType = void*;
#endif
namespace Halley
{
class DynamicLibrary
{
public:
DynamicLibrary(std::string originalPath);
~DynamicLibrary();
void load(b... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2008 Red Hat. All rights reserved.
*/
#include <linux/pagemap.h>
#include <linux/sched.h>
#include <linux/sched/signal.h>
#include <linux/slab.h>
#include <linux/math64.h>
#include <linux/ratelimit.h>
#include <linux/error-injection.h>
#include <linux/sched/mm.... |
/*
* syscall.h - proxy system call handler interfaces
*
* This file is a part of the SimpleScalar tool suite written by
* Todd M. Austin as a part of the Multiscalar Research Project.
*
* The tool suite is currently maintained by Doug Burger and Todd M. Austin.
*
* Copyright (C) 1994, 1995, 1996, 1997, 1998 ... |
#pragma once
#include <string>
#include "image.h"
#include "enum.h"
namespace img
{
class ImageWriter
{
public:
static void writeFile(Image & image, const std::string & path);
private:
static void writeBmp(
const std::string & filename,
Image & image,
FORCE_CHANNELS channel = FORCE_CHANNELS::AUTO... |
/*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#ifndef VISA_KERNEL_H
#define VISA_KERNEL_H
#include "VISABuilderAPIDefinition.h"
#... |
/**
* @file a2.h
* @brief declares a prototype and a constant
* @author Cliff Williams
*
* This header file is used internally by a.c and
* a2.c to declare a prototype and define a constant.
*
* @bug no known bugs
*/
#ifndef _a2_h
#define _a2_h
#define MY_CONSTANT 47
extern int a2();
#endif /* _a2_h */ |
//
// KNDefine.h
// NavTest
//
// Created by LUKHA_Lu on 15/10/9.
// Copyright (c) 2015年 KNKane. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AFN_HttpTool.h"
#import "KNAlertView.h"
#import "KNBase64.h"
#import "KNNavigationController.h"
#import "KNNoSelectButton.h"
#import "KNParagraphLabel... |
// Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#if !defined(__cplusplus)
#error C++11 required
#endif
#pragma once
#include <playfab/PFTitleDataManagementDataModels.h>
#include <playfab/PFGlobal.h>
#include <playfab/PFTitle... |
#ifndef player_h
#define player_h
#include <SDL2/SDL.h>
#include <vector>
#include "Actor.h"
#include "circle/Circle.h"
class Player : public Actor {
public:
static constexpr int BEHIND_ANGLE_LOWER = 135;
static constexpr int BEHIND_ANGLE_UPPER = 180 + BEHIND_ANGLE_LOWER;
Player(int radius, SDL_Point position... |
/*
* The copyright in this software is being made available under the 2-clauses
* BSD License, included below. This software may be subject to other third
* party and contributor rights, including patent rights, and no such rights
* are granted under this license.
*
* Copyright (c) 2002-2014, Universite catholiqu... |
#include <stdio.h>
int main ()
{
int arr[100], n,i=0,m=1;
scanf("%d",&n);
while(i<n)
{
scanf("%d",&arr[i]);
if(arr[i]%2!=0)i++;
}
for (i=0;i<n/2;i++,m++)
{
printf("%d\n",arr[i]-arr[n-m]);
}
if(n%2!=0)printf("%d\n",arr[n/2]);
return 0;
} |
/*******************************************************************/
/* */
/* ADOBE CONFIDENTIAL */
/* _ _ _ _ _ _ _ _ _ _ _ _ _ */
/* ... |
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, September 26, 2020 at 1:43:48 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18J386)
* Image Source: /System/Library/PrivateFrameworks/ConfigurationEngineModel.framework/ConfigurationEngineModel
* classdump-dyld is licensed under GPLv... |
/***************************************************************************/
/* */
/* pfrobjs.c */
/* */
/* Fr... |
/*-------------------------------------------------------------------------
*
* comment.c
*
* PostgreSQL object comments utility code.
*
* Copyright (c) 1996-2008, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/comment.c,v 1.100 2008/01/01 19:45:48 momjian Ex... |
/* ----------------------------------------------------------------------------
* SAM Software Package License
* ----------------------------------------------------------------------------
* Copyright (c) 2011-2012, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and bina... |
#pragma once
/// Defines the Half type (half-precision floating-point) including conversions
/// to standard C types and basic arithmetic operations. Note that arithmetic
/// operations are implemented by converting to floating point and
/// performing the operation in float32, instead of using CUDA half intrinsics.
/... |
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 14, 2021 at 2:28:29 PM Mountain Standard Time
* Operating System: Version 14.4 (Build 18K802)
* Image Source: /usr/lib/swift/libswiftUIKit.dylib
... |
/*
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source c... |
// User Input Class :-
class UserInput {
private:
void Init(const char* program_name, wxString program_version);
FILE* defaults_file;
FILE* new_defaults_file;
char defaults_filename[1000];
char new_defaults_filename[1000];
char memory_string[10000];
void GetDefault(const char* my_text... |
#ifndef _ZoO_TOOL_STRINGS_TYPES_H_
#define _ZoO_TOOL_STRINGS_TYPES_H_
#include <stdio.h>
#include "../pervasive.h"
struct ZoO_strings
{
ZoO_index words_count;
ZoO_char * restrict * restrict words;
size_t * restrict word_sizes;
};
#endif |
//
// UIButton+Extension.h
// QueenComing_5.19
//
// Created by ibokan on 16/5/21.
// Copyright © 2016年 One. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum : NSUInteger {
MyButtonColorBackgroundStyle,// 背景有颜色,字体为白色的实心的样式
MyButtonBlankBackgroundStyle,// 背景白色,有颜色和字体颜色一样的边框的样式
MyButtonNoneSt... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef XFA_FWL_CFWL_COMBOLIST_H_
#define XFA_FWL_CFWL_COMBOLIST_H_
#include ... |
/* Autogenerated by bin2c */
uint8_t vera14_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00,
0x08, 0x00, 0x00, 0x00, 0x00, 0xd1, 0x13, 0x8b, 0x26, 0x00, 0x00, 0x00,
0x04, 0x67, 0x41, 0x4d, 0x41, 0x00, 0x00, 0xb... |
/*
wiring.h - Partial implementation of the Wiring API for the ATmega8.
Part of Arduino - http://www.arduino.cc/
Copyright (c) 2005-2006 David A. Mellis
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... |
#ifndef __LINUX_NETLINK_H
#define __LINUX_NETLINK_H
#include <linux/socket.h> /* for __kernel_sa_family_t */
#include <linux/types.h>
#define NETLINK_ROUTE 0 /* Routing/device hook */
#define NETLINK_UNUSED 1 /* Unused number */
#define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */
#define... |
//
// GCHString.h
// Cyano
//
// Created by Yuanhai on 13/9/18.
// Copyright © 2018年 Yuanhai. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface GCHString : NSObject
+ (float)getTextWidth:(NSString *)text font:(UIFont *)font;
+ (NSString *)trimString:(NSString *)str trimInside:(BOOL)inside;
+... |
/**
* \brief Component description for TCC
*
* Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software and any derivatives
* exclusively with Microchip products. It is your responsibility to comply with third party license
... |
// Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#if !defined(SURFACE_ALGORITHM_H)
#define SURFACE_ALGORITHM_H
struct TangentFrameStruct
{
float3 tangent, bitangent, normal;
float ha... |
//
// This file is part of the Max-Net Project
//
// Copyright (c) 2019, Jonas Ohland
//
// MIT License
//
// 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... |
// 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 CHROME_BROWSER_WIN_CONFLICTS_INCOMPATIBLE_APPLICATIONS_UPDATER_H_
#define CHROME_BROWSER_WIN_CONFLICTS_INCOMPATIBLE_APPLICATIONS_UPDATER_H_
#incl... |
#include <stdio.h>
int main(void)
{
// declarando variáveis
char cProdName[20] = {0};
float fProdPrice;
float fProdDesc;
printf("\n<<< EX010 - Preço do Produto >>>\n\n");
printf("Produto: ");
scanf("%s", cProdName);
printf("\nPreço de %s: R$", cProdName);
scanf("%f", &fProdP... |
//
// AppDelegate.h
// FRDModuleManagerDemo
//
// Created by GUO Lin on 9/29/16.
// Copyright © 2016 Douban Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end |
/*
* FreeRTOS V202107.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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 ... |
/*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:01:30 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/Frameworks/Accounts.framework/Accounts
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.... |
//
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import "BuddyMigrationBaseDisconnectController.h"
@interface BuddyMigrationDisconnectController : BuddyMigrationBaseDisconnectController
{
}
- (... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The DWG developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license... |
//
// NSTextView+LookupAdditions.h
// Eloquent
//
// Created by Manfred Bergmann on 09.12.09.
// Copyright 2009 Software by MABE. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <FooLogger/CocoLogger.h>
@interface NSTextView (LookupAdditions)
- (NSRange)rangeOfFirstLineWithLineRect:(NSRect *)lineRect;
-... |
//*****************************************************************************
//Title :PANSFEM2/FEM/Controller/NewtonCotesIntegration.h
//Author :Tanabe Yuta
//Date :2020/03/14
//Copyright :(C)2020 TanabeYuta
//*****************************************************************************
#pragma once
#include <cm... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE193_Off_by_One_Error__char_memmove_17.c
Label Definition File: CWE193_Off_by_One_Error.label.xml
Template File: point-flaw-17.tmpl.c
*/
/*
* @description
* CWE: 193 Off by One Error
* Sinks: memmove
* GoodSink: Use memmove() to perform a string copy correctly
* ... |
/* -*- Mode: C++ -*- */
/* MemAction.h
* CMUnited99 (soccer client for Robocup99)
* Peter Stone <pstone@cs.cmu.edu>
* Computer Science Department
* Carnegie Mellon University
* Copyright (C) 1999 Peter Stone
*
* CMUnited-99 was created by Peter Stone, Patrick Riley, and Manuela Veloso
*
* You may copy and dis... |
//*****************************************************************************
//
// tm4c1236d5pm.h - TM4C1236D5PM Register Definitions
//
// Copyright (c) 2013-2020 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Redistribution and use in source and binary forms, with or w... |
/*
* Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
*
* Derived from code (arch/arm/lib/reset.c) that is:
*
* (C) Copyright 2002
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* Marius Groeger <mgroeger@sysgo.de>
*
* (C) Copyright 2002
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* A... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strrchr.c :+: :+: :+: ... |
/**
* @file cma_common.h
* @brief
* @author xxx
* @version 1.0
* @date 2020-08-01
*
* @copyright Copyright (c) Huawei Technologies Co., Ltd. 2011-2020. All rights reserved.
*
*/
#ifndef CMA_COMMON_H
#define CMA_COMMON_H
#ifndef CM_IP_LENGTH
#define CM_IP_LENGTH 128
#endif
void set_thread_state(pthread_t ... |
/* This file was generated by upbc (the upb compiler) from the input
* file:
*
* google/protobuf/descriptor.proto
*
* Do not edit -- your changes will be discarded when the file is
* regenerated. */
#ifndef GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
#define GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
#include "upb... |
/*
* arch/xtensa/include/asm/xchal_vaddr_remap.h
*
* Xtensa macros for MMU V3 Support. Deals with re-mapping the Virtual
* Memory Addresses from "Virtual == Physical" to their prevvious V2 MMU
* mappings (KSEG at 0xD0000000 and KIO at 0XF0000000).
*
* This file is subject to the terms and conditions of the GNU G... |
/*
* Test Program for GA
* This is to test GA_Duplicate (is a collective operation)
* GA_Create -- used to create a global array using handles like 'g_A'
* GA_Duplicate --helps to duplicate the content from handle 'g_A'
* Here used GA_Inquire to verify that g_A hanle returns the right values of created_array
*/
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CL/cl.h>
unsigned char *read_buffer(char *file_name, size_t *size_ptr)
{
FILE *f;
unsigned char *buf;
size_t size;
/* Open file */
f = fopen(file_name, "rb");
if (!f)
return NULL;
/* ... |
// Copyright 2013 Cloudera, Inc.
//
// 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 ... |
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef void (APIENTRY *glProgramLocalParameterI4iNVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
typedef void (APIENTRY *glProgramLocalParameterI4ivNVPROC) (GLenum target, GLuint index, const GLint * params);
typ... |
#pragma once
#include "Module.h"
#include "Globals.h"
#include "p2Point.h"
#include "Box2D/Box2D/Box2D.h"
#define GRAVITY_X 0.0f
#define GRAVITY_Y -7.0f
#define PIXELS_PER_METER 50.0f // if touched change METER_PER_PIXEL too
#define METER_PER_PIXEL 0.02f // this is 1 / PIXELS_PER_METER !
#define METERS_TO_PIXELS(m) ... |
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Riccardo Rossi
//
//
#if !defined(KRATOS_RESIDUA... |
/*
* This header is generated by classdump-dyld 1.5
* on Friday, April 30, 2021 at 11:37:27 AM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/PrivateFrameworks/AppPredicti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.