text stringlengths 4 6.14k |
|---|
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo
* This benchmark is part of SWSC */
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include <pthread.h>
atomic_int vars[2];
atomic_int atom_0_r1_1;
atomic_int atom_1_r1_1;
atomic_int atom_1_r4_3;
atomic_int atom_2_r1_1;
void *t0(void *arg){
l... |
/**
rmqo: Range Minimum Queries Offline
Copyright (C) 2016 Mai Alzamel and Solon P. Pissis
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 3 of the License, or
... |
/*
* link.h
*
*
*/
#ifndef _OpenAPI_link_H_
#define _OpenAPI_link_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OpenAPI_link_s OpenAPI_link_t;
typedef st... |
#ifndef BottomUpPositiveAlphaShape_h
#define BottomUpPositiveAlphaShape_h
#include<cmath>
#include"CircumcircleRadiusPredicate.h"
#include "ConvexHullHelpers.h"
/**
* Class implementing an on-line and ouput-sensitive algorithm
* that retrieves the vertices of the alpha-shape of all digital
* points lying inside ... |
#include "../../../../../src/charts/animations/pieanimation_p.h"
|
// e.g. https://www.aliexpress.com/item/Free-shipping-LCD-Display-Module-TFT-3-5-inch-TFT-LCD-screen-for-Arduino-UNO-R3/32579880571.html
#include "../GxIO/GxIO_UNO_P8_SHIELD/GxIO_UNO_P8_SHIELD.h"
#include "../GxCTRL/GxCTRL_ILI9481/GxCTRL_ILI9481.h" // HVGA 320x480
GxIO_Class io; // #define GxIO_Class is in the selecte... |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* Copyright (C) 2009 Debarshi Ray <rishi@gnu.org>
*
* Solang 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 3... |
/*
* =========================================================
* Copyright 2012-2015, Nuno A. Fonseca (nuno dot fonseca at gmail dot com)
*
* This file is part of iRAP.
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the ... |
// © Copyright 2010 - 2020 BlackTopp Studios Inc.
/* This file is part of The Mezzanine Engine.
The Mezzanine Engine 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 3 of the License, or... |
/*
* Copyright(C) 2011-2017 Pedro H. Penna <pedrohenriquepenna@gmail.com>
*
* This file is part of Nanvix.
*
* Nanvix 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 3 of the License, or
... |
#ifndef MENU_PRINCIPAL_H
#define MENU_PRINCIPAL_H
/** @file menu_principal.h
* @author Jéremy Anger
* @author Denis Migdal
* @date 08/02/2014
* @ingroup cli
*/
/** @ingroup cli
* @brief Affiche le menu principal.
*
* Demande à l'utilisateur de faire un choix parmis les options proposées :
* * Créer u... |
/*
This file is part of cpp-ethereum.
cpp-ethereum 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 3 of the License, or
(at your option) any later version.
cpp-ethereum is distribu... |
// nearly empty file to be compatible with unmodified avr-crypto-lib sources
// re-defined in standard avr-crypto-lib sha1.c
#ifdef LITTLE_ENDIAN
#undef LITTLE_ENDIAN
#endif
#define DEBUG_S(a) ((void)0)
|
/*******************************************************************************
*
* This file is part of the General Hidden Markov Model Library,
* GHMM version __VERSION__, see http://ghmm.org
*
* Filename: ghmm/ghmm/rng.c
* Authors: Alexander Schliep
*
* Copyright (C) 1998-2004 Alexand... |
/* xoreos-tools - Tools to help with xoreos development
*
* xoreos-tools is the legal property of its developers, whose names
* can be found in the AUTHORS file distributed with this source
* distribution.
*
* xoreos-tools is free software; you can redistribute it and/or
* modify it under the terms of the GNU Ge... |
/**
******************************************************************************
* @file ADC/ADC_InjectedConversion_Interrupt/Inc/stm32f4xx_it.h
* @author MCD Application Team
* @version V1.1.0
* @date 17-February-2017
* @brief This file contains the headers of the interrupt handlers.
**... |
#ifndef _PH_KPHUSER_H
#define _PH_KPHUSER_H
#include <kphapi.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _KPH_PARAMETERS
{
KPH_SECURITY_LEVEL SecurityLevel;
BOOLEAN CreateDynamicConfiguration;
} KPH_PARAMETERS, *PKPH_PARAMETERS;
PHLIBAPI
NTSTATUS
NTAPI
KphConnect(
_In_opt... |
#ifndef BACKGROUNDSUBTRACTION_C_CODEBOOK_AAC_3_1_AACSEG_H_
#define BACKGROUNDSUBTRACTION_C_CODEBOOK_AAC_3_1_AACSEG_H_
#include "CodeBook.h"
#include "SeedFill.h"
class cAACSEG {
public:
Mat mImage;
Mat mRaw;
Mat mResult;
Mat mCst;
Mat mRMOD;
cCodeBook *mModel;
public:
int mH;
int mW;
int mMAX;
boo... |
/*
* File: M51CN128EVB.h
* Purpose: Evaluation board definitions and memory map information
*
* Notes:
*/
#ifndef _M51CN128EVB_H
#define _M51CN128EVB_H
/********************************************************************/
#include "mcf5xxx.h"
#include "derivative.h" /* include peripheral declara... |
/*
* list.h
* The names of functions callable from within lists
*****************************************************************************
* This file is part of Fågelmataren, an embedded project created to learn
* Linux and C. See <https://github.com/Linkaan/Fagelmatare>
* Copyright (C) 2015-2017 Linus... |
/**
* flightpanel - A Cortex-M4 based USB flight panel for flight simulators.
* Copyright (C) 2017-2017 Johannes Bauer
*
* This file is part of flightpanel.
*
* flightpanel 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 S... |
/*
* iEvil.h
*/
#ifndef __QUANTUM_IEVIL_H
#define __QUANTUM_IEVIL_H
#include <memory>
#include "qubit.h"
namespace Quantum {
class iEvil {
public:
virtual void doEvil(shared_ptr<Qubit> q) = 0;
};
}
#endif
|
/*
* Copyright 2010-2013 OpenXcom Developers.
*
* This file is part of OpenXcom.
*
* OpenXcom 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 3 of the License, or
* (at your option) any ... |
#include "precision-clock.h"
#include "tim.h"
volatile uint32_t constant = 0;
volatile uint16_t lastValue = 0;
/*
extern __IO uint32_t uwTick;
uint32_t ticksHiRes = 0;*/
void prec_clock_init()
{
HAL_TIM_Base_Start(&htim17);
}
/*
void HAL_IncTick(void)
{
ticksHiRes++;
if (ticksHiRes%10 == 0)
uwTick++;
}*/
... |
/*
* Copyright (C) 2006-2010 by RoboLab - University of Extremadura
*
* This file is part of RoboComp
*
* RoboComp 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 3 of the ... |
#include<stdio.h>
#include<io.h>
#include<fcntl.h>
#include<sys\stat.h>
main()
{
int handle,old_mode;
char buf[128]="Hello the world \n",*temp,c='\0';
if((handle=creat("\\tc\\ExNtemp.txt",S_IWRITE))==-1)
{
printf("\n Error open the file ExNtemp.txt!");
}
else
{
printf("\nThe file ExN... |
/**
****************************************************************************************
*
* @file hrp_common.h
*
* @brief Header File - Heart Rate Profile common types.
*
* Copyright (C) RivieraWaves 2009-2013
*
* $Rev$
*
**********************************************************************************... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the class library */
/* SoPlex --- the Sequential object-oriented simPlex. */
... |
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "OWSViewController.h"
NS_ASSUME_NONNULL_BEGIN
extern const CGFloat kOWSTable_DefaultCellHeight;
@class OWSTableItem;
@class OWSTableSection;
@interface OWSTableContents : NSObject
@property (nonatomic) NSString *title;
@property (nona... |
//
// StandardDefinitions.h
// iSEPTA
//
// Created by septa on 11/16/12.
// Copyright (c) 2012 SEPTA. All rights reserved.
//
#ifndef iSEPTA_StandardDefinitions_h
#define iSEPTA_StandardDefinitions_h
typedef NS_ENUM(NSInteger, ShowTimesButtonPressed)
{
kLeftButtonIsStart,
kLeftButtonIsEnd,
kLeftButt... |
/******************************************************************************
** Copyright (c) 2006-2018, Calaos. All Rights Reserved.
**
** This file is part of Calaos.
**
** Calaos is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published ... |
/*
* uefi-ntfs: UEFI → NTFS/exFAT chain loader - System Information
* Copyright © 2014-2021 Pete Batard <pete@akeo.ie>
* With parts from EDK © 1998 Intel Corporation
*
* 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
* ... |
/* ISO C9x 7.18 Integer types <stdint.h>
* Based on ISO/IEC SC22/WG14 9899 Committee draft (SC22 N2794)
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* Contributor: Danny Smith <danny_r_smith_2001@yahoo.co.nz>
*
* This source code is offered for use in the public domain. You may
* use, modify or distribute it fr... |
// *************************************************************************
// This file is part of Life, Death, and the Objective ("LDO")
// a simple squad-tactics strategy game by Steaphan Greene
//
// Copyright 2005-2008 Steaphan Greene <stea@cs.binghamton.edu>
//
// LDO is free software; you can redistribute i... |
#ifndef __AT_COMMON_H
#include <modem/types.h>
#include "queue.h"
/*------------------------------------------------------------------------*/
modem_cpin_state_t at_cpin_state(modem_t* modem);
/*------------------------------------------------------------------------*/
int at_cpin_pin(modem_t* modem, const char* ... |
/* Copyright (C) 2005-2012 by George Williams */
/*
* 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 and the following... |
/*******************************************************************************
* XLineRenderer.h
*
* Copyright (c) Moreno Seri (moreno.seri@gmail.com)
*
* This file is part of XLib.
*
* XLib is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publi... |
#ifndef BBOX_H
#define BBOX_H
// bbox.h
// Bounding box implementation.
#include "util.h"
#include "vector.h"
/**************
* Structures *
**************/
// A bounding box:
struct bbox_s;
typedef struct bbox_s bbox;
/*************************
* Structure Definitions *
*************************/
struct bbox... |
/*
* Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat 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 ve... |
// Check that we run dsymutil properly with multiple -arch options.
//
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -ccc-print-phases \
// RUN: -arch i386 -arch x86_64 %s -g 2> %t
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-ACTIONS < %t %s
//
// CHECK-MULTIARCH-ACTIONS: 0: input, "{{.*}}darwin-dsymutil.c... |
#ifndef __DUMMYARM_CALIBRATION_H
#define __DUMMYARM_CALIBRATION_H
extern "C" {
#define SERIAL_BAUDRATE 115200
#define PWM_DRIVER_I2C_ADDRESS 0x40
#define PWM_DRIVER_FREQ 60
struct arm_segment_config {
const char *name;
struct servo_config *servo;
double length; /*!< millimeters */
};
struct... |
/**
* Orthanc - A Lightweight, RESTful DICOM Store
* Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics
* Department, University Hospital of Liege, Belgium
*
* 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... |
/*
Copyright (C) 1994-2012 John W. Eaton
This file is part of Octave.
Octave 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 3 of the License, or (at your
option) any later version.
Octave is di... |
#pragma once
#include <mutex>
#include "cluster.h"
#ifdef BOOST
#include <boost/container/vector.hpp>
#else
#include <vector>
using namespace std;
#endif
class ccbc_context
{
public:
ccbc_context(uint32_t p_SMin, TCluster & p_Cluster, const vector<uint32_t> & m_IdxList, double p_Threshold);
~ccbc... |
/**
* Wrapping PB CodedOutputStream, so that it is simply usable by both native and
* SWIG modules.
*/
#ifndef _LIB_PROCESSING_ENGINE_RESOURCE_OUTPUT_STREAM_TEXT_H_
#define _LIB_PROCESSING_ENGINE_RESOURCE_OUTPUT_STREAM_TEXT_H_
#include <config.h>
#include <limits>
#include <string>
#include <google/protobuf/text_... |
/*
This file is part of GNUnet
(C) 2008--2012 Christian Grothoff (and other contributing authors)
GNUnet 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 3, or (at your... |
//
// CHNNotFoundError.h
//
// Auther:
// ned rihine <ned.rihine@gmail.com>
//
// Copyright (c) 2012 rihine All rights reserved.
//
// 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... |
//
// CCS3BlockingConnection.h
// Replicate
//
// Created by Alex Zepeda on 8/7/14.
// Copyright (c) 2014 Inferior Human Organs, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CCS3Semaphore.h"
@interface CCS3BlockingConnection : NSObject<NSURLConnectionDelegate>
@property CCS3Semaphore ... |
/*
Exciting Licence Info.....
This file is part of FingerprinTLS.
FingerprinTLS 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 3 of the License, or
(at your option) any later version.
Fingerprin... |
#ifndef DATASTRUCTS_H
#define DATASTRUCTS_H
#include "AST.h"
#include <string>
#include <map>
#include <vector>
using std::string;
using std::map;
using std::vector;
using std::pair;
class VariableSymbols
{
public:
VariableSymbols() : symbols() {}
int addVariable(string name, int type);
bool containsVari... |
void esput_otb_mqtt_publish(MQTT_Client *mqtt_client,
char *subtopic,
char *extra_subtopic,
char *message,
char *extra_message,
uint8_t qos,
bool retain... |
/*
Copyright © 2010 par Marc Sibert
This file is part of LIBOSM
LIBOSM 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 License, or
(at your option) any late... |
/*
* gnome-keyring
*
* Copyright (C) 2010 Stefan Walter
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later versio... |
// Copyright 2008, 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 conditions an... |
/*****************************************************************************
*
* Copyright (c) 2000 - 2013, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-442911
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl... |
/*****************************************************************************
* Copyright (c) 2014-2020 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU Gener... |
/*
* Copyright (C) 2009 Daniel Prevost <dprevost@photonsoftware.org>
*
* This file is part of Photon (photonsoftware.org).
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 2 or version 3 as published by the
* Free Software Foundation and appearing in t... |
#include "tests/ctrl-interface.h"
#include "constants.h"
#include <math.h>
#include "debug.h"
/* Global Variables */
int motor_speeds[10] = {0};
float netVelocityX = 0;
float netVelocityY = 0;
#define motorA motor_speeds[1]
#define motorB motor_speeds[2]
#define motorC motor_speeds[3]
#define motorD motor_speeds[4]
... |
/* 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 may not... |
/*
Free Download Manager Copyright (c) 2003-2016 FreeDownloadManager.ORG
*/
#if !defined(AFX_VMSZLIBHELPER_H__2A49F334_B108_4A46_A57E_295BB822879A__INCLUDED_)
#define AFX_VMSZLIBHELPER_H__2A49F334_B108_4A46_A57E_295BB822879A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
class vmsZlibHelper
{
p... |
/* Protect against multiple inclusion */
#ifndef STAR_CMP_H_INCLUDED
#define STAR_CMP_H_INCLUDED
void cmpLen( HDSLoc *struc, const char *comp, size_t *len, int *status );
void cmpMapN(HDSLoc* struc, const char *name, const char *type,
const char *mode, int ndim, void **pntr, hdsdim dims[], int *status);
v... |
#ifndef VKSEARCHDIALOG_H
#define VKSEARCHDIALOG_H
#include <QDialog>
#include <QTreeWidget>
#include <QTimer>
#include "vkservice.h"
namespace Ui {
class VkSearchDialog;
}
class VkSearchDialog : public QDialog
{
Q_OBJECT
public:
explicit VkSearchDialog(VkService *service, QWidget *parent = 0);
~VkSearchDialo... |
/* Copyright (c) 2002-2003 krzYszcz and others.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
#include <math.h>
#include "m_pd.h"
#include "shared.h"
#include "sickle/sic.h"
typedef struct _phasewrap
{
t_sic x_sic... |
/***************************************************************************
Copyright (C) 2008 by the Tonatiuh Software Development Team.
This file is part of Tonatiuh.
Tonatiuh 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 Fr... |
/*
* writer.h -- Example program which writes to SimpleExchangeDevice
*
* Copyright (C) 2014 Nemanja Hirsl
*
* 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 3 of the Licens... |
#include <htc.h>
#include "ladder.h"
#include "PwmLib.h"
int PWM_Prediv(long fmcu, long fpwm)
{
long q = (fmcu / 4) / fpwm; // theoriquement egal a (PR2+1) * prediv
if(q <= 256)
return (1); // predivision = 1
if(q <= 1024)
return (4); // predivision = 4
if(q <= 4096)
return (1... |
#include "teclado.h"
#include "interrupcoes.h"
#include "terminal.h"
#define FILTRO_ADDR 0x2700
unsigned char __far __at (@FILTRO_ADDR) filtro;
unsigned int flag;
void init_timer0() {
/* Rotina de configuracao do timer 0*/
IE |= 0x82;
// modo 8 bit
TMOD |= 0x01;
TH0 = 0xFC;
TL0 = 0x66;
flag = 1;
... |
#ifndef MQML_H
#define MQML_H
#include <QObject>
#include <QtQml>
class TreeItem;
class MQML : public QObject
{
Q_OBJECT
Q_DISABLE_COPY( MQML )
public:
explicit MQML(QObject *parent = 0);
Q_INVOKABLE QString className( QObject *obj ) const;
Q_INVOKABLE TreeItem * createTreeItem( QVariant ... |
/* glpk.h */
/******************************************************************************
* Copyright (C) 2017 Alexis Janon
*
* This code is part of a program computing task lists for
* heterogeneous scheduling problems.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms ... |
#ifndef COLORMAPRENDERER_H
#define COLORMAPRENDERER_H
#include "AbstractRenderer.h"
class ColorMapModel;
class ColorMapRenderer : public AbstractRenderer
{
public:
irisITKObjectMacro(ColorMapRenderer, AbstractRenderer)
void SetModel(ColorMapModel *model);
void resizeGL(int w, int h);
void paintGL();
prot... |
#include <math.h>
#include <stdio.h>
#include "../include/libseno.h"
double seno (double angulo) {
double prox = angulo;
long double condition;
int i = 1;
double soma = angulo;
while(1) {
prox = (prox * power((double) (-1), (double) (2 * i - 1)) * angulo * angulo) / (2 * i * (2 * i + 1)) ;
soma = som... |
/* -*- c++ -*- */
/*
* Copyright 2004 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio 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 3, or (at your opti... |
/*
* (C) 2003-2006 Gabest
* (C) 2006-2014 see Authors.txt
*
* This file is part of WinnerMediaPlayer.
*
* WinnerMediaPlayer 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 3 of t... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2014 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ob... |
/******************************************************************************
** Copyright (c) Raoul Hecky. All Rights Reserved.
**
** Moolticute 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; ei... |
/*===========================================================================*\
RCBase.h - reference counted object base class
Copyright (C) 2005 Michael A. Muller
This file is part of spug++.
spug++ is free software: you can redistribute it and/or modify it under the
terms of the GNU Le... |
#ifndef FLOATINGVALUEDELEGATE_H
#define FLOATINGVALUEDELEGATE_H
#include <QLocale>
#include <QItemDelegate>
class FloatingValueDelegate : public QItemDelegate
{
Q_OBJECT
public:
FloatingValueDelegate(QObject *parent = nullptr);
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QM... |
/****************************************************************************
* Copyright (c) 2014 - 2015 Frédéric Bourgeois <bourgeoislab@gmail.com> *
* *
* This file is part of OSC-webgate. *
* ... |
/*
* cbmfile.c - CBM file handling.
*
* Written by
* Andreas Boose <viceteam@t-online.de>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publ... |
/**
******************************************************************************
* @file PWR/PWR_CurrentConsumption/stm32f4xx_lp_modes.h
* @author MCD Application Team
* @version V1.1.5
* @date 17-February-2017
* @brief Header for stm32f4xx_lp_modes.c module
*****************************... |
/*
* Infrared-Multiprotokoll-Decoder
*
* for additional information please
* see http://www.mikrocontroller.net/articles/IRMP
*
* Copyright (c) 2010 by Erik Kunze <ethersex@erik-kunze.de>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public Li... |
/* ===================================================================
# Copyright (C) 2015-2015
# Anderson Tavares <nocturne.pe at gmail.com> PK 0x38e7bfc5c2def8ff
# Lucy Mansilla <lucyacm at gmail.com>
# Caio de Braz <caiobraz at gmail.com>
# Hans Harley <hansbecc at gmail.com>
# Paulo Miranda... |
#ifndef BITMAP_H
#define BITMAP_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui/IImage.h>
#include <Color.h>
namespace vgui
{
typedef unsigned long HTexture;
class Bitmap : public IImage
{
public:
Bitmap(const char *filename, bool hardwareFiltered);
~Bitmap(void);
public:
virtual void Paint(void);
virtual ... |
#ifndef CAPITALISM_VIEWMANAGER_H
#define CAPITALISM_VIEWMANAGER_H
#include "Base/ManagerWorld.h"
class ViewManager: public ManagerWorld
{
public:
static ViewManager* getInstance();
private:
ViewManager();
static ViewManager* viewManager;
};
#endif //CAPITALISM_VIEWMANAGER_H
|
#pragma once
#include "ofMain.h"
#include "Scene.h"
#include "ofxSyphon.h"
/*
requires Syphon Framework added to build phases of app
*/
class Syphon : public Scene
{
public:
void setup();
void setClient(string serverName, string appName);
void update();
void draw();
private:
ofxSyphonClient cl... |
/*
* caiman.h
*
* Created on: Jun 30, 2015
* Author: andy
*/
//#ifdef _INCLUDED_CAYMAN_PRIVATE_H_
//#error "Can not incude internal private header file in or before a public header"
//#endif
#ifndef _INCLUDED_CAYMAN_H_
#define _INCLUDED_CAYMAN_H_
#include <ca_object.h>
#include <ca_module.h>
#include <c... |
/*
* Copyright (c) 2000-2001 Vojtech Pavlik <vojtech@ucw.cz>
* Copyright (c) 2001, 2007 Johann Deneux <johann.deneux@gmail.com>
*
* USB/RS232 I-Force joysticks and wheels.
*/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pu... |
/* SSDV - Slow Scan Digital Video */
/*=======================================================================*/
/* Copyright 2011-2016 Philip Heron <phil@sanslogic.co.uk> */
/* */
/* This program... |
#include <stdio.h>
// Pointers can point to functions
int fun(int x, int *p)
{
return x + *p;
}
int main()
{
int (*fp)(int, int *);
fp = fun;
int y = 1;
int result = fp(3, &y);
printf("result: %d\n", result);
}
|
/*
* This file is part of easyFPGA.
* Copyright 2013-2015 os-cillation GmbH
*
* Author: Johannes Hein <support@os-cillation.de>
*
* easyFPGA 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... |
#include<stdio.h>
#include<stdlib.h>
#define MAX 1000
int prefixsum[MAX];//array to store prefixsums
/*function that calculates prefix sum by
forming the prefixsum array
*/
void calculate_prefix_sum (int arr[], int n)
{
prefixsum[0] = arr[0]; //starts with the first element
for (int i = 1; i < n; i++)
{
... |
/*
-----------------------------------------------------------------------------------------------
This source file is part of the Particle Universe product.
Copyright (c) 2010 Henry van Merode
Usage of this program is licensed under the terms of the Particle Universe Commercial License.
You can find a copy of the Co... |
// Copyright (c) 2005 - 2017 Settlers Freaks (sf-team at siedler25.org)
//
// This file is part of Return To The Roots.
//
// Return To The Roots 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 versio... |
/* Process handling for Windows
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make 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... |
/*
* copyright (c) 2003 Fabrice Bellard
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any l... |
// Copyright (C) 1999-2021
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"
#include <string.h>
#include <iostream>
#include <sstream>
#include <iomanip>
using namespace std;
#ifndef __colorscale_h__
#define __colorscale_h__
... |
/* gpakeyexpireop.h - The GpaKeyExpireOperation object.
* Copyright (C) 2003, Miguel Coca.
*
* This file is part of GPA
*
* GPA 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 Li... |
/*
Licenced under GPL version 2
*/
#include <stdio.h>
int main(int argc, char *argv[] )
{
//print the statement
printf ("hello_world\n") ;
printf ("okay_bye");
return 0;
}
|
#include <hw_config.h>
#include <user_interface.h>
#include <debug.h>
struct hw_config HwConfig __attribute__((aligned(4)));
void ICACHE_FLASH_ATTR hw_config_load(bool reset) {
INFO("Loading hardware config.");
ets_memset(&HwConfig, 0, sizeof(HwConfig));
system_param_load(HW_CONFIG_SECTOR, 0, (uint32*)&Hw... |
/* This file is an image processing operation for GEGL
*
* GEGL 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 License, or (at your option) any later version.
*
* GEGL ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.