text
stringlengths
3.12k
18.7k
/* * ACE/gredit - 2d finite element grid generation * * <NAME> and <NAME> * * Copyright 1990-2003 Oregon Health and Science University * All Rights Reserved. * */ /* * draw the grid and other items if on * */ #ifndef lint static char RCSid[] = "$Id: drawobjs.c,v 1.6 2011/09/14 17:44:21...
/* $NetBSD: icmp.c,v 1.6 2000/12/01 02:19:43 simonb Exp $ */ /* * Copyright (c) 1999, 2000 <NAME> <<EMAIL>> * 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...
/* * Copyright 2020 Rockchip Electronics 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...
/* * Copyright (c) 1997 - 2000 <NAME> * (Royal Institute of Technology, Stockholm, Sweden). * 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 re...
/* * Copyright (c) 1996, 1997 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code distributions * retain the above copyright notice and this paragraph in its entiret...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include <assert.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <myst/maps.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/prctl.h> #include <sys/stat.h> #include <sys/typ...
#include "ThreadPool.h" #include "Thread.h" #include "Mutex.h" #include "Atomic.h" #include <stdlib.h> #include <stdbool.h> #include <assert.h> #include <stdio.h> #include "ConditionVariable.h" struct Job; typedef struct Job { struct Job * next; // points towards end/back of queue struct Job * prev; /...
#include <stdbool.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "list.h" #include "stack.h" #include "expression.h" #include "objects.h" #include "functions.h" #include "hashtable.h" #include "log.h" unsigned int hash(void *data) { unsigned int hash = 5381; char *str = d...
/* summary.c * Routines for capture file summary info * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <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 Founda...
/* $OpenBSD: tcxreg.h,v 1.1 1997/08/08 08:25:32 downsj Exp $ */ /* $NetBSD: tcxreg.h,v 1.1 1996/06/19 13:17:35 pk Exp $ */ /* * Copyright (c) 1996 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution...
/* FreeRDP: A Remote Desktop Protocol client. Copyright 2011 <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 requ...
/* Copyright (c) <NAME>, 1998. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ /* smap_buildsmap.c - automatically builds sphere map */ #include <assert.h> #include ...
#include "bb.h" #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <stdio.h> #include <sys/resource.h> const int alloc_step = 10; void bb_branch (bb_t* bb, int parent_node_index) { int i, j, k, branch_j; int new_node_index; bb_node_t* node; bb_node_t* new_node; node = &bb-...
/* * Copyright (C) 2016 <NAME> * Copyright (C) 2017 HAW Hamburg * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup cpu_cc26x0 * @ingroup drivers_periph_timer * @{ ...
/* Copyright (c) 2017 <NAME> and <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 agree...
/* os specific ioctl (dummy) */ #include "yaft.h" #include "conf.h" #include "util.h" #include "osx.h" /* initialize struct fb_info_t */ bool set_fbinfo(struct fb_info_t *info) { info->bytes_per_pixel = BITS_PER_PIXEL / BITS_PER_BYTE; info->bits_per_pixel = BITS_PER_PIXEL; info->screen_size = info->width * info->h...
#include "blockchain.h" #include "block.h" #include "../Hash/sha256.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #include <err.h> #include "../Noeud_de_minage/minage.h" BLOCK *getLastBlock(BLOCKCHAIN *blockchain) { return &(blockchain->blocks[blockchain->blocksNumber - 1]); } int addBlock(BLOCKCHAI...
// Super Grayland: Copyright 2021 <NAME> under the MIT license. // See `license.txt` for more information. // Before delving into the code, please read `readme_source.txt` to understand the basic design. #pragma once #include "common.h" #include "map.h" // SCR Namespace: Screen /* Everything in the SCR namespace o...
/* * File: ahci.c * Status: Construindo um driver para ahci. */ //82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] // O esquema deve ser igual ao driver do ide. // primeiro procura o dispositivo na interface PCI. // depois inicializa. //#importante: //estamos seguindo o esquema do driver de ide //pa...
/* NASA/TRMM, Code 910.1. This is the TRMM Office Radar Software Library. Copyright (C) 1996, 1997 <NAME> Space Applications Corporation Vienna, Virginia This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library Ge...
/*------------------------------------------------------------------------------ -- Help ToolKit for Motif -- -- (c) Copyright 1997-1999, 2019 <NAME> (a.k.a. <NAME>) -- ALL RIGHTS RESERVED -- -- License: The MIT License (MIT) ------------------------------------------------------------------------------*/ #incl...
/* microScheme Compiler version 0.9.3 by <NAME>. University of Warwick, UK November 2013 www.ryansuchocki.co.uk microscheme.org */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <unistd.h> #include <ctype.h> //#include <fcntl.h> /* File control definitio...
#include "drawing.h" #include "cursor.h" #include "ship.h" #include "util/vector.h" #include <curses.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> static const int BYTE = 8; void drawBox(WINDOW *window, AABB aabb) { WINDOW *borderBox = derwin(window, aabb.max.y - aabb.min.y + 1,...
#include "hashTable.h" #include "../commonUtils/stringOperations.h" #include <stdio.h> #include <stdlib.h> #include <string.h> enum CellType { empty, used, deleted }; typedef struct HashElement { int value; char* key; int numberOfProbes; } HashElement; struct HashTable { HashElement** hashTab...
#include <stdio.h> #include <malloc.h> #include <string.h> #include <windows.h> #include "Format.h" void INIT_VIP(struct BANK *Bank){ FILE *vip = fopen ( "VIP.dat" , "r" ); char c; while (!feof(vip)){ struct VIP *newp = ( struct VIP * ) malloc ( sizeof(struct VIP) ); newp->next = NULL; fscanf(vip,"%s %s %d",...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 ...
/* Unix SMB/Netbios implementation. Version 1.9. NBT netbios routines and daemon - version 2 Copyright (C) <NAME> 1994-1998 Copyright (C) <NAME> 1994-1998 Copyright (C) <NAME> 1994-1998 This program is free software; you can redistribute it and/or modify it under the terms of the GNU Genera...
/* * Copyright (c) 2009, <NAME> <<EMAIL>> * 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...
#include "http_page_tpl.h" #include <stdio.h> #include <string.h> #include <stdlib.h> const char *html_header_redirect = "<head><meta http-equiv='refresh' content='%d; URL=%s' /></head>"; const char *html_error = "ERROR"; //char *menu_uri[MENU_ITEM_COUNT] = {"/", "/setup", "/tools", "/update",...
#include "memctl/x86_64/kernel_call_syscall_x86_64.h" #include "x86_64/kernel_call_syscall_code.h" #include "memctl/kernel.h" #include "memctl/kernel_slide.h" #include "memctl/utility.h" kernel_read_fn kernel_read_text; kernel_write_fn kernel_write_text; /* * struct syscall_hook * * Description: * The state n...
#include <GL/glu.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include "pspglu.h" #define FIXED(x) ((int)((x) * 65536)) #define INT(x) ((x) / 65536) #define FRAC(x) ((x) & 0xffff) /* weight is a 1.16 fixed-point fraction */ static inline pix_t lerp(pix_t a, pix_t b, unsigned weight) { unsigned om...
/*! \file ha_issu_ctrl.c * * HA ISSU control module manages the components data structures for the * purpose of ISSU. */ /* * Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to * Broadcom Limited and/or its subsidiaries. * * Broadcom Switch Software License * * This license governs the...
/* * Code generated from Atmel Start. * * This file will be overwritten when reconfiguring your Atmel Start project. * Please copy examples or other code you want to keep to a separate file or main.c * to avoid loosing it when reconfiguring. */ #include "usb_start.h" #define USB_BUFFER_SIZE CONF_USB_CDCD_ACM_DAT...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * o...
#include "stm32f4xx.h" #include "uart.h" #include "lpm-board.h" #include "rtc-board.h" #if defined( SX1261MBXBAS ) || defined( SX1262MBXCAS ) || defined( SX1262MBXDAS ) #include "sx126x-board.h" #elif defined( LR1110MB1XXS ) #include "lr1110-board.h" #elif defined( SX1272MB2DAS) #include "sx1272-board.h" #...
#include "errno.h" #include "endianness.h" #include "kio.h" #include "vfs.h" #include "stdlib.h" #include "string.h" #include <stdbool.h> #include <stddef.h> #include <stdint.h> #define FAT_BPB_BYTES_PER_SECTOR_OFFSET 0x0b #define FAT_BPB_SECTORS_PER_CLUSTER_OFFSET 0x0d #define FAT_BPB_RESERVED_SECTORS_OFFSET 0x0e #d...
/** * \file * * \brief AVR XMEGA Analog to Digital Converter Driver Example 4 * ADC calibration with external voltage supply for reference voltage. * * Copyright (C) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, w...
/* -------------------------------------------------------------------------- * * File atx_imgdec_jpg.c * Description The ability to decode JPEG images to the ATX_imgdec extension. * Author <NAME> * * ------------------------------------------------------------------------...
/** ****************************************************************************** * File Name : RTC.c * Description : This file provides code for the configuration * of the RTC instances. ****************************************************************************** ...
// // Created by kryvashek on 04.07.16. // #include <unistd.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/un.h> #include <string.h> #include <stdbool.h> #include <memory.h> #include <moarCommons.h> #include <funcResults.h> static const size_t LAYER_COMMAND_PLAIN_SIZE = sizeof( LayerCommandPlain_T ); ...
/** Slim Test v1.0 By <NAME> <<EMAIL>> Licensed under the MIT license This is an stb style single header file library to write test cases. Define SLIM_TEST_IMPLEMENTATION before you include this file in *one* C file to create the implementation. USAGE #define SLIM_TEST_IMPLEMENTATION #include "slim_test.h" vo...
/**************************************************************************//** * @file main.c * @version V0.10 * @brief Show a 10-bit address Slave how to receive data from Master * This sample code need works with USCI_I2C_Master_10bit sample code * * SPDX-License-Identifier: Apache-2.0 * @co...
/* -*- linux-c -*- * * (C) Copyright IBM Corp. 2008 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This * file and program are licensed under a BSD style license. Se...
/** * \file acquired.c * \author <NAME> * \brief Framework for a daemon process which acquires a shared resource and * manages access to that resource between many processes. */ #include <assert.h> // assert #include <netinet/in.h> // sockaddr_in #include <poll.h> // poll, struct pollfd #include ...
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
#include "data.h" #include "neuro86.h" #include "globals.h" #include "window_animation.h" #include "neuro_menu_control.h" #include "scene_real_world.h" #include <string.h> typedef enum parts_shop_state_t { PSS_OPEN = 0, PSS_SELL_MENU, PSS_BUY_MENU, PSS_WFI, PSS_CLOSE, } parts_shop_state_t; static parts_shop_stat...
/* ======================================================================== * Copyright 1988-2006 University of Washington * * 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:...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <errno.h> /* errno */ #include <fcntl.h> /* O_RDONLY O_WRONLY */ #include <pthread.h> #include <unistd.h> #include <time.h> #include <sys/time.h> #include <sys/types.h> #include <sys/stat.h> #include <syscall.h> #include "type.h" #include "consts.h" ...
/* * Copyright (C) 2009 <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; version 2 * of the License or (at your option) a later version. * * This program is distribut...
/* * Copyright (c) 2020 Yubico AB. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ #include <errno.h> #include <fido.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include "../openbsd-compat/openbsd-compat.h" #define FIDO...
/* STOCHASTIC LOTKA-VOLTERRA MODEL WITH MULTIDIMENSIONAL NICHE SPACES by <NAME> <<EMAIL>> Supporting Material to the paper: "Framework for analyzing ecological trait-based models in multidimensional niche spaces" - Phys. Rev. E 91, 052107 ABSTRACT We develop a theoretical framework for analyzing ecological mode...
#include "../SlimTracin/app.h" #include "../SlimTracin/core/time.h" #include "../SlimTracin/viewport/hud.h" #include "../SlimTracin/viewport/navigation.h" #include "../SlimTracin/viewport/manipulation.h" #include "../SlimTracin/render/raytracer.h" quat rotation; enum LIGHT { LIGHT_KEY, LIGHT_RIM, LIGHT_FIL...
/************************************************************************/ /* 2-D Histogram */ /* */ /* Compile: cc -o 2dhisto 2dhisto.c -lhips */ /*******************...
#include <gmp.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include "uint4096.h" uint64_t p_array[64] = { 0xFFFFFFFFFFFFFFFF, 0xC90FDAA22168C234, 0xC4C6628B80DC1CD1, 0x29024E088A67CC74, 0x020BBEA63B139B22, 0x514A08798E3404DD, 0xEF9519B3CD3A431B, 0x302B0A6DF25F1437, 0x4...
#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...
/*************************************************************************\ * Copyright (c) 2009 Helmholtz-Zentrum Berlin fuer Materialien und Energie. * Copyright (c) 2009 UChicago Argonne LLC, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * ...
/*####COPYRIGHTBEGIN#### ------------------------------------------- Copyright (C) 2012 <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 optio...
///////////////////////////////////////////////////////////////////// /// DRAW: Radar Map tiles // // <LegoRR.exe@ 004a9f28> (data) ColourRGBF radarColours[30]; radarColours[0] = rgb(255,204, 0); // 0xd: REINFORCEMENT (border drawn around block) radarColours[1] = rgb( 45, 0, 75); // 0x11: CAVERN (floor/ground) rad...
#include <errno.h> #include <fcntl.h> #include <hdf5.h> #include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <uuid/uuid.h> #include "noa.h" #include "private/hdf5_backend.h" #include "object.pb-c.h" // aux tool to write a...
/* THIS CODE IS RELEASED WITHOUT WARRANTY OF FITNESS OR ANY PROMISE THAT IT WORKS, EVEN. WYSIWYG. YOU SHOULD HAVE RECEIVED A LICENSE FROM THE MAIN BRANCH OF THIS REPO. IF NOT, IT IS USING THE MIT FLAVOR OF LICENSE */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <sy...
#include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> //#include <error.h> #define LIJEVA 0 #define DESNA 1 #define JE_PRLJAVA 1 #define NIJE_PRLJAVA 0 #define KOD_MENE_JE 1 #define NIJE_KOD_MENE 0 #define TRAZENA 1 #define NIJE_TRAZENA 0 #define BUFFER_SIZE ...
/*********************************************************************** * Copyright (c) 2018 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* *******************************...
/* */ #include "stm32f103_md.h" #include "clock.h" #include "gpio2.h" #include "printf.h" #include "usart.h" #include "usb.h" enum { XTCK_PIN = PA0, XTDI_PIN = PA1, XTDO_PIN = PA2, XTMS_PIN = PA3, USART1_TX_PIN = PA9, USART1_RX_PIN = PA10, LED0_PIN = PC13, }; /* ...
/*---------------------------------------------------------------------------* * Author : Star * Date : 15 Feb 2022 * File : debugPrint.c * Version : 1.0.0.2 *---------------------------------------------------------------------------*/ #include "debugPrint.h" #include <stdarg.h> #include <stdio.h> // os....
#include <stdio.h> #include "../vec4.h" #include "../hexspace.h" #include "../hexbox.h" #include "../bounds.h" /* MAYBE TODO: ADD VEC PARSING TESTS (for fus_lexer_eval_vec) ...although frankly, it's easy enough to test vec parsing with geomtool. Maybe write some tests as a shell script using geomtool? */ void dum...
/* Authors: <NAME> <NAME> (<EMAIL>) */ /* Implement Niederreiter base 2 generator. * See: * Bratley, Fox, Niederreiter, ACM Trans. Model. Comp. Sim. 2, 195 (1992) */ #include <config.h> #include <gsl/gsl_qrng.h> #include <gsl/gsl_rng.h> #include <assert.h> #define NIED2_BIT_COUNT 30 #define NIED2_...
/****************************************************************************** Copyright (C) 2016 <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...
#include "main.h" #include <string.h> #define MEASUREMENTS 100000 #define RS_INS 0x00 #define RS_DATA 0x40 #define SPI_COMMAND_SIZE 3 typedef struct { uint32_t pulse; uint32_t period; } measurement_t; typedef struct { float kelvin; float celsius; } temperature_t; SPI_HandleTypeDef hspi1; TIM_HandleTypeDef hti...
/* * bme280_i2c_if.c * * Created on: 2021-11-14 * Author : Joerg / DL7VMD * License : MIT * * use actual driver from: * https://github.com/BoschSensortec/BME280_driver * */ //relative Paths not found in Eclipse / IDF is ok #include "ulp_riscv/ulp_riscv.h" #include "ulp_riscv/ulp_riscv_utils.h" #inclu...
#define LOAD_DEBUG 0 static int get_x_header(unsigned char *data, unsigned long now); static void jump_2ep(); static unsigned char ce_signature[] = {'B', '0', '0', '0', 'F', 'F', '\n',}; static char ** ep; #define BOOT_ARG_PTR_LOCATION 0x001FFFFC typedef struct _BOOT_ARGS{ unsigned char ucVideoMode; unsigned char ...
/* * "streamable kanji code filter and converter" * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved. * * LICENSE NOTICES * * This file is part of "streamable kanji code filter and converter", * which is distributed under the terms of GNU Lesser General Public * License (version 2) as published by th...
/* File: defs.h * * Global definitions. */ #define INDENTSTEP 4 #define FALSE (0) #define TRUE (1) #define PATHSEP '/' #define rfre_bool(e) #define rdup_bool(e) (e) typedef enum en_context { CTX_GLOBAL, CTX_OBJECT, CTX_STATICROUTINE, CTX_DYNAMICROUTINE, CTX_STATICINIT, CTX_DYNAMICINIT, CTX_CONST...
/* copyright paxdiablo lifted directly from: http://powerfield-software.com/?p=615 under license: > Brodie, the code I hold copyright for in this article (which is the bulk of > it) is covered by the “do whatever the heck you want with it” licence, the > official text of which is: > > 1/ You are hereby permitted to do...
#include <stdio.h> #include <string.h> #include <conio.h> #include <stdlib.h> /* Função exit*/ #include <ctype.h> /* Função toupper*/ #include <locale.h> #define ARQ "Dados.Dat" /* Arquivo com os dados*/ #define OP_INSERIR '1' #define OP_ALTERAR '2' #define OP_APAGAR '3' #define OP_LISTAR '4' #define OP_PESQUISAR '5...
/* * VICE -- Video Instructions Chess Engine * (C) 2013 <NAME> * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by...
//**********************************************************************; // Copyright (c) 2015, Intel Corporation // 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 s...
/* * This file is part of the 'varbench' project developed by the * University of Pittsburgh with funding from the United States * National Science Foundation and the Department of Energy. * * Copyright (c) 2017, <NAME> <<EMAIL>> * * This is free software. You are permitted to use, redistribute, and * modify i...
/** * The MIT License * * Copyright (c) 2019 <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, modi...
#include <stdlib.h> #include <string.h> #include "cstring.h" /*----------------------------------Auxiliaries----------------------------------*/ char string_valid(const String *str){ return (str!=NULL && (*str)!=NULL) ? 1 : 0; } /*===============================================================================*/ /*-...
/* * Common Float Helpers * * This contains a series of useful utility routines and a set of * floating point constants useful for exercising the edge cases in * floating point tests. * * Copyright (c) 2019 Linaro * * SPDX-License-Identifier: GPL-3.0-or-later */ /* we want additional float type definitions *...
/* * MIT License * * Copyright (c) 2019 <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,...
/* * $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...
/* * Copyright (c) 2020 Tencent Cloud. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing...
// // RKPedestalPedzy.c // RadarKit // // Created by <NAME> on 1/4/17. // Copyright © 2017-2021 <NAME>. All rights reserved. // #include <RadarKit/RKPedestalPedzy.h> // Internal Functions static int RKPedestalPedzyRead(RKClient *); static int RKPedestalPedzyGreet(RKClient *); static void *pedestalHealth(void *);...
#include "SDL.h" #include "../src/fgui.h" #define WIDTH 320 #define HEIGHT 240 #define LINEHEIGHT 20 /* pixels */ // Screen surface SDL_Surface *gScreen; struct fgui_application app; struct fgui_button button; struct fgui_button button2; struct fgui_label label; struct fgui_combobox combobox; struct fgui_lineedit l...
/* * threads.c * * Created: 23-Jun-21 * Author: <NAME> */ #include <avr/io.h> #include <string.h> #include "os.h" uint8_t loop; item_t * pRunning; void ThreadCreate(taskFunc_t funcPtr , TaskTCB_t * TCB , stack_t stackptr , uint8_t priority ) { TCB->stackPtr = ((uint16_t) stackptr) + (...
#include <stdlib.h> #include <assert.h> #include <string.h> #include "kcc.h" typedef struct Env { Map *vars; int endlabel; struct Env *prev; } Env; static int varsiz; static Env *env; static Vector *strings; static int strlabel; static int endlabel; static Map *funcs; static Env *new_env(Env *prev) { ...
/* * Copyright (c) 2016 <NAME> */ #include "json2c.c" #include <assert.h> #include <string.h> #include <stdio.h> #include <sys/ioctl.h> #define MIN_COLS 35 bool test_toktoi(void); bool test_toktoa(void); bool test_tokstrcmp(void); bool test_toktobool(void); bool test_install_val(void); bool test_iscomplete(void); ...
#include <stdint.h> #include "../inc/Items.h" #include "../inc/Sprites.h" #include "../inc/Grid.h" #include "../inc/ST7735.h" #include "../inc/tm4c123gh6pm.h" #include "../inc/Sentence.h" #include "../inc/Sprite_Images.h" struct Item_t{ uint8_t width; uint8_t height; const unsigned short * ItemPic; }; // first it...
#include "model.h" double poly_alpha = 14.; double mks_smooth = 0.5; double hslope = 0.3; double poly_xt = 0.82; double startx[4] = { 0., 0.19685238361579208, 0, 0, }; // confirmed Ma+0.94 384 2020.06.27 gnw double a = 0.; double rmax_geo = 100.; double theta_func(double X[4]) { double r, th; bl_coord(X, &r,...
/* * Copyright 2020 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "nr_axiom.h" #include "util_buffer.h" #include "util_hash.h" #include "util_memory.h" #include "util_string_pool.h" #include "util_strings.h" /* * These constants are used for sanity checking when re...
/* * Serial port driver for NXP LPC18xx/43xx UART * * Copyright (C) 2015 <NAME> <<EMAIL>> * * Based on 8250_mtk.c: * Copyright (c) 2014 MundoReader S.L. * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 ...
#include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <string.h> #include "output.h" #include "tmisu.h" static void print_sanitized(const char *string, const char *escape) { while (*string) { size_t len = strcspn(string, escape); printf("%.*s", (int)len, string); string += len; while (*string...
// Copyright 2021 ETH Zurich and University of Bologna. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Author: <NAME>, ETH Zurich /* This library implements the discrete cosine transformation * The functions all follow the following format: * *...
#include "../SPLogger.h" #include "../SPPoint.h" #include "../SPConfig.h" #include "../KDArray.h" #include "unit_test_util.h" int spKDArrayCompare(SPKDArray A, SPKDArray B) { int i,j; int rc = 0; int rows = getKDRows(A); if(rows != getKDRows(B)) return 1; int cols = getKDCols(A); if(co...
/* * Unix SMB/CIFS implementation. * * Registry helper routines * * Copyright (C) <NAME> 2010 * * 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 * (a...
/* * This file is subject to the terms and conditions defined in * file 'LICENSE', which is part of this source code package. * * @author <NAME> */ #include "ovr_pulseTrainRecorder.h" // ******** includes ******** #include <avr/io.h> #include <util/delay.h> #include <avr/interrupt.h> #include <cxa_array.h> #incl...
#pragma once // License: MIT http://opensource.org/licenses/MIT // Author: dustpg mailto:<EMAIL> #include "sfc_rom.h" #include "sfc_code.h" #include "sfc_apu.h" #include "sfc_cpu.h" #include "sfc_ppu.h" #include "sfc_mapper.h" #include "sfc_config.h" // typedef struct sfc_famicom; typedef struct sfc_famicom sfc_f...
/** * @file * @brief This file contains implementation of simple triangle example. * * @author <NAME>, <EMAIL> * */ #include <assert.h> #include <math.h> #include <examples/triangleExample.h> #include <student/buffer.h> #include <student/camera.h> #include <student/gpu.h> #include <student/linearAlgebra.h> #inc...
/* GStreamer * * unit test for avimux * * 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 ...