text
stringlengths
3.12k
18.7k
#include "recovery.h" enum passtype {PASS_SCAN, PASS_REVOKE, PASS_REPLAY}; u32 journal_set_revoke(journal_t *journal, u32 blocknr, tid_t sequence); // 恢复信息,记录了日志恢复阶段的相关变量的值 struct recovery_info{ u16 start_transaction; u16 end_transaction; u32 nr_replays; u32 nr_revokes; u32 nr_revo...
/******************************************************************************* * Includes ******************************************************************************/ #include <prediction.h> #include <math.h> #include "Functions.h" /*****************************************************************************...
/* * 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 ...
/* * Copyright (c) 2005-2007 <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 conditio...
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2006 <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your o...
/* rtc-test.c * * Tests for the Real Time Clock driver. * * Copyright (c) Larsen & Toubro Infotech Ltd., 2010 * Copyright (c) 2013 Oracle and/or its affiliates. All Rights Reserved. * * Author : <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under...
/* $XConsortium: analyze.c,v 1.4 94/04/17 20:34:10 rws Exp $ */ /**** module analyze.c ****/ /****************************************************************************** Copyright (c) 1993, 1994 X Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
#include "melon/modules/object/object_module.h" #include "melon/modules/modules.h" #include "melon/core/closure.h" #include "melon/core/symbol.h" #include "melon/core/object.h" #include "melon/core/tstring.h" /*** * @module * * This module groups together utility functions that can be used to manipulate * [`Obje...
/* ArdOS Copyright (C) 2012 <NAME> ArdOS 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. ArdOS is distributed in the hope that it will be u...
#include <rlang.h> #include "internal.h" #include "vec.h" static r_obj* c_fn = NULL; static r_obj* as_character_call = NULL; static r_obj* names_call = NULL; static r_obj* set_names_call = NULL; static r_obj* length_call = NULL; static r_obj* node_names(r_obj* x); static r_obj* names_dispatch(r_obj* x, r_obj* env); ...
/* blkid.c - Prints type, label and UUID of filesystem(s). * * Copyright 2013 <NAME> <<EMAIL>> * * See ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.24/libblkid-docs/api-index-full.html USE_BLKID(NEWTOY(blkid, "UL[!LU]", TOYFLAG_BIN)) USE_FSTYPE(NEWTOY(fstype, "<1", TOYFLAG_BIN)) config BLKID bool "blkid" ...
/****************************************************************************** * File Name: main.c * * Description: This is the source code for the XMC MCU: CAN Receiver example * for ModusToolbox. The CAN node 1 is configured to receive a CAN * message over the CAN bus. Successful me...
#include <DS18B20.h> #include <stdlib.h> #include <ADDRESSES_FILE.h> #define DS18B20_COMMAND_READ_SCRATCH_PAD 0xBE #define DS18B20_COMMAND_START_CONVERSION 0x44 #define DS18B20_COMMAND_SKIP_ROM 0xCC #define DS18B20_COMMAND_MATCH_ROM 0x55 #define DS18B20_COMMAND_SEARCH_ROM 0xF0 #define DS18B20_SEARCH_DISC 0b00 #define...
/* ----------------------------------------------------------------<Prolog>- Name: sflfort.c Title: Fortune-cookie functions Package: Standard Function Library (SFL) Written: 1999/08/16 iMatix SFL project team <<EMAIL>> Revised: 1999/09/30 Copyright: Copyright (c) 1996-2...
//#ifndef WIN32 #include <unabto/unabto_stream.h> #include <unabto/unabto_memory.h> #include <errno.h> #include <fcntl.h> #include <modules/network/epoll/unabto_epoll.h> #include <termios.h> #include <modules/tunnel/unabto_tunnel_common.h> #include <modules/tunnel/unabto_tunnel_uart.h> #if NABTO_ENABLE_EPOLL #includ...
#include <event2/buffer.h> #include <event2/bufferevent.h> #include <event2/event.h> #include <event2/listener.h> #include <event2/util.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #ifndef _WIN32 #include <netinet/in.h> #ifdef _XOPEN_SOURCE_EXTENDED #include <arpa/inet.h> #endif #include <sys/socket.h...
#ifndef lint static const char RCSid[] = "$Id: font.c,v 2.24 2021/11/20 22:39:01 greg Exp $"; #endif /* * Polygonal font handling routines */ #include "copyright.h" #include <stdlib.h> #include "paths.h" #include "rtio.h" #include "rterror.h" #include "font.h" #define galloc(nv) (GLYPH *)malloc(sizeof(GLYPH)+2*si...
/* nspshc.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__1 = 1; static integer c__12 = 12; /* $Procedure NSPSHC ( Inspekt Show comments) */ /* Subroutine ...
/* SDL version of the GLFW shader at ../opengl/glfw_heatmap.c to compare FPS with heatmap.c. */ #include "common.h" #define GLEW_STATIC #include <GL/glew.h> static const GLuint WIDTH = 500; static const GLuint HEIGHT = 500; static const GLchar* vertex_shader_source = "#version 120\n" "attribute vec2 coord2d;...
/* * title.c - window titles */ /* * Copyright 2006-2007 <NAME> * * 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 u...
/* This test attempts to attach to a child and makes sure we are */ /* getting the expected results for the child only, not local. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <limits.h> #include <sys/ptrace.h> #include <sys/wait.h> #include "papi.h" #include "papi_test...
/* * Copyright 2005-2019 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
/* * Copyright (c) 2015-2018, NVIDIA CORPORATION. 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 * the rights ...
/* * Copyright @ Members of the EMI Collaboration, 2010. * See www.eu-emi.eu for details on the copyright holders. * * 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...
#include <axon/db/migrate.h> static void axon_markPerformed(AxonMigration **migrations) { AxonMigration **ptr = migrations; FILE *save = fopen(AXON_MIGRATIONS_FILE, "r"); if (save == NULL) return; /* LCOV_EXCL_LINE */ char *buffer = NULL; while (!feof(save)) { char c = (char) fgetc(save); switch (c...
/* * Copyright 2018 <NAME>, <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 required by applicable law or agreed to ...
#include "Automation.h" #include "common.h" #include <math.h> #include <memory.h> #include <stdlib.h> #define MAX_CORE_OPS_PER_STEP 64 void amDataInit(AmData *a, int samplerate, int bpm, int ticks_per_bar) { memset(a, 0, sizeof(*a)); a->serial = 0; a->samplerate = samplerate; a->bpm = bpm; a->samples_per_bar = ...
#include <stdio.h> #include <stdlib.h> #include <signal.h> #include <errno.h> #include <string.h> #include <arpa/inet.h> #include <unistd.h> #include <inttypes.h> #include <kylestructs.h> #include <response.h> #include <string_map.h> #include <file_manager.h> #include <log_manager.h> #include <socket_manager.h> #inclu...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* * texture_image.c * * Created by <NAME> on 2013 Nov 03. * * Copyright (c) 2013 <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 cod...
/* session_parser.c */ #include <unistd.h> #include <string.h> #include <stdio.h> #include <fcntl.h> #include <errno.h> #include <session_parser.h> #include <file_handler.h> #include <include/codes.h> #include <include/functions.h> #include <mem.h> int delete_file(const char *name) { char *with_home = fix_path(S...
/* vim: set et sw=4 ts=4 sts=4 : */ /********************************************************************\ * 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 * * ...
/* WinSendCom.c - Copyright (C) 2002 <NAME> <<EMAIL>> * * Implement a COM class for use in registering Tcl interpreters with the * system's Running Object Table. * This class implements an IDispatch interface with the following method: * Send(String cmd) As String * In other words the Send methods takes a stri...
/* _LogicListInit cseg 000010E8 0000000F _LogicListFree cseg 000010F7 00000018 _LogicListFind cseg 0000110F 0000002E CmdLoadLogics cseg 0000113D 0000001C CmdLoadLogicsV cseg 00001159 00000024 _LogicLoad ...
/* @source checktrans application ** ** Check translations made with transeq (document these translations) ** ** @author Copyright (C) <NAME> & <NAME> ** @@ ** Adapted from work done by <NAME> ** Modified by <NAME> 19 April 2000 to remove output to STDOUT and to ** write ORF sequences to a single file instead of many i...
#include "GLFW/glfw3.h" #include "cimgui.h" #include "client.h" #include "entity.h" #include "utils.h" #include "utils.h" #include "window.h" #include <stdbool.h> static void apply_fallback_resolution(unsigned int *width, unsigned int *height) { GLFWmonitor *primary_monitor = glfwGetPrimaryMonitor(); if (!primary_mo...
/* -*- mode: C; coding:utf-8 -*- */ /**********************************************************************/ /* Yet Another Teachable Operating System */ /* Copyright 2016 <NAME> */ /* */...
/* * Copyright (c) 2015, Swiss Federal Institute of Technology (ETH Zurich). * 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 copy...
/* * nsiproxy.sys icmp_echo implementation * * Copyright 2021 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any...
/* * BSD 2-Clause License * * Copyright (c) 2018, <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: * * * Redistributions of source code must retain the above copyright notice, this ...
#include <GL/glew.h> #include <GL/freeglut.h> #include <SOIL/SOIL.h> #include <SDL/SDL.h> #include <SDL/SDL_mixer.h> #include <stdio.h> #include <math.h> #include <string.h> #include <time.h> #include "model/props/props.h" #include "model/grama/grama.h" #include "model/carro/carro.h" #include "model/pista/pista.h" #inc...
//IO code #include "_ti_stm32f4_IO.h" /*---------------------------------------------------------------------------- IO Functions *----------------------------------------------------------------------------*/ int UpdateRotaryEncoderState(int state){ int re_pstate = WavyDisplay.RE_Prev_State; int re_adjust = 0...
/* * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2019 Western Digital Corporation or its affiliates. * * Authors: * <NAME> <<EMAIL>> */ #include <plat/string.h> #include <plat/tinyfdt.h> #define FDT_MAGIC 0xd00dfeed #define FDT_VERSION 17 struct fdt_header { u32 magic; u32 totalsize; u32 off_...
/******************************************************************************************* * * raylib [shapes] example - top down lights * * This example has been created using raylib 4.0 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) * * Example cont...
/* 8051 emulator * Copyright 2006 <NAME> * * 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...
/***************************************************************** ** ** @(#) zone.c (c) Mar 2005 <NAME> hznet.de ** ** Copyright (c) Mar 2005, <NAME>. All rights reserved. ** ** This software is open source. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted prov...
/* Copyright (c) 2017 <NAME>. All rights reserved. */ #include <assert.h> #include "file.h" #include "net/socket.h" #include "utils/array.h" #include "utils/safer.h" #include "kad/test_util.h" #include "net/kad/routes.c" // testing static functions KAD_TEST_NODES_DECL; bool files_eq(const char f1[], const char ...
/*****************************************************************************\ * * * Filename reparsept.h * * * * Description Definitions for W...
//http://www.cs.ucsb.edu/~almeroth/classes/W01.176B/hw2/examples/udp-server.c /* Sample UDP server */ #include <sys/socket.h> #include <netinet/in.h> #include <stdio.h> #include <strings.h> #include <string.h> //Note: -1 indicates unmatched short pulse. I.e. quick transitions must pair up. int16_t ParseEthernet( u...
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #include <math.h> #define UMBRAL 1 double pow2_2(int n){ return pow(n,2.2); } double pow2(int n){ return pow(n,2); } double pow2_1(int n){ return pow(n,2.1); } double pow1_8(int n){ return pow(n,1.8); } double pow1_2(int n){ r...
/* * Copyright (c) 2005-2010 Hypertriton, Inc. <http://hypertriton.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 copyrigh...
/* * misc.c -- Misc. routines (especially I/O) needed by many S3 applications. * * ********************************************** * CMU ARPA Speech Project * * Copyright (c) 1996 Carnegie Mellon University. * ALL RIGHTS RESERVED. * ********************************************** * * HISTORY * * 11-Nov-96 ...
/** * \file * * \brief USB host Human Interface Device (HID) mouse driver. * * Copyright (C) 2011-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 follo...
/** * Bao, a Lightweight Static Partitioning Hypervisor * * Copyright (c) Bao Project (www.bao-project.org), 2019- * * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Bao is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License version 2 as ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "portaudio.h" #include <string.h> #include <sys/timerfd.h> // WAVE file header format struct HEADER { unsigned char riff[4]; // RIFF string unsigned int overall_size ; // overall size of file in bytes unsigned char wave[4]; // WAVE st...
#include "singlewire.h" #include "km0/base/bitOperations.h" #include "digitalIo.h" #include "km0/types.h" #include <avr/interrupt.h> #include <avr/io.h> #include <util/delay.h> #include <util/delay_basic.h> #include "debug_uart.h" #include <stdio.h> /* SingleLineHalfDuplex_PulseRatio_BinaryFragment_SeqMultiBytes ・...
#include "pq.h" #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <yael/kmeans.h> #include "vecs_io.h" #include "misc.h" typedef struct _config { const char* input_filename; const char* output_template; int m; int num_bits_per...
/* applefile.h - Data structures used by AppleSingle/AppleDouble * file format * * Written by <NAME>, 22-Oct-1993 * * For definitive information, see "AppleSingle/AppleDouble * Formats for Foreign Files Developer's Note"; Apple Computer * Inc.; (c) 1990. * * Other details were added from: * Inside...
/* Test mpn_fib2m. Copyright 2018 Free Software Foundation, Inc. This file is part of the GNU MP Library test suite. The GNU MP Library test suite 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 ...
// 0x0700AD90 - 0x0700AE90 static const Vtx bitdw_seg7_vertex_0700AD90[] = { {{{ -409, 205, -204}, 0, { 990, 2010}, {0xce, 0x91, 0x16, 0xff}}}, {{{ -409, 0, -204}, 0, { 478, 1498}, {0xce, 0x91, 0x16, 0xff}}}, {{{ -409, 0, 205}, 0, { 1502, 478}, {0xce, 0x91, 0x16, 0xff}}}, ...
/***************************************************************************** * * * Copyright (c) 2003-2015 Intel Corporation. * * All rights reserved. * * ...
/*============================================================================================= * * clock.c * * --------------------------------------------------------------------------------------------- * * MIT License * * Copyright(C) 2017 : KUNBUS GmbH, Heerweg 15C, 73370 Denkendorf, Germany * * Permission is here...
/* See LICENSE file for copyright and license details. */ #include "common.h" #include <immintrin.h> static __m128i ror24, ror16; static __m128i load_m128i(size_t a, size_t b, __m128i vec[]) { if (a & 1) { if (b & 1) return _mm_unpackhi_epi64(vec[a / 2], vec[b / 2]); else return _mm_shuffle_epi32(_mm_blend...
/* * Copyright (C) 2009-2011 <NAME> <<EMAIL>> * * 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 PROVIDED "AS IS" AND THE AUTHO...
#include "yosh.h" #include "yosh_app_api.h" #include <stddef.h> #include "containers/lists.h" #include "containers/strings.h" #include "builtin/help.h" #include "builtin/about.h" #include "builtin/exit.h" yosh_app_t* yosh_builtin_apps[] = { &yosh_builtin_help, &yosh_builtin_about, ...
#include "EditLexer.h" #include "EditStyleX.h" // https://www.autoitscript.com/site/autoit/ static KEYWORDLIST Keywords_AU3 = {{ "and byref case const continuecase continueloop default dim do else elseif endfunc endif " "endselect endswitch endwith enum exit exitloop false for func global if in local next not ...
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* * Copyright(c) 2020-2021 Intel Corporation */ #include "iwl-drv.h" #include "pnvm.h" #include "iwl-prph.h" #include "iwl-io.h" #include "fw/api/commands.h" #include "fw/api/nvm-reg.h" #include "fw/api/alive.h" #include <linux/efi.h> struct iwl_pnvm_section { _...
/** ****************************************************************************** * File Name : AD7606.c * Description : AD7606 ADC Driver source file. * Last Update : 26-Dec-2020 * Author : <NAME> * E-Mail : <EMAIL> ***********************************************************...
/* A quick, dirty, stupid disassembler to test libdisasm */ /* Compile with `gcc -I. -O3 -L. -ldisasm quikdis.c -o quikdis` */ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/mman.h> #include <elf.h> #include <unistd.h> #include <inttypes.h> #includ...
// // Created by Kostya on 10/07/2017. // #define _GNU_SOURCE #include <string.h> #include <syslog.h> #include <openssl/evp.h> #include <openssl/hmac.h> #include <assert.h> #include "prot.h" #include "utils.h" #include "log.h" void hmac_sha256(const void *key, int keylen, const unsigned char *data, ...
/* * Copyright 2012 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...
/**************************************************************************** * * direct.c * * Routines for Direct FFS algorithm. * * CHANGE OF RESULTS: 'laststate' issue in initialise * CHANGE OF RESULTS: replaced ran3() * CHANGE OF RESULTS: replaced ran in gillespie * * ISSUE: Reconfigure to allow tra...
/* findOpenLoopPitchDelay.c Copyright (C) 2011 Belledonne Communications, Grenoble, France Author : <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...
// Copyright 2020 <NAME> // Licensed under BSD-3-Clause // Refer to the license.txt file included in the root of the project #include <getopt.h> #include <pthread.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/select.h> #include <unistd.h> #include <xcb/xcb.h> #include <xcb/xcb_util.h> #i...
/* $OpenBSD: siop_gsc.c,v 1.4 2007/08/23 21:01:22 kettenis Exp $ */ /* * Copyright (c) 2007 <NAME> * * 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. ...
/* * Copyright (C) <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 * the rights to use, copy, modify, merge, publish...
// // DisplayGeneralInfo.c // Copyright (c) 2002 by <NAME> // Freeware // // void SetGeneralInfo(HWND hwnd) // // Fill the general-tab-pane with general info for the // specified window // #define STRICT #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <tchar.h> #include "resource.h" #include "WinSpy.h" ...
#if defined(__linux__) #define _GNU_SOURCE #endif #include <stdio.h> #include <stdlib.h> #include <sqlite3.h> #include <unistd.h> #include <stdbool.h> #include <string.h> #include <pwd.h> #include <sys/time.h> #include <time.h> #include "config/config.h" #include "sds/sds.h" #include "index.h" #include "find.h" #in...
/* $OpenBSD: notification.c,v 1.39 2016/07/01 23:36:38 renato Exp $ */ /* * Copyright (c) 2009 <NAME> <<EMAIL>> * * 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...
/* See LICENSE for licence details. */ #include <linux/fb.h> #include <linux/vt.h> #include <linux/kd.h> /* shell */ const char *shell_cmd = "/system/bin/sh"; enum keystate { SHIFT_MASK = 0x01, CTRL_MASK = 0x02, ALT_MASK = 0x04, }; struct bitfield_t { uint8_t offset; uint8_t length; }; struct fb_vinfo_t { ...
#include "mufitsio.h" #include <errno.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { const char *sim_name; const char *sum_dir; const char *out_dir; long id_start; long id_end; } app_config; static void print_help(); static bool parse_arguments(int argc,...
/* ************************************************************************************************* * Emulation of Melexis 90614 I2C IR Temperature Sensor * * state: Working but giving constang temperatures. * * Copyright 2010 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms,...
#define NUM_TETROMINOES (19) #define NUM_TOP_TETROMINOES (30) #define NUM_TRANSLATED_TETROMINOES (725) #define NUM_TRANSLATED_TETROMINOES_2 (897) #define SHOT_PATIENCE (100000) #define CHAIN_PATIENCE (100 * SHOT_PATIENCE) static puyos_t TETROMINOES[NUM_TETROMINOES] = { 195, // O 387, 4290, // Z 198, 8385...
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. Copyright (C) 2006 <NAME> <<EMAIL>> This file is part of XreaL source code. XreaL source code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Li...
/* * $QNXLicenseC: * Copyright 2009, QNX Software Systems. * * Licensed under the Apache License, Version 2.0 (the "License"). You * may not reproduce, modify or distribute this software except in * compliance with the License. You may obtain a copy of the License * at: http://www.apache.org/licenses/LICENSE-2.0...
#include "libsockets.h" struct broadReturn setBroadcast(char * service) { /* EXEMPLE MAN GETADDRINFO */ struct addrinfo hints, *result, *rp; struct sockaddr_storage broad; struct broadReturn r; int s, sfd; int optval=1, optlen=sizeof(int); memset(&hints, 0, sizeof(struct addrinfo)); hi...
/* * eeprom.c * * Created on: 22.11.2019 * Code parts are copied from PEG flight software */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include "eeprom.h" #include "../../globals.h" #include "../../layer1/I2C/obc_i2c.h" #include "../main.h" #include "../cli/cli.h" #include "../tim/timer.h" #in...
/* * PIM for Quagga * Copyright (C) 2008 <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 version. * * This pro...
/* Portability declarations. Requires sys/types.h. Copyright (C) 1988, 1992 Free Software Foundation This file is part of GNU Tar. GNU Tar 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...
/** * \file util/hbexpand.c * * \brief Routine to expand a symmetric/Hermitian CSR/CSC matrix to * full storage. */ #include <assert.h> #include <stdio.h> #include <string.h> #include <oski/config.h> #include <oski/common.h> #include "readhbpat.h" /** * \brief Temporary array element structure containing a...
// Copyright (c) 2011, <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: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the...
#include "r_difeq.h" #include "difeq.h" #include "util.h" SEXP r_difeq(SEXP r_y_initial, SEXP r_steps, SEXP r_target, SEXP r_data, SEXP r_n_out, SEXP r_data_is_real, SEXP r_n_history, SEXP r_grow_history, SEXP r_return_history, SEXP r_return_initial, SEXP r_return_po...
// ----------------------------------------------- // gles-hacks.c // // Written by <NAME>, 2009-2012 // Copyright (c) 2012, Dream Rock Studios, LLC // // 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 t...
#include "mixer.h" #include "tl/vector.h" #include "tl/memory.h" #include <string.h> #include <stdlib.h> typedef struct channel { // Mutator write once, mutator read, mixer write void* id; // Mutator write, mixer read uint32_t flags; // Mutator write once, mixer read sfx_sound* sound; // Mutator write once, ...
/* * Function call tracing for gcc >= 2.95 * * Copyright 2012 <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 the License, or (at your option) an...
/* GStreamer * Copyright (C) <2006> <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * ...
/* im_close.c --- close an image * * Copyright: <NAME> * Written on: 12/04/1990 * Modified on : * 24/7/92 JC * - im_update_descfile code tidied up * - free on NULL string when junking Hist fixed * - now calls im_unmapfile * - better behaviour if image has been opened and closed with * no i...
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> // MQTT-C #include <mqtt.h> #include "MQTT-C/examples/templates/posix_sockets.h" // json-parser #include "json.h" // TermGL #include "TermGL/src/termgl.h" #include "TermGL/src/termgl3d.h" #include "TermGL/src/termgl_vec...
/* * ISC License * * Copyright (C) 1990-2018 by * <NAME> * <NAME> * <NAME> * Delft University of Technology * * 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 appea...
/* Copyright (C) 2016,2017 BGI Research 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 the right...