text stringlengths 9 948k |
|---|
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
/****************************************************************************
* configs/stm32f746g-disco/kernel/stm32_userspace.c
*
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modific... |
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-PDU-Contents"
* found in "/home/user/openairinterface5g/openair2/X2AP/MESSAGES/ASN1/R14/x2ap-14.6.0.asn1"
* `asn1c -pdu=all -fcompound-names -fno-include-deps -gen-PER -no-gen-OER -no-gen-example -D /home/user/openairinterface5g/c... |
/**
* Copyright (c) 2015 - present LibDriver All rights reserved
*
* The MIT License (MIT)
*
* 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 lim... |
#include "../drivers/screen.h"
#include "syscommand.h"
void system_help() {
kprint("You can use following commands:\n");
kprint("HELP______________Display system help\n");
// kprint("CURRTIME__________Display current time\n");
} |
/*
* Copyright (c) 2015, SICS Swedish ICT.
* 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 c... |
/*
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is ... |
/**************************************************************************
*
* Copyright 2012 Christian König.
* 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... |
#ifndef _GAME_FUEFUKI_STATE_H
#define _GAME_FUEFUKI_STATE_H
/*
__vt__Q34Game7Fuefuki5State:
.4byte 0
.4byte 0
.4byte init__Q24Game13EnemyFSMStateFPQ24Game9EnemyBasePQ24Game8StateArg
.4byte exec__Q24Game13EnemyFSMStateFPQ24Game9EnemyBase
.4byte cleanup__Q24Game13EnemyFSMStateFPQ24Game9EnemyBase
... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2020 The Bitcoin Core developers
// Copyright (c) 2022 The MAGA Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef MAGA_BANMAN_H
#define MAGA_... |
/* main.c - Application main entry point */
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <logging/log.h>
LOG_MODULE_REGISTER(net_test, CONFIG_NET_PKT_LOG_LEVEL);
#include <zephyr/types.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <misc/pr... |
/* Copyright (c) 2018 Anakin Authors, Inc. 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 appli... |
/******************************************************************************
* Copyright (C) 2014-2020 Zhifeng Gong <gozfree@163.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... |
/******************************************************************************
* Copyright (C) 2006-2021 by the GIMLi development team *
* Carsten Rücker carsten@resistivity.net *
* *
... |
/* Copyright 2015 The TensorFlow 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... |
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
this file is part of rcssserver3D
Fri May 9 2003
Copyright (C) 2003 Koblenz University
$Id$
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 F... |
//
// ProfileCell.h
// wallet
//
// Created by zhouzhiwei on 2018/9/3.
// Copyright © 2018年 eos. All rights reserved.
//
#import "BaseTableViewCell.h"
@interface ProfileCell : BaseTableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *iconImgV;
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@e... |
#pragma once
#include <random>
class V2;
class Utility
{
public:
static float Length(const V2 vec);
static float DistanceBetween(const V2 left, const V2 right);
}; |
/*
* measure.c
*
* Copyright (C) 2015, Achim Lösch <achim.loesch@upb.de>, Christoph Knorr <cknorr@mail.uni-paderborn.de>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
* encoding: UTF-8
* tab size: 4
*
* ... |
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__
/* Automatically generated file; DO NOT EDIT. */
/* RT-Thread Configuration */
#define SOC_TMS320F28X
/* RT-Thread Kernel */
#define RT_NAME_MAX 8
#define RT_ALIGN_SIZE 4
#define RT_THREAD_PRIORITY_8
#define RT_THREAD_PRIORITY_MAX 8
#define RT_TICK_PER_SECOND 100
#define ... |
/* 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... |
/*
* Copyright 2010-2016 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" file... |
#pragma once
#include <vector>
#include <glm/glm.hpp>
#include <asdfm/ui/polygon.h>
#include "data/hex_grid.h"
#include "data/hex_util.h"
namespace asdf
{
namespace hexmap
{
namespace data
{
struct terrain_brush_t
{
hex_grid_chunk_t brush_mask;
terrain_brush_t();
terrain_brush_t(glm... |
/*
* 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 ... |
#ifndef AI_PLAYER_H_INCLUDED
#define AI_PLAYER_H_INCLUDED
#include "chessplayer.h"
// Pieces' values
#define WIN_VALUE 50000 // win the game
#define PAWN_VALUE 30 // 8x
#define ROOK_VALUE 90 // 2x
#define KNIGHT_VALUE 85 // 2x
#define BISHOP_VALUE 84 // 2x
#define QUEEN_VALUE 300 // 1x
#define KING_VALUE ... |
// CkStream.h: interface for the CkStream class.
//
//////////////////////////////////////////////////////////////////////
// This header is generated for Chilkat 9.5.0.80
#ifndef _CkStream_H
#define _CkStream_H
#include "chilkatDefs.h"
#include "CkString.h"
#include "CkClassWithCallbacks.h"
class CkTask;
class C... |
/****************************************************************************
* arch/arm/src/stm32h7/stm32_serial.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 copyrig... |
// WiFi credentials
#define WIFI_SSID "FreeWifi"
#define WIFI_PASS "hardtoguess"
// Husarnet credentials
#define HUSARNET_JOINCODE "fc94:b01d:1803:8dd8:b293:5c7d:7639:932a/xhfqwPxxxetyCExsSPRPn9" // find at app.husarnet.com |
// Generated with `xb buildshaders`.
#if 0
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 25204
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %5663 "ma... |
/* Date: 12/07/2017
* Class: CS4900
* Function: Quadratic Solver Input (input.c)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int read_line(char* input, int length){
#ifdef DEBUG
fprintf(stderr, "DEBUG: Entering read_line\n");
fprintf(stderr, "DEBUG: input = %s | length = %d\n", input, le... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:52:22 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion
* classdump-dyld is licensed under GPLv3, Copyri... |
#ifndef SYSCOIN_SYSCOIN_CONFIG_H
#define SYSCOIN_SYSCOIN_CONFIG_H
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Version Build */
#define CLIENT_VERSION_BUILD 0
/* Version is release */
#define CLIENT_VERSION_IS_RELEASE false
/* Major version */
#define CLIENT_VE... |
//
// YunexViewController.h
// CCTrendChartsDemo
//
// Created by Cocos on 2019/12/16.
// Copyright © 2019 Cocos. All rights reserved.
//
#import "AssembledViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface YunexViewController : AssembledViewController
@end
NS_ASSUME_NONNULL_END |
#ifndef OPTIONSMODEL_H
#define OPTIONSMODEL_H
#include <QAbstractListModel>
/** Interface from Qt to configuration data structure for Bitcoin client.
To Qt, the options are presented as a list with the different options
laid out vertically.
This can be changed to a tree once the settings become sufficiently
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#pragma once
#include "ds/buffer.h"
#include "ds/json.h"
#define FMT_HEADER_ONLY
#include <fmt/format.h>
#include <msgpack/msgpack.hpp>
#include <ostream>
namespace crypto
{
class Sha256Hash
{
public:
stat... |
/* Install given floating-point environment and raise exceptions.
Copyright (C) 1997-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
The GNU C Library is free software; you can redistribute it and/or
modify it under th... |
/* stb_image_write - v1.13 - public domain - http://nothings.org/stb/stb_image_write.h
writes out PNG/BMP/TGA/JPEG/HDR images to C stdio - Sean Barrett 2010-2015
no warranty implied; use at your own risk
Before #including,
#define STB_IMAGE_WRITE_IMPLEMENTATION
in the file that you want to have t... |
/***************************************************************************//**
* @file
* @brief Clock management unit (CMU) API
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
***************************... |
#ifndef PrjFSCommon_h
#define PrjFSCommon_h
#include <stdint.h>
#include <stdbool.h>
#define PrjFSMaxPath 1024
#define PrjFSKextBundleId "io.gvfs.PrjFSKext"
#define PrjFSKernelControlName "io.gvfs.PrjFSKext.ctl"
#define PrjFSServiceClass "io_gvfs_PrjFS"
// TODO: move this to an autogenerated... |
#pragma once
#include "MeshSync.h"
#include "Utils/msIDGenerator.h"
#include "Utils/msTextureManager.h"
#include "Utils/msMaterialManager.h"
#include "Utils/msEntityManager.h"
#include "Utils/msAsyncSceneExporter.h"
#include "Utils/msMaterialExt.h" |
/*
* arcus-memcached - Arcus memory cache server
* Copyright 2010-2014 NAVER Corp.
* Copyright 2015 JaM2in 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.ap... |
/*******************************************************************/
/* Copyright(c) 1992 Microsoft Corporation */
/*******************************************************************/
//***
//
// Filename: ddmif.h
//
// Description: This file contains the definitions for
// the data structures u... |
/** @file
Copyright (C) 2019, vit9696. All rights reserved.
All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensourc... |
//
// UberLoginWebViewController.h
// UberOAuth2
//
// Created by coderyi on 16/1/19.
// Copyright © 2016年 coderyi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UberLoginWebViewController : UIViewController
@property(nonatomic,strong) NSString *urlString;//LoginWebViewController 's url
@property(non... |
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (... |
/**
*********************************************************************************
*
* @file ald_uart.c
* @brief UART module driver.
* This file provides firmware functions to manage the following
* functionalities of the Universal Asynchronous Receiver Transmitter (UART) periphera... |
#ifndef CPPUNIT_TESTASSERT_H
#define CPPUNIT_TESTASSERT_H
#include <cppunit/Portability.h>
#include <cppunit/Exception.h>
#include <cppunit/Asserter.h>
#include <cppunit/portability/Stream.h>
#include <stdio.h>
#include <float.h> // For struct assertion_traits<double>
CPPUNIT_NS_BEGIN
/*! \brief Traits used by CPP... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageReader2.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is... |
/* =====================================================================
* Project: PULP DSP Library
* Title: plp_mat_mult_cmplx_stride_i8s_xpulpv2.c
* Description: 8-bit integer complex strided matrix matrix multiplication for XPULPV2
*
* $Date: 18. July 2020
* $Revision: V0
*
* Target P... |
#ifndef BABYLON_SHADERS_SHARPEN_FRAGMENT_FX_H
#define BABYLON_SHADERS_SHARPEN_FRAGMENT_FX_H
namespace BABYLON {
extern const char* sharpenPixelShader;
const char* sharpenPixelShader
= R"ShaderCode(
// Samplers
varying vec2 vUV;
uniform sampler2D textureSampler;
uniform vec2 screenSize;
uniform vec2 sharpnessAmou... |
/* Copyright (c) 2005 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions a... |
/**************************************************************************
*
* Copyright 2006-2008 Tungsten Graphics, Inc., Cedar Park, TX. USA.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "S... |
#pragma once
#include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h>
__BEGIN_LIBRARIES_DISABLE_WARNINGS
#include <vector>
#include <string>
__END_LIBRARIES_DISABLE_WARNINGS
namespace
{
unsigned DEFAULT_NUM_ITERATIONS_BASIC = 10'000;
unsigned DEFAULT_NUM_ITERATIONS_EVOLVED = 10'000'000;
}
namespace AdventOfCo... |
#include <math.h>
#include "shape.h"
void trace_shape (shape_t *shape, cairo_t *cairo) {
/* polymorphic dispatch */
shape->trace (shape, cairo);
}
bool inside_shape (shape_t *shape, vec2_t point) {
/* polymorphic dispatch */
return shape->inside (shape, point);
}
void destroy_shape (shape_t *shape... |
#include <stdio.h>
int mul(int a, int n);
int fac(int n);
int fac2(int n);
int main() {
printf("mul(%d, %d) = %d\n", 3, 5, mul(3, 5));
printf("fac(%d) = %d\n", 10, fac(10));
printf("fac2(%d) = %d\n", 10, fac(10));
return 0;
} |
/*
* Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#ifndef UNICODE
#define UNICODE
#endif
#include <Python.h>
#include <windows.h>
#include <stdio.h>
#include "process_handles.h"
#ifndef NT_S... |
#include <stdio.h>
int main() {
int oldStdin = dup(0);
freopen(__FILE__, "r", stdin);
char buf[200];
while (gets(buf) == buf) {
printf("%s\n", buf);
}
fclose(stdin);
dup2(oldStdin, 0);
close(oldStdin);
stdin = fdopen(0, "r");
} |
#ifndef BABYLON_SHADERS_GPU_RENDER_PARTICLES_FRAGMENT_FX_H
#define BABYLON_SHADERS_GPU_RENDER_PARTICLES_FRAGMENT_FX_H
namespace BABYLON {
extern const char* gpuRenderParticlesPixelShader;
const char* gpuRenderParticlesPixelShader
= R"ShaderCode(
#version 300 es
uniform sampler2D diffuseSampler;
in vec2 vUV;
in... |
/*
* Copyright (C) 2009 Apple Inc. All Rights Reserved.
* Copyright (C) 2009 Google 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 ... |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "O2OForYouTemplateController.h"
#import "UIScrollViewDelegate-Protocol.h"
@class NSMutableDictionary, NSString, UIScrollView;... |
#ifndef _KERNEL_SIGNAL_H_
#define _KERNEL_SIGNAL_H_
#include <kernel/sched.h>
int send_signal(proc_t *proc, int signal);
#define SIGCHLD 17
#endif |
// ObjCShell.h
//
#import <Foundation/Foundation.h>
#import <sys/termios.h>
@protocol ObjCShellDelegate <NSObject>
@optional
- (void)logOutputData:(NSData *)data;
- (void)logOutputString:(NSString *)string;
- (void)logErrorData:(NSData *)data;
- (void)logErrorString:(NSString *)string;
@end
@interface ObjCShell ... |
/* Copyright (c) 2017 Matt Dunwoodie
*
* 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... |
//
// DelegateProxyTests.h
// DelegateProxyTests
//
// Created by Sam Davies on 29/06/2013.
// Copyright (c) 2013 sammyd. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
@interface DelegateProxyTests : SenTestCase
@end |
#pragma once
#ifndef ES_CORE_COMPONENTS_GRID_TILE_COMPONENT_H
#define ES_CORE_COMPONENTS_GRID_TILE_COMPONENT_H
#include "NinePatchComponent.h"
#include "ImageComponent.h"
#include "TextComponent.h"
#include "ThemeData.h"
#include "resources/TextureResource.h"
class VideoComponent;
struct GridImageProperties
{
public... |
#include <stdio.h>
int main(int argc, char const *argv[]) {
int ordem_fibonacci, numero_anterior = -1, numero_atual = 1, numero_fibonacci;
printf("Eu te digo o numero da sequencia de fibonacci e tu me diz a ordem dele\n");
scanf("%i", &ordem_fibonacci);
for (int i = 0; i < ordem_fibonacci; i++) {
... |
/**
* @class GraphVis
*
* @brief GraphVis Class
*
* This class uses the graphviz package to create a .png image of the current tree.
* It includes methods used to load the appropriate data to the graphviz package.
*
* @author Vaios Papaspyros ... |
/* menus.h
* Menu definitions
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* 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 Found... |
/*
* sound/oss/v_midi.c
*
* The low level driver for the Sound Blaster DS chips.
*
*
* Copyright (C) by Hannu Savolainen 1993-1996
*
* USS/Lite for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
* Version 2 (June 1991). See the "COPYING" file distributed with this software
* for more info.
*... |
// 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 CC_LAYERS_VIDEO_FRAME_PROVIDER_H_
#define CC_LAYERS_VIDEO_FRAME_PROVIDER_H_
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
... |
/* $Id: irq.h,v 1.32 2000/08/26 02:42:28 anton Exp $
* irq.h: IRQ registers on the Sparc.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
*/
#ifndef _SPARC_IRQ_H
#define _SPARC_IRQ_H
#include <linux/config.h>
#include <linux/linkage.h>
#include <linux/threads.h> /* For NR_CPUS */
#include <as... |
//*****************************************************************************
//
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
//
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are me... |
/*
* Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
/*---------------------------------------------------------------------------
Copyright 2020 Daan Leijen, Microsoft Corporation.
This is free software; you can redistribute it and/or modify it under the
terms of the Apache License, Version 2.0. A copy of the License can be
found in the file "license.txt" at th... |
/*
* 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.
*/
#import <Foundation/Foundation.h>
#import <FBControlCore/FBControlCore.h>
/**
An Option Set for Direct Launching.
*/
typedef NS_... |
// Copyright 2009-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "Geometry.h"
namespace ospray {
struct OSPRAY_SDK_INTERFACE Spheres : public Geometry
{
Spheres();
virtual ~Spheres() override = default;
virtual std::string toString() const override;
virtual void commit... |
// usehotel.c -- program about fare of hotel rooms
// compiled together with List_9_10_hotel.c
#include <stdio.h>
#include "List_9_11_hotel.h"
int main(void)
{
int nights;
double hotel_rate;
int code;
while ((code = menu()) != QUIT)
{
switch (code)
{
case 1: hotel_rate = HOTE... |
#include <Python.h>
static PyObject* say_hello(PyObject* self, PyObject* args) {
const char* name;
if (!PyArg_ParseTuple(args, "s", &name))
return NULL;
printf("Hello %s!\n", name);
Py_RETURN_NONE;
}
/// ///
static PyMethodDef HelloMethods[] =
{
{"say_hello", say_hello, METH_VARARGS, ... |
/*
* Copyright (c) 2015, Nordic Semiconductor
* 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 conditi... |
/****************************************************************************
Copyright (c) 2014 cocos2d-x.org
https://adxeproject.github.io/
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 ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__char_listen_socket_fopen_41.c
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-41.tmpl.c
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: listen_socket Read data using a listen so... |
/*
* Copyright (c) 2014, Ford Motor 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:
*
* Redistributions of source code must retain the above copyright notice, this
* list of condit... |
#ifndef STDIO_REDIRECT_H
#define STDIO_REDIRECT_H
#include <stdio.h>
FILE * fstdin(void);
void push_stdin(void);
void pop_stdin(void);
FILE * fstdout(void);
void push_stdout(void);
void pop_stdout(void);
void push_stdio(void);
void pop_stdio(void);
#endif |
/****************************************************************************
*
* gxvmorx.h
*
* TrueTypeGX/AAT common definition for morx table (specification).
*
* Copyright (C) 2005-2020 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file i... |
/* SPDX-License-Identifier: MIT
*
* 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, ... |
/*
* Copyright (c) 2000-2005 by Hewlett-Packard Company. All rights reserved.
*
* THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
* OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
*
* Permission is hereby granted to use or copy this program
* for any purpose, provided the above notices are re... |
#include <room.h>
#include <ansi.h>
inherit ROOM;
int do_break(string arg);
void create()
{
set("short", "莊府大門");
set("long", @LONG
這裏就是文士莊允城的舊居。自從他被朝廷抓走後,這裏好像就
沒有人住了。一扇大門(men)緊鎖着, 周圍是高高的圍牆(wall)。一
切都很乾淨,並沒有積多少灰塵。
LONG );
set("exits", ([
"south" : "/d/beijing/zhuang2",
]));
set("item_d... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2016-2017 Intel Corporation
*/
#include <rte_ring.h>
#include <rte_hash_crc.h>
#include <rte_event_ring.h>
#include "sw_evdev.h"
#include "iq_chunk.h"
#include "event_ring.h"
#define SW_IQS_MASK (SW_IQS_MAX-1)
/* Retrieve the highest priority IQ or -1 if no p... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CQueryToDXLResult.h
//
// @doc:
// Class representing the result of the Query to DXL translation
//
//--------------------------------------------------------------... |
/* Interpret CPM argument list to produce C style
argc/argv
default dma buffer has it, form:
---------------------------------
|count|characters ... |
---------------------------------
*/
int Xargc;
int Xargv[30];
Xarglist(ap) char *ap; {
char qc;
... |
/**
*
* TcpConnection.h
* An Tao
*
* Public header file in trantor lib.
*
* Copyright 2018, An Tao. All rights reserved.
* Use of this source code is governed by a BSD-style license
* that can be found in the License file.
*
*
*/
#pragma once
#include <trantor/net/EventLoop.h>
#include <trantor/net/... |
/*
* Copyright (C) 2018 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup pkg_lua
* @{
* @file
*
* @brief Convenience functions for running Lua... |
//
// Created by Along on 2017/5/25.
// |
/*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. 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
*
* Unle... |
#include "io.h"
void saveVectorToFile(char * filename, char * vector, long long vectorSize)
{
// init file
FILE* file;
fopen_s(&file, filename, "wb");
if (!file)
{
printf("error: can't create file with name \"%s\" to save result\n", filename);
return;
}
// save vector
fwrite(vector, sizeof(ch... |
////////////////////////////////////////////////////////////////////////////////////////////////
// This GDNative module is to be considered temporary and experimental. It exposes part
// of the VrApi.h directly to gdscript and is for low level access of VrApi features.
// It might get replaced by dedicated functions i... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:39:16 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/Frameworks/ContactsUI.framework/ContactsUI
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Li... |
/*
* Copyright (c) 2010, FRiCKLE Piotr Sikora <info@frickle.com>
* Copyright (c) 2009-2010, Xiaozhe Wang <chaoslawful@gmail.com>
* Copyright (c) 2009-2010, Yichun Zhang <agentzh@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.