text
stringlengths
4
6.14k
#pragma once #include "Scene.h" #include "Woman.h" #include "ReaZyu.h" #include "Botch.h" #include "Sweats.h" #include "CharaButton.h" #include "Button.h" #include <list> class GameScene : public Scene { public: GameScene(GameModes* gameMode, BasicInput* input); ~GameScene(); void init(); void update(); float tim...
/* * linux/net/sunrpc/sysctl.c * * Sysctl interface to sunrpc module. * * I would prefer to register the sunrpc table below sys/net, but that's * impossible at the moment. */ #include <linux/types.h> #include <linux/linkage.h> #include <linux/ctype.h> #include <linux/fs.h> #include <linux/sysctl.h> #include <li...
/* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved * Versions of malloc and friends that check their results, and never return * failure (they call fatal if they encounter an error). * * As far as I am concerned, the...
/*************************************************************************** sndhrdw/sblaster.c Soundblaster code ****************************************************************************/ #include "includes/sblaster.h" #include "sound/dac.h" /* operation modes 0x10 output 8 bit direct 0x14 output 8 ...
/* * A simple reboot and halt */ #include <stdio.h> #include <string.h> #include <unistd.h> int main(int argc, char *argv[]) { char *p = strchr(argv[0], '/'); if (p) p++; else p = argv[0]; if (strcmp(p, "halt") == 0) uadmin(A_SHUTDOWN,0,0); else uadmin(A_REBOOT,0,0); /* If we get here th...
/********************************************************************* * * Abstracts generic network device operation, and provide dummy * stub here if required. Each driver implementation hooks to * this interface * *********************************************************************/ #include "net_dev...
/** Native Code Examples Copyright (C) 2014 Bassel Bakr 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 any later version. This program i...
/* * display_gen.c * Pi4U * * Created by Panagiotis Hadjidoukas on 1/1/14. * Copyright 2014 ETH Zurich. All rights reserved. * */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "gnuplot_i.h" int display = 1; gnuplot_ctrl * g = NULL; char *BASENAME; // "curgen" // "samples" // "seeds"...
#ifndef __CONFIGURE_H__ #define __CONFIGURE_H__ #include <string> #include <libconfig.h++> using namespace libconfig; std::map<std::string,std::string> getConfiguration(); #endif
// printf関数、及びscanf関数を使用するために必要 #include <stdio.h> // int型を返すmain関数の宣言 int main() { // 変数の宣言 // 配列の宣言は name[size] で行う。添字は0〜(size-1)まで占有している。 int i; int a[11]; float tmp; // 入力 for (i = 0; i <= 10; i++) { // scanf関数。標準入力から入力を取得する。 // scanfには変数のアドレスを渡すため、& を語頭に付与する。 ...
// // Created by 欧阳建华 on 2017/8/11. // #ifndef SE_THREAD_POOL_H #define SE_THREAD_POOL_H #include <se/thread/thread.h> #include <se/thread/mutex.h> #include <se/thread/condition.h> #include <vector> #include <queue> #include <functional> namespace se { namespace thread { typedef std::function<void()> Task;...
/********************************************************************************* Copyright MCQ TECH GmbH 2012 $Autor:$ Dipl.-Ing. Steffen Kutsche $Id:$ $Date:$ 15.02.2012 Description: MODBUS-Configuration for mct_spi_aio-Driver Tracen der MODBUS-Kommandos erfolgt mit: #define/#undef CONFIG_MODBUS_CMD...
#include <unistd.h> #include <stdio.h> #include <arpa/inet.h> #include <pthread.h> #include <semaphore.h> #include <stdlib.h> #define ADAPT_FLAG(x) (x[7] & 0x20) #define ADAPT_LEN_OK(x) (x[8] >= 7) #define PCR_FLAG(x) (x[9] & 0x10) struct meta { int num; uint64_t diff, pcr; }; #define BACKLOG_SIZE 64 #define PACKE...
#ifndef DOCK_SOURCE_BUTTON_H // :) #define DOCK_SOURCE_BUTTON_H #include "tintedbuttonbase.h" class SourceButton : public TintedButtonBase { Q_OBJECT public: SourceButton(const QModelIndex& index, QWidget* parent = NULL); virtual ~SourceButton(); protected: virtual void indexChanged()...
#ifndef KBS_STRING_H #define KBS_STRING_H #include "kbs_Alphabet.h" #include "kbs_Types.h" typedef struct kbs_ustring{ Kbs_Ulong strLength; /** length of the string */ Kbs_Uchar *str; /** character array of length strLength plus terminating 0 */ Kbs_Alphabet *alphabet; /** the alphabet of th...
#define IDL4_INTERNAL #include <idl4/test.h> #define dprintf(a...) void pager_thread(void) { int r; l4_threadid_t src; l4_umword_t dw0, dw1; l4_msgdope_t result; unsigned int dummyint; l4_threadid_t mypagerid, dummyid, myid; dprintf("Pager starting up (%X.%d)\n", l4_myself().id.task, l4_myself().id....
#ifndef VECTOR_H #define VECTOR_H typedef struct Vector Vector; // Allocates Vector |v| with bytes per element |bs|. int VecNew(Vector **v, size_t bs); // Adds element to end of Vector |v|. int VecPush(Vector *v, void *data); // Removes last element in Vector |v|. int VecPop(Vector *v); // Overwrites element at |i...
/* This file is part of the KDE project Copyright ( C ) 2003 Nadeem Hasan <nhasan@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or ( at you...
/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * as published by the Free Software Foundation. * * This program is distributed...
// // BNWorkbenchViewController.h // BNApp // // Created by wujianqiang on 15/1/17. // Copyright (c) 2015年 wujianqiang. All rights reserved. // #import <UIKit/UIKit.h> @interface BNWorkbenchViewController : UITabBarController @end
/* * Copyright (C) 2010, 2012-2014 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence. ...
/* * linux/include/asm-arm/mmu_context.h * * Copyright (C) 1996 Russell King. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Changelog: * 27-06-1996 RMK Created ...
#ifndef RGRAPHICSSCENEQV_H #define RGRAPHICSSCENEQV_H #include <QGraphicsScene> #include <QStack> #include "RGraphicsScene.h" #include "RLine.h" #include "RPoint.h" #include "RCircle.h" #include "RArc.h" class RDocumentInterface; class RGraphicsItem; class RGraphicsViewQV; /** * Graphics scene. This class impleme...
// Copyleft 2013 Chris Korda // 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 any later version. /* chris korda revision history: rev date co...
#include <stdio.h> #include <wiringPi.h> #include <sys/time.h> int main() { wiringPiSetup(); pinMode(8,OUTPUT); pinMode(9,INPUT); int val; while(1) { digitalWrite(8,LOW); digitalWrite(8,HIGH); delayMicroseconds(10); digitalWrite(8,LOW); struct timeval start,end; while(1) { val=digitalRead...
/** * Copyright 2010 Dejan Jovanovic. * * This file is part of cutsat. * * Cutsat 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 versio...
/* 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[3]; atomic_int atom_1_r1_1; void *t0(void *arg){ label_1:; atomic_store_explicit(&vars[0], 2, memory_order_seq_cst); ato...
/* * Software License Agreement (BSD License) * * Object Pose Estimation (OPE) - www.cse.usf.edu/kkduncan/ope * Copyright (c) 2013, Kester Duncan * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
/* 9. Um coeficiente binomial, geralmente denotado (n?k), representa o número de possı́veis combinações de n elementos tomados k a k. Um “Triângulo de Pascal”, uma homenagem ao grande matemático Blaise Pascal, é uma tabela de valores de coeficientes combinatoriais para pequenos valores de n e k. Os nu...
#include "struct_write.h"
// ****************************************************************************** // // Filename: guiwindow.h // Project: Vogue // Author: Steven Ball // // Purpose: // A window container class, defines basic window functionality. // // Revision History: // Initial Revision - 26/09/06 // // Copyright (c) 2005-...
#ifndef SHAPELOADER_GLOBAL_H #define SHAPELOADER_GLOBAL_H #include <QtCore/qglobal.h> #if defined(SHAPELOADER_LIBRARY) # define SHAPELOADERSHARED_EXPORT Q_DECL_EXPORT #else # define SHAPELOADERSHARED_EXPORT Q_DECL_IMPORT #endif #endif // SHAPELOADER_GLOBAL_H
#ifndef METAIF_H #define METAIF_H #include "astElement.h" #include <map> class astIf : public astElement { public: astIf(); //metaCall branchingBlock; std::map<blocks::itemID, std::vector<astElement*> > branches;//branchPin and the branch itself }; #endif // METAIF_H
//*********************************************************** //* vbat.c //*********************************************************** //*********************************************************** //* Includes //*********************************************************** #include <avr/io.h> #include <stdlib....
#ifndef _MYACTIONGROUP_H_ #define _MYACTIONGROUP_H_ #include <QActionGroup> #include <QWidget> #include "myaction.h" class MyActionGroup : public QActionGroup { Q_OBJECT public: MyActionGroup ( QObject * parent ); void setChecked(int ID); int checked(); void clear(bool remove); void setActio...
/* 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[3]; atomic_int atom_1_r1_1; atomic_int atom_1_r12_1; void *t0(void *arg){ label_1:; atomic_store_explicit(&vars[0], 2, mem...
#ifndef ORBITALEQUATION_H #define ORBITALEQUATION_H // Local includes #include <src/includes/defines.h> #include <src/includes/lib.h> #include <src/includes/binaryoperations.h> #include <src/Interaction/interaction.h> #include <src/OneParticleOperator/oneparticleoperator.h> // Libraries #include <libconfig.h++> #inc...
/* * Copyright (c) The Shogun Machine Learning Toolbox * Written (W) 2015 Wu Lin * 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...
/** \file src/cbmimage.c * \brief Generic image handling * * Right now only contains a single function to create either a disk or a tape * image file. */ /* * cbmimage.c - Generic image handling. * * Written by * Andreas Boose <viceteam@t-online.de> * * This file is part of VICE, the Versatile Commodor...
/* test_main.c * * Copyright (C) 2006-2017 wolfSSL Inc. * * This file is part of wolfSSL. * * wolfSSL 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 opt...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NGAP-IEs" * found in "../support/ngap-r16.1.0/38413-g10.asn" * `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps` */ #ifndef _NGAP_RRCContainer_H_ #define _NGAP_RRCContainer_H_ #include <asn_application.h> /* In...
/** DAC.c ** * Authors: Ronald Macmaster and Parth Adhia * Created: September 27th 2016 * Description: Device Driver for our Digital to Analog converter * Runs on a TLV5616 DAC component * 4 pin SSI Interface * Lab: 5 * TA: Dylan Zika * Date: September 27th 2016 ***************************************...
/* * 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...
/****************************************************************************** * * * colours.h * * * ...
#pragma once #include "menuscreen.h" #include <cstdint> #include <memory> struct nk_context; typedef uint32_t nk_flags; namespace FARender { class AnimationPlayer; } namespace FAGui { class MenuHandler; class PauseMenuScreen : public MenuScreen { private: using Parent = MenuScreen; ...
#include <assert.h> #include <errno.h> #include <string.h> #include <snt_pool.h> #include <snt_schd.h> #include"snt_utility.h" #include"snt_log.h" SNTPool* sntPoolCreate(unsigned int num, unsigned int itemsize) { SNTPool* alloc; unsigned char* tmp; unsigned int i; const int size = (itemsize + sizeof(SNTPool)); /...
#ifndef wm_h #define wm_h /* * Sylvain BERTRAND <digital.ragnarok@gmail.com> * code protected by GNU GPL v3 */ extern gboolean wm_replace; extern gboolean wm_debug_xinerama; enum wm_state wm_state(void); void wm_set_state(enum wm_state state); void wm_restart_other(const gchar *path); void wm_restart(void); void wm_...
/* * main.c * scard * * Created by Michel Depeige on 22/12/2014. * Copyright (c) 2014 Michel Depeige. * * 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, or (at your...
#include <stdio.h> void sayHelloTo( char who[] ) { printf( "Hello, %s!", who ); }
/* * Beautiful Capi generates beautiful C API wrappers for your C++ classes * Copyright (C) 2015 Petr Petrovich Petrov * * This file is part of Beautiful Capi. * * Beautiful Capi is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the ...
/* * Unfuddle Tracker is a time tracking tool for Unfuddle service. * Copyright (C) 2012 Vadim Zakondyrin <thekondr@crystalnix.com> * * This file is part of Unfuddle Tracker. * * Unfuddle Tracker is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Licens...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import <Foundation/Foundation.h> @class NSDictionary; __attribute__((visibility("hidden"))) @interface WAPhoneNumberGeocoder : NSObject { NSDictionary *_maps; } + (id)shared...
/* File: draaugmentrequest.c Project: dragonfly Author: Douwe Vos Date: Dec 27, 2016 e-mail: dmvos2000(at)yahoo.com Copyright (C) 2016 Douwe Vos. 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 ...
/* * pata_opti.c - ATI PATA for new ATA layer * (C) 2005 Red Hat Inc * * Based on * linux/drivers/ide/pci/opti621.c Version 0.7 Sept 10, 2002 * * Copyright (C) 1996-1998 Linus Torvalds & authors (see below) * * Authors: * Jaromir Koutek <miri@punknet.cz>, * Jan Harkes <jaharkes@cwi.nl>, * Mark Lord...
/* * This file is part of the continuous space language and translation model toolkit * for statistical machine translation and large vocabulary speech recognition. * * Copyright 2015, Holger Schwenk, LIUM, University of Le Mans, France * * The CSLM toolkit is free software; you can redistribute it and/or modify ...
/* =========================================================================== Copyright (c) 2010-2012 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 versio...
/********************************************************************* Fits - View and manipulate FITS extensions and/or headers. Fits is part of GNU Astronomy Utilities (Gnuastro) package. Original author: Mohammad Akhlaghi <akhlaghi@gnu.org> Contributing author(s): Copyright (C) 2017, Free Software Foundation, ...
/******************************************************************************* moPostEffectDebug.h **************************************************************************** * * * This source is free software; y...
#pragma once #include "../GUIFactory.h" class GfxAssetCombiner : public Texturizable { public: GfxAssetCombiner(GUIFactory* factory); virtual ~GfxAssetCombiner(); //unique_ptr<GraphicsAsset> combine(GraphicsAsset* asset1, GraphicsAsset* asset2); unique_ptr<GraphicsAsset> combine(Sprite* sprite1, Sprite* sprite2);...
/* * Copyright (c) 2013 Mark Travis <mtravis15432+src@gmail.com> * All rights reserved. No warranty, explicit or implicit, provided. * * This file is part of InfiniSQL(tm). * InfiniSQL is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 * as ...
/******************************************************************************* * * Copyright (C) 2014-2018 Greg McGarragh <mcgarragh@atm.ox.ac.uk> * * This source code is licensed under the GNU General Public License (GPL), * Version 3. See the file COPYING for more details. * ***********************...
#pragma once /*************************************************************** * This source files comes from the xLights project * https://www.xlights.org * https://github.com/smeighan/xLights * See the github commit history for a record of contributing * developers. * Copyright claimed based on commit dates rec...
/* * emu_tran_file.h * * 11/09/14 DJG Added new function prototypes for emulator file * buffering and structure changes for buffering and other new * command line options * Created on: Jan 25, 2014 * Author: djg */ #ifndef EMU_TRAN_FILE_H_ #define EMU_TRAN_FILE_H_ // Information on disk image file...
/************************************************************************** * * 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 wit...
/* * Copyright 2011-2012 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 option) * any la...
#ifndef COMPMODELSTATICSERIAL_H #define COMPMODELSTATICSERIAL_H #include "../CompSerialize.h" #include "../../../ModelLayer/ObjData/SPos.h" namespace SerialCompModelStatic{ /** Identifiers for each serializable type */ enum Enum{ /** Dummy entry for serialization of incomplete types */ Invalid = 0, O...
/* * Copyright (C) 2014 Roland Dobai * * This file is part of ZyEHW. * * ZyEHW 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) 2015-2021 Marco Bortolin * * This file is part of IBMulator. * * IBMulator 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...
/* * Copyright (C) 1993,1994 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * complex.c routines for handling of complex numbers * -- Bernd Feige 4.05.1993 */ #include <math.h> #include "transform.h" #include "bf.h" GLOBAL double c_phase(complex cmpl) { ret...
@interface SBUIControlCenterVisualEffect : UIVisualEffect { NSInteger _style; } +(id)effectWithStyle:(NSInteger)arg1 ; -(id)copyWithZone:(NSZone*)arg1 ; -(id)effectConfig; @end
/* * Copyright © 2011 magical * * This file is part of spriterip; it is licensed under the GNU GPLv3 * and comes with NO WARRANTY. See rip.c for details. */ #ifndef NARC_H #define NARC_H #include "nitro.h" /* struct format_info */ #include "common.h" /* u32 */ struct NARC; extern struct format_info NARC_format;...
/* This file is part of QToyunda software Copyright (C) 2013 Sylvain "Skarsnik" Colinet <scolinet@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-2012 Matias Valdenegro <matias.valdenegro@gmail.com> * This file is part of KResearch. * * kesearch 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. * *...
#ifndef ACTIONPOOL_H #define ACTIONPOOL_H #include <QObject> #include "action.h" class Action; class ActionPool : public QObject { Q_OBJECT public: explicit ActionPool(QObject *parent = 0); virtual ~ActionPool(); QList<Action*> actions() const; void addAction(Action*); bool removeAction(Act...
#include "stm32f10x.h" #include "clock_hal.h" #include "main.h" volatile uint32_t ms_ticks; volatile uint32_t uwTimingDelay; RCC_ClocksTypeDef RCC_Clocks; /** * @brief Decrements the TimingDelay variable. * @param None * @retval None */ void TimingDelay_Decrement(void) { if (uwTimingDelay...
/* $License: Copyright (C) 2011 InvenSense Corporation, All Rights Reserved. See included License.txt for License information. $ */ /******************************************************************************* * * $Id: mlmath.c 5629 2011-06-11 03:13:08Z mcaramello $ * ***********************...
/* HHKfun.h - Auxiliary function definitions for H-H K channels. */ /* S. Engblom 2019-12-03 */ #ifndef HHKFUN_H #define HHKFUN_H /* forward declarations */ double HHK_alpha1(const double v); double HHK_beta1(const double v); #endif /* HHKFUN_H */
/* * stack_guard.c is a piece of uCon 2009 Capture The Flag code * Copyright (C) 2002 Marcos Alvares <marcos.alvares@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 vers...
/* io.h --- * * Filename: io.h * Author: Jules <archjules> * Created: Sun Dec 11 23:20:25 2016 (+0100) * Last-Updated: Sun Dec 11 23:21:06 2016 (+0100) * By: Jules <archjules> */ #ifndef IO_H #define IO_H uint8_t io_handle_read(struct CPU *, uint8_t port); void io_handle_write(struct CPU *, uint8_t...
#pragma once #include "stdafx.h" using namespace irr; using namespace video; using namespace System; namespace IrrlichtLime { namespace Video { [Flags] /// <summary> /// Enumeration values for enabling/disabling color planes for rendering. /// </summary> public enum class ColorPlane { /// <summary> /// No...
/* Copyright (C) 2014 Sergey Lamzin, https://github.com/sergeylamzin/stark This file is part of the StarK genome assembler. StarK 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 versi...
#include <Sensoria.h> #include <SensoriaCore/Communicator.h> #include <SensoriaCore/common.h> #include <SensoriaCore/utils.h> #include <SensoriaCore/debug.h> class ByteAddress: public SensoriaAddress { public: byte addr; // 0 = Broadcast, 1-255 = Valid client addresses boolean inUse; char* toString (char* buf, by...
// // HYCarouselViewCell.h // iOSAppFrame // // Created by chyrain on 2017/7/1. // Copyright © 2017年 Chyrain. All rights reserved. // #import <UIKit/UIKit.h> @interface HYCarouselViewCell : UICollectionViewCell @property (nonatomic, weak) UIImageView *iconView; @end
/******************************************************************** ** Copyright (c) 2018-2020 Guan Wenliang ** This file is part of the Berry default interpreter. ** skiars@qq.com, https://github.com/Skiars/berry ** See Copyright Notice in the LICENSE file or at ** https://github.com/Skiars/berry/blob/master/LICENSE...
#include <stdio.h> /* * Copied from include/linux/... */ #undef offsetof #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) /** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member. * @type: the type of the container struct this...
/*! * \file * * Copyright (c) 2010 Johann A. Briffa * * This file is part of SimCommSys. * * SimCommSys 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 ...
// // DHHBannerView.h // AntiqueCatalog // // Created by Cangmin on 16/1/4. // Copyright © 2016年 Cangmin. All rights reserved. // #import <UIKit/UIKit.h> @class DHHBannerView; @protocol DHHBannerViewDelegate <NSObject> @optional - (void)bannerView:(DHHBannerView *)bannerView didClickedImageIndex:(NSInteger)i...
#include "contacts.h" #include <malloc.h> int main() { contPtr info = (contPtr)malloc(sizeof(struct contacts)); info->name = "1"; vertexPtr rear = initVertex(info); rear = addVertexRelationOnName(rear, "1", "4"); rear = addVertexRelationOnName(rear, "4", "2"); rear = addVertexRelationOnName(rear, "2", ...
/* Copyright (c) 2012-2015 Todd Freed <todd.freed@gmail.com> This file is part of fab. fab 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...
/* * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "PMCPDLCAPDUsVersion1" * found in "../../../dumpvdl2.asn1/atn-b1_cpdlc-v1.asn1" * `asn1c -fcompound-names -fincludes-quoted -gen-PER` */ #include "CPDLCMessage.h" int CPDLCMessage_constraint(asn_TYPE_descriptor_t *td, const void *spt...
/* *************************************************************************** * * Author: Teunis van Beelen * * Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * *************************************************************************** * * ...
#include <stdio.h> int main () { int arr[1000] = {0}, p, i, j, count; for (i = 2; i * i < 1000; i++) if (!arr[i]) for (j = i * 2; j < 1000; j += i) arr[j] = 1; printf ("The prime numbers between 1 and 999 are:\n"); for (i = 2, count = 0; i < 1000; i++) if (!arr[i]) { printf ("%d", i); count+...
/* * Process Hacker - * Process properties: Token page * * Copyright (C) 2009-2016 wj32 * * This file is part of Process Hacker. * * Process Hacker 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...
/* Copyright (C) 2014 Andrew Pratt View the README */ #pragma once #include "quadcore.h" void clear_correction(struct quad_state *curr); void accel_correction(struct quad_state *curr, struct quad_state *past, struct quad_static *stat); void mag_correction(struct quad_state *curr, struct quad_state *past, struct quad...
/** ****************************************************************************** * @file Examples_MIX/DMA/DMA_FLASHToRAM/Inc/stm32f0xx_it.h * @author MCD Application Team * @brief This file contains the headers of the interrupt handlers. ****************************************************************...
/* Minetest Copyright (C) 2013 sapier, <sapier AT gmx DOT net> 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 version. This p...
/*! \brief The view controller for the crossword entry table. */ #pragma once #include <QModelIndex> #include <QTableView> namespace ui { class CrosswordEntryTableViewController : public QTableView { Q_OBJECT public: explicit CrosswordEntryTableViewController(QWidget* parent = 0); void sortEntriesBy...
/* File: expreval.c Auth: Brian Allen Vanderburg II Date: Wednesday, April 30, 2003 Desc: Evaluation routines for the ExprEval library This file is part of ExprEval. */ /* Includes */ #include "exprincl.h" #include "exprpriv.h" /* Defines for error checking */ #include <errno.h> #if (EXPR_ERROR...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strsplit_blanks.c :+: :+: :+: ...
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/sysv/sysv_io.c,v 3.11 2003/02/17 15:12:00 dawes Exp $ */ /* * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany * Copyright 1993 by David Dawes <dawes@xfree86.org> * * Permission to use, copy, modify, distribute, and sell this software and its * docum...