text stringlengths 9 948k |
|---|
// Test the periodicity_test function from search.h
# include "../periodicitytest/search.h"
# include "../periodicitytest/basics.h"
# include "../periodicitytest/interval.h"
# include "testfunctions.h"
# include <math.h>
# include <assert.h>
# include <unistd.h>
# include <stdlib.h>
ValueType nu;
ValueType noise()
{... |
//
// ChooseAnswersCell.h
// HB
//
// Created by LIFEI on 2017/5/15.
// Copyright © 2017年 break. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ChooseAnswersCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@propert... |
#pragma once
#include "typedefs.h"
#include "protos.h"
#include "api.h"
#include "function.h"
#include "log_level.h"
#include <mutex>
namespace natus
{
namespace log
{
class NATUS_LOG_API global
{
natus_this_typedefs( global ) ;
private:
/// should be of typ... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
/* libunwind - a platform-independent unwind library
Copyright (C) 2008 CodeSourcery
Copyright 2011 Linaro Limited
This file is part of libunwind.
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 Sof... |
/*
* This header is generated by classdump-dyld 1.5
* on Friday, April 30, 2021 at 11:37:30 AM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/PrivateFrameworks/ToneLibrary... |
/**
* @file per_gpio_f4.h
*
* This file contains the peripheral GPIO
*
* Copyright (c) 2021 admaunaloa admaunaloa@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 ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The TheBurningSavage Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef THEBURNINGSAVAGE_RANDOM_H
#define THEBURNINGSAVAGE_RANDOM_H
#in... |
/**
******************************************************************************
* @file stm32f3xx_hal.c
* @author MCD Application Team
* @brief HAL module driver.
* This is the common part of the HAL initialization
*
* @verbatim
* ===============================================================... |
/*
==============================================================================
Kratos
A General Purpose Software for Multi-Physics Finite Element Analysis
Version 1.0 (Released on march 05, 2007).
Copyright 2007
Pooyan Dadvand, Riccardo Rossi
pooyan@cimne.upc.edu
rrossi@cimne.upc.edu
CIMNE (International Center for... |
/*
* 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 in the hope that it will be use... |
#pragma once
#define TEMPLATE_SPECIALIZATION \
template <typename _Object\
>
#define CStateMonsterHittedHideAbstract CStateMonsterHittedHide<_Object>
#define GOOD_DISTANCE_TO_ENEMY 10.f
#define GOOD_DISTANCE_IN_COVER 15.f
#define MIN_HIDE_TIME 3.f
#define DIST_TO_PATH_END 1.5f
TEMPLATE_SPECIALIZATION
void CState... |
// Copyright (C) 2017-2019 Chris N. Richardson and Garth N. Wells
//
// This file is part of FEniCS-miniapp (https://www.fenicsproject.org)
//
// SPDX-License-Identifier: MIT
#pragma once
#include "Elasticity.h"
#include <Eigen/Dense>
#include <dolfinx/common/Timer.h>
#include <dolfinx/fem/DirichletBC.h>
#include ... |
#pragma once
#include "Traceability/Logger.h"
#include "Layer/Layer.h"
#include "Layer/Gui/GuiLayer.h"
#include "Scene/SceneManager.h"
#include "Scene/Camera/OrthographicCamera.h"
#include "Scene/Camera/OrthographicCameraController.h"
#include "Graphic/Shader.h"
#include "Graphic/OpenGL/GLShader.h"
#include "Graphi... |
/* Copyright (c) 2000, 2001, 2006, 2007 MySQL AB
Use is subject to license terms.
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; version 2 of the License.
This program is distributed... |
/*
* Copyright (c) 2012 Taobao.
* Written by Tao Ma <boyu.mt@taobao.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2.1 of the GNU Lesser General Public License
* as published by the Free Software Foundation.
*
* This program is distributed in the ho... |
// NOTE: This file was generated by the ServiceGenerator.
// ----------------------------------------------------------------------------
// API:
// Cloud Shell API (cloudshell/v1)
// Description:
// Allows users to start, configure, and connect to interactive shell sessions
// running in the cloud.
// Documenta... |
/*
Minetest
Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any lat... |
/**
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.
*/
#ifndef __pbxproj_PBX_... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... |
#pragma once
#include <cstdint>
#include <memory>
#include <string>
#include "envoy/access_log/access_log.h"
#include "envoy/api/io_error.h"
#include "envoy/common/exception.h"
#include "envoy/common/resource.h"
#include "envoy/config/core/v3/base.pb.h"
#include "envoy/init/manager.h"
#include "envoy/network/connecti... |
/*
* Copyright (c) 2021 Sebastian Kylander https://gaztin.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 purpo... |
/*
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
* 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... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_GUICONSTANTS_H
#define BITCOIN_QT_GUICONSTANTS_H
/* Milliseconds between model updates */
static const in... |
/* Following is an IR Dump from the compiler
define Proc%1
L0 (entry)
INIT {Tint(0)}
INIT {Tint(1)}
INIT {Tint(2)}
INIT {Tint(3)}
LOADGLOBAL {Upval(_ENV), 'table' Ks(0)} {T(0)}
GETsk {T(0), 'intarray' Ks(1)} {T(1)}
MOV {T(1)} {T(2)}
CALL {T(2), 8190 Kint(0)} {T(2..), 1 Kint(1)}
TOIARRAY {T(2[2..])}
MOV {T(2[2... |
/****************************************************************************
* arch/avr/src/avr/avr_internal.h
*
* Copyright (C) 2011-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are pe... |
/* Check __ppc_get_hwcap() and __ppc_get_at_plaftorm() functionality.
Copyright (C) 2015-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as pu... |
/*
* drivers/media/i2c/smiapp/smiapp.h
*
* Generic driver for SMIA/SMIA++ compliant camera modules
*
* Copyright (C) 2010--2012 Nokia Corporation
* Contact: Sakari Ailus <sakari.ailus@iki.fi>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public... |
// Copyright (c) 2011 by Raytheon BBN Technologies Corp.
// All Rights Reserved.
#ifndef UT_FEATURE_GENDER
#define UT_FEATURE_GENDER
#include <string>
#include "Generic/theories/SynNode.h"
#include "Generic/common/Symbol.h"
#include "Generic/UTCoref/LinkAllMentions.h"
#include "Generic/UTCoref/featuretypes/UTFeatureT... |
/**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
//Copyright (c) 2014, IDEO
#ifndef LEMMA_API_H
#define LEMMA_API_H
#include "Event.h"
#include "TcpReader.h"
#include "EventHandler.h"
#include <sys/time.h>
class TcpClient;
class TcpServer;
class EventFilter;
class UnixUdp;
class HostLocator;
class PeriodicTicker;
struct LemmaList;
class LemmaApi : public TcpRea... |
extern int fsmatch (FImage *fip, void (*drawf)(double x, double y, int rad,
int ccode), ObjF *fs, int nfs, double *isx, double *isy, int nis,
double best, double worst, char msg[]); |
/* -------------------------------------------------------------------------
Test.cpp
Console i/o interface to test resource manager
Written by Kevin Ray (c) 1996 Spectrum Holobyte
------------------------------------------------------------------------ */
#include "resmgr.h" /* ... |
// SPDX-License-Identifier: Apache-2.0
/*
* Base PCI support
*
* Copyright 2013-2019 IBM Corp.
*/
#include <skiboot.h>
#include <cpu.h>
#include <pci.h>
#include <pci-cfg.h>
#include <pci-slot.h>
#include <pci-quirk.h>
#include <timebase.h>
#include <device.h>
#define MAX_PHB_ID 256
static struct phb *phbs[MAX_PH... |
/*
* Copyright (C) 2019 HERE Europe B.V.
*
* 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 a... |
//
// Created by Per-Arne on 25.02.2017.
//
#ifndef WARC2SIM_DESPAWNED_H
#define WARC2SIM_DESPAWNED_H
#include "../Constants.h"
#include "BaseState.h"
namespace DeepRTS {
class Unit;
class Despawned : public BaseState {
public:
Despawned() : BaseState(Constants::State::Despawned) {
... |
/****************************************************************************
* arch/arm/src/stm32h7/stm32_allocateheap.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding c... |
//
// 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) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
//
... |
//
// APCOnboardingManager.h
// APCAppCore
//
// Copyright (c) 2015, Apple Inc. All rights reserved.
// Copyright (c) 2015, Boston Children's Hospital. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions ar... |
// Copyright 2020 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_COLLECTION_SUPPORT_HEAP_LINKED_HASH_SET_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_COLLECTION_SU... |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
* 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:
*
* * Redistributions of source code must retai... |
#ifndef STD_SCANNER_H
#define STD_SCANNER_H
// Scanner contains input and output buffers and maintains separate indices for each
typedef struct {
const char *in_buf;
char *out_buf;
size_t in_idx;
size_t out_idx;
} Scanner;
// Initialize scanner buffers and counters
void scanner_init(Scanner *scanner);... |
/*
* Copyright 2014 Facebook, 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... |
//
// MHFacebookImageViewer.h
// Version 2.0
//
// Copyright (c) 2013 Michael Henry Pantaleon (http://www.iamkel.net). 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 Softwa... |
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2007-01-10 Bernard the first version
* 2008-07-12 Bernard remove all rt_int8, rt_uint32_t etc typedef
* 2010-10-26 yi.qiu add modul... |
#include <AOS-unix/vga.h>
#include <AOS-unix/port.h>
#include <AOS-unix/string.h>
#define LINES 25
#define LINES_SCREEN 24
#define COLUMNS 80
#define VGA_PORT_COMMAND 0x3d4
#define VGA_PORT_DATA 0x3d5
#define VGA_BUFFER_START 0xb8000
#define VGA_BUFFER_END 0xc0000
enum vga_color {
VGA_COLOR_BLACK = 0,
V... |
/*-
* Copyright (c) 1991 The Regents of the University of California.
* Copyright (c) 2008 The DragonFly Project.
* 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 ... |
/*
* Copyright 2016, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(D61_... |
//
// NSSet+Accessors.h
// SampleProject
//
// Created by Marin Usalj on 11/23/12.
// Copyright (c) 2012 @supermarin | supermar.in. All rights reserved.
//
@interface NSSet (Accessors)
/// Returns the first object of a given set.
/// Note that sets are unordered, so this method won't always return the same thing
... |
#ifdef HAVE_CONFIG_H
#include "../../ext_config.h"
#endif
#include <php.h>
#include "../../php_ext.h"
#include "../../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
/**
* Class with constructor
*/
ZEPHIR_INIT_CLASS(Test_Oo_OoCo... |
/* dstebz.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... |
//
// TZPhotoPickerController.h
// TZImagePickerController
//
// Created by 谭真 on 15/12/24.
// Copyright © 2015年 谭真. All rights reserved.
//
#import <UIKit/UIKit.h>
@class TZAlbumModel;
@interface TZPhotoPickerController : UIViewController
@property (nonatomic, assign) BOOL isFirstAppear;
@property (nonatomic, a... |
//
// WDTWeatherTile.h
// Knockdown
//
// Created by Robert Miller on 5/14/16.
// Copyright © 2016 Silversphere. All rights reserved.
//
#import <GoogleMaps/GoogleMaps.h>
#define kTileWillBeginDownload @"Tile Download Will Begin"
#define kTileDidFinishDownload @"Tile Did Finish Download"
typedef void(^CountInc... |
/*
* include/asm-alpha/cache.h
*/
#ifndef __ARCH_ALPHA_CACHE_H
#define __ARCH_ALPHA_CACHE_H
#include <linux/config.h>
/* Bytes per L1 (data) cache line. */
#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_EV6)
# define L1_CACHE_BYTES 64
# define L1_CACHE_SHIFT 6
#else
/* Both EV4 and EV5 are write-... |
#ifndef OBSTACLE_H
#define OBSTACLE_H
#include "Container.h"
class Obstacle : public Container {
public:
Obstacle(char);
};
#endif // OBSTACLE_H |
/*======================================================================
wave Bezier Coordinates
Generated By Bezier Designer
Relminator 2010
======================================================================*/
#include "Bezier.h"
// Point Format:
// x,y
// Table Format:
// d,t
#ifndef BEZ... |
/*
* 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
// Enable some or all of these to enable very verbose logging for
// LayoutAnimations
//#define LAYOUT_ANIMATION_VERB... |
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
#include <errno.h>
#include <tee_client_api.h>
#include "tee_api_defines.h"
#include <dumpmem_ta.h>
#include <stdio.h>
#include <execinfo.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
void handler(int... |
/**
* This header is generated by class-dump-z 0.2a.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: (null)
*/
#import "NSObject.h"
@protocol WCPayCreditPayFinishCreateViewControllerDelegate <NSObject>
-(void)WCPayCreditPayFinishCreateViewControllerGoToGetMoreLimit;
-(void)WC... |
/*############################################################################
# Copyright (C) Intel Corporation
#
# SPDX-License-Identifier: MIT
############################################################################*/
#ifndef __PIPELINE_USER_H__
#define __PIPELINE_USER_H__
#if (MFX_VERSION < 2000)
#... |
/** @file
SetMem64() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2010, Intel Co... |
/* -*- tab-width: 4; -*- */
/* vi: set sw=2 ts=4 expandtab: */
#ifndef KTX_H_A55A6F00956F42F3A137C11929827FE1
#define KTX_H_A55A6F00956F42F3A137C11929827FE1
/*
* Copyright 2010-2018 The Khronos Group, Inc.
* SPDX-License-Identifier: Apache-2.0
*
* See the accompanying LICENSE.md for licensing details for all file... |
/*
* The Clear BSD License
* Copyright 2012-2017 NXP
* 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 code mus... |
/*******************************************************************************
* File Name: PWM_2500Hz.h
* Version 3.0
*
* Description:
* Contains the prototypes and constants for the functions available to the
* PWM user module.
*
* Note:
*
***********************************************************************... |
#pragma once
#ifndef GLOBALHEADER_H
#define GLOBALHEADER_H
#include <vector>
#include "UVFTables.h"
class GlobalHeader {
public:
GlobalHeader();
GlobalHeader(const GlobalHeader &other);
GlobalHeader& operator=(const GlobalHeader& other);
bool bIsBigEndian;
UINT64 ... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2021 Realm 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/li... |
/*
* Copyright 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 "license" f... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_loop_13.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.label.xml
Template File: sources-sink-13.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate using malloc(... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
char ch;
int count[10] = {0};
while(scanf("%c", &ch) == 1){
if(ch >= '0' & ch <= '9'){
count[ch - '0']++;
}
}
for(int j = 0; j < 10; j++){
printf("%d ", count[j]);
}
... |
//===------------------------------------------------------------*- C++ -*-===//
//
// SHAD
//
// The Scalable High-performance Algorithms and Data Structure Library
//
//===----------------------------------------------------------------------===//
//
// Copyright 2018 Battelle... |
/*
* Implement the following routines to set GPIO pins to input or output,
* and to read (input) and write (output) them.
*
* DO NOT USE loads and stores directly: only use GET32 and PUT32
* to read and write memory. Use the minimal number of such calls.
*
* See rpi.h in this directory for the definitions.
*/
... |
/*
* Copyright 2015-2018 Yubico AB
*
* 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 i... |
#ifndef _POSIX_PTHREAD_H
#define _POSIX_PTHREAD_H
#include <stdlib.h>
/* Let's be single-threaded for now. */
typedef struct {
void *ptr;
} *pthread_key_t;
static inline int pthread_key_create(pthread_key_t *key, void (*destr_function)(void*))
{
*key = malloc(sizeof(**key));
(*key)->ptr = NULL;
retu... |
/*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:16:30 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/Frameworks/HomeKit.framewor... |
/** @file oyImage_s.c
[Template file inheritance graph]
+-> oyImage_s.template.c
|
+-> Base_s.c
|
+-- oyStruct_s.template.c
* Oyranos is an open source Color Management System
*
* @par Copyright:
* 2004-2018 (C) Kai-Uwe Behrmann
*
* @author Kai-Uwe Behrmann <ku.b@gmx.de>
* @p... |
/**
******************************************************************************
* @file stm32f769i_discovery_sd.c
* @author MCD Application Team
* @brief This file includes the uSD card driver mounted on STM32F769I-Discovery
* board.
********************************************************... |
/* Function object implementation */
#include "Python.h"
#include "pycore_ceval.h" // _PyEval_BuiltinsFromGlobals()
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
#include "pycore_pyerrors.h" // _PyErr_Occurred()
#include "structmember.h" // PyMemberDef
static uint32_t next_func_vers... |
/*
** my_putchar.c for 42sh in /home/arrazo_p/Systeme_Unix/PSU_2014_minishell1
**
** Made by arrazolaleon pedroantonio
** Login <arrazo_p@epitech.net>
**
** Started on Fri Jan 23 14:46:48 2015 arrazolaleon pedroantonio
** Last update Sun May 24 14:52:29 2015 Vatinelle Maxime
*/
#include "../42sh.h"
int my_putcha... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, June 7, 2020 at 11:26:05 AM Mountain Standard Time
* Operating System: Version 13.4.5 (Build 17L562)
* Image Source: /System/Library/PrivateFrameworks/WeatherFoundation.framework/WeatherFoundation
* classdump-dyld is licensed under GPLv3, Copyright © 2013... |
//
// YSTagListView.h
// PXH
//
// Created by yu on 2017/8/17.
// Copyright © 2017年 yu. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "YSProductDetail.h"
@interface YSTagListView : UIView
- (instancetype)initWithStandardArray:(NSArray *)standardArray changeHandler:(YSCompleteHandler)block;
... |
//M阶B-树
//根节点,关键字[1,m-1],子树[2,m]
//非叶子节点,关键字[ceil(m/2)-1, m-1],子树[ceil(m/2), m]
//P0<=K0<P1<=K1<Pm
#ifndef _BSTREE_H
#define _BSTREE_H
typedef struct BSNode
{
int keyNum;
int* keys;
void** values;
struct BSNode* parent;
struct BSNode** children;
} BSNode;
typedef struct BSTree
{
int mOrder;
BSNode* root;
} B... |
/*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may ... |
// This file is part of Blend2D project <https://blend2d.com>
//
// See blend2d.h or LICENSE.md for license and copyright information
// SPDX-License-Identifier: Zlib
#ifndef BLEND2D_RASTER_RENDERCOMMANDPROCSYNC_P_H_INCLUDED
#define BLEND2D_RASTER_RENDERCOMMANDPROCSYNC_P_H_INCLUDED
#include "../context_p.h"
#include ... |
/* Example for transferring data from user space into the kernel
*/
#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h> /* Needed for KERN_ALERT */
#include <linux/proc_fs.h>
#include <asm/uaccess.h>
#include <linux/list.h>
MODULE_AUTHOR ("Eike Ritter <E.Ritter@cs.bham.ac.uk>");
MODU... |
/*
* Copyright 2019 Google
*
* 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 in w... |
// Copyright (c) 2011-2017 The Cryptonote developers
// Copyright (c) 2014-2017 XDN developers
// Copyright (c) 2016-2017 BXC developers
// Copyright (c) 2017 UltraNote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.ph... |
#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
#import "EXPermissions.h"
#import "EXReactNativeUserNotificationCenterProxy.h"
#import "EXRemoteNotificationPermissionRequest... |
/* -----------------------------------------------------------------------------
* $Id: CTypes.h,v 1.7 2003/07/24 12:05:42 panne Exp $
*
* Dirty CPP hackery for CTypes/CTypesISO
*
* (c) The FFI task force, 2000
* -------------------------------------------------------------------------- */
#include "MachDeps.h"
... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 BitShekel Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#ifndef H_BITSHEKEL_SCRIPT
#def... |
// Copyright (c) 2011 House of Life Property Ltd. All rights reserved.
// Copyright (c) 2011 Crystalnix <vgachkaylo@crystalnix.com>
// 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_FACEBOOK_CHAT_FRIENDS_SIDEBAR_VIEW_H_
#define CHROM... |
/*-
* SPDX-License-Identifier: ISC
*
* Copyright (c) 2008 Sam Leffler, Errno Consulting
* Copyright (c) 2008 Atheros Communications, Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and t... |
#pragma once
namespace Gfx {
struct GraphicState {
};
template<typename DrawOpApi>
struct DrawOperationInterface {
GraphicState<DrawOpApi::graphics_state_api_type> gfx_state;
GfxGeometryBuffers<DrawOpApi::geom_api_type> geom;
};
template<typename VertexBufferApi, typename IndexBufferApi>
struct CachedGeomet... |
// Copyright 2009 Google 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 in... |
//
// Sample Code:
//
#include <stdio.h>
#include <stdlib.h>
void pre_Initializing_Input_Tensors();
void post_Correctness();
int main(int argc, char** argv)
{
// for sd2
double *host_t3, *host_t3_chk;
double *host_t2_1, *host_t2_2, *host_t2_3, *host_t2_4, *host_t2_5, *host_t2_6, *host_t2_7, *host_t2_8, *host_t2_9;... |
/* crypto/ecdh/ecdhtest.c */
/* ====================================================================
* Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
*
* The Elliptic Curve Public-Key Crypto Library (ECC Code) included
* herein is developed by SUN MICROSYSTEMS, INC., and is contributed
* to the OpenSSL... |
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <draw.h>
#include <event.h>
#include "imagefile.h"
int cflag = 0;
int dflag = 0;
int eflag = 0;
int jflag = 0;
int fflag = 0;
int Fflag = 0;
int nineflag = 0;
int threeflag = 0;
int colorspace = CYCbCr; /* default for 8-bit displays: combine color rot... |
#include<stdio.h>
#include<string.h>
int main()
{
//"a" means append
FILE *file = fopen("phonebook.csv", "a");
if (file == NULL)
{
return 1; //error handling
}
char name[1024];
printf("name: ");
scanf("%s", name);
int age;
printf("age: ");
scanf("%i", &age);
... |
/**
* Bed file parser
* The MIT License (MIT)
*
* Copyright (c) 2016,2017 Wanding.Zhou@vai.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 restriction, including without... |
/* Microsoft Reference Implementation for TPM 2.0
*
* The copyright in this software is being made available under the 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.
*
* ... |
#pragma once
#include "stdafx.h"
class DepthStencilState
{
public:
DepthStencilState()
{
mDepthStencilState = CD3DX12_DEPTH_STENCIL_DESC(D3D12_DEFAULT);
mDepthStencilState.DepthEnable = FALSE;
mDepthStencilState.StencilEnable = FALSE;
mDepthStencilState.DepthFunc = D3D12_COMPARISON_FUNC_LESS_EQUAL;
}
DepthS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.