text stringlengths 4 6.14k |
|---|
struct _EImportImporter *evolution_ldif_importer_peek(void);
struct _EImportImporter *evolution_vcard_importer_peek(void);
struct _EImportImporter *evolution_csv_outlook_importer_peek(void);
struct _EImportImporter *evolution_csv_mozilla_importer_peek(void);
struct _EImportImporter *evolution_csv_evolution_importer_pe... |
//===========================================================================//
// //
// Îļþ£º ICMP.C //
// ˵Ã÷£º BW-DK5438¿ª·¢°åÒÔÌ«ÍøÊý¾Ý½á¹¹¶¨ÒåÍ·Îļþ ... |
/*
** 2001 September 15
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*******************... |
/*
* FSString.h
* Transform SWF
*
* Copyright (c) 2001-2004 Flagstone Software 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:
*
* * Redistributions of source code must retain th... |
/*
* This file is part of the KDE project
*
* Copyright (C) 2013 Arjen Hiemstra <ahiemstra@heimr.nl>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the L... |
/* -*- OpenSAF -*-
*
* (C) Copyright 2014 The OpenSAF Foundation
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. This file and program are licensed
* under the GNU Lesser G... |
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/amba/pl330.h>
#include <linux/scatterlist.h>
#include <linux/imap_pl330.h>
static inline bool pl330_filter(struct dma_chan *chan, void *param)
{
struct dma_pl330_peri *peri = chan->private;
return peri->peri_id == (unsigned)param;
}
static int imapx... |
/* Configuration file for Linux Android targets.
Copyright (C) 2008, 2010
Free Software Foundation, Inc.
Contributed by Doug Kwan (dougkwan@google.com)
Rewritten by CodeSourcery, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the G... |
#include <stdio.h>
#include <math.h>
int main () {
float c_rad, c_circ, c_area;
printf("\nIngrese el valor del radio del circulo: ");
scanf("%f", &c_rad);
//circ = pi * 2r
//area = pi * r2
c_circ = M_PI * 2 * c_rad;
c_area = M_PI * (c_rad * c_rad);
printf("\nCircunferencia: %.2f\t\tArea: %.2f\n\n", c... |
/*
* Copyright (c) 2003-2009 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* 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 ve... |
#ifndef HANDLESVIEW_H
#define HANDLESVIEW_H
#include "StdTable.h"
#include <QVBoxLayout>
#include <QSplitter>
class HandlesView : public QWidget
{
Q_OBJECT
public:
explicit HandlesView(QWidget* parent = nullptr);
public slots:
void reloadData();
void refreshShortcuts();
void dbgSt... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... |
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_quit_btn_clicked();
void on_play_btn_clicked();
void... |
/*
Copyright (C) 2017 Ramiro Jose Garcia Moraga
This file 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.
This file is distributed in... |
// Pekka Pirila's sports timekeeping program (Finnish: tulospalveluohjelma)
// Copyright (C) 2015 Pekka Pirila
// 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... |
/* Diacritics processing for a few character codes.
Copyright (C) 1990-1993, 2009-2010 Free Software Foundation, Inc.
François Pinard <pinard@iro.umontreal.ca>, 1988.
All this file is a temporary hack, waiting for locales in GNU.
This program is free software: you can redistribute it and/or modify
it u... |
#define MAD_MEM_TEST_NOMAIN
#include "tests/mad_mem.c" |
/***********************************************************
BatteryLookup.h - Support Library for the OSBMS Cell Monitors.
Created by David Burkitt, May 28, 2017.
Released into the public domain.
The DARC Cell Monitors mount on LiFePO4 cells.
Calculates the State-of-Charge (SoC) of a cell from t... |
#ifndef UAE_GFXBOARD_H
#define UAE_GFXBOARD_H
extern int gfxboard_get_configtype (struct rtgboardconfig*);
extern const TCHAR *gfxboard_get_name(int);
extern const TCHAR *gfxboard_get_configname(int);
#define GFXBOARD_UAE_Z2 0
#define GFXBOARD_UAE_Z3 1
#define GFXBOARD_HARDWARE 2
#endif /* UAE_GFXBOARD_H */
|
/* 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[4];
atomic_int atom_1_r1_1;
atomic_int atom_1_r12_0;
void *t0(void *arg){
label_1:;
atomic_store_explicit(&vars[0], 1, mem... |
/*****************************************************************************
* Copyright (c) 2014-2018 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... |
/*
* fft_private.h -- fast Fourier transform related routines - private functions
*
* Copyright 2014 Holger Kohr <kohr@num.uni-sb.de>
*
* 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; e... |
/* -*- c++ -*- */
/*
* Copyright 2014 Ron Economos.
*
* 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 Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distribut... |
#include <tcl.h>
#include <string.h>
#if defined(__STDC__) || defined(HAS_STDARG)
# include <stdarg.h>
#else
# include <varargs.h>
#endif
int Tcl_Invoke TCL_VARARGS_DEF(Tcl_Interp *, arg1)
{
va_list argList;
Tcl_Interp *interp;
char *cmd; /* Command name */
char *arg; /* Command argu... |
/*
* 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 version.
*
* This program is distributed in the hope that it will b... |
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _UNIT_H_
#define _UNIT_H_
//#include "map.h"
struct block_list;
struct unit_data;
struct map_session_data;
#include "clif.h" // clr_type
#include "map.h" // struct block_list
#incl... |
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
/*
* Copyright (C) 2010, 2011 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed ... |
/**
* \file
*/
#include <config.h>
#ifdef HOST_WIN32
/* For select */
#include <winsock2.h>
#endif
#include "mono-poll.h"
#include <errno.h>
#ifdef DISABLE_SOCKETS
#include <glib.h>
int
mono_poll (mono_pollfd *ufds, unsigned int nfds, int timeout)
{
g_assert_not_reached ();
return -1;
}
#else
#if defined(HAVE... |
/*
* File: spieler.h
* Created on 15. Juni 2011, 14:07
*/
#ifndef SPIELER_H
#define SPIELER_H
#include "kartenstapel.h"
#include "eingaben.h"
#include "menue.h"
// include(s) oder
// weitere Angaben
using namespace std;
class Spieler
{
// Attribute
private:
/** Die Karten des Spielers, die er spielen ... |
#ifndef __VGKSTRINGUTILITY_H__
#define __VGKSTRINGUTILITY_H__
#include <vgKernel/vgkForward.h>
namespace vgKernel {
/**
@date 2008/08/01 19:56
@author xy
@brief
@see
*/
class VGK_EXPORT StringUtility
{
private:
StringUtility()
{
}
public:
~StringUti... |
/**
* Snoopy - A lightweight bypass censorship system for HTTP
* Copyright (C) 2012- Changli Gao <xiaosuo@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of t... |
/*
* Copyright (c) 2011 The WebRTC@AnyRTC 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 co... |
// chartgrid2d.h
#ifndef _JUDE_CHARTS2_CHARTGRID2D_H
#define _JUDE_CHARTS2_CHARTGRID2D_H
#include "drawS2/drawgroup2d.h"
#include "drawS2/line2d.h"
#include "chartS2/chartaxis2d.h"
using namespace jude::base;
using namespace jude::S2;
using namespace jude::drawS2;
namespace jude {
namespace chartS2 {
class Char... |
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2009, 2010 Free Software Foundation, Inc.
*
* GRUB 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
* (a... |
/**
* OpenGeoDa TM, Copyright (C) 2011 by Luc Anselin - all rights reserved
*
* This file is part of OpenGeoDa.
*
* OpenGeoDa 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 ... |
/*
* ALSA sequencer Priority Queue
* Copyright (c) 1998 by Frank van de Pol <fvdpol@coil.demon.nl>
*
*
* 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 Li... |
/*
* 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... |
/* Copyright (c) 2016 Ian Hernandez
*
* 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,... |
/******************************************************************************
This file is part of XCygwinSetup, which is part of UserLib.
Copyright (C) 1995-2014 Oliver Kreis (okdev10@arcor.de)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Gen... |
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* gimpbrush-scale.h
*
* 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... |
//Programming Exercise 4.8.8
#include <stdio.h>
#define GL_TO_L 3.785 //1 gallon is about 3.785 liters
int main(void)
{
const float M_TO_KM = 1.609; //1 miles is about 1.609 kilometres
float miles, gallons;
printf("Please enter the number of miles traveled:\n");
scanf("%f", &miles);
printf("Please enter the numbe... |
//
// MSGRDEMOLoginViewController.h
// MsgrDemo
//
// Created by Ke Zeng on 13-10-12.
// Copyright (c) 2013年 msgr. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MSGRDEMOLoginCell.h"
@interface MSGRDEMOLoginViewController : UITableViewController<MSGRDEMOLoginCellDelegate>
@end
|
/*
===========================================================================
Copyright (c) 2010-2015 Darkstar Dev Teams
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 Lice... |
// -*- mode: C++; c-basic-offset: 4 -*-
// Copyright (C) 2015 Joerg Faschingbauer
// 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 2.1 of
// the License, or (at your op... |
void foo()
{
int x, y;
x = 0;
y = 0;
while (y >= 0) {
y = y + x;
}
assert(false);
}
|
/* Standard */
#include <signal.h>
/* System */
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11
#include <CoreAudio/CoreAudio.h>
#include <AudioToolbox/AudioToolbox.h>
#include <AudioUnit/AudioUnit.h>
#endif
/* Me */
#include "audio_io.h"
#include "beats.h"
OSStatus ByteBeat(void * inRefCon,
... |
#pragma once
#include "GL.h"
#include "GLShader.h"
class GLShaderProgram
{
public:
GLShaderProgram();
virtual ~GLShaderProgram();
GLenum GetProgram() const;
void LinkProgram();
void UseProgram();
void BindVertexArray();
void UnbindVertexArray();
void RegisterVertexArray(float *vertices, int vertexSize, u... |
#ifndef MENU_H
#define MENU_H
#include <QFrame>
#include "centralwidget.h"
namespace Ui {
class Menu;
}
class MainEngine;
class TeamHolder;
class Menu : public QFrame, public CentralWidgetInterface
{
Q_OBJECT
public:
explicit Menu(TeamHolder *t);
~Menu();
/* Creates a menu bar to give to the m... |
/******************************************************************************
**
** Copyright 2016 Dale Eason
** This file is part of DFTFringe
** 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 version ... |
// ShellToolExt.h : CShellToolExt µÄÉùÃ÷
#pragma once
#include "resource.h" // Ö÷·ûºÅ
#include "ShellTools_i.h"
#include <ShlObj.h>
#include <comdef.h>
#include <vector>
#include <string>
using namespace std;
#include "Menu.h"
#if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREADED_... |
/*
SuperCollider real time audio synthesis system
Copyright (c) 2002 James McCartney. All rights reserved.
http://www.audiosynth.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; ... |
#ifndef Irq2Operation_H
#define Irq2Operation_H
#include "PinOperation.h"
#include "GPIOTypes.h"
class Irq2Operation : public PinOperation {
public:
Irq2Operation();
virtual string toString();
virtual bool execute(AppInfo * appInfo);
static string help();
string cmd1;
string cmd2;
l... |
//
// Created by Frank Steiler on 9/28/16 as part of NOOBS4IoT (https://github.com/steilerDev/NOOBS4IoT)
//
// Utility.h:
// This file contains general utility functions required by the application.
// For more information see https://github.com/steilerDev/NOOBS4IoT/wiki.
//
// This file is based on several f... |
/*
°ÔÀÓ ¼³¸í
- ºÏÂÊ¿¡¼´Â °øÁ߸÷°ú Áö»ó¸÷ÀÌ ÀÏÁ¤ ÁÖ±â·Î »ý»ê
- ³²ÂÊ¿¡¼´Â ÁÂŬ¸¯(Áö»ó) ¿ìŬ¸¯(°øÁß) »ý»ê°¡´É
- ȸéÈçµé¸²Àº ³Ê¹« ¾îÁö·¯¿ï ¼ö ÀÖ¾î¼ °Ç¹°ÀÌ ¹ß»çÇÏ´Â ÃѾËÀÌ °Ç¹°¿¡ ºÎµúÈú °æ¿ì¸¸ ȸéÈçµé¸²
- ÃÑ¾Ë È»ì ÆÄÆ¼Å¬, Äɸ¯ÅÍ ÀüºÎ ½ºÇÁ¶óÀÌÆ® À̹ÌÁö »ç¿ë
- ÃÑ¾Ë ¹ß»ç½Ã »ç¿îµå Ãâ·Â, ij¸¯ÅÍ »ý¼º½Ã »ç¿îµå Ãâ·Â, ... |
// This file is part of GtkEveMon.
//
// GtkEveMon 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.
//
// You should have received a ... |
#ifndef DEFINES_H
#define DEFINES_H
#include <QString>
#include <QStringList>
#include "core/warlibexception.h"
const int SAVE_VERSION(3);
const QString MODEL_PATH("models");
const QString ARMY_PATH("armies");
const QString MAGICAL_OBJECT_PATH("magical_objects");
const QString TERRAIN_PATH("terrains");
const QString... |
/*
* arch/arch/mach-ixp4xx/fsg-pci.c
*
* FSG board-level PCI initialization
*
* Author: Rod Whitby <rod@whitby.id.au>
* Maintainer: http://www.nslu2-linux.org/
*
* based on ixdp425-pci.c:
* Copyright (C) 2002 Intel Corporation.
* Copyright (C) 2003-2004 MontaVista Software, Inc.
*
* This program is free sof... |
/*
This file is part of Cute Chess.
Cute Chess 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.
Cute Chess is distri... |
/*
* @note : Óû§·þÎñÆ÷
* @author £ºAndy.Ro
* @email £ºQwuloo@qq.com
* @date £º2014-06
* @mark £ºÓõ½ÁËËĸöÀࣺxClient£¬xClientFactory£¬xConnection£¬xConnectionFactory ¹©Íⲿ¼Ì³Ð(λÓÚ/xNet/Ŀ¼ÏÂ)
*
*/
#ifndef _XUSER_SERVER_H_INCLUDE_
#define _XUSER_SERVER_H_INCLUDE_
// Óõ½µÄÏà¹ØÀàÉùÃ÷
class xClient; // ×÷Ϊ TCP ... |
/*
* GPInstruct - Programmed Instruction
* Copyright (C) 2011-2012 Arnel A. Borja <kyoushuu@yahoo.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... |
/* See LICENSE file for copyright and license details. */
#define IN_LIBGAMMA_DUMMY
#include "common.h"
/**
* Restore the gamma ramps all CRTC:s with a partition to the system settings
*
* @param this The partition state
* @return Zero on success, otherwise (negative) the value of an
* ... |
/*
* log_op.h
*
* Created on: Dec 4, 2013
* Author: reboot
*/
#ifndef LOG_OP_H_
#define LOG_OP_H_
#include <glutil.h>
#include <fp_types.h>
#include <im_hdr.h>
char *
g_dgetf (char *str);
typedef int
_d_ag_handle_i (__g_handle);
int
determine_datatype (__g_handle hdl, char *file);
int
g_proc_mr (__g_ha... |
/*
* Copyright (C) 2012 Yee Young Han <websearch@naver.com> (http://blog.naver.com/websearch)
*
* 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
*... |
#ifndef __PLAYLIST_PLAYER__HOD
#define __PLAYLIST_PLAYER__HOD
#include <playlist/playlist.h>
#include <audio/audio.h>
#define PLAYLIST_PLAYER_MAX_PRESETS 12
typedef enum {
PLAYLIST_PLAYER_STOPPED,
PLAYLIST_PLAYER_PLAYING,
PLAYLIST_PLAYER_PAUSED,
} playlist_player_state_t;
typedef enum {
PLP_CMD_DESTROY = 0,... |
#include "bwa.h"
#include "bwamem.h"
#include "bntseq.h"
#include "kstring.h"
/***************************
* SMEM iterator interface *
***************************/
struct __smem_i {
const bwt_t *bwt;
const uint8_t *query;
int start, len;
bwtintv_v *matches; // matches; to be returned by smem_next()
bwtintv_v *... |
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#ifndef CL_DEMOSMOOTHING_H
#define CL_DEMOSMOOTHING_H
#ifdef _WIN32
#pragma once
#endif
#include "vector.h"
#include "qua... |
semaphore rmutex = 1;
semaphore wmutex = 1;
int readcount = 0;
void reader()
{
while(1)
{
P(rmutex);
readcount++;
if(readcount == 0) P(wmutex);
V(rmutex);
read_data_base();
P(rmutex);
readcount--;
if(readcount == 0) V(wmutex);
V(rmutex);
use_dataread();
}
}
void writer()
{
while(1)
{
thi... |
#include <avr/io.h>
#include <avr/pgmspace.h>
#include <stdint.h>
#include <util/delay.h>
#include <stdio.h>
#include <stdlib.h>
#include "sprite.h"
#include "lcd.h"
#include "graphics.h"
#include "cpu_speed.h"
#define BUFF_LENGTH 20
// define some macros
#define BAUD 9600 // defi... |
#pragma once
#include "math.h"
#include "CVector3.h"
#include "CRay3.h"
namespace Math
{
class CPlane3
{
public:
double dDistance;
CVector3 vNormal;
//! Default constructor
inline CPlane3 ()
{
dDistance = 0.0;
}
//! Constructor with components
inline CPlane3 (double dNewDistance, CVec... |
/*
Copyright (C) 2016 Thomas Mijieux
This file is part of libtomtix.
libtomtix 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.
... |
#pragma once
#include <Scene.h>
#include <Collider.h>
#include <Renderer.h>
#include <ResourceManager.h>
#include <cameras/TopDownCamera.h>
#include <map/Direction.h>
#include <components/HealthComponent.h>
#include "Room.h"
class HudRenderer;
class HallwayRoom : public Room {
public:
HallwayRoom(bool includeO... |
#ifndef DRILL_NET_SOCKET_H_
#define DRILL_NET_SOCKET_H_
#include <drill/net/addr_inet.h>
#include <string>
struct tcp_info;
namespace drill {
namespace net {
class Socket {
public:
Socket(bool own = false);
~Socket();
bool connect( AddrInet& addr) ;
bool bind( AddrInet& addr) ;
bool listen(int... |
/* STM32F1 Test of timer IRQ
LED is blinked in timer ISR. Timer is disabled in IRQ, then re-enabled after a
poll loop. Uses the update interrupt.
Tests:
Timer Interrupt.
GPIO basic output
The board used is the stm32f4-discovery with LEDs on port D pins 12-15
*/
/*
* This file is part of the libopencm3 project.
*
... |
#pragma once
#include <string>
#include <unordered_map>
#include <functional>
#include <boost/property_tree/ptree.hpp>
#include "Scene.h"
#include "Material.h"
#include "Vec3.h"
typedef std::function<std::shared_ptr<Material>(boost::property_tree::ptree&)> MaterialLoader;
typedef std::function<std::shared_ptr<Hitab... |
#ifndef INCLUDE_DRIVER_GRIDSEED_H
#define INCLUDE_DRIVER_GRIDSEED_H
#ifdef USE_GRIDSEED
#include "util.h"
#define GRIDSEED_MINER_THREADS 1
#define GRIDSEED_LATENCY 4
#define GRIDSEED_DEFAULT_BAUD 115200
#define GRIDSEED_DEFAULT_FREQUENCY "600"
#define GRIDSEED_DEFAULT_CHIPS 5
#define GRIDSEED_DEFAULT_MODULES 1... |
/*
*
* Copyright 2017 Eero Talus
*
* This file is part of Open Image Pipeline.
*
* Open Image Pipeline 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 optio... |
/**
******************************************************************************
* @file I2C/I2C_TwoBoards_ComPolling/Inc/main.h
* @author MCD Application Team
* @version V1.2.7
* @date 17-February-2017
* @brief Header for main.c module
**************************************************... |
/*
* This file is part of the TVShows source code.
*
* TVShows 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.
*
* You sh... |
#ifndef PENNY_BITS_H_
#define PENNY_BITS_H_
#pragma once
#include <assert.h>
#include <stdint.h>
#include <penny/math.h>
/* based on the second algorithm given here:
* https://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel
*
* Also see:
* - http://corner.squareup.com/2013/07/reversing-bits-on-arm.... |
#include <ctype.h>
#include "cw.h"
int cw_stricmp(char const *a, char const *b)
{
for (;; a++, b++) {
int d = tolower(*a) - tolower(*b);
if (d != 0 || !*a)
return d;
}
}
|
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2008 University of California
//
// BOINC 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 Licens... |
/* utility/julian_add_hours.c */
/* ---------------------------------------------------- */
/* Freely available software: see Appaserver.org */
/* ---------------------------------------------------- */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "timlib.h"
#include "julian.h"
#include "piec... |
#ifndef SETTINGSLOCKER_H
#define SETTINGSLOCKER_H
class QSettings;
#include "global.h"
#include <QMutex>
class OLOLORD_EXPORT SettingsLocker
{
private:
static QMutex mutex;
private:
QSettings * const S;
public:
explicit SettingsLocker();
~SettingsLocker();
public:
QSettings *operator ->() const;... |
/* libpronghorn Block Range Library
* Copyright (C) 2012 Department of Defence Australia
*
* 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
* (at your op... |
#pragma once
#include "VM/Compiler/AST/ASTNode.h"
namespace Compiler {
class InvokeNativeNode : public ASTNode {
public:
void Accept(ASTVisitor &visitor) override { visitor.Visit(this); }
};
}
|
#pragma once
namespace minedotcpp
{
namespace common
{
enum cell_param
{
// State
cell_states = 3,
cell_state_empty = 0,
cell_state_filled = 1,
cell_state_wall = 2,
// Flags
cell_flags = 3 << 2,
cell_flag_none = 0 << 2,
cell_flag_has_mine = 1 << 2,
cell_flag_doesnt_have_mine = 2 ... |
#ifndef GOAP_COMPARERSTATEMETER_H
#define GOAP_COMPARERSTATEMETER_H
#include "refcounter.h"
#include "goap/istate.h"
#include "planningstatemeter.h"
#include "numericstatecomparer.h"
#include "newptr.h"
namespace goap
{
/**
* Helper class for measuring the distance from a given state to the goal state.
* This class m... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
static const char hpet_name[] = "/dev/hpet";
static const size_t timer_value_offset = 0xF0;
static volatile ui... |
/*******************************************
Author : LHearen
E-mail : LHearen@126.com
Time : 2016-02-24 16:23
Description : Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of t... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* s_string_add_string.c :+: :+: :+: ... |
#define pr_fmt(fmt) "market ] " fmt
#include <errno.h>
#include <math.h>
#include <string.h>
#include <gtk/gtk.h>
#include <ccutils/log.h>
#include "geye/ge.h"
#include "geye/calc.h"
#include "geye/event.h"
#include "geye/common.h"
static GtkStyleContext *gcontext;
enum {
NC_CODE = 0,
NC_PRICE,
NC_DIFF,
NC_DI... |
#include <stdio.h>
#include <stdlib.h>
#include "../aquaPicBus.h"
void apbMessageHandler(void);
struct apbObjStruct apbInstStruct;
apbObj apbInst = &apbInstStruct;
#define NUM_CHANNELS 4
uint16_t ct[] = {0x1122, 0x3344, 0x5566, 0x7788};
int main(int argc, char** argv) {
int i;
apb_init (apbInst,
... |
#ifndef CHESSY_PERFT_H
#define CHESSY_PERFT_H
#include "move.h"
#include "board.h"
uint64_t perft(int, struct CBoard *, int, int);
int run_all_tests();
#endif //CHESSY_PERFT_H
|
/* Copyright 2016 Alexander Melnyk / Олександр Мельник
*
* This file is part of brickfuck package.
*
* brickfuck 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 yo... |
/* FSCompiler.h Copyright (c) 1998-2009 Philippe Mougin. */
/* This software is open source. See the license. */
#import <Foundation/Foundation.h>
#import "FSCompilationResult.h"
@class FSSymbolTable, FSMethod;
enum e_token_type { KW_FALSE, KW_TRUE, KW_NIL, KW_SUPER, OPEN_BRACKET, CLOSE_BRACKET, NAME, END, SN... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... |
/*
========================================================================
D O O M R e t r o
The classic, refined DOOM source port. For Windows PC.
========================================================================
Copyright © 1993-2012 id Software LLC, a ZeniMax Media c... |
#ifndef BUILTINLED_H
#define BUILTINLED_H
#include "Light.h"
#define BUILTIN_LED_GPIO 2
template <const char* const name>
class BuiltinLED : public Light<name, BUILTIN_LED_GPIO> {
public:
BuiltinLED(Device* device) :
Light<name, BUILTIN_LED_GPIO>(device) {
}
};
#endif
|
/*
* mainwindow.h
* Copyright 2017 - ~, Apin <apin.klas@gmail.com>
*
* This file is part of Sultan.
*
* 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 ... |
/*
# Copyright (C) 2005-2011 MaNGOS <http://www.getmangos.com/>
*
# Copyright (C) 2008-2011 Trinity <http://www.trinitycore.org/>
*
# Copyright (C) 2006-2011 ScriptDev2 <http://www.scriptdev2.com/>
*
# Copyright (C) 2010-2011 DarkmoonCore <http://www.darkmooncore.org/>
*
* This program is free software; you ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.