text
stringlengths
4
6.14k
/* This file is part of Darling. Copyright (C) 2020 Lubos Dolezel Darling 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. Darling i...
// -*- C++ -*- // // generated by wxGlade 0.7.2 // // Example for compiling a single file project under Linux using g++: // g++ MyApp.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp // // Example for compiling a multi file project under Linux using g++: // g++ main.cpp $(wx-config --libs) $(wx-config --cxxfl...
/* * Copyright (c) 2010, * Gavriloaie Eugen-Andrei (shiretu@gmail.com) * * This file is part of crtmpserver. * crtmpserver 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 L...
/* stringhelp.h * Copyright (C) 1998, 1999, 2000, 2001, 2003, * 2006, 2007, 2009 Free Software Foundation, Inc. * 2015 g10 Code GmbH * * This file is part of GnuPG. * * GnuPG is free software; you can redistribute it and/or modify it * under the terms of either * * - the GNU Le...
/* LUFA Library Copyright (C) Dean Camera, 2010. dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ /* Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and...
// -*- C++ -*- /*! * * THIS FILE IS GENERATED AUTOMATICALLY!! DO NOT EDIT!! * * @file shmodel_typeSkel.h * @brief shmodel_type server skeleton header wrapper code * @date Tue Jun 10 12:11:41 2014 * */ #ifndef _SHMODEL_TYPESKEL_H #define _SHMODEL_TYPESKEL_H #include <rtm/config_rtc.h> #undef PACKAGE_BUGREP...
/** ****************************************************************************** * @file SPI/SPI_FullDuplex_ComDMA/Inc/main.h * @author MCD Application Team * @version V1.1.0 * @date 17-February-2017 * @brief Header for main.c module ******************************************************...
#include <stdio.h> #include <pthread.h> int mx=0, my=0; int x=2, y=2; void *thread1() { int a; __CPROVER_atomic_begin(); __CPROVER_assume(mx==0); mx=1; __CPROVER_atomic_end(); a = x; __CPROVER_atomic_begin(); __CPROVER_assume(my==0); my=1; __CPROVER_atomic_end(); y = y + a; my = 0; a = a + 1; ...
/** * This file is part of ebtables-dhcpsnoopingd. * * Ebtables-dhcpsnoopingd 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...
// SPDX-License-Identifier: GPL-3.0-or-later #include "value.h" inline calculated_number rrdr2value(RRDR *r, long i, RRDR_OPTIONS options, int *all_values_are_null) { if (r->st_needs_lock) rrdset_check_rdlock(r->st); long c; RRDDIM *d; calculated_number *cn = &r->v[ i * r->d ]; RRDR_VAL...
#include <stdlib.h> #include <stdio.h> int main() { char nome1[50],nome2[50],clone[50],concatenado[100]; int i,j,tamanho1,tamanho2,igualdade,maior; /*LER NOMES E ESCREVER*/ printf("Digite o nome do aluno 1\n"); gets(nome1); printf("Digite o nome do aluno 2\n"); gets(nome2); printf("\n\n%s\n%s\n"...
/*========================================================================= Program: ParaView Module: pqLinksEditor.h Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of the ParaVie...
/********************************************************** * Copyright 2009 VMware, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, ...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2010 The University of Tennessee a...
// // ConstrainedProbabilityCost.h // // Pathfinder, an optimal path finding program for graphs with // multi-weighted edges under specified constraints. // // Copyright (c) 2013 Bradley Denby. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Publ...
#include"singleton.h" Foo foo = { .name="tom", .num=10}; int main() { printf("name: %s, num: %i \n", foo.name, foo.num); return 0; }
// // API.h // librecon // // Created by Sergio Garcia on 16/09/14. // Copyright (c) 2014 Sergio Garcia. All rights reserved. // #import <Foundation/Foundation.h> #import "AFNetworking.h" #define SCHEDULES @"schedules" #define ASSISTANTS @"assistants" #define TXOKOS @"txokos" #define STANDS @"expositors" #define ...
/* Copyright (c) 2017 Julian Merkle This file is part of telnet-honeypot. telnet-honeypot 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 opti...
/* * linked_list.h * * Copyright 2013-2021 Michael Zillgith * * This file is part of libIEC61850. * * libIEC61850 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,...
#include <stdlib.h> #include "sae_par.h" #include "ndf_err.h" #include "ndf_ast.h" #include "ndf1.h" #include "mers.h" void ndf1Psffl( const char *list, int mxel, size_t ibeg[], size_t iend[], int *el, int *status ){ /* *+ * Name: * ndf1Psffl * Purpose: * Parse a foreign format list. * Syn...
#ifndef BYTES_H #define BYTES_H #include <cassert> #include <algorithm> namespace ds { namespace core { template <typename valueT, typename bufT> void valueToBytes(const valueT value, bufT& buffer) { // The buffer must be correctly sized prior to this operation assert(sizeof(value) == buffer.size()); a...
/* * buffer.c * * Created on: 2016-2-21 * Author: dan */
/************************************************************************ Copyright Chris Newey 2013 qiptables@hotmail.com This file is part of Qiptables. Qiptables is distributed under the terms of the GNU General Public License Qiptables is free software: you can redistribute it and/or modify it under the terms o...
/******************************************* Author : LHearen E-mail : LHearen@126.com Time : 2015-12-25 16:33 Description : You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is ...
//////////////////////////////////////////////////////////////////////////////// // // W R I T T E N B Y I M P E R A S I G E N // // Version 20150205.0 // Thu May 7 10:28:35 2015 // //////////////////////////////////////////////////////////////...
/* Copyright (C) 2016 Alexey Dynda This file is part of Nixie Library. 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 option) an...
/** * Marlin 3D Printer Firmware * * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * SAMD51 HAL developed by Giuliano Zaro (AKA GMagician) * * 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...
/////////////////////////////////////////////////////////////////////////////// // // Copyright (2013) Alexander Stukowski // // This file is part of OVITO (Open Visualization Tool). // // OVITO is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as publis...
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple x86_64-linux-gnu -Wincompatible-pointer-types // // Tests for the pass_object_size attribute // Non-failure cases are covered in test/CodeGen/pass-object-size.c void a(void *p __attribute__((pass_object_size))); //expected-error{{'pass_object_size' attribute takes on...
long_function_name (a, b ); long_function_name ( a, b ); long_function_name ({ a; }, b ); long_function_name ( { a; }, b ); long_function_name (a, { b; } ); long_function_name ( a, { b; } ); long_function_name ({ a; }, { b...
/* * Copyright (C) 2013 Tek Counsel LLC * * 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 option) any later version. * * This program is di...
/* Remembering/selecting of previous passwords */ #include <tank.h> #include <dir.h> #include <unistd.h> #include <string.h> typedef struct { char name[21]; } passstruct; static passstruct *ps; static long pn; #define list_length 20 void read_passwords(void) { FILE *f; pn = 0; ps = allocate(max_files*sizeo...
//////////////////////////////////////////////////////////// // // squarly-hoop // Copyright (C) 2016 Pampu Andrei (aka. Woky) (andrei.sergiu98@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 Soft...
/* * wiiuse * * Written By: * Michael Laforest < para > * Email: < thepara (--AT--) g m a i l [--DOT--] com > * * Copyright 2006-2007 * * This file is part of wiiuse. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publis...
#pragma once /* Umbrella header for the Filter library */ #include "FilterClass.h" #include "AverageFilter.h" #include "UserFilter.h" #include "DerivativeFilter.h" #include "FilterWithBuffer.h" #include "LowPassFilter.h" #include "ModeFilter.h" #include "Butter.h"
#include "xsltp_config.h" #include "xsltp_core.h" void xsltp_list_sort(xsltp_list_t *list, int (*cmp)(const xsltp_list_t *, const xsltp_list_t *)) { xsltp_list_t *el, *prev, *next; el = xsltp_list_first(list); if (el == xsltp_list_last(list)) { return; } for (el = xsltp_list_next(el); el...
/* * coder.h * Copyright (C) 2013 Ilan Pegoraro and Luís Neves * * 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 option) any later version...
/* * 3dyne Legacy Tools GPL Source Code * * Copyright (C) 1996-2012 Matthias C. Berger & Simon Berger. * * This file is part of the 3dyne Legacy Tools GPL Source Code ("3dyne Legacy * Tools Source Code"). * * 3dyne Legacy Tools Source Code is free software: you can redistribute it * and/or modify it unde...
/*- * Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */ #ifndef _UTF8String_H_ #define _UTF8String_H_ #include <OCTET_STRING.h> #ifdef __cplusplus extern "C" { #endif typedef OCTET_STRING_t UTF8String_t; /* Imple...
/* 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_2; atomic_int atom_1_r1_1; atomic_int atom_1_r3_2; void *t0(void *arg){ label_1:; int v2_r1 = at...
/* dbmstore.c - Add a new key/data pair to the database. */ /* This file is part of GDBM, the GNU data base manager, by Philip A. Nelson. Copyright (C) 1990 Free Software Foundation, Inc. GDBM is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as...
#ifndef PREGUNTASINO_H #define PREGUNTASINO_H #include <QObject> #include "preguntabase.h" #include "../widgets/wdgtsino.h" class PreguntaSiNo : public PreguntaBase { public: PreguntaSiNo(const QString &label, const QString &nota, bool showNotes, QObject *parent = 0); #ifdef USEMONGO PreguntaSiNo(mongo::BSONO...
#pragma once #include <vgKernel/vgkVec3.h> #include <vgKernel/vgkUniqueID.h> namespace vgGIS3D { class RouteMap { public: virtual void render() {} virtual void findRoute(vgKernel::Vec3 startPoint, vgKernel::Vec3 endPoint, vector<int>& route) {} virtual bool getRouteInfo(vgKernel::Vec3 poi...
#ifndef _PARSE_H_ #define _PARSE_H_ /* Process a tri-column ijv file and construct the J matrix */ void parse_tri_file(char *fname, float ***J, int *N); #endif
/* * Copyright (C) 2020 Fernando Escribano Macias * * This file is part of the Root Engine. * * The Root 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 * ...
#ifndef GRPPI_SEQ_SAXPY_H #define GRPPI_SEQ_SAXPY_H #include <vector> #include <grppi/grppi.h> void grppi_seq_saxpy(double a, const std::vector<double> & x, std::vector<double> & y) { grppi::sequential_execution ex; grppi::map(ex, begin(x), end(x), begin(y), [a](double valx, double valy) { return a * valx...
// Copyright 2019-2020 CERN and copyright holders of ALICE O2. // See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. // All rights not expressly granted are reserved. // // This software is distributed under the terms of the GNU General Public // License v3 (GPL Version 3), copied verbatim...
#ifndef ATTACK_MENU_H #define ATTACK_MENU_H #include "fight.h" typedef struct Action_menu Action_menu; //Constructor Action_menu *create_action_menu(Fight *fight, ALLEGRO_FONT *font); //Destructor (frees the fighter but not the font) void free_action_menu(Action_menu *a_m); //Destructor (frees neither the...
/** ** @file qnerror.h ** @author Angelo Prudentino ** @date 2016-12-06 ** ** Copyright 2016 Angelo Prudentino <angelo.prudentino@studenti.polito.it>. ** ** 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 S...
/* * TCBuffer.h * * Copyright 2016 Avérous Julien-Pierre * * This file is part of TorChat. * * TorChat 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...
/************************************************************************ ** ** @file ** @author Roman Telezhynskyi <dismine(at)gmail.com> ** @date 20 9, 2017 ** ** @brief ** @copyright ** This source code is part of the Valentina project, a pattern making ** program, whose allow create and modeling p...
/* * donnatella - Copyright (C) 2014 Olivier Brunel * * debug.c * Copyright (C) 2014 Olivier Brunel <jjk@jjacky.com> * * This file is part of donnatella. * * donnatella 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 Softwa...
#pragma once #include "theory.h" #include <unordered_set> #include <unordered_map> #include <list> namespace smt { class ov_value_listener; class var_value { public: var_value() {} virtual ~var_value() {} }; class ov_theory : public theory { friend class ov_value_listener; public: ov_theory(sat_core &sat...
/* * This file is part of Luma3DS * Copyright (C) 2016-2017 Aurora Wright, TuxSH * * 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 yo...
#include <config.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <glib.h> #include "server.h" static GTimer *timer; static void test_server_info_load (void) { int i; char *dirs [] = { SERVERINFODIR, NULL }; Bonobo_ServerInfoList servers; GHashTable *hash = NULL; fprintf (stderr, "Testing ...
/* CAMERA: convex accelerated maximum entropy reconstruction algorithm. * Copyright (C) 2015-2016 Bradley Worley <geekysuavo@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;...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2006 The University of Tennessee and The University * of Tennessee Resea...
/* Qlom is copyright Openismus GmbH, 2009 * * This file is part of Qlom * * Qlom 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....
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Assistant of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage ** Licensees holding valid co...
/* $Id: SendWidget.h 2769 2012-06-12 23:18:08Z IMPOMEZIA $ * IMPOMEZIA Simple Chat * Copyright © 2008-2012 IMPOMEZIA <schat@impomezia.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 Found...
#ifdef USE_NORCROFT_PRAGMAS #pragma force_top_level #pragma include_only_once #endif /* * C compiler file cfe/lex.h: * Copyright (C) Acorn Computers Ltd., 1988 * Copyright (C) Codemist Ltd., 1988 */ /* * RCS $Revision: 1.1 $ * Checkin $Date: 1992/03/23 15:10:26 $ * Revising $Author: nickc $ */ #ifndef _lex_h ...
/* GEOTRIVIALUtilities is an under-construction set of C functions which supports i/o interface and other utilities for models like GEOtop GEOTRIVIALUtilities Version 1.0 file read_command_line.h Copyright (c), 2011 Emanuele Cordano This file is part of GEOTRIVIALUtilities. GEOTRIVIALUtilities is free software...
/* GormButtonEditor.h - Editor for buttons. * * Copyright (C) 2002 Free Software Foundation, Inc. * * Author: Pierre-Yves Rivaille * Date: Aug 2002 * * This file is part of GNUstep. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Licens...
/** * @file MainTabBarController.h * * @author luckytianyiyan@gmail.com * @date 15/10/31 * @copyright Copyright © 2015年 luckytianyiyan. All rights reserved. */ #import <UIKit/UIKit.h> #import "MainTabBarViewModel.h" @interface MainTabBarController : UITabBarController @property (strong, nonatomic) MainTabBar...
/* * mwmmenu - a program to produce application menus for MWM and other window * managers, based on freedesktop.org desktop entries. * * Copyright (C) 2015 Charles Bos * * 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...
#include "getch.h" char getch() { char buf = 0; struct termios old={0}; if (tcgetattr(0, &old) < 0) perror("tcsetattr()"); old.c_lflag &= ~ICANON; old.c_lflag &= ~ECHO; old.c_cc[VMIN] = 1; old.c_cc[VTIME] = 0; if (tcsetattr(0, TCSANOW, &old) < 0) perror("tcsetattr ICANON"); if (read(0, &buf, ...
/****************************************************************************** * * Copyright (C) 1999-2012 Broadcom Corporation * * 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: * ...
//====================================================================================================================== // // This file is part of waLBerla. waLBerla 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 ...
#include <stdio.h> #include <netinet/in.h> #include <sys/socket.h> #include <memory.h> #define PORT 2000 int main(void) { int c_socket, s_socket; int len; struct sockaddr_in c_addr, s_addr; int result; int a; int b; char op; s_socket = socket(PF_INET, SOCK_STREAM, 0); me...
/* * HebbNeuron.h * * Created on: Nov 14, 2016 * Author: maria */ #ifndef HEBBNEURON_H_ #define HEBBNEURON_H_ #include<math.h> #include<stdlib.h> class HebbNeuron { public: double * weight; // HebbNeuron * input; double * input; int size; double w_0; double learn_number; double output; HebbNeuro...
/* * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.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 2 of the License, or * (at your option) any later versio...
#pragma once #ifndef LOG_H #define LOG_H class Log { public: Log() { this->using_file = false; this->outfile = ""; this->log_enum[1] = "Debug"; this->log_enum[2] = "Error"; this->log_enum[3] = "Notification"; this->log_enum[4] = "Test"; }; /* GetInstance */ ...
#ifndef STORM_STORAGE_DD_CUDDADDITERATOR_H_ #define STORM_STORAGE_DD_CUDDADDITERATOR_H_ #include <cstdint> #include <memory> #include <set> #include <tuple> #include <utility> #include "storm/storage/dd/AddIterator.h" #include "storm/storage/expressions/SimpleValuation.h" // Include the C++-interface of CUDD. #inclu...
/* * Copyright (C) 2012-2015 Leo Grange <grangeleo@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 the License, or * (at your option) any later version. *...
/* * Copyright 2010-2015 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 ...
/* * This file is part of GReminder. * * Copyright 2014 Marc-Antoine Perennou <Marc-Antoine@Perennou.com> * * GReminder 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...
#include <linux/init.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/proc_fs.h> #include <linux/slab.h> #include <linux/types.h> #include <asm/ptrace.h> #include <asm/uaccess.h> #define SAMPLE_BUFFER_SIZE 8192 static char *sample_buffer; static char *sample_buffer_pos; static int prof_running = ...
#include "../syscall/sysCall.h" #include "../include/i486/cs452.h" #include "../include/i486/machine/serial.h" /* make matrix task running up to full tasks(63 tasks) */ #undef MATRIX_TASKS #include "../train/ironBird.h" char *testStr="1234567890abcdefghijklmnopqrstuvwxyz"; #define STAT_TID 3 /* higest priority + ...
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QApplication> #include "Kek.h" namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); protected: void changeEvent(QEvent *e); private slots: ...
#ifndef _ASM_SCORE_PROCESSOR_H #define _ASM_SCORE_PROCESSOR_H #include <linux/cpumask.h> #include <linux/threads.h> #include <asm/segment.h> struct task_struct; /* * System setup and hardware flags.. */ extern void (*cpu_wait)(void); extern unsigned long thread_saved_pc(struct task_struct *tsk); extern void star...
/** * @file * This file contains the declaration and implementation * of the templated Func_lt, which is used to to compare to values ( a < b). * * @brief Declaration and implementation of Func__lt * * (c) Copyright 2009- under GPL version 3 * @date Last modified: $Date: 2012-06-12 10:25:58 +0200 (Tue, 12 Jun 2...
/* ns2vi.c * * Copyright 2006-2012 David G. Barnes, Paul Bourke, Christopher Fluke * * This file is part of S2PLOT. * * S2PLOT 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 Li...
#ifndef MREPORTKEY_P_H #define MREPORTKEY_P_H #include <QObject> #include "mreportkey.h" class MReportKey_P : public QObject { Q_OBJECT friend class MReportKey; public: signals: public slots: private: QString m__Name; MReportKey::KeyType m__KT; MReportKey::DataType m__DT; QString m__Source; QS...
#include <check.h> #include "hawser/hawser.h" #include "hawser/service/lambda.h" static const char * VALID_IDS[] = { "function", ( "1234567890123456789012345678901234567890" "123456789012345678901234" ), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz", "0123456789", "_", "-" }; static const ...
/** * \file * * Copyright (c) 2015 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * 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 ...
/*********************************************************************************** CryptoMiniSat -- Copyright (c) 2009 Mate Soos 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 ...
#ifndef TILE_H #define TILE_H #include <string> struct SDL_Surface; struct SDL_Texture; struct SDL_Renderer; class tile { int type; std::string path; SDL_Surface *srf; SDL_Texture *tex; public: tile(); ~tile(); void set_tile_path(const std::string &path); void generate_texture(SDL_Renderer *rend); void d...
/* * QuarkPlayer, a Phonon media player * Copyright (C) 2008-2011 Tanguy Krotoff <tkrotoff@gmail.com> * * 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 3 of the Lice...
/* * Copyright (C) 2016 Stuart Howarth <showarth@marxoft.co.uk> * * 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 in the hope that it will be use...
/* # Copyright (C) 2005-2011 MaNGOS <http://www.getmangos.com/> * # Copyright (C) 2008-2011 Trinity <http://www.trinitycore.org/> * # Copyright (C) 2010-2011 DarkmoonCore <http://www.darkmooncore.org/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gener...
/* Mosh: the mobile shell Copyright 2012 Keith Winstein 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 option) any later version....
/* * RDB - A NoSQL local database written in C++ * Author: https://github.com/MilkywayPwns * Date: 13 - 10 - 2016 */ namespace RDB::Database { class DataEntry { protected: std::string _raw; public: DataEntry() { _raw = ""; } DataEntry(std::string str) { _raw = str; } DataEntry(const char...
#pragma once #include <cstdint> #include <cstddef> #include <vector> #include <ncgcpp/ntrcard.h> #include "platform.h" using std::uint8_t; using std::uint16_t; using std::uint32_t; // Utility -- s must be a power of two and have no side effects. #define PAGE_ROUND_UP(x, s) ( ((x) + (s)-1) & (~((s)-1)) ) #define P...
#include <stdio.h> #include <cs50.h> int main() { // asks for an input and gets it as long printf("Number: "); long num = GetLongLong(); // gets the length of the credit card number int len = 0; long num2 = num; while (num2 >= 10) { num2 = num2 / 10; len++; } ...
/* * Copyright (C) 2013 Nivis LLC. * Email: opensource@nivis.com * Website: http://www.nivis.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, version 3 of the License. * * Redistribution...
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. This file is part of Quake III Arena source code. Quake III Arena source code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
#pragma once #include <string> namespace util { std::string Trim(std::string str, const char * delimiters = " \t\r\n"); } // namespace util
#include "display_rgb565_spi.h" class Display_ILI9486_spi : public Display_RGB565_spi8 { public: Display_ILI9486_spi( int nRotate, int nGpioCS=-1, int nGpioDC=201, int nGpioReset=1, int nGpioBackLight=65 ) : Display_RGB565_spi8( 320, 480, DISP_CTRL_MIRROR_V | DISP_CTRL_BGR, nRotate, nGpioCS, nGp...
/* * This file is part of the Yices SMT Solver. * Copyright (C) 2017 SRI International. * * Yices 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) a...
/** * @file group_internal.h * * purple * * Purple is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * source distribution. * * This program is free software; you can redistribute it and/or modify * it under the term...