text stringlengths 9 948k |
|---|
/*
* FreeRTOS Kernel V10.3.1
* 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, includ... |
#pragma once
class m_IDirectSound8 : public IDirectSound8, public AddressLookupTableDsoundObject
{
private:
LPDIRECTSOUND8 ProxyInterface;
public:
m_IDirectSound8(LPDIRECTSOUND8 pSound8) : ProxyInterface(pSound8)
{
LOG_LIMIT(3, "Creating interface " << __FUNCTION__ << "(" << this << ")");
ProxyAddressLookupTa... |
namespace rw {
#ifdef RW_PS2
struct EngineOpenParams
{
};
#endif
namespace ps2 {
void registerPlatformPlugins(void);
extern Device renderdevice;
struct Im2DVertex
{
float32 x, y, z, w;
uint32 r, g, b, a;
float32 u, v, q, PAD;
void setScreenX(float32 x) { this->x = x; }
void setScreenY(float32 y) { this->y =... |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2008 Erwin Coumans http://bulletphysics.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 grant... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2018 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
/*
* Copyright (c) 2016 Boulanger Guillaume, Chathura Namalgamuwa
* The file is distributed under the MIT license
* The license is available in the LICENSE file or at https://github.com/boulangg/phoenix/blob/master/LICENSE
*/
#include <stdio.h>
#include "io.h"
int vsscanf(const char* s, const char* format, va_lis... |
/*************************************************************************/
/* pluginscript_language.h */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "effects.h"
#ifdef CONFIG_RGB_EFFECTS
static const char *TAG = "COLOREFFECT";
#define RGB_EFFECTS_TASK_PRIORITY 10 // 6 слишком мало
#define RGB_EFFECTS_TASK_STACK_SIZE 512
// current effect
static effects_t* effects = NULL;
void effects_set_effect_by_name(const char *name );
void effects_set_effect( ... |
//==- llvm/CodeGen/MachineDominators.h - Machine Dom Calculation -*- C++ -*-==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENS... |
/*
* Copyright 1997, Regents of the University of Minnesota
*
* metis.h
*
* This file includes all necessary header files
*
* Started 8/27/94
* George
*
* $Id: metis.h,v 1.1 1998/11/27 17:59:21 karypis Exp $
*/
#include <stdio.h>
#ifdef __STDC__
#include <stdlib.h>
#else
#include <malloc.h>
#endif
#ifndef ... |
/*
* The Python Imaging Library
* $Id$
*
* declarations for the OpenJPEG codec interface.
*
* Copyright (c) 2014 by Coriolis Systems Limited
* Copyright (c) 2014 by Alastair Houghton
*/
#include <openjpeg.h>
/* 1MB for now */
#define BUFFER_SIZE OPJ_J2K_STREAM_CHUNK_SIZE
/* ----------------------------------... |
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#ifdef _WIN32
#include <direct.h>
#endif
#include "utils.h"
u32 align(u32 offset, u32 alignment)
{
u32 mask = ~(alignment-1);
return (offset + (alignment-1)) & mask;
}
u64 align64(u64 offset, u32 alignment)
{
u64 mask = ~(u64)(alignment-1);
return (... |
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2008 The University of Tennessee and The University
* of Tennessee Resea... |
#pragma once
#include "treedefinitions.h"
#include "foe.h"
#include "sprite.h"
#include <SFML/Graphics/RenderWindow.hpp>
// Box + ID
typedef std::pair<Box, int> BoxID;
// Region Tree
typedef bgi::rtree<BoxID, bgi::quadratic<16>> RTree;
class FoeWrapper final
{
RTree* tree;
std::vector<Foe*> foes;
std::vector<std... |
#ifndef SENDCOINSDIALOG_H
#define SENDCOINSDIALOG_H
#include <QDialog>
#include <QString>
namespace Ui {
class SendCoinsDialog;
}
class WalletModel;
class SendCoinsEntry;
class SendCoinsRecipient;
QT_BEGIN_NAMESPACE
class QUrl;
QT_END_NAMESPACE
/** Dialog for sending bitcoins */
class SendCoinsDialog : public Q... |
/*
* Copyright (c) 2018-2020 The Forge Interactive Inc.
*
* This file is part of The-Forge
* (see https://github.com/ConfettiFX/The-Forge).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional in... |
/* Copyright (c) 2021 PaddlePaddle Authors. 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
Unless required by applicable law or a... |
/*
*<KHeader>
*+=========================================================================
*I Project Name: EApiDK Embedded Application Development Kit
*+=========================================================================
*I $HeadURL$
*+======================================================================... |
// Copyright 1997-2008 Omni Development, Inc. All rights reserved.
//
// This software may only be used and reproduced according to the
// terms in the file OmniSourceLicense.html, which should be
// distributed with this project and can also be found at
// <http://www.omnigroup.com/developer/sourcecode/sourcelicense/... |
/* Compiler implementation of the D programming language
* Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* written by Walter Bright
* https://www.digitalmars.com
* Distributed under the Boost Software License, Version 1.0.
* https://www.boost.org/LICENSE_1_0.txt
* https://github.com/dl... |
/*
* Copyright 2010-2017 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" fil... |
/*
* Original Windows comment:
* "This code was created by Jeff Molofee 2000
* A HUGE thanks to Fredric Echols for cleaning up
* and optimizing the base code, making it more flexible!
* If you've found this code useful, please let me know.
* Visit my site at nehe.gamedev.net"
*
* Cocoa port by Bryan Blackburn ... |
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:46:45 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/PrivateFrameworks/IMCore.framework/IMCore
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limne... |
/*
* Copyright (c) 2009, Natacha Porté
* Copyright (c) 2011, Vicent Marti
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PRO... |
#if !defined(_RADEON_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
#define _RADEON_TRACE_H_
#include <linux/stringify.h>
#include <linux/types.h>
#include <linux/tracepoint.h>
#include <drm/drmP.h>
#undef TRACE_SYSTEM
#define TRACE_SYSTEM radeon
#define TRACE_SYSTEM_STRING __stringify(TRACE_SYSTEM)
#define TRACE_INCL... |
/*
** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
** Copyright (C) 2003-2005 M. Bakker, Nero AG, http://www.nero.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 Foundati... |
/* 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 __USB_H
#define __USB_H
void usb_init();
#define VERSION "3.0"
#endif |
// Copyright 2014 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_WM_COMMON_SWITCHABLE_WINDOWS_H_
#define ASH_WM_COMMON_SWITCHABLE_WINDOWS_H_
#include <stddef.h>
#include "ash/wm/common/ash_wm_common_export... |
#pragma once
// clang-format off
/*
6_pack_2130_SW_XY_Z_Stall_MOSFETS.h
Part of Grbl_ESP32
Pin assignments for the ESP32 SPI 6-axis board
B. Dring for Mathew G.
Grbl_ESP32 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publishe... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
double *spawn_random_vector(int size)
{
double *vector = (double *)malloc((size) * sizeof(double));
for (int i = 0; i <= size; i++)
{
vector[i] = rand() % size;
}
return vector;
}
double **spawn_random_matrix(int size)
{
double *... |
/**
* Copyright (c) 2017 Leonardo A. Bautista-Gomez
* All rights reserved
*
* FTI - A multi-level checkpointing library for C/C++/Fortran applications
*
* Revision 1.0 : Fault Tolerance Interface (FTI)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... |
#include <stddef.h>
#include <string.h>
#include "address.h"
#include "hash.h"
#include "params.h"
#include "thash.h"
#include "utils.h"
/**
* Converts the value of 'in' to 'outlen' bytes in big-endian byte order.
*/
void PQCLEAN_SPHINCSSHA256128FROBUST_CLEAN_ull_to_bytes(
unsigned char *out, size_t outlen, uns... |
#ifndef CALCULATEOPTIMALTIME_H
#define CALCULATEOPTIMALTIME_H
#include "dmiParser.h"
char* find_optimal_time(int activeHours, int startSearch, int endSearch);
char* find_lowest_co2(int activeHours, windValue *values, int);
void find_upper_and_lower_bounds(windValue *values, int dataSize, double *lowestCO2, double *... |
/* this demo shows the usage of string arg in method */
#include "BaseObj.h"
#include <stdio.h>
void sendMethod(PikaObj *self, Args *args)
{
char *data = args_getStr(args, "data");
/* send to com1 */
printf("[com1]: %s\r\n", data);
}
PikaObj *New_USART(Args *args)
{
/* Derive from the tiny object cl... |
/* 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.
*
* ... |
// We assume we're single threaded
extern struct pthread pthred_self_thread;
static inline struct pthread *__pthread_self()
{
return &pthred_self_thread;
}
#define TP_ADJ(p) (p)
#define MC_PC gregs[REG_RIP] |
// Copyright 2019 Joe Drago. All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause
#include "avif/internal.h"
#include <string.h>
struct YUVBlock
{
float y;
float u;
float v;
};
avifBool avifPrepareReformatState(avifImage * image, avifRGBImage * rgb, avifReformatState * state)
{
if ((image->... |
/*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:04:25 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/Frameworks/EventKit.framework/EventKit
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.... |
#ifdef CORE_QUEST_H
#error "quest.h included more than once"
#endif
#define CORE_QUEST_H
typedef struct Quest {
size_t id; // This id is the index position.
int quest_id;
int map_id;
QuestStatus status;
Vec2f marker_coord;
uint16_t objective[128];
} Quest;
typedef... |
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "F1AP-IEs"
* found in "/home/labuser/Desktop/openairinterface5g_f1ap/openair2/F1AP/MESSAGES/ASN1/R15.2.1/F1AP-IEs.asn"
* `asn1c -gen-PER -fcompound-names -no-gen-example -findirect-choice -fno-include-deps -D /home/labuser/Desktop/opena... |
/*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:20:57 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/PrivateFrameworks/PhotosGra... |
/*** Autogenerated by WIDL from xmllite.idl - Do not edit ***/
#include <rpc.h>
#include <rpcndr.h>
#if !defined(COM_NO_WINDOWS_H) && !defined(__WINESRC__)
#include <windows.h>
#include <ole2.h>
#endif
#ifndef __WIDL_XMLLITE_H
#define __WIDL_XMLLITE_H
/* Forward declarations */
#ifndef __IXmlReader_FWD_DEFINED__
#... |
#ifndef AC_GECSPL3D_H
#define AC_GECSPL3D_H
//
// (C) Copyright 1993-1999 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both t... |
/*
* 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 copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* fclose.c - flush a stream and close the file
*/
/* $Header: fclose.c,v 1.4 90/01/22 11:10:54 eck Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include "loc_incl.h"
#include <unistd.h>
int
fclose(FILE *fp)
{
register int i, retval = 0;
for (i=0; i<FOPEN_MAX; i++)
if (fp == __iotab[i]) {
__iotab[i] = ... |
//
// FSQFetchedResultsTableViewController.h
// FivesquareKit
//
// Created by John Clayton on 2/21/2010.
// Copyright 2010 Fivesquare Software, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "FSQFetchedResultsViewController.h"
@interface FSQFetchedResultsTableViewCont... |
/* This file was generated by upbc (the upb compiler) from the input
* file:
*
* envoy/service/load_stats/v3/lrs.proto
*
* Do not edit -- your changes will be discarded when the file is
* regenerated. */
#ifndef ENVOY_SERVICE_LOAD_STATS_V3_LRS_PROTO_UPB_H_
#define ENVOY_SERVICE_LOAD_STATS_V3_LRS_PROTO_UPB_H_... |
/**
* @file icmp/classifier.c
* @author simpart
*/
#include "pia/com.h"
#include "pia/icmp.h"
uint8_t pia_icmp_isecho (pia_icmphdr_t *msg) {
if ( (PIA_TRUE == pia_icmp_isrequest(msg)) ||
(PIA_TRUE == pia_icmp_isreply(msg)) ) {
return PIA_TRUE;
} else {
return PIA_FALSE;
}
}
uin... |
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
void divert (int sig) {
printf("signal received=%d\n",sig);
}
int main() {
sigset_t mask, pending;
if (signal(SIGINT, divert)== SIG_ERR) {
perror("signal(SIGINT, divert) failed");
exit(1);
... |
/***********************************************************************************************************************************
Check Common Handler
***********************************************************************************************************************************/
#include "build.auto.h"
#include... |
/**
*****************************************************************************************
* Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved.
*****************************************************************************************
* @file generic_transition_time.c
* @brief Sourc... |
//
// GFMessageCell.h
// LXD
//
// Created by gaoyafeng on 2018/7/13.
// Copyright © 2018年 north_feng. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "GFMessageModel.h"
@interface GFMessageCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *labelOne;
@property (weak, nonatomic) IBOut... |
/*
* Copyright 2013 Real Logic 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 or agreed to ... |
#ifndef DATE_TIME_UTILS_H
#define DATE_TIME_UTILS_H
long current_time();
#endif |
/* $NetBSD: ahareg.h,v 1.6 1997/09/09 18:56:15 mycroft Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
* NASA Ames Research Center.... |
#ifndef termemu_h
#define termemu_h
/*
Things to do:
- Symbols are stored as UChar32, one of those per character. The library
also assumes this will hold any unicode character. This could be Bad.
(maybe move to ICU and store UChar32 instead? like rest of Trankesbel)
The way it's coded now was due to a misunderst... |
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-m-rel-xr-w32-bld/build/dom/interfaces/svg/nsIDOMSVGDefsElement.idl
*/
#ifndef __gen_nsIDOMSVGDefsElement_h__
#define __gen_nsIDOMSVGDefsElement_h__
#ifndef __gen_nsIDOMSVGElement_h__
#include "nsIDOMSVGElement.h"
#endif
/* For IDL files that ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_02.c
Label Definition File: CWE253_Incorrect_Check_of_Function_Return_Value.label.xml
Template File: point-flaw-02.tmpl.c
*/
/*
* @description
* CWE: 253 Incorrect Check of Return Value
* Sinks: remove
* Go... |
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
int main(void)
{
char *fname = "q2.txt";
FILE *fp;
char c;
int nc = 0, nw = 1, nl = 1;
if ((fp = fopen(fname, "r")) == NULL) {
fprintf(stderr, "can't open %s\n", fname);
exit(1);
}
while ((c = getc(fp)) != EOF) {
if (isalpha(... |
//
// 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"
@interface DVTGroupedAssetHighlightView : NSView
{
}
- (void)drawRect:(struct CGRect)arg1;
@end |
/* Created RJudd December 8, 1997 */
/* SPAWARSYSCEN D881 */
/**********************************************************************
// For TASP VSIPL Documentation and Code neither the United States /
// Government, the United States Navy, nor any of their employees, /
// makes any warranty, express or implied, ... |
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "EUTRA-RRC-Definitions"
* found in "/home/lixh/enb_folder/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1"
* `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -D /home/lixh/enb_folder/cmake_targets/lte... |
/**
***********************************************************************************************************************
* Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the... |
// SPDX-License-Identifier: BSD-3-Clause-Clear
/*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
*/
#include <linux/ieee80211.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>
#include <crypto/hash.h>
#include "core.h"
#include "debug.h"
#include "hal_desc.h"
#include "hw.h"
#include "dp_r... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* sort.c :+: :+: :+: ... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "attributemanager.h"
#include "initialized_attributes_result.h"
#include <vespa/searchcore/proton/documentmetastore/documentmetastore.h>
#include <vespa/searchcore/proton/initia... |
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:02:58 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Library/PrivateFrameworks/CoreUI.fra... |
#include "byebug.h"
/**
* A simple linked list containing locked threads, FIFO style.
*/
typedef struct locked_thread_t
{
VALUE thread;
struct locked_thread_t *next;
} locked_thread_t;
static locked_thread_t *locked_head = NULL;
static locked_thread_t *locked_tail = NULL;
static int
is_in_locked(VALUE thread)... |
/*
* Copyright (c) 2020 Doc.ai and/or its affiliates.
* 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 applicab... |
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* Device Redirection Virtual Channel
*
* Copyright 2010-2011 Vic Lee
* Copyright 2010-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance w... |
// Copyright (c) 2017-2018, NVIDIA CORPORATION. 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
//
// Unless requ... |
#include "emf_mie_ms.h"
void write_dat_ms(char *fn,MSPD *msp)
{
FILE *fp;
int i,np,nt,mn;
if((fp=fopen(fn,"wb"))==NULL){ printf("write_dat_ms(), Failed to open the file %s. Exit...\n",fn); exit(1); }
if(fwrite(msp,sizeof(MSPD),1,fp)!=1){
printf("emf_mie_ms_dat.c, write_dat_ms(), failed to writ... |
#pragma once
#include <Hazel.h>
struct ParticleProps
{
glm::vec2 Position;
glm::vec2 Velocity, VelocityVariation;
glm::vec4 ColorBegin, ColorEnd;
float SizeBegin, SizeEnd, SizeVariation;
float LifeTime = 1.0f;
};
class ParticleSystem
{
public:
ParticleSystem(uint32_t maxParticles = 200000);
void OnUpdate(Haz... |
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file. (Its modified)
// Used by Resource.rc
//
#define IDB_BUTTERFLY1 115
#define IDB_BUTTERFLY2 116
#define IDB_BUTTERFLY3 117
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#if... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE427_Uncontrolled_Search_Path_Element__wchar_t_listen_socket_44.c
Label Definition File: CWE427_Uncontrolled_Search_Path_Element.label.xml
Template File: sources-sink-44.tmpl.c
*/
/*
* @description
* CWE: 427 Uncontrolled Search Path Element
* BadSource: listen_socket ... |
#ifndef MTWIST_H
#define MTWIST_H
/*
* $Id: mtwist.h,v 1.15 2003/09/11 23:56:20 geoff Exp geoff $
*
* Header file for C/C++ use of the Mersenne-Twist pseudo-RNG. See
* http://www.math.keio.ac.jp/~matumoto/emt.html for full information.
*
* Author of this header file: Geoffrey H. Kuenning, March 18, 2001.
*
* ... |
#pragma once
#include <any>
template<class T>
inline T SafeCast(const std::any& aInput)
{
try
{
T casted = std::any_cast<T>(aInput);
return casted;
}
catch (const std::bad_any_cast& /*e*/)
{
std::cout << "Safe cast failed, C++ type " << typeid(T).name() << " Squirrel type: " << aInput.type().name() << std::... |
/****************************************************************************
Copyright (c) 2013-2015 Scutgame.com
http://www.scutgame.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 ... |
/*
This file is for functions related to 128-bit vectors
including functions for bitsliced field operations
*/
#include "vec128.h"
#include "params.h"
vec128 PQCLEAN_MCELIECE6688128F_SSE_vec128_set1_16b(uint16_t a) {
return _mm_set1_epi16(a);
}
int PQCLEAN_MCELIECE6688128F_SSE_vec128_testz(vec128 a) {
... |
#pragma once
#include <vector>
#include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "utility.hpp"
#include "gl_shader.h"
struct Quad
{
unsigned int VAO;
unsigned int VBO;
static std::vector<float... |
#include "shell.h"
/* Funcion auxiliar para obtener comando*/
Command match_command(const char* comando) {
if (!strcmp(comando, "cargar_dataset"))
return CARGAR_DATASET;
if (!strcmp(comando, "imprimir_dataset"))
return IMPRIMIR_DATASET;
if (!strcmp(comando, "agregar_registro"))
retu... |
/*-
* Copyright (c) 1992 Keith Muller.
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Keith Muller of the University of California, San Diego.
*
* Redistribution and use in source and binary form... |
/*
Copyright 2020 Tomoaki Itoh
This software is released under the MIT License, see LICENSE.txt.
//*/
#include <stdint.h>
#define LCW_EG_RELEASE_PARAM_TABLE_SIZE (64)
extern const int32_t gLcwEgReleaseParamTable[LCW_EG_RELEASE_PARAM_TABLE_SIZE]; |
/* hgProtIdToGenePred - Add proteinID column to genePrediction. */
/* Copyright (C) 2013 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "jksql.h"
void usage(... |
/*
* $Id: $
*
* Interfaces for quotation and data feed service
*
* Copyright (c) 2014-2018 Zerone.IO. All rights reserved.
*
* $Log: $
*
*/
#pragma once
/** @file IQuoteApi.h Interfaces for quotation and data feed service.
*/
// use __declspec(novtable) in MSVC
#ifndef _INTERFACE_
# define _INTERFACE_ ... |
// Copyright 2021, Collabora, Ltd.
// Copyright 2021, Jan Schmidt
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief The "One Euro Filter" for filtering interaction data.
* @author Moses Turner <moses@collabora.com>
* @author Jan Schmidt <jan@centricular.com>
* @author Ryan Pavlik <ryan.pavlik@collabora.com... |
#ifndef RecoEgamma_EgammaTools_HGCalShowerShapeHelper_h
#define RecoEgamma_EgammaTools_HGCalShowerShapeHelper_h
// system include files
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
// external include files
#include... |
/*
* SPDX-FileCopyrightText: 2020 Efabless 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 appl... |
// Copyright (c) 2015 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 HODLCASH_REVERSELOCK_H
#define HODLCASH_REVERSELOCK_H
/**
* An RAII-style reverse lock. Unlocks on construction and lock... |
#include <stdio.h>
int main()
{
int a[20];
int i;
for (i = -1; ++i < 20; a[i] = i);
for (i = -1; ++i < 20; printf("a[%d]=%d\n", i, a[i]));
return 0;
} |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... |
#ifndef MODITE_GENEMYARROWPROCESS_H
#define MODITE_GENEMYARROWPROCESS_H
#include "GEnemyProjectileProcess.h"
struct SpriteData {
TFloat x;
TFloat y;
TInt16 cx;
TInt16 cy;
TUint16 imageNumber;
TUint32 flags;
struct {
TFloat x;
TFloat y;
} parry;
};
class GEnemyArrowProcess : public GEnemyProje... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_TXDB_LEVELDB_H
#define BITCOIN_TXDB_LEVELDB_H
#include "main.h"
#i... |
/*
* Copyright (C) 2005, 2006
* Avishay Traeger (avishay@gmail.com)
* Copyright (C) 2008, 2009
* Boaz Harrosh <bharrosh@panasas.com>
*
* This file is part of exofs.
*
* exofs is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fr... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:45:01 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/SpringBoard.framework/SpringBoard
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by... |
/*
* Device driver for the via-pmu on Apple Powermacs.
*
* The VIA (versatile interface adapter) interfaces to the PMU,
* a 6805 microprocessor core whose primary function is to control
* battery charging and system power on the PowerBook 3400 and 2400.
* The PMU also controls the ADB (Apple Desktop Bus) which co... |
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... |
//
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//
#include <string>
void testMagic (const std::string& tempDir); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.