text stringlengths 4 6.14k |
|---|
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of the Qt Build Suite.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accord... |
/*
* Hqp_IpRedPardiso.h --
* - manage the Jacobian matrix of Interior Point algorithms
* - eliminate inequality constraints
* - use Pardiso sparse matrix solver
*
* hl, 2006/11/22
*
* derived from Hqp_IpRedSpBKP.h (developed by Ruediger Franke)
*
*/
/*
Copyright (C) 2006 Hartmut Linke
This... |
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the ... |
// -*- C++ -*-
//
// Copyright (C) 2009-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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... |
/* GEGL - The GIMP Drawing Kit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* 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 Foundation; either
* version 3 of the... |
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU L... |
#pragma once
#include <wx/thread.h>
#include <wx/textctrl.h>
#include <wx/gauge.h>
#include <wx/button.h>
class Generator : public wxThread{
public:
// Thread built
Generator(wxString lua_file, wxString ass_file, wxString output_file, wxString command, wxString sound, wxTextCtrl *log, wxGauge *progressbar, wxBut... |
/*--------------------------------------------------------------------
(C) Copyright 2006-2013 Barcelona Supercomputing Center
Centro Nacional de Supercomputacion
This file is part of Mercurium C/C++ source-to-source compiler.
See AUTHORS file in the top level directory for informa... |
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_math.h>
#include <math.h>
#include <options/options.h>
#include "../csm/csm_all.h"
struct {
double interval;
int seed;
}p ;
LDP ld_resample(LDP ld);
gsl_rng * rng;
int main(int argc, const char ** argv) {
sm_set_program_name(argv[0]);
... |
/// @author Alexander Rykovanov 2013
/// @email rykovanov.as@gmail.com
/// @brief View services interface.
/// @license GNU LGPL
///
/// Distributed under the GNU LGPL License
/// (See accompanying file LICENSE or copy at
/// http://www.gnu.org/licenses/lgpl.html)
///
#ifndef OPC_UA_Client_VIEW_H
#define OPC_UA_Client... |
// Copyright 2017-present the Material Components for iOS 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
//... |
/* This file was converted by gperf_fold_key_conv.py
from gperf output file. */
/* ANSI-C code produced by gperf version 3.1 */
/* Command-line: /usr/bin/gperf -n -C -T -c -t -j1 -L ANSI-C -F,-1 -N onigenc_unicode_fold2_key unicode_fold2_key.gperf */
/* Computed positions: -k'3,6' */
/* This gperf sou... |
/* mbed Microcontroller Library
*******************************************************************************
* Copyright (c) 2017, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
/* mbed Microcontroller Library
* A generic CMSIS include header
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pro... |
/* $OpenBSD: auth2-passwd.c,v 1.19 2020/10/18 11:32:01 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. 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 cod... |
/**
r_errors.c
Copyright (C) 2002-2003, Network Resonance, Inc.
Copyright (C) 2006, Network Resonance, 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. Redistrib... |
/* test random number generator APIs */
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* This tests the following random number routines:
* u32_t sys_rand32_get(void);
*/
#include <ztest.h>
#include <logging/sys_log.h>
#define N_VALUES 10
/**
*
* @brief Regression... |
/*!
* @file ezs_dac.c
* @brief A very simple DA converter, based on Fail*
* @author Martin Hoffmann
* \ingroup dac
*/
#include <stdint.h>
#include "ezs_dac.h"
static volatile uint8_t ezs_dac_out_register;
/*!
* \brief Write a value to the DAC
*/
void ezs_dac_write(uint8_t value){
ezs_dac_out_register = va... |
/****************************************************************************
* *
* PrimeSense Sensor 5.x Alpha *
* Copyright (C) 2011 PrimeSense Ltd. *
* ... |
//
// Integrated+Extensions.h
// LastHistory
//
// Created by Frederik Seiffert on 28.11.08.
// Copyright 2008 Frederik Seiffert. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonHMAC.h>
#import <CommonCrypto/CommonCryptor.h>
@interface NS... |
//
// GradientStop.h
// Beautify
//
// Created by Chris Grant on 28/02/2013.
// Copyright (c) Beautify. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "JSONModel.h"
@protocol BYGradientStop
@end
@interface NSArray (Stop) <BYGradientStop>
@end
/**
A style property representing a stop for a background g... |
/*
* Copyright 1999 SuSE, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in s... |
/*
* 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... |
/*
* 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... |
/* Copyright 2015 CyberTech Labs 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 agree... |
/*
* _coder_rpy2quat_mex.c
*
* Code generation for function 'rpy2quat'
*
*/
/* Include files */
#include "mex.h"
#include "_coder_rpy2quat_api.h"
/* Function Declarations */
static void rpy2quat_mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
/* Variable Definitions */
em... |
#pragma once
#include <boost/serialization/export.hpp>
#include <boost/serialization/access.hpp>
#include <boost/serialization/base_object.hpp>
#include "dynet/dynet.h"
#include "dynet/rnn.h"
#include "dynet/expr.h"
#include "dynet/lstm.h"
using namespace dynet::expr;
namespace dynet {
struct TreeLSTMBuilder : publi... |
// Copyright 2016 Markus Tzoe
// 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 writing, s... |
#ifndef _CAMERA_H_
#define _CAMERA_H_
#include <DirectXMath.h>
#include <AntTweakBar.h>
#include "SimpleMath.h"
using namespace DirectX;
class Camera
{
static float quat[4];
public:
Camera( TwBar *p_bar);
Camera(const Camera&);
~Camera(void);
void setPos(float x, float y, float z);
void setRot(float, float, ... |
/*
* 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... |
/*
*
* Copyright 2012 Samsung Electronics S.LSI 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 ap... |
#pragma once
#include <memory>
namespace Envoy {
/**
* This is a helper that wraps C style API objects that need to be deleted with a smart pointer.
*/
template <class T, void (*deleter)(T*)> class CSmartPtr : public std::unique_ptr<T, void (*)(T*)> {
public:
CSmartPtr() : std::unique_ptr<T, void (*)(T*)>(nullptr... |
/*****************************************************************************/
/* huffman.h Copyright (c) Ladislav Zezula 2003 */
/*---------------------------------------------------------------------------*/
/* Description : */
... |
/*
* Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
* Copyright (c) 2002-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 this permission notice appe... |
/*-
* Copyright (c) 2004 Tim J. Robbins.
* 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 con... |
/////////////////////////////////////////////////////////////////////////////
//
// File : qtc_hs_QPaintEvent.h
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:02:41
//
// Warning : this file is machine gene... |
/* Copyright (c) 2013, Regents of the Columbia University
* 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 li... |
/*
File: AVBase.h
Framework: AVFoundation
Copyright 2010-2013 Apple Inc. All rights reserved.
*/
#import <Availability.h>
#import <Foundation/NSObjCRuntime.h>
#if defined(__cplusplus)
#define AVF_EXPORT extern "C"
#else
#define AVF_EXPORT extern
#endif
// Pre-10.10
#ifndef __NSi_10_10
#define __NSi_10_1... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef AppBannerCallbacks_h
#define AppBannerCallbacks_h
#include "modules/app_banner/BeforeInstallPromptEvent.h"
#include "public/platform/modules/app_... |
/*
* Copyright (c) 2009-2011 Juli Mallett. 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 cond... |
/* $NetBSD: darwin_machdep.h,v 1.1 2002/12/08 21:53:13 manu Exp $ */
#include <powerpc/darwin_machdep.h>
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE400_Resource_Exhaustion__fscanf_for_loop_06.c
Label Definition File: CWE400_Resource_Exhaustion.label.xml
Template File: sources-sinks-06.tmpl.c
*/
/*
* @description
* CWE: 400 Resource Exhaustion
* BadSource: fscanf Read data from the console using fscanf()
... |
/**
* Copyright (c) 2013, Willem-Hendrik Thiart
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* @file
* @author Willem Thiart himself@willemthiart.com
* @version 0.1
*/
class RaftLogger;
/**
* Apply entry at lastApplied + 1. Entry becomes 'committed... |
/*
*
* Copyright 2015, 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
#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"
#include "kernel/fcall.h"
#include "kernel/operators.h"
... |
/* $NetBSD: endian_machdep.h,v 1.1 2000/03/17 00:09:21 mycroft Exp $ */
#include <powerpc/endian_machdep.h>
|
/*
* Copyright (c) 2010 The WebM 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
/* ----------------------------------------------------------------- */
/* The Toolkit for Building Voice Interaction Systems */
/* "MMDAgent" developed by MMDAgent Project Team */
/* http://www.mmdagent.jp/ */
/* -------------------------... |
// Copyright (c) 2004
// Utrecht University (The Netherlands),
// ETH Zurich (Switzerland),
// INRIA Sophia-Antipolis (France),
// Max-Planck-Institute Saarbruecken (Germany),
// and Tel-Aviv University (Israel). All rights reserved.
//
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
// ... |
// Copyright 2018 the V8 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 V8_OBJECTS_CELL_H_
#define V8_OBJECTS_CELL_H_
#include "src/objects/heap-object.h"
// Has to be the last include (doesn't have include guards)... |
/*
* $Id: hdrcmp.c,v 1.2 2004/01/16 07:12:53 syoyo Exp $
*
* Compare two Radiance .hdr image.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "rgbe.h"
double compare(float *img1, float *img2, int len, int l2)
{
int i;
d... |
// Copyright (c) 2006-2008 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 PRINTING_PRINT_SETTINGS_H_
#define PRINTING_PRINT_SETTINGS_H_
#include "base/gfx/rect.h"
#include "printing/page_overlays.h"
#include "p... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_
#define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_
#include ... |
//////////////////////////////////////////////////////////////////
// (c) Copyright 2009- by Jeongnim Kim
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
// National Center for Supercomputing Applications &
// Materials Computati... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_QUIC_CRYPTO_AEAD_BASE_DECRYPTER_H_
#define NET_QUIC_CRYPTO_AEAD_BASE_DECRYPTER_H_
#include "base/compiler_specific.h"
#include "net/quic/... |
#include <stdint.h>
/*===-- clang-c/Platform.h - C Index platform decls -------------*- C -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
|* ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE114_Process_Control__w32_char_file_18.c
Label Definition File: CWE114_Process_Control__w32.label.xml
Template File: sources-sink-18.tmpl.c
*/
/*
* @description
* CWE: 114 Process Control
* BadSource: file Read input from a file
* GoodSource: Hard code the fu... |
#include "KMotionDef.h"
// Home and set the commutation for a 3 phase brushless motor
//
// Assume index mark
void main()
{
float k=0,A=30.0f; // set coil current amplitude to 30 PWM units
// rotate until we find the index mark
ch0->Enable=FALSE;
SetBitDirection(8,0); // define bit 8... |
#ifndef ZSWCRANGEANALYZER_H
#define ZSWCRANGEANALYZER_H
#include <vector>
#include "zswctree.h"
#include "zellipsoid.h"
class ZSwcRangeAnalyzer
{
public:
ZSwcRangeAnalyzer();
std::vector<ZEllipsoid> computeLayerRange(const ZSwcTree &tree);
std::vector<ZPoint> computerLayerCentroid(const ZSwcTree &tree);
std:... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_CONNECTOR_H_
#define MOJO_PUBLIC_CPP_BINDINGS_LIB_CONNECTOR_H_
#include "mojo/public/c/environment/async_waiter.h"
#... |
/*
* Copyright (C) 2011 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 above copyright
* notice, this list of condit... |
#ifndef ZMOVIESTAGE_H
#define ZMOVIESTAGE_H
#include <string>
class Z3DWindow;
class ZMovieStage
{
public:
explicit ZMovieStage(Z3DWindow *window = 0x0);
inline Z3DWindow *getWindow() {
return m_window;
}
inline void setWindow(Z3DWindow *window) {
m_window = window;
}
inline bool isSwcChanged(... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_BITMAP_IMAGE_METRICS_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_BITMAP_IMAGE_METRICS_H_
... |
#ifndef _BONITO_PCI_H_
#define _BONITO_PCI_H_
#define BONITO_PCI_CFG_ADDR(idsel, func, reg) ( (1 << (11 + (idsel))) + ((func) << 8) + (reg) )
#define PCI_READ32(idsel, func, reg) \
li a0, BONITO_PCI_CFG_ADDR(idsel, func, reg); \
jal PciRead32; \
nop;
#define PCI_WRITE32(idsel, func, reg, data) \
li ... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... |
/* Copyright 2016 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Clocks and power management settings */
#include "clock.h"
#include "common.h"
#include "util.h"
#include "power_mgt.h"
/* Console output macr... |
/*
* Copyright (c) 2009, Piotr Korzuszek
* 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 ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_wchar_t_declare_ncat_45.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.string.label.xml
Template File: sources-sink-45.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: ... |
/*
* Copyright 2021 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef skgpu_Buffer_DEFINED
#define skgpu_Buffer_DEFINED
#include "experimental/graphite/src/Resource.h"
#include "experimental/graphite/src/ResourceTypes.h"
namespace skgp... |
/*****************************************************************************
Copyright (c) 2014, Intel Corp.
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 cod... |
#include <alloca.h>
#include <bluetooth/sdp.h>
#include <bluetooth/sdp_lib.h>
#include "wr_bluetooth.h"
#include "wr_sdp_lib.h"
int wr_sdp_set_browse_groups(sdp_record_t* rec, sdp_list_t* seq) {
return sdp_set_browse_groups(rec, seq);
}
sdp_session_t *wr_sdp_connect(const wr_bdaddr_t *src, const wr_bdaddr_t *dst,... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_RENDERER_WEB_APPS_H_
#define CHROME_RENDERER_WEB_APPS_H_
#include <string>
#include <vector>
#include "base/strings/string16.h"
#incl... |
/*
* Copyright (c) 2015, Stefan Lankes, RWTH Aachen University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* n... |
// Copyright 2018-present 650 Industries. All rights reserved.
#import <Foundation/Foundation.h>
#import <UMAppLoader/UMAppLoaderInterface.h>
#define UM_REGISTER_APP_LOADER_WITH_CUSTOM_LOAD(loader_name, _custom_load_code) \
extern void UMRegisterAppLoader(NSString *, Class); \
+ (void)load { \
UMRegisterAppLo... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE590_Free_Memory_Not_on_Heap__free_struct_static_54c.c
Label Definition File: CWE590_Free_Memory_Not_on_Heap__free.label.xml
Template File: sources-sink-54c.tmpl.c
*/
/*
* @description
* CWE: 590 Free Memory Not on Heap
* BadSource: static Data buffer is declar... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_USAGE_STORE_H_
#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_USAGE_STORE_H_
#includ... |
// Copyright (c) 2009 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_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_
#define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_
#include <map... |
#include <mpi.h>
#include <unistd.h>
int main( int argc, char **argv ){
MPI_Init(&argc, &argv);
sleep(5);
MPI_Finalize();
return 0;
}
|
/*""FILE COMMENT""*******************************************************
* System Name : PDL driver API
* File Name : r_pdl_definitions.h
* Version : 0.10
* Contents : API headers for RX62N (100-pin package)
* Customer :
* Model :
* Order :
* CPU : RX600
* Compiler : RXC
* OS :
* Programmer :
* Note ... |
#pragma once
#include <Eigen/Dense>
#include <chrono>
#include <iostream>
#include <stdexcept>
#include <thread>
#include "drake/systems/simulation_options.h"
#include "drake/systems/vector.h"
namespace drake {
/** @defgroup simulation Simulation
*@{
*@brief Algorithms for simulating dynamical systems
*@}
*/
typed... |
// 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 CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_H_
#define CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_H_
#include <string>
#include "base/basictypes.h"
#includ... |
/* Copyright 2016 Bloq, Inc.
* Distributed under the MIT/X11 software license, see the accompanying
* file COPYING or http://www.opensource.org/licenses/mit-license.php.
*/
#include <ccoin/crypto/hmac.h> // for hmac_sha256, hmac_sha512
#include <ccoin/crypto/rijndael.h> // for aes_cbc_encrypt, etc
#in... |
/*
* fgetpos.c - get the position in the file
*/
/* $Header$ */
#include <stdio.h>
int
fgetpos(FILE *stream, fpos_t *pos)
{
*pos = ftell(stream);
if (*pos == -1) return -1;
return 0;
}
|
#ifndef _MDrawProcedureBase
#define _MDrawProcedureBase
//
//-
// ==========================================================================
// Copyright (C) 1995 - 2006 Autodesk, Inc., and/or its licensors. All
// rights reserved.
//
// The coded instructions, statements, computer programs, and/or related
// mater... |
/* rawfs.h - Raw Minix file system support. Author: Kees J. Bot
*
* off_t r_super(int *block_size);
* Initialize variables, returns the size of a valid Minix
* file system blocks, but zero on error.
*
* void r_stat(ino_t file, struct stat *stp);
* Return information about a file like stat(2) and
... |
#include<stdio.h>
void main()
{
printf("Hello World\n");
}
|
/***********************************************************************************
* This software is under the MIT License quoted below:
***********************************************************************************
*
* Copyright (c) 2010 Olivier Halligon
*
* Permission is hereby granted, free of charge, ... |
#ifndef SD_DISKIO_H_
#define SD_DISKIO_H_
#define SD_SECTOR_SIZE 512
//*****************************************************************************
// Disk Info Structure definition
//*****************************************************************************
typedef struct
{
unsigned char ucCardType;... |
//
// HelloWorldLayer.h
// Cocos2dTest
//
// Created by Student on 1/31/14.
// Copyright Xin ZHANG 2014. All rights reserved.
//
#import <GameKit/GameKit.h>
// When you import this file, you import all the cocos2d classes
#import "cocos2d.h"
// MenuLayer
//@interface MenuLayer : CCLayer <GKAchievementViewContro... |
#include <stdio.h>
int main()
{
int cc;
int n1=0, n2=0, aux;
do
{
for(cc=0;cc<=n2;cc++)
{
printf("*");
}
printf("\n");
aux=n2+n1;
n1=n2;
n2=aux;
}while(n2<=10);
return 0;
} |
#include <stdlib.h>
#include <stdio.h>
#include "stack.h"
typedef struct {
node_t node;
int data;
} data_node_t;
data_node_t * alloc_node(int data) {
data_node_t * node = calloc(1, sizeof(data_node_t));
node->data = data;
return node;
}
int main() {
const int elements = 5;
int index, errors = 0;
vo... |
#pragma once
#include <pebble.h>
typedef struct {
uint8_t index;
char title[24];
char subtitle[32];
} PlexClient;
void plex_init(void);
void plex_deinit(void);
void plex_in_received_handler(DictionaryIterator *iter);
void plex_reload_data_and_mark_dirty();
void plex_request(uint8_t request);
char* plex_get_error(... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 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 (the "Software")... |
// This file was generated based on 'C:\ProgramData\Uno\Packages\Android\0.19.1\Android\android\content\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#pragma once
#include <Android.android.os.Parcelable.h>
#include <Android.Base.Wrappers.IJWrapper.h>
#include <Android.java.lang.Object.h>
#i... |
/*
* Copyright (C) 2008-2019 TrinityCore <https://www.trinitycore.org/>
*
* 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 v... |
/***************************************************************************
file : OsgDome.h
created : Mon Aug 21 18:24:02 CEST 2012
copyright : (C) 2012 by Xavier Bertaux
email : bertauxx@yahoo.fr
version : $Id$
****************... |
#include <RealConv.d>
#include <__oo2c.h>
#include <setjmp.h>
void RealConv__ScanReal(OOC_CHAR8 inputCh, OOC_INT8 *chClass, ConvTypes__ScanState *nextState) {
register OOC_INT32 i0;
i0 = inputCh;
Real0__ScanReal(i0, (void*)(OOC_INT32)chClass, (void*)(OOC_INT32)nextState);
return;
;
}
OOC_INT8 RealConv__For... |
/* Single-precision log function.
Copyright (c) 2017 ARM Ltd. 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
notic... |
#ifndef STDDEF_H
#define STDDEF_H
#include <commonlib/helpers.h>
typedef long ptrdiff_t;
#ifndef __SIZE_TYPE__
#define __SIZE_TYPE__ unsigned long
#endif
typedef __SIZE_TYPE__ size_t;
/* There is a GCC macro for a size_t type, but not
* for a ssize_t type. Below construct tricks GCC
* into making __SIZE_TYPE__ sign... |
/* $Header: /cvsroot/lesstif/lesstif/test/Xm-2.0/container/test4.c,v 1.2 2001/12/19 20:38:41 dannybackx Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <X11/Intrinsic.h>
#include <Xm/Xm.h>
#include <Xm/Container.h>
#include <Xm/IconG.h>
#include "../../common/Test.h"
#ifndef LESSTIF_VERSION
#include <X11/X... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.