text
stringlengths
4
6.14k
/* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright (C) 2005 Mike Isely <isely@pobox.com> * Copyright (C) 2004 Aurelien Alleaume <slts@free.fr> */ #ifndef __PVRUSB2_CX2584X_V4L_H #define __PVRUSB2_CX2584X_V4L_H /* This module connects the pvrusb2 driver to the I2C chip level driver which handles...
/* * sys_parisc32.c: Conversion between 32bit and 64bit native syscalls. * * Copyright (C) 2000-2001 Hewlett Packard Company * Copyright (C) 2000 John Marvin * Copyright (C) 2001 Matthew Wilcox * * These routines maintain argument size conversion between 32bit and 64bit * environment. Based heavily on sys_ia32....
/* Copyright (c) 2010-2011 Code Aurora Forum. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistributions of source code must retain the above copyright * notice, this list...
/* * CAPI encode/decode prototypes and defines * * Copyright (C) 1996 Universidade de Lisboa * * Written by Pedro Roque Marques (roque@di.fc.ul.pt) * * This software may be used and distributed according to the terms of * the GNU General Public License, incorporated herein by reference. */ #ifndef CAPI_H #d...
/* * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyright not...
#include <JavaScriptCore/ASCIICType.h>
/*------------------------------------------------------------------------- * * generic-acc.h * Atomic operations support when using HPs acc on HPUX * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * NOTES: * *...
/* * Copyright (c) 2008-2009 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
/* * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) * Licensed under the GPL */ #ifndef __UM_PROCESSOR_I386_H #define __UM_PROCESSOR_I386_H #include <linux/string.h> #include <asm/segment.h> #include <asm/ldt.h> extern int host_has_cmov; struct uml_tls_struct { struct user_desc tls; unsigned flushed:1; unsig...
/* ==================================================================== * Copyright (c) 1999-2000 The Apache Group. 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 o...
/* * Copyright (C) 2010, 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 condition...
/* Not prefetching when the step is loop variant. */ /* { dg-do compile } */ /* { dg-options "-O3 -msse2 -fprefetch-loop-arrays -fdump-tree-aprefetch-details --param min-insn-to-prefetch-ratio=3 --param simultaneous-prefetches=10 -fdump-tree-aprefetch-details" } */ double data[16384]; void donot_prefetch_when_non_con...
#ifndef _XT_SET_H #define _XT_SET_H #include <linux/types.h> #include <linux/netfilter/ipset/ip_set.h> /* Revision 0 interface: backward compatible with netfilter/iptables */ /* * Option flags for kernel operations (xt_set_info_v0) */ #define IPSET_SRC 0x01 /* Source match/add */ #define IPSET_DST 0x02 /* Destin...
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Nimble_SnapshotsVersionNumber; FOUNDATION_EXPORT const unsigned char Nimble_SnapshotsVersionString[];
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2007 - 2010 Intel Corporation. All rights reserved. * ...
/* * Mixer Interface - HDA simple abstact module * Copyright (c) 2005 by Jaroslav Kysela <perex@perex.cz> * * * 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...
/* SPDX-License-Identifier: GPL-2.0 */ /* * Greybus bundles * * Copyright 2014 Google Inc. * Copyright 2014 Linaro Ltd. */ #ifndef __BUNDLE_H #define __BUNDLE_H #include <linux/list.h> #define BUNDLE_ID_NONE U8_MAX /* Greybus "public" definitions" */ struct gb_bundle { struct device dev; struct gb_interface...
/* Copyright (c) 2009, Code Aurora Forum. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of con...
#ifndef __COMPAT_H__ #define __COMPAT_H__ #define HIGH 1 #define LOW 0 /* Forward declarations to avoid broken auto-prototyper (coughs on '::'?) */ static void run_cli(AP_HAL::UARTDriver *port); #endif // __COMPAT_H__
/* * INETPEER - A storage for permanent information about peers * * Authors: Andrey V. Savochkin <saw@msu.ru> */ #ifndef _NET_INETPEER_H #define _NET_INETPEER_H #include <linux/types.h> #include <linux/init.h> #include <linux/jiffies.h> #include <linux/spinlock.h> #include <linux/rtnetlink.h> #include <net/ipv6...
/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees hol...
/* Precomp.h -- StdAfx 2013-11-12 : Igor Pavlov : Public domain */ #ifndef __7Z_PRECOMP_H #define __7Z_PRECOMP_H #include "Compiler.h" /* #include "7zTypes.h" */ #endif
/* * include/asm-arm/arch-at91/at91_pio.h * * Copyright (C) 2005 Ivan Kokshaysky * Copyright (C) SAN People * * Parallel I/O Controller (PIO) - System peripherals registers. * Based on AT91RM9200 datasheet revision E. * * This program is free software; you can redistribute it and/or modify * it under the term...
#define KERNEL_ELFCLASS ELFCLASS32 #define KERNEL_ELFDATA ELFDATA2LSB #define HOST_ELFCLASS ELFCLASS32 #define HOST_ELFDATA ELFDATA2LSB
#pragma once /* * Copyright (C) 2012-2013 Team XBMC * http://xbmc.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, or (at your option) * any later ver...
/* PR tree-optimization/65215 */ __attribute__((noinline, noclone)) unsigned int foo (unsigned char *p) { return ((unsigned int) p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]; } __attribute__((noinline, noclone)) unsigned int bar (unsigned char *p) { return ((unsigned int) p[3] << 24) | (p[2] << 16) | (p[1] << ...
/* * Copyright (C) 2014 Linaro Ltd. * Author: Rob Herring <robh@kernel.org> * * Based on 8250 earlycon: * (c) Copyright 2004 Hewlett-Packard Development Company, L.P. * Bjorn Helgaas <bjorn.helgaas@hp.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU ...
/* * Copyright (C) 2006-2009 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distribute...
#include <SDL/SDL.h> void sdl_pixel_doubler (Surface *src, SDL_Surface *dest);
/* * Access vector cache interface for object managers. * * Author : Stephen Smalley, <sds@epoch.ncsc.mil> */ #ifndef _SELINUX_AVC_H_ #define _SELINUX_AVC_H_ #include <linux/stddef.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/kdev_t.h> #include <linux/spinlock.h> #include <linux/init.h> #i...
#ifndef __MT6620_FM_CMD_H__ #define __MT6620_FM_CMD_H__ #include <linux/types.h> #include "fm_typedef.h" /* FM basic-operation's opcode */ #define FM_BOP_BASE (0x80) enum { FM_WRITE_BASIC_OP = (FM_BOP_BASE + 0x00), FM_UDELAY_BASIC_OP = (FM_BOP_BASE + 0x01), FM_RD_UNTIL_BASIC_OP = (FM_BOP_BASE + 0x02), FM_MODIFY_B...
struct B { virtual int foo(); }; int B::foo() { return 2; }
/* * Task I/O accounting operations */ #ifndef __TASK_IO_ACCOUNTING_OPS_INCLUDED #define __TASK_IO_ACCOUNTING_OPS_INCLUDED #include <linux/sched.h> #ifdef CONFIG_TASK_IO_ACCOUNTING static inline void task_io_account_read(size_t bytes) { current->ioac.read_bytes += bytes; } /* * We approximate number of blocks, b...
/* IP tables module for matching the value of the IPv4/IPv6 DSCP field * * (C) 2002 by Harald Welte <laforge@netfilter.org> * * 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. */ ...
/* * Driver for OMAP-UART controller. * Based on drivers/serial/8250.c * * Copyright (C) 2010 Texas Instruments. * * Authors: * Govindraj R <govindraj.raja@ti.com> * Thara Gopinath <thara@ti.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General ...
/** * @file cc.h * @author Ambroz Bizjak <ambrop7@gmail.com> * * @section 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 retain the above copyright * notic...
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * include/asm-xtensa/signal.h * * Swiped from SH. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001 ...
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2011, 2012 Cavium, Inc. */ #include <linux/platform_device.h> #include <linux/device.h> #include <linux/of_mdio.h> #includ...
#ifndef __PERF_THREAD_H #define __PERF_THREAD_H #include <linux/atomic.h> #include <linux/rbtree.h> #include <linux/list.h> #include <unistd.h> #include <sys/types.h> #include "symbol.h" #include <strlist.h> #include <intlist.h> struct thread_stack; struct thread { union { struct rb_node rb_node; struct list_h...
/* Copyright (c) 2013, The Linux Foundation. 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 version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope...
/* * Copyright (C) 2008 Apple Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/* * KQEMU header * * Copyright (c) 2004-2008 Fabrice Bellard * * 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...
/* * Copyright (c) 2004-2014 Erik Doernenburg and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use these files except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org> * */ #ifndef __ASM_MACH_IP32_DMA_COHERENCE_H #define __ASM_MACH_IP32_DMA_COHERENC...
// // GTMCALayer+UnitTesting.h // // Code for making unit testing of graphics/UI easier. Generally you // will only want to look at the macros: // GTMAssertDrawingEqualToFile // GTMAssertViewRepEqualToFile // and the protocol GTMUnitTestCALayerDrawer. When using these routines // make sure you are using devi...
/******************************************************************** * COPYRIGHT: * Copyright (c) 1997-2009, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ /*******************************************************...
/* * Definitions used by low-level trap handlers * * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> * Copyright (C) 2007-2009 PetaLogix * Copyright (C) 2007 John Williams <john.williams@petalogix.com> * * This file is subject to the terms and conditions of the GNU General * Public License. See the file...
// SPDX-License-Identifier: GPL-2.0 /* * u_gether.h * * Utility definitions for the subset function * * Copyright (c) 2013 Samsung Electronics Co., Ltd. * http://www.samsung.com * * Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com> */ #ifndef U_GETHER_H #define U_GETHER_H #include <linux/usb/composite.h...
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains the system call numbers. */ #ifndef _ASM_POWERPC_UNISTD_H_ #define _ASM_POWERPC_UNISTD_H_ #include <uapi/asm/unistd.h> #define NR_syscalls __NR_syscalls #define __NR__exit __NR_exit #ifndef __ASSEMBLY__ #include <linux/types.h> #include <lin...
/* * Marvell Armada 370 SoC clocks * * Copyright (C) 2012 Marvell * * Gregory CLEMENT <gregory.clement@free-electrons.com> * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> * Andrew Lunn <andrew@lunn.ch> * * This file is licensed under the terms of the GNU General Public * License version 2. This pro...
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __javax_swing_JSeparator__ #define __javax_swing_JSeparator__ #pragma interface #include <javax/swing/JComponent.h> extern "Java" { namespace javax { namespace accessibility { class AccessibleContext; } namespace swin...
/* * Support for Intel Camera Imaging ISP subsystem. * Copyright (c) 2015, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This progra...
/* vi: set sw=4 ts=4: */ /* * Mini watch implementation for busybox * * Copyright (C) 2001 by Michael Habermann <mhabermann@gmx.de> * Copyrigjt (C) Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) * * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ /* BB_AUDIT SUSv3 N/A */ /* BB_AUDIT...
/* * Copyright (C) 1999 ARM Limited * Copyright (C) 2000 Deep Blue Solutions Ltd * Copyright 2006-2007,2010 Freescale Semiconductor, Inc. All Rights Reserved. * Copyright 2008 Juergen Beisert, kernel@pengutronix.de * Copyright 2009 Ilya Yanok, Emcraft Systems Ltd, yanok@emcraft.com * Copyright (C) 2011 Wolfram Sa...
#ifndef _ADE7759_H #define _ADE7759_H #define ADE7759_WAVEFORM 0x01 #define ADE7759_AENERGY 0x02 #define ADE7759_RSTENERGY 0x03 #define ADE7759_STATUS 0x04 #define ADE7759_RSTSTATUS 0x05 #define ADE7759_MODE 0x06 #define ADE7759_CFDEN 0x07 #define ADE7759_CH1OS 0x08 #define ADE7759_CH2OS 0x09 #d...
// // MJRefreshBackGifFooter.h // MJRefreshExample // // Created by MJ Lee on 15/4/24. // Copyright (c) 2015年 小码哥. All rights reserved. // #import "MJRefreshBackStateFooter.h" @interface MJRefreshBackGifFooter : MJRefreshBackStateFooter /** 设置state状态下的动画图片images 动画持续时间duration*/ - (void)setImages:(NSArray *)image...
/* SPDX-License-Identifier: MIT */ #ifndef __NV04_DEVINIT_H__ #define __NV04_DEVINIT_H__ #define nv04_devinit(p) container_of((p), struct nv04_devinit, base) #include "priv.h" struct nvkm_pll_vals; struct nv04_devinit { struct nvkm_devinit base; int owner; }; int nv04_devinit_new_(const struct nvkm_devinit_func *, ...
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2012 Regents of the University of California */ #include <linux/init.h> #include <linux/seq_file.h> #include <linux/of.h> #include <asm/smp.h> /* * Returns the hart ID of the given device tree node, or -ENODEV if the node * isn't an enabled and valid RIS...
#include <linux/sched.h> #include <linux/ftrace.h> #include <asm/ptrace.h> #include <asm/bitops.h> #include <asm/stacktrace.h> #include <asm/unwind.h> unsigned long unwind_get_return_address(struct unwind_state *state) { unsigned long addr; if (unwind_done(state)) return 0; addr = READ_ONCE_NOCHECK(*state->sp);...
/* sound/soc/samsung/s3c24xx_simtec_hermes.c * * Copyright 2009 Simtec Electronics * * 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. */ #include <linux/module.h> #include <sound...
#ifndef _M68K_IRQFLAGS_H #define _M68K_IRQFLAGS_H #include <linux/types.h> #ifdef CONFIG_MMU #include <linux/preempt_mask.h> #endif #include <linux/preempt.h> #include <asm/thread_info.h> #include <asm/entry.h> static inline unsigned long arch_local_save_flags(void) { unsigned long flags; asm volatile ("movew %%sr,...
/* * iteration_check.c: test races having to do with radix tree iteration * Copyright (c) 2016 Intel Corporation * Author: Ross Zwisler <ross.zwisler@linux.intel.com> * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * ...
/* Driver for Realtek RTS51xx USB card reader * Header file * * Copyright(c) 2009 Realtek Semiconductor Corp. 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 Foundation; either...
// SPDX-License-Identifier: MIT /* * Copyright © 2020 Intel Corporation */ #include <drm/drm_print.h> #include "gt/intel_gt_debugfs.h" #include "intel_huc.h" #include "intel_huc_debugfs.h" static int huc_info_show(struct seq_file *m, void *data) { struct intel_huc *huc = m->private; struct drm_printer p = drm_se...
/* * S390 version * * Derived from "include/asm-i386/statfs.h" */ #ifndef _S390_STATFS_H #define _S390_STATFS_H /* * We can't use <asm-generic/statfs.h> because in 64-bit mode * we mix ints of different sizes in our struct statfs. */ #ifndef __KERNEL_STRICT_NAMES #include <linux/types.h> typedef __kernel_fs...
/* * Copyright (c) 2015-2017 Contributors as noted in the AUTHORS file * * This file is part of ukvm, a unikernel monitor. * * Permission to use, copy, modify, and/or distribute this software * for any purpose with or without fee is hereby granted, provided * that the above copyright notice and this permission n...
/* * Copyright (c) 2014, Thorben Hasenpusch <t.hasenpusch@icloud.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVI...
/* * %ISC_START_LICENSE% * --------------------------------------------------------------------- * Copyright 2006-2018, Pittsburgh Supercomputing Center * All rights reserved. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that ...
/* Copyright (c) 2005-2008, Simon Howard Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARR...
/* * Copyright (c) 2013 James Molloy, Jörg Pfähler, Matthew Iselin * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROV...
#include "jbot.h" static uint8_t ZLX_CALL test ( zlx_elal_t * ZLX_RESTRICT ea, void * * etab, size_t alloc_count, size_t free_count ) { size_t i, n; if (!etab) E(1, "error: no mem for elal-test\n"); for (i = 0; i < alloc_count; ++i) { etab[i] = zlx_elal_alloc(ea, "elem"); ...
// SimpleTimeoutTemplate class for creating simple timeouts and delays // MIT License // // Copyright (c) 2017 Robert Black // // 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 res...
#pragma once #include "gecommon.h" #include "gerenderer.h" #include "gl_core_3_2.h" #include <glm/glm.hpp> class RenderState; class Texture2D; class Quad : public Renderable { public: Quad(); ~Quad(); void construct(int size); void construct(int width, int height); void construct(int width, int height, const ...
// // WCFoldMarker.h // WabbitStudio // // Created by William Towe on 1/24/12. // Copyright (c) 2012 Revolution Software. // // 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 restrict...
#ifndef QGAME_SHADER_PROGRAM_ASSET_H #define QGAME_SHADER_PROGRAM_ASSET_H #include <mruby.h> void qgame_shader_program_asset_init(mrb_state* mrb, struct RClass* mrb_qgame_class); #endif /* QGAME_SHADER_PROGRAM_ASSET_H */
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <json.h> #include "client.h" #include "log.h" #define BUFFER_SIZE 1024 static void config_log(json_object *json) { const char *filename = NULL; int level = LOG_ERROR; json_object_object_foreach(json, key, val) { ...
// ====================================================================== /*! * \file NFmiDataModifierAdd.h * \brief Interface of class NFmiDataModifierAdd */ // ====================================================================== #pragma once #include "NFmiDataModifier.h" class NFmiDataModifierAdd : public NFm...
/** * \file 68K/Libraries/Telephony/HsPhoneLibrary.h * * Header File for Phone Library API ---- LIBRARY CATEGORY * * All implementations of the Handspring Phone Library support a common API. * This API is broken up into various categories for easier management. This file * defines the LIBRARY category. ...
// // MenuCell.h // ByrdFeed // // Created by Eddie Freeman on 6/29/14. // Copyright (c) 2014 NinjaSudo Inc. All rights reserved. // #import <UIKit/UIKit.h> @interface MenuCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *menuIcon; @property (weak, nonatomic) IBOutlet UILabel *menuTitleLabe...
// // CHRecordHandler.h // CHChatKit // // Created by Chausson on 16/9/14. // Copyright © 2016年 Chausson. All rights reserved. // #import <UIKit/UIKit.h> typedef void (^CHRecordBlock)(NSString *path,NSInteger duration); @interface CHRecordHandler : NSObject @property (readonly , nonatomic) CGFloat recordSecs; @...
#ifndef OPCODE #define OPCODE #define type_client_master 777 #define type_client_manager 666 #define type_client_slave 420 #define type_server 999 #define opcode_sent 0 #define open_call 1 #define close_call 2 #define read_call 3 #define writ...
#ifndef ARDUINO_H #define ARDUINO_H #include "ardno_constant.h" #include "ardno_digital_io.h" #include "ardno_error.h" #include "ardno_interrupt.h" #include "ardno_time.h" #endif
#include <stdlib.h> #include <stdio.h> #include <string.h> void print_bit(int bit, int count) { fprintf(stderr, "Printing bit %d. Count = %d.\n", bit, count); if(bit == 1) printf("0 "); else printf("00 "); for(int i = 0; i < count; i++) { printf("0"); } } /*...
/* File: CompositeSubviewBasedApplicationCell.h Abstract: The subclass of ApplicationCell that uses a single view to draw the content. Version: 1.5 Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use,...
// Copyright (c) 2018 Doyub Kim // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #ifndef SRC_PYTHON_SCALAR_GRID_H_ #define SRC_PYTHON_SCALAR_GRID_H_ #include <pybind11/functional.h> #i...
// 代码地址: https://github.com/CoderMJLee/MJRefresh // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 #import "UIScrollView+MJRefresh.h" #import "UIScrollView+MJExtension.h" #import "UIView+MJExtension.h" #import "MJRefr...
/* * Copyright (C) 2012 Marcelina Kościelnicka <mwk@0x04.net> * 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, including without limitation ...
// // ViewController.h // 13-SQLitePersistence // // Created by 林涛 on 16/3/2. // Copyright © 2016年 limaofuyuanzhang. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
#ifndef COMMON_H #include "../../../common/common.h" #endif #include "users.h" #define FILENAME_LEN (sizeof(TEMP_PATH)+sizeof("XXXXXX")) short users_exited = false; char old_users_filename[FILENAME_LEN]; char new_users_filename[FILENAME_LEN]; char added_command[sizeof(ADDED_DIFF_EXEC)+1+FILENAME_LEN+1+FILENAME_LEN+si...
// // UAEC2UnassignPrivateIPAddressesRequest.h // AWS iOS SDK // // Copyright © Unsigned Apps 2014. See License file. // Created by Rob Amos. // #import "UAEC2Request.h" @class UAEC2UnassignPrivateIPAddressesResponse; typedef void(^UAEC2UnassignPrivateIPAddressesRequestCompletionBlock)(UAEC2UnassignPrivateIPAddr...
#include "kr_param_class_table.h" #include "krutils/kr_utils.h" char *kr_param_table_serialize(T_KRParamTable *ptParamTable) { cJSON *table = cJSON_CreateObject(); cJSON_AddNumberToObject(table, "id", ptParamTable->lTableId); cJSON_AddStringToObject(table, "name", ptParamTable->caTableName); cJSON_Ad...
// // OptionsViewController.h // FriendlyPic // // Created by Carmelo I. Uria on 8/29/12. // Copyright (c) 2012 Carmelo Uria Corporation. All rights reserved. // #import <UIKit/UIKit.h> #import <StoreKit/StoreKit.h> void displayErrorOnMainQueue(NSError *error, NSString *message); @interface OptionsViewController...
#include <math.h> #define END_VALUE 600 int main () { int Counter=0 ; double X; double Y; double Angle ; FILE *Output; /* open output file */ if ((Output = fopen("flyby.path", "w")) == NULL) { fprintf(stderr, "Cannot open file\n"); } while (Counter <END_VALUE) { X=0 ; Y=(Counter*0.4) ; Angle=0 ;...
// // NSPredicate+OSReflectionKit.h // OSReflectionKit+CoreData // // Created by Alexandre on 03/02/14. // Copyright (c) 2014 iAOS Software. All rights reserved. // /* Copyright (c) 2013 iAOS Software. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this so...
#pragma once #include <string> /** * \brief Checks for gl errors and writes error description to string. */ bool hasGLError(std::string& errorText);
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "saferead.h" int main(int argc, char *argv[]){ FILE *f; char c; char * buf; int x=0; if(argc<2) f = stdin; else{ f = fopen(argv[1], "r"); if(f==NULL){ fprintf(stderr, "Could not read %s\n", argv[1]); exit(EXIT_FAILURE); } } buf =...
// // YQZCycleScrollView.h // // Created by mahailin on 13-7-19. // Copyright (c) 2013年 mahailin. All rights reserved. // #import <UIKit/UIKit.h> @class YQZCycleScrollView; /*! @brief CycleScrollView的回调协议 */ @protocol YQZCycleScrollViewDelegate <NSObject> @optional /*! @brief 点击某张图片的回调方法 @param cycl...
#pragma once namespace graphic { class cSkinnedMesh : public cMesh { public: cSkinnedMesh(const int id, vector<Matrix44> *palette, const sRawMesh &raw); virtual ~cSkinnedMesh(); virtual void Render(const Matrix44 &parentTm) override; void SetPalette(vector<Matrix44> *palette); protected: virtual vo...
#pragma once #include "Game.h" #include "GameComponent.h" #include "FountainEffect.h" #define NUM_FOUNTAINS 20 #define FOUNTAIN_RADIUS 40.0f #define FOUNTAIN_HEIGHT 10.0f using namespace std; namespace BGE { class Lab4 : public Game { public: Lab4(void); shared_ptr<GameComponent> ship1; shared_ptr<GameCo...
/* * This file is part of the gk project (https://github.com/recp/gk) * Copyright (c) Recep Aslantas. * * 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 Licen...