text stringlengths 4 6.14k |
|---|
/********************************************************************************
* *
* R e g i s t r y C l a s s *
* ... |
/*
* File: euid_config.h
* Author: Panda
*
* Created on Streda, 2015, júl 22, 15:50
*/
#ifndef EDID_CONFIG_H
#define EDID_CONFIG_H
#include <stdint.h>
#include "global.h"
#include "spieeprom.h"
#include <stdio.h>
#include "log.h"
#include "hw.h"
#define NID_ADRESS 0
#define NID_ADRESS_LEN 5
#... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2020 projectchrono.org
// All rights 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 t... |
/* Copyright (c) 2012, Movidius Ltd.
Released under the BSD 3-clause license.
Author: Purdea Andrei <andrei -at- purdea.ro>
<andrei.purdea -at- movidius.com> */
/* this file contains stuff used to read an mxml memory structure from an xml file.
this is mainly useful because of the spe... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... |
/*-
* Copyright (c) 2008, Jeffrey Roberson <jeff@freebsd.org>
* All rights reserved.
*
* Copyright (c) 2008 Nokia Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redis... |
#pragma once
#include <cmath>
#include <memory>
namespace megamol {
namespace remote {
template<int DIM>
struct vec {
static_assert(DIM > 0, "Zero dimensional vector not allowed");
std::unique_ptr<float[]> coord_;
vec(void) : coord_{new float[DIM]} {};
vec(float coord[DIM]) : vec{} {
std::co... |
#ifndef SIMULATION_GUI_H
#define SIMULATION_GUI_H
#include <Klampt/Simulation/Simulator.h>
#include "WorldGUI.h"
#include <set>
namespace Klampt {
/** @brief Generic simulation program.
*
* To set up the world and simulation from a command line, call LoadAndInitSim().
* To set up the simulation from a world, just... |
#ifndef TOOLBOX_H_
#define TOOLBOX_H_
#include <glui.h>
#include <string>
namespace view
{
class Toolbox
{
public:
struct Parameter
{
float *angle1;
float *angle2;
float *angle3;
int *torque1;
int *torque2;
int *torque3;
float *rotationMatrix;
};
Toolbox(int windowId, void (*idle)(void), Paramete... |
/***********************************************************************
filename: CEGUIFalXMLEnumHelper.h
created: Mon Jul 18 2005
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/********************************************... |
/*
* calibrateCameraHelpers.h
*
* function: classes and functions for calibrateCamera module
*
* author: Jannik Beyerstedt
* modified from: http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html
*/
#ifndef SRC_CALIBRATECAMERA_HELPERS_H_
#define SRC_CALIBRATECAMERA_HELPERS_H_... |
/*
* 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 "ABI43_0_0RCTBaseTextInputViewManager.h"
NS_ASSUME_NONNULL_BEGIN
@interface ABI43_0_0RCTMultilineTextInputViewManager : A... |
//
#include <stdio.h>
#include <math.h>
int
main(void)
{
int a, b, c, d;
printf("Please enter 4 numbers separated by spaces > ");
scanf("%d%d%d%d", &a, &b, &c, &d);
if (a>b)
if (b>c)
if (c>d)
printf("%d is the smallest\n", d);
else
printf("%d is the smallest\n", c);
else if (b>d)
printf("%d is t... |
// 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 CONTENT_RENDERER_GPU_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_
#define CONTENT_RENDERER_GPU_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_
#include "base/me... |
/*
Copyright (c) 2011, The Mineserver 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:
* Redistributions of source code must retain the above copyright
notice, this list of condition... |
// Copyright 2017 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_PERMISSIONS_FAKE_BLUETOOTH_CHOOSER_CONTROLLER_H_
#define COMPONENTS_PERMISSIONS_FAKE_BLUETOOTH_CHOOSER_CONTROLLER_H_
#include <string>... |
//
// HttpConnection.h
// MobileWeather
//
// Copyright (c) 2013-2015 Ford Motor Company. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum : NSUInteger {
HttpConnectionRequestMethodGET,
HttpConnectionRequestMethodPUT,
HttpConnectionRequestMethodPOST,
HttpConnectionRequestMetho... |
/**
* @author Dominic Eschweiler <dominic@eschweiler.at>
*
* @section LICENSE
*
* Copyright (c) 2015, Dominic Eschweiler
* 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. Redist... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkUnstructuredGridVolumeMapper.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
#include "../../../build_defs.h"
#include <stdint.h>
uint16_t
crc16_update(uint16_t crc, uint8_t a)
{
int i;
crc ^= a;
for (i = 0; i < 8; ++i)
{
if (crc & 1)
crc = (crc >> 1) ^ 0xA001;
else
crc = (crc >> 1);
}
return crc;
}
|
/*
* Copyright (c) 2016, The OpenThread Authors.
* 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 ... |
#ifndef _OUTPUTPROBES_H_
#define _OUTPUTPROBES_H_
#include "Output.h"
#include "Grid.h"
#include "Array.h"
#include <vector>
#include <string>
using std::string;
using std::vector;
namespace ibpm {
/*!
\file OutputProbes.h
\class OutputProbes
\brief Write velocities, fluxes, and vorticity, at given probe locations... |
// 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 ScriptPromiseResolver_h
#define ScriptPromiseResolver_h
#include "bindings/core/v8/ScopedPersistent.h"
#include "bindings/core/v8/ScriptPromise.h... |
#ifndef BASICQUERY_H
#define BASICQUERY_H
#include "Query.h"
class Post;
class BasicQuery : public Query
{
public:
BasicQuery(SocialNet* n):Query(n){}
virtual vector<Post*> Execute() {return receiver->BasicSearch(this);}
virtual void InitQuery(User*)
{
cout<<"Enter the keyword you wanna search for: "<<en... |
/* Generated by ./xlat/gen.sh from ./xlat/evdev_mtslots.in; do not edit. */
#ifdef IN_MPERS
# error static const struct xlat evdev_mtslots in mpers mode
#else
static
const struct xlat evdev_mtslots[] = {
#if defined(ABS_MT_SLOT) || (defined(HAVE_DECL_ABS_MT_SLOT) && HAVE_DECL_ABS_MT_SLOT)
XLAT(ABS_MT_SLOT),
#endi... |
/*! \file
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
2015, 2016, 2017, 2018
University Corporation for Atmospheric Research/Unidata.
See \ref copyright file for more info.
*/
/*
* Test more renames of vars and dims.
... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrOvalRenderer_DEFINED
#define GrOvalRenderer_DEFINED
#include "GrContext.h"
#include "GrPaint.h"
#include "GrRefCnt.h"
#include "GrRect.h"
class GrContext;
class G... |
// Copyright 2010-2015 Fabric Software Inc. All rights reserved.
#ifndef __UI_DFG_DFGUICmd_AddBackDrop__
#define __UI_DFG_DFGUICmd_AddBackDrop__
#include <FabricUI/DFG/DFGUICmd/DFGUICmd_AddNode.h>
FABRIC_UI_DFG_NAMESPACE_BEGIN
class DFGUICmd_AddBackDrop
: public DFGUICmd_AddNode
{
public:
DFGUICmd_AddBackDrop(... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int64_t_rand_postinc_68a.c
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-68a.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: rand Set data to result of rand()
* GoodSource: Se... |
// Copyright (c) 2013, Thomas L. Falch
// For conditions of distribution and use, see the accompanying LICENSE and README files
// This file is a part of the Scattered Point Visualization application
// developed at the Norwegian University of Science and Technology
#ifndef KRIGING
#define KRIGING
#include "point.h... |
/* Copyright (c) 2015 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.
*
* DMA based USART TX driver for STM32
*/
#ifndef __CROS_EC_USART_TX_DMA_H
#define __CROS_EC_USART_TX_DMA_H
#include "consumer.h"
#include "dma... |
/*
* Copyright (c) 2005-2017 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitt... |
/***************************************************************************************************
* Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are me... |
/*---------------------------------------------------------------------------
rpng - simple PNG display program readpng.h
---------------------------------------------------------------------------
Copyright (c) 1998-2007 Greg Roelofs. All rights reserved.
This softwar... |
/*
* Copyright (c) 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materia... |
// 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 CONTENT_SHELL_BROWSER_SHELL_DOWNLOAD_MANAGER_DELEGATE_H_
#define CONTENT_SHELL_BROWSER_SHELL_DOWNLOAD_MANAGER_DELEGATE_H_
#include <stdint.h>
#i... |
// Copyright 2019 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_TRACING_HELPER_H_
#define MOJO_PUBLIC_CPP_BINDINGS_LIB_TRACING_HELPER_H_
#define MANGLE_MESSAGE_ID(id) (id ^ ::mojo:... |
// 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 CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_H_
#define CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_H_
#include <memory>
#include "base/macro... |
// 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 CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
#in... |
/*
* Copyright (c) 2013 The WebRTC 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 contribut... |
/*
* Copyright (C) 2012, 2013 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
//------------------------------------------------------------------------------
// GxB_Semiring_fprint: print and check a GrB_Semiring object
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2018, All Rights Reserved.
// http://suite... |
// Copyright 2017 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_BACKGROUND_FETCH_BACKGROUND_FETCH_DOWNLOAD_CLIENT_H_
#define CHROME_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_DOWNLOAD_CLIENT_H_
#... |
/******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
** All rights reserved.
**
** This file is a part of the chemkit project. For more information
** see <http://www.chemkit.org>.
**
** Redistribution and use in source and binar... |
/*
* Copyright (c) 2016-2020, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may select, at... |
// 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 ASH_WM_WINDOW_DIMMER_H_
#define ASH_WM_WINDOW_DIMMER_H_
#include "ash/ash_export.h"
#include "base/callback_helpers.h"
#include "base/macros.h"
#... |
/**ARGS: source -DFOO1 -UFOO2 */
/**SYSCODE: = 1 | 16 */
#if defined(FOO1)
KEEP ME
#endif
|
/*
============================================================================
* Name : CDmdCaptureEngineMac.h
* Author : weizhenwei, <weizhenwei1988@gmail.com>
* Date : 2015.07.14
*
* Copyright (c) 2015, weizhenwei
* All rights reserved.
*
* Redistribution and use in source and binary form... |
// This file is part of Hermes3D
//
// Copyright (c) 2009 hp-FEM group at the University of Nevada, Reno (UNR).
// Email: hpfem-group@unr.edu, home page: http://hpfem.org/.
//
// This file was written by:
// - David Andrs
//
// Hermes3D is free software; you can redistribute it and/or modify
// it under the terms of th... |
/*
* Copyright (c) 2012-2015, Brian Watling and other contributors
*
* 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 appear in all copies.
*
* THE SOFTWARE IS PROVIDED... |
/*-
* Copyright (c) 2013 Robert N. M. Watson
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
* ("CTSRD"), as part of the DARPA CRASH research programme.
*
* Redistribution and use in so... |
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* ******** *** SparseLib++ */
/* ******* ** *** *** *** v. 1.5c */
/* ***** *** ******** ******** */
... |
#pragma once
bool ProcessConnection(SOCKET pSocket, char *pWelcomeInfo);
int ListenForOneConnection(int pPort, SOCKET *pSocket, int *pWsaError);
int ConnectTo(char *pIpAddress, int pPort, SOCKET *pSocket, int *pWsaError);
bool InitNetworking(int *pWsaError);
bool ShutDownNetworking(); |
/***
*stdexcpt.h - User include file for standard exception classes
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file is the previous location of the standard exception class
* definitions, now found in the standard header <exception>.
*
* [Public]
*
****/
#i... |
/*
Project : Wolf Engine. Copyright(c) Pooya Eimandar (http://PooyaEimandar.com) . All rights reserved.
Source : Please direct any bug to https://github.com/PooyaEimandar/Wolf.Engine/issues
Website : http://WolfSource.io
Name : py_std.h
Description : The python exporter for w_std structs
Comment ... |
//
// ActivityTableViewCell.h
// FRDStravaClient
//
// Created by Sebastien Windal on 4/30/14.
// Copyright (c) 2014 Sebastien Windal. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Mapkit/MapKit.h>
@interface ActivityTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *nameLab... |
//
// FWTPopoverHintView.h
// FWTPopoverHintView
//
// Created by Marco Meschini on 7/12/12.
// Copyright (c) 2012 Futureworkshops. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "FWTPopoverArrow.h"
#import "FWTPopoverBackgroundHelper.h"
#import "FWTPopoverAnimationHelper.h"
@class FWTPopoverView;
typede... |
//
// Tactile
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Damien D.
//
// 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 right... |
/*
SoLoud audio engine
Copyright (c) 2013-2015 Jari Komppa
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 purpose,
including comm... |
//
// CoreDataFetchDataSource.h
// ContentfulSDK
//
// Created by Boris Bügling on 25/04/14.
//
//
@import CoreData;
@import UIKit;
/**
* Block which is responsible for configuring the given cell.
*
* @param cell A cell to configure.
* @param indexPath Index path of the given cell.
*/
typedef void(^CD... |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
#pragma once
#include <string>
// undefine glibc macros
#ifdef major
#undef major
#endif
#ifdef minor
#undef minor
#endif
namespace Lib830 {
struct VersionInfo {
int major;
int minor;
int patch;
VersionInfo(int major, int minor = 0, int patch = 0):
major(major),
minor(minor),
patch(patch)
{}
... |
//
// code for unification. the algorithm is from the book Artificial Intelligence
// by E. Rich and K. Knight (2nd edition) on pages 152, 153.
//
// headers
#include "unification.h"
// unify two term, if possible
int
unify(Terms &t1, Terms &t2, Substitutions &s)
{
// check if a variable or constant
if (t1.type != ... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
//
// PXGraphics.h
// Pixate
//
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//
// categories
#import "UIColor+PXColors.h"
// math
#import "PXDimension.h"
#import "PXMath.h"
#import "PXVector.h"
// paints
#import "PXGradient.h"
#import "PXLinearGradient.h"
#import "PXPaint.h"
#import "PXPaintGroup.h"
#... |
/* ----------------------------------------------------------------- */
/* The Japanese TTS System "Open JTalk" */
/* developed by HTS Working Group */
/* http://open-jtalk.sourceforge.net/ */
/* -----------------------------... |
#ifndef __InputParticle_h__
#define __InputParticle_h__
#include "Input.h"
#include <HAPI/HAPI.h>
class InputParticle : public Input
{
public:
InputParticle(int assetId, int inputIdx);
virtual ~InputParticle();
virtual AssetInputType assetInputType() const;
virtual void setInput... |
#include <stdlib.h>
#include <stdio.h>
// VETORES E MATRIZES
// LISTA C04
/*
//1.
int main(){
int A[6] = {1,0,5,-2,-5,7};
int soma = A[0] + A[1] + A[5];
printf("Soma: %d\n", soma);
A[3] = 100;
int i;
for(i=0;i<6;i++){
printf("A[%d]: %d\n", i, A[i]);
}
re... |
/* realft.c */
#define SWAP(a,b) tempr=(a); (a)=(b);(b)=tempr
/* warning: programmed assuming data starts
at a[1]; with zero offset array, call with &a[-1] */
void four1(data,nn,isign)
double data[];
unsigned int nn;
int isign;
{
unsigned int n,mmax,m,j,istep,i;
double wtemp,wr,wpr,wpi,w... |
// RUN: %ucc -c %s
typedef int bool;
static bool f(a, b)
struct A *a;
struct B *b;
{
}
|
//
// xtea.c
// ProtocolLib
//
// Created by pengyunchou on 14-7-21.
// Copyright (c) 2014年 kyx. All rights reserved.
//
#include <stdio.h>
#include "xtea.h"
void xtea_encrypt(unsigned int num_rounds, uint32_t v[2], uint32_t const key[4]) {
unsigned int i;
uint32_t v0=v[0], v1=v[1], sum=0, delta=0x9E3779B9... |
//
// Copyright (c) 2014-2015 Pantazis Deligiannis (p.deligiannis@imperial.ac.uk)
// This file is distributed under the MIT License. See LICENSE for details.
//
#ifndef TESTDRIVERREWRITEVISITOR_H
#define TESTDRIVERREWRITEVISITOR_H
#include "chauffeur/DriverInfo.h"
#include "chauffeur/AbstractDriverRewriteVisitor.h"
#... |
//
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//
#include <hal.h>
#include <hal_nf_community.h>
int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, size_t *olen);
// Get len bytes of entropy from the hardware RNG.
int m... |
#ifndef _HT_CUCKOO_H_
#define _HT_CUCKOO_H_ 1
#include <stdint.h>
#define ht_cuckoo_code(hash_t,entry_t,gethash1,gethash2,eq,defined,init,unset) \
typedef struct { \
int size; \
int used; \
entry_t *data; \
} hash_t;\
void static inline hash_t ## _init(hash_t *ht) { \
ht->size=0; \
ht->used=... |
#pragma once
#include "Action.h"
class GameRoom;
struct ActionComparator
{
bool operator()( const Action* lhs, const Action* rhs ) const
{
return ( lhs->GetTime() > rhs->GetTime() );
}
};
class ActionScheduler
{
public:
ActionScheduler( GameRoom* gameRoom );
~ActionScheduler();
void AddActionToScheduler( ... |
/****************************************************************************
Copyright (c) 2014 Lijunlin - Jason lee
Created by Lijunlin - Jason lee on 2014
jason.lee.c@foxmail.com
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated ... |
/*
* audio encoder psychoacoustic model
* Copyright (C) 2008 Konstantin Shishkov
*
* This file is part of Libav.
*
* Libav 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 o... |
/* http://www.jera.com/techinfo/jtns/jtn002.html */
#define mu_assert(message, test) do { if (!(test)) return message; } while (0)
#define mu_run_test(test) do { char *message = test(); tests_run++; \
if (message) return message; } while (0)
extern int tests_run;
|
/*
Copyright (c) 2008-2009 NetAllied Systems GmbH
This file is part of COLLADASaxFrameworkLoader.
Licensed under the MIT Open Source License,
for details please see LICENSE file or the website
http://www.opensource.org/licenses/mit-license.php
*/
#ifndef __COLLADASAXFWL_NODELOADER15_H__
#define... |
// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// TTQRCodeScanner
#define COCOAPODS_POD_AVAILABLE_TTQRCodeScanner
#define COCOAPODS_VERSION_... |
#if defined(PEGASUS_OS_HPUX)
# include "UNIX_LimitedAccessPortDeps_HPUX.h"
#elif defined(PEGASUS_OS_LINUX)
# include "UNIX_LimitedAccessPortDeps_LINUX.h"
#elif defined(PEGASUS_OS_DARWIN)
# include "UNIX_LimitedAccessPortDeps_DARWIN.h"
#elif defined(PEGASUS_OS_AIX)
# include "UNIX_LimitedAccessPortDeps_AIX.h"
#elif def... |
void bm_init();
void bm_report(char *msg);
void bm_read_keys(void (*cb)(char **key, int m));
|
/**
* Copyright (c) 2016-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.
*/
#import <U... |
/*=====================================================================
z80.c -> Header file related to the Z80 emulation code.
Please read documentation files to know how this works :)
Thanks to Marat Fayzullin for writing the "How to write a Computer
Eemulator" HOWTO. This emulator is based on his tutori... |
#include "RASDemo.h"
#include <RASLib/inc/common.h>
#include <RASLib/inc/motor.h>
static tMotor *Motors[4];
static tBoolean initialized = false;
void initMotors(void) {
if (!initialized) {
initialized = true;
Motors[0] = InitializeServoMotor(PIN_B6, false);
Motors[1] = InitializeServoMot... |
//
// REDLibraryDatasourceFactory.h
// ReadingList
//
// Created by Banco Santander Brasil on 6/10/16.
// Copyright © 2016 Rafael Gonzalves. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "REDLibraryDatasourceFactory.h"
@interface REDLibraryDatasourceFactoryImpl : NSObject
<REDLibraryDatasourc... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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_UINT256_H
#define BITCOIN_UINT256_H
#include <assert.h>
#include... |
//
// WMPageController.h
// WMPageController
//
// Created by Mark on 15/6/11.
// Copyright (c) 2015年 yq. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "WMMenuView.h"
/**************************************************************************************************************
* WMPageController 的缓存设... |
/*
* Copyright (c) 2012 cocos2d-x.org
* http://www.cocos2d-x.org
*
* Copyright 2012 Yannick Loriot. All rights reserved.
* http://yannickloriot.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
*... |
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Li... |
// RUN: %check -e %s
typedef unsigned long size_t;
g()
{
size_t a;
typedef int a; // CHECK: /error: mismatching definitions of "a"/
}
|
/**
* @file counter.c
*
* \copyright Copyright 2013 /Dev. All rights reserved.
* \license This project is released under MIT license.
*
* @author Ferdi van der Werf <efcm@slashdev.nl>
* @since 0.1.0
*/
#include "counter.h"
// Do we want to use the counter?
#ifdef UTILS_COUNTER
// Check if a timer is selected... |
/*
* Generated by class-dump 3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard.
*/
#import "NSObject.h"
#import "DVTInvalidation.h"
@class DVTFilePath, DVTPerformanceMetric, DVTStackBacktrace, IDESnapshotsManager, IDEWorkspace, NSDictionary, NSObject<OS_dispatc... |
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
/* Copyright 2010 litl, LLC.
*
* 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 limi... |
//
// ALDAppDelegate.h
// ALDBlurImageProcessorDemo
//
// Created by Daniel L. Alves on 15/05/14.
// Copyright (c) 2014 Daniel L. Alves. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ALDAppDelegate : UIResponder< UIApplicationDelegate >
@property( strong, nonatomic )UIWindow *window;
@end
|
#include <stdio.h>
#define SIZE 3
float avrArr(int[]);
int main(){
int nums[SIZE],i;
float avr;
printf("Please insert %d numbers:\n",SIZE);
for(i=0;i<SIZE;i++){
scanf("%d",&nums[i]);
}
avr=avrArr(nums);
printf("\nThe average of nums[] is: %.2f\n",avr);
printf("\n[Press any key to... |
#include <gtk/gtk.h>
static void destroy(GtkWidget *widget, gpointer data)
{
gtk_main_quit();
}
static void entry_activated(GtkWidget *entry, gpointer data)
{
g_print("Entry text: '%s'\n", gtk_entry_get_text(GTK_ENTRY(entry)));
}
int main(int argc, char *argv[])
{
gtk_init(&argc, &argv);
GtkWidg... |
/*
* Copyright (C) 2007 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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
/*
* This file is part of the CMaNGOS Project. See AUTHORS file for Copyright information
*
* 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)... |
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
*
* This header file contains definitions for dealing with HTTP requests
* that are internal to libevent. As user of the library, you should not
* need to know about these.
*/
#ifndef _HTTP_H_
#define _HTTP_H_
#define HTTP_CONNECT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.