text
stringlengths
7.55k
41.9k
/* * 文 件 名:RFID.pde * 创 建 者:Dr.Leong ( WWW.B2CQSHOP.COM ) * 创建日期:2011.09.19 * 修 改 者: * 修改日期: * 功能描述:Mifare1 寻卡→防冲突→选卡→读写 接口 */ // the sensor communicates using SPI, so include the library: #include <SPI.h> #define uchar unsigned char #define uint unsigned int //数组最大长度 #define MAX_LEN 16 /////////////////...
/****************************************************************************** * * Copyright (C) 2015 The Android Open Source Project * * 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: ...
// I2C3.c // Runs on TM4C123 // Busy-wait device driver for the I2C3. // Daniel and <NAME> // Jan 2, 2021 // This file originally comes from the TIDA-010021 Firmware (tidcf48.zip) and // was modified by Pololu to support the MSP432P401R. Modified again for TM4C123 /* This example accompanies the books "Embedded Sys...
/* * Copyright 2016-current <NAME> <<EMAIL>> * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/* * Copyright 2013 Red Hat Inc. * * 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, d...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define boolean int #define BUFFER_SIZE 32 #define MAXLINE 30 #define LUNG_CHUNK 64 #define ULTIMA_POS_CHUNK 63 #define MAX(x,y) ((x)>(y)?(x):(y)) //struttura di un nodo della lista di adiacenza che rappresenta la MT typedef struct nodoListaAdj { boolean ...
/* Simple DirectMedia Layer Copyright (C) 1997-2012 <NAME> <<EMAIL>> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any ...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
/* Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>. * 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 ...
/* * This file is part of Luma3DS * Copyright (C) 2016-2019 <NAME>, 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 your option) any...
/* main.c -- Battlefield: Bad Company 2 .so loader * * Copyright (C) 2021 <NAME> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include <psp2/io/dirent.h> #include <psp2/io/fcntl.h> #include <psp2/kernel/clib.h> #include <psp2/kernel...
/* * Copyright 2020 Makani Technologies LLC * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
#include <assert.h> #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "vector.h" #include <curl/curl.h> #include "hashset.h" #include "bool.h" #include "html-utils.h" #include "streamtokenizer.h" #include "url.h" static void Welcome(const char *welcomeTextFileName); static void Bui...
/** * GS1 Barcode Engine * * @author Copyright (c) 2021 GS1 AISBL. * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
/* * (COPYRIGHT) Copyright (C) 2008, 2009, The ONS Team. * This file is part of ONS, see COPYING for details. */ /* * File information: * - Created: 19. April 2008 * - Lead-Dev: - <NAME> * - Contributors: / * - Last-Change: 1. January 2009 */ /* Implementation of addr4.h, addr6.h, addrx.h, addrlo.h and addr....
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenSDK/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ /* * Feature : L3 MPLS LSR Swap with FRR * * Usage : BCM.0> cint lsr_swap_frr.c * * config : mpls_config...
#include <stdio.h> /* for printf() and fprintf() */ #include <sys/socket.h> /* for socket(), bind(), sendto()and recvfrom() */ #include <arpa/inet.h> /* for sockaddr_in and inet_ntoa() */ #include <stdlib.h> /* for atoi() and exit() */ #include <string.h> /* for memset() */ #include <unistd.h> /* for close() */ #includ...
/** ****************************************************************************** * @file LwIP/LwIP_HTTP_Server_Netconn_RTOS/Src/main.c * @author MCD Application Team * @brief This sample code implements a http server application based on * Netconn API of LwIP stack and FreeRTOS. This applic...
#include "dmxl.h" #include "stm32f4xx.h" #include <stdio.h> #include "state.h" #include "systime.h" #include "delay.h" #define PORTA_DMXL_BUF_EN 10 typedef enum { DMXL_CS_IDLE = 0, DMXL_CS_TX = 1, DMXL_CS_POLL_STATE = 2, DMXL_CS_POLL_DEBRIS = 3, DMXL_CS_PING = 4 } dmxl_comms_state_t;...
/* * simple_web_thing_server.c * * Created on: July 1, 2019 * Last edit: Feb 19, 2021 * Author: <NAME> * e-mail: <EMAIL> * * Notes: some code is inspired by * http://www.barth-dev.de/websockets-on-the-esp32/# * * Web Thing Server implementation for ESP32 chips and ESP-IDF * Compl...
#include <sys/types.h> #include <sys/wait.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <netdb.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <pthread.h> #include <stdbool.h> #include <ctype.h> #includ...
/* * $Id: engine.c,v 1.1 2005-09-18 22:04:19 dhmunro Exp $ * Implement common properties of all GIST engines */ /* Copyright (c) 2005, The Regents of the University of California. * All rights reserved. * This file is part of yorick (http://yorick.sourceforge.net). * Read the accompanying LICENSE file for details...
/* * Copyright (c) 2016 - 2017 Intel Corporation. * * Author: <NAME> <<EMAIL>> * * 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 th...
/* (C) Copr. 1986-92 Numerical Recipes Software ?421.1-9. */ #include <math.h> #include <stdlib.h> #include<stdio.h> #include"micromegas_aux.h" //===== ludcmp & lubksb auxiliary code #define TINY 1.0e-30 static double*vv=NULL; static int ludcmp(double*a, int n, int* indx, double* d) { int i,imax,j,k; double...
#include "recorder_plugin.h" #include <datadog-profiling.h> #include <php_datadog-profiling.h> #include <plugins/log_plugin/log_plugin.h> #include <SAPI.h> #include <components/arena/arena.h> #include <components/channel/channel.h> #include <components/string_view/string_view.h> #include <components/time/time.h> #inc...
/* Copyright (C) 2002-2009 <NAME> <<EMAIL>> This file is part of Siproxd. Siproxd 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)...
/* * translate.c * md2teach * * Created by <NAME> on 2021-04-24. * */ #include <stdio.h> #include <stdlib.h> #include "translate.h" #include "io.h" #include "main.h" #include "style.h" // Typedefs typedef struct tEntity { const char * entityString; char entityChar; uint32_t unicodeChar; } tEnt...
/** * Copyright 2016-2019 - <NAME> & UPMEM */ #include <pthread.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "accumulateread.h" #include "genome.h" #include "getread.h" #include "processread.h" #include "upvc.h" #include "vartree.h" #define SIZE_INSERT_MEAN (400) #def...
/* ** Copyright 2007-2018 RTE ** Author: <NAME> ** ** This file is part of Sirius_Solver. ** This program and the accompanying materials are made available under the ** terms of the Eclipse Public License 2.0 which is available at ** http://www.eclipse.org/legal/epl-2.0. ** ** This Source Code may also be made availabl...
/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - <NAME> * Copyright (C) 2011-2017 - <NAME> * Copyright (C) 2016-2017 - <NAME> * * RetroArch 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 Foun...
/* * Copyright 2017 Dell Inc. or its subsidiaries. All Rights Reserved. * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
/* Comment on usage and program: ark!/mnt/rene/prac/os/unix/comment.changes */ /* "const.h", created by <NAME> and <NAME> */ #include <sys/types.h> /* type defs */ #include <sys/stat.h> /* struct stat */ #include <sys/wait.h> #include <errno.h> /* the error-numbers */ #include <fcntl.h> #include <stdlib.h> #includ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "ptypes.h" #include "constants.h" #include "lucky_numbers.h" #include "inverse_interpolate.h" #include "ds_pagelist32.h" #include "ds_pagelist64.h" static const int _verbose = 0; /*********************************************************************...
/*------------------------------------------------------------------------- * * hash.c * Implementation of <NAME>'s Hashing package for postgres. * * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATI...
/* * Copyright (c) 2020 Huawei Device Co., Ltd. * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/************************************************************************** Copyright (c) 2013, The OpenBLAS Project 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 sourc...
/*============================================================================ WCSLIB 5.19 - an implementation of the FITS WCS standard. Copyright (C) 1995-2018, <NAME> This file is part of WCSLIB. WCSLIB is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General P...
/* * m_macosx.c * * AUTHOR: <NAME> * based on m_bsd44.c and m_next32.c * by <NAME> and <NAME> * CREATED: Tue Aug 11 01:51:35 CDT 1998 * SYNOPSIS: MacOS X Server (Rhapsody Developer Release 2) * DESCRIPTION: * MacOS X Server (Rhapsody Developer Release 2) * * CFLAGS: -DHAVE_STRERROR * TERMCAP: none * MAT...
/** @defgroup can_file CAN @ingroup STM32F_files @brief <b>libopencm3 STM32Fxxx CAN</b> @version 1.0.0 @author @htmlonly &copy; @endhtmlonly 2010 <NAME> <<EMAIL>> @date 12 November 2012 Devices can have up to two CAN peripherals. The peripherals support up to 1MBit transmission rate. The peripheral has several fi...
//----------------------------------------------------------------------------- // Include //----------------------------------------------------------------------------- #include "game.h" //----------------------------------------------------------------------------- // Global variable //----------------------------...
#include "audioDenoise.h" #include "fft.h" #ifndef nullptr #define nullptr 0 #endif int32_t fastPow(int32_t in, int32_t e) // POWER(float,signed) { float b = (float)in; if (e < 0) b = 1.0f / b; // for negative powers, invert base e = (e ^ (e >> 31)) - (e >> 31); // and raise to positive power...
/* Copyright (c) 2020, Google 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" AND THE AUTHOR DISCLAIMS...
/* * This file is released under the terms of the Artistic License. Please see * the file LICENSE, included in this package, for details. * * Copyright (C) 2007-2010 <NAME> * * Based on TPC-E Standard Specification Revision 1.10.0. */ #include <sys/types.h> #include <time.h> #include <unistd.h> #include <postg...
/* * Copyright(c) 2019 Intel Corporation * * This source code is subject to the terms of the BSD 3-Clause Clear License and * the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear License * was not distributed with this source code in the LICENSE file, you can * obtain it at https://www.aomedia.org/...
// Copyright <NAME> and contributors 2010 - 2020. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <time.h> #inclu...
/* * common.c - functions used by all trigger variants. * * Copyright (c) 2007 <NAME>, Skype Technologies OÜ * * 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 i...
/* * (C) Copyright 2007 * <NAME>, Gaisler Research, <EMAIL>. * * SPDX-License-Identifier: GPL-2.0+ */ /* * AMBA Plug&Play information list command * */ #include <common.h> #include <command.h> #include <ambapp.h> DECLARE_GLOBAL_DATA_PTR; typedef struct { int device_id; char *name; char *desc; } ambapp_dev...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <stdint.h> #include <string.h> #include <strings.h> #include <time.h> #include <math.h> #include <sys/time.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/sysinfo.h> #include <dirent.h> #include <alsa/asoundlib.h> #in...
/* C_MODRM for instructions that require MODRM C_PREFIX for PREFIXES (SEG/REP) C_2BYTE for instructions which opcode is 2 byte */ #define C_SIZE1 0x01 #define C_MODRM 0x02 #define C_DATA8 0x04 #define C_DATA16 0...
/* $XFree86: xc/programs/Xserver/hw/xfree86/accel/mach32/mach32init.c,v 3.14 1996/12/23 06:38:41 dawes Exp $ */ /* * Written by <NAME> * Copyright (c) 1989, 1990 Panacea Inc., Londonderry, NH - All Rights Reserved * Copyright 1993 by <NAME>, <NAME>, North Carolina. * * This code may be freely incorporated in any p...
/* usbms.c - USB Mass Storage Support. */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2008 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, eithe...
/* This is a Optical-Character-Recognition program Copyright (C) 2000-2010 <NAME> 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 versi...
#include "ls_preproc.h" #if LS_BUILD_GIT #include "git2.h" #endif #include "ls_state.h" const char* ls_units_regular[9] = {"", "K", "M", "G", "T", "P", "E", "Z", "Y"}; const char* ls_units_si[9] = {"", "k", "M", "G", "T", "P", "E", "Z", "Y"}; const char* ls_units_canon[9] = {"B", "KB", "MB...
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Implementation of runtime/debug.WriteHeapDump. Writes all // objects in the heap plus additional info (roots, threads, // finalizers, etc.) to a file. // T...
/* A concurrent garbage collector for the L&O engine Copyright (c) 2016, 2017. <NAME> 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 http://www.apache.org/licenses/LICENSE-2.0 Unless ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
/* Copyright 2004,2007,2008,2010-2012,2014 IPB, Universite de Bordeaux, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distri...
/* envphong.c - <NAME>, SGI */ /** ** Demonstrates a use of environment texture mapping for improved highlight ** shading. ** ** Press mouse button one to move the object, press mouse button two to ** move the light source. Pressing the <s> key switches between using ** regular lighting or texture mapping for ...
/* -*- linux-c -*- */ /* sigma_binsingle.c Copyright (C) 2002-2004 <NAME> 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 l...
/* Dia -- a diagram creation/manipulation program * Copyright (C) 1998 <NAME> * * filedlg.c: some dialogs for saving/loading/exporting files. * Copyright (C) 1999 <NAME> * * 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...
/**************************************************************************** # Mars-Semi MR97311A library # # Copyright (C) 2005 <<EMAIL>> # # Part of spca5xx project # # This program is free software; you can red...
/* * loadsig_ngspice.c: retrieval of NGspice data into MATLAB * written by <NAME> * * To compile this code into a mex file for Matlab, simply * run Matlab in the directory that loadsig_ngspice.c is contained * and then type: * mex loadsig_ngspice.c * You'll then have a loadsig_ngspice mex function f...
#include <stdlib.h> #include <stdio.h> #include <getopt.h> #include <string.h> #include <inttypes.h> #include <ctype.h> #include "tldevel.h" #include "tllogsum.h" #include "tlmisc.h" #include "tlrng.h" #include "tlseqbuffer.h" #include "beam_sample.h" #include "finite_hmm.h" #include "finite_hmm_score.h" //#include...
/* * *************************************************************************** * Copyright (C) 2016 Marvell International Ltd. * *************************************************************************** * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
#include <unistd.h> #include <string.h> #include "spcinv.h" static void initGame() { // Pega o local do executavel getWorkingDirectory(WORKING_DIR, 4096); // SFX playSound("init_game"); // Inicializa o ncurses initscr(); // Configuracoes ncurses // Nao printe caracteres digitados ...
#include "xsdk.h" #include "portable.h" struct channel_s { char name[256]; /* Name of channel */ char sl[4]; /* Min SL to enter channel */ char actions_file[13]; /* ACTIONS.LST used for this channel */ char dir[256]; /* The directory of the channel */ }; extern char snc_dir[256], snc_root...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/* * This file is part of the coreboot project. * * Copyright (C) 2008 VIA Technologies, Inc. * (Written by <NAME> <<EMAIL>> for VIA) * Copyright (C) 2007 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published...
/* Copyright (c) IBM Corporation 2000, 2018 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
/*************************************************************************************** *** *** *** Copyright (c) 2019, <NAME>, Inc. *** *** ...
#ifdef COMPILE_FOR_TEST #include <assert.h> #define assume(cond) assert(cond) #endif void main(int argc, char* argv[]) { int x_0_0;//CREST_scheduler::lock_0 int x_0_1;//CREST_scheduler::lock_0 int x_0_2;//CREST_scheduler::lock_0 int x_0_3;//CREST_scheduler::lock_0 int x_0_4;//CREST_scheduler::lock_0 int x_0_5;//C...
#include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <stdint.h> #include <GL/glu.h> #include "gpufont_data.h" #include "ttf_defs.h" #include "linkedlist.h" #include "triangulate.h" #define ENABLE_SUBDIV 0 #define DEBUG_DUMP 1 #if DEBUG_DUMP #include <stdio.h> #endif typedef struct ...
/* * 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 be use...
// Copyright 2013, <NAME>. // Copyright 2013, <NAME>. // Copyright 2013, <NAME>. // SPDX-License-Identifier: BSL-1.0 /* * OpenHMD - Free and Open Source API and drivers for immersive technology. */ /* HTC Vive Driver */ #define FEATURE_BUFFER_SIZE 256 #define HTC_ID 0x0bb4 #define VIVE_HMD ...
/* misc - miscellaneous flex routines */ /* Copyright (c) 1990 The Regents of the University of California. */ /* All rights reserved. */ /* This code is derived from software contributed to Berkeley by */ /* <NAME>. */ /* The United States Government has rights in this work pursuant */ /* to contract no. DE-A...
/*====================================================================* - Copyright (C) 2001 Leptonica. 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 c...
/* * ---------------------------------------------------------------------------- * Copyright 2018 ARM Ltd. * * SPDX-License-Identifier: Apache-2.0 * * 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 th...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* slave/kprop.c */ /* * Copyright 1990,1991,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. ...
/* (C) 2001 by Argonne National Laboratory. See COPYRIGHT in top-level directory. */ #include "mpe_logging_conf.h" #if defined( STDC_HEADERS ) || defined( HAVE_STDIO_H ) #include <stdio.h> #endif #if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) #include <stdlib.h> #endif #if defined( STDC_HEADERS ) ||...
/***********************************/ /* SPICE Modeling for VPR */ /* <NAME>, EPFL/LSI */ /***********************************/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <assert.h> #include <sys/stat.h> #include <unistd.h> /* Include vpr...
/* 25_uniform_fog.c - OpenGL-based example demonstrating uniform exponential fog based on radial vertex distance using Cg programs from Chapter 9 of "The Cg Tutorial" (Addison-Wesley, ISBN 0321194969). */ /* Requires the OpenGL Utility Toolkit (GLUT) and Cg runtime (version 1.5 or higher). */ #include <asse...
/** * opesys.c -- functions for dealing with operating systems * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright ...
// // // Author: <NAME> - 2015 // http://landenlabs.com // // This file is part of JavaTree project. // // ----- License ---- // // Copyright (c) 2015 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to dea...
#include <sys/types.h> #include <sys/socket.h> #include <stdio.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <unistd.h> #include <time.h> #include <error.h> #include <sys/ipc.h> #include <sys/shm.h> #include <sys/stat.h> #include <fcntl.h> #inc...
#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <stdio.h> #include <poll.h> #include <string.h> #include <assert.h> #include <limits.h> #include <errno.h> #include <wayland-client.h> #include <wayland-client-protocol.h> #include <cairo/cairo.h> #include <pml.h> #include "wlr-layer-shell-unstable-v1-client...
/*--------------------------------------------------------------------*/ /*--- An ordered set implemented using an AVL tree. m_oset.c ---*/ /*--------------------------------------------------------------------*/ /* This file is part of Valgrind, a dynamic binary instrumentation framework. Copyright (...
/* $Id$ */ /* * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) * Copyright (C) 2003-2008 <NAME> <<EMAIL>> * * 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 t...
#include "./open_rpg.h" #include "./internal.h" VALUE rb_mOpenRPG; VALUE rb_mGame; VALUE rb_eRPGError; GLuint transition_vbo; GLuint transition_vao; GLuint frame_count; GLint frame_rate; GLint vsync; GLint rpgWIDTH; GLint rpgHEIGHT; GLfloat rpgRATIO_X; GLfloat rpgRATIO_Y; // extern RPGwindow *rpgGAME_WINDOW; RPGbat...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
#include <stdbool.h> #include <stdint.h> #include <graphx.h> #include <keypadc.h> #include <fileioc.h> #include "tile_handlers.h" #include "defines.h" #include "powerups.h" #include "enemies.h" #include "events.h" #include "images.h" #include "lower.h" #include "oiram.h" #include "simple_mover.h" bool pressed_left =...
/* This is the core engine for the FRUGAL environment. */ #include <stdio.h> #include <sys/time.h> #include <time.h> #include <ctype.h> #include <stdlib.h> #include <stdarg.h> #include <setjmp.h> #include <sys/types.h> #include <unistd.h> #include <sys/ioctl.h> #include <termios.h> #include <poll.h> #include <signal.h...
/* Copyright (c) 2012, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions an...
/* * NAME: nomac.c * FUNCTION: Collection of functions implements the NONE mac module. * AUTHOR: <NAME> * DATE: Revised on Oct 12th, 2005 */ //======================================================= // File Name : nomac.c //======================================================= #include "n...
/** * @file calculate_p_y.c * * This module relates to generic pY calculations. "pY" is Pr(Y_ij | theta). * The pY calculation functions contained can be applied in multiple scenarios. * In contrast, other modules (eg branching_search.c and subseq7.c) might include * pY calculation functions specific to a process...
/************************************************************************** Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. 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 i...
/*------------------------------------------------------------------------- * * dynahash.c * dynamic hash tables * * * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /home/hjcvs/O...
#define _XOPEN_SOURCE 700 // wcwidth, sigaction #include <assert.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <signal.h> #include <stdio.h> #include <stdbool.h> #include <sys/select.h> #include <sys/ioctl.h> #include <sys/time.h> #include <sys/stat.h> #include <termios.h...
/* Memory Access Pattern Visualization */ // Author: <NAME> //////////////////////////////////////// // In this file almost all of the // functions, used for parsing and // data collection, are implemented // here. #include "../libs/structs.h" int foundpath=0; /* For all allocations detects the malloc and the allo...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...