text
stringlengths
5.8k
28.2k
/*************************************************************************** Copyright 2016 Hewlett Packard Enterprise Development LP. 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 ...
/* * psp2rela * Copyright (C) 2021, <NAME> */ #include <stdint.h> #include <stdlib.h> #include "convert.h" #include "core.h" #include "register.h" #include "data_register.h" #include "../debug.h" #include "../rela_config.h" /* * Used by ABS32 */ #define RELA_TYPE9_MAX_WORDS (0xE) #define RELA_TYPE8_MAX_WORDS (0...
// Copyright (c) 2015, <NAME> // For conditions of distribution and use, see the accompanying LICENSE and README files // This file is part of the benchmarks for the AUMA machine learning based auto tuning application // developed at the Norwegian University of Science and technology #include <stdio.h> #include <std...
/* main.c * * Copyright (c) 1992-2005 by <NAME>. * All rights reserved. * */ #include "syshdrs.h" #ifdef PRAGMA_HDRSTOP # pragma hdrstop #endif #include "ls.h" #include "bookmark.h" #include "shell.h" #include "cmds.h" #include "main.h" #include "progress.h" #include "pref.h" #include "readln.h" #include "trace....
#include <stdio.h> #include <assert.h> #include <stdbool.h> #include "poly.h" #include "util.h" #include "export.h" poly_t *alloc_poly(void) { poly_t *poly = malloc(sizeof(poly_t)); assert_mem(poly); poly_init(poly); return poly; } void free_poly(poly_t *p, int free_self) { if(p == NULL) return; if(poly_vertex...
/* * Copyright (c) 2001 <NAME> and The Ohio State University * 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 * noti...
#include "tdc_control.h" // POSIX header #include <termios.h> #include <fcntl.h> #include <unistd.h> #include <time.h> // C header #include <stdio.h> #include <errno.h> #include <stdint.h> #include <string.h> #include <stdlib.h> tdc_t *tdc_open(const char *filename) { int fd = open(filename, O_RDWR );//| O_NOCTTY...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "psrcat.h" void help(); void version(char *dbFile); void display_parameters(char *checkval,paramtype *defParam); void parseParameters(int argc,char *argv[],int *ptr,char sptr[MAX_PLIST][MAX_STRLEN], int *np...
#include "JavaMiniCompiler.h" char* concat(char* s1, char* s2){ if(strcmp(s2,"Class")==0) return s2; char* temp=malloc(sizeof(s1)+sizeof(s2)+1); strcat(temp,s1); strcat(temp,s2); return temp; } int checkTokenExists(char* token){ int i=0; for(;i<no_of_entries;i++){ if(strcmp(table[i].name,token)==0 && (table[i...
/* ** Copyright (C) 2001-2020 by Carnegie Mellon University. ** ** @OPENSOURCE_LICENSE_START@ ** See license information in ../../LICENSE.txt ** @OPENSOURCE_LICENSE_END@ */ /* ** rwtotalsetup.c ** ** */ #include <silk/silk.h> RCSIDENT("$SiLK: rwtotalsetup.c ef14e54179be 2020-04-14 21:57:45Z mthomas $"); #include "...
/* * Copyright (c) 2000, 2002, 2003, 2005 <NAME> <<EMAIL>> * Portions Copyright (c) 2002 by Koninklijke Philips Electronics N.V. */ /** * These routines do the necessary range checking, clipping, and cursor * overwriting checks, and then call the lower level device dependent * routines to actually do the drawing....
/* prscml.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__12 = 12; static integer c__1 = 1; /* $Procedure PRSCML ( Parse MKDSK command line ) */ /* Subroutine *...
/* Copyright 2013 <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 in writing, software distributed...
#include <stdlib.h> #include <stdbool.h> #include <signal.h> #include <poll.h> #include <argp.h> #include <syslog.h> #include <sys/stat.h> #include <time.h> #include "Constants.h" #include "Serial.h" #include "KISS.h" #include "TCP.h" #include "TAP.h" #define BAUDRATE_DEFAULT 0 #define SERIAL_BUFFER_SIZE 512 #define ...
/* * The MIT License * * Wavefront Alignments Algorithms * Copyright (c) 2017 by <NAME> <<EMAIL>> * * This file is part of Wavefront Alignments Algorithms. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentati...
/* =========================================================================== * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005 * * Use of this software is controlled by the terms and conditions found in the * license agreement under which this software has been supplied. * ==============...
#include "param.h" #include "types.h" #include "defs.h" #include "x86.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "elf.h" #include "spinlock.h" extern char data[]; // defined by kernel.ld pde_t *kpgdir; // for use in scheduler() struct spinlock lock; char pg_refcount[PHYSTOP >> PGSHIFT]; ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "estruturas.h" #include "constantes.h" #include "HMMFiles.h" // Le informacoes do arquivo .inf referente aos modelos HMM int loadHMMInfo ( char *nome_HMM, // nome do arquivo com os modelos HMM das subunidades struct modelo_HMM ...
#include "base.h" #include "log.h" #include "buffer.h" #include "plugin.h" #include "inet_ntop_cache.h" #include "configfile.h" #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <assert.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <netinet/in.h> #include <errno.h>...
/* * (C) Copyright 2005 * <NAME>, DENX Software Engineering, <EMAIL>. * * See file CREDITS for list of people who contributed to this * project. * * 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 Fo...
#include "parse.h" #include "buf.h" #include "stri.h" #include "msg.h" typedef struct { bool is_stmt; union { Stmt* stmt; Expr* expr; }; } StmtOrExpr; static Stmt* parse_top_level_stmt(ParseContext* p, bool error_on_no_match); static Stmt* parse_function_stmt(ParseContext* p, bool is_exter...
#include <stdio.h> #include <string.h> #include "dbgenloc.h" /* New procedure added Dec. 2006 to support residual only data. Done at the request of users in June 2006 AUG meeting in Tucson. This procedure was produced as a simplification of the form_equations procedure in libgenloc. Here we basically loop thro...
/* * Copyright (C) 2010-2013 Bluecherry, LLC <http://www.bluecherrydvr.com> * * Original author: * <NAME> <<EMAIL>> * * Additional work by: * <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 ...
/* * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdint.h> #include <stdio.h> #include <stddef.h> #include "cc_pal_mutex.h" #include "cc_pal_abort.h" #include "driver_defs.h" #include "cc_hal.h" #include "cc_hal_plat.h" #includ...
/************************************************************************* * Created: Seg 7 Fev 2011 16:36:24 BRST * * Author: <NAME>, <EMAIL> * ************************************************************************* * * *************************************************************************/ #include <std...
/* ************************************************************************** ** * Includes * ************************************************************************** */ #include "task_flight.h" #include <stdint.h> // std types #include <stdbool.h> // bool definition #include <stddef.h> // size_t #include <st...
/* * Mesa 3-D graphics library * Version: 6.5 * * Copyright (C) 1999-2006 <NAME> 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, inclu...
#include "includes.h" #include "lp_touch_key_epd.h" /* #define SUPPORT_MS_EXTENSIONS */ /* #ifdef SUPPORT_MS_EXTENSIONS */ /* #pragma bss_seg( ".lp_touch_key_epd_bss") */ /* #pragma data_seg( ".lp_touch_key_epd_data") */ /* #pragma const_seg( ".lp_touch_key_epd_const") */ /* #pragma code_seg( ".lp_touch_key_epd_code")...
/* * Copyright (c) 1989,90 Microsoft Corporation */ /************************************************************************** * * Name: fillproc.h * * Purpose: Header files of graphics machinery, for definitions of * data types, data structures, constants, and macros...
/* Proyek Tengah Semester Kelompok = 3 Anggota = <NAME> (2006577284) <NAME> (2006577422) Judul Program = Self Financial Management System Tanggal Rev = 8 April 2021 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "util.h" #include "functions.h" struct dataBulanan { char bulan[20]; do...
#include "substrate-methods.h" // convert the Runtime Version to its byte representation // @return 0/1 in case of success/failure // `raw_runtime_version` the pre-allocated buffer (of size SIZE_SPEC) to fill // `spec_version` the number to convert uint8_t set_runtime_version(uint8_t *raw_runtime_version, uint32_t spe...
/* prompt.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; /* $Procedure PROMPT ( Prompt a user for a string ) */ /* Subroutine */ int prompt_(char *...
/* * Oracle Linux DTrace. * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. * * The PID provider for DTrace. */ #include <assert.h> #include <errno.h> #include <string.h> #include <bp...
/*s: networking/ndb/convM2DNS.c */ #include <u.h> #include <libc.h> #include <ip.h> #include "dns.h" typedef struct Scan Scan; /*s: struct [[Scan]] */ struct Scan { uchar *base; /* input buffer */ uchar *p; /* current position */ uchar *ep; /* byte after the end */ char *err; char errbuf[256]; ...
/* * $Id$ * * Layer Two Tunnelling Protocol Daemon * Copyright (C) 1998 Adtran, Inc. * Copyright (C) 2002 <NAME> * * <NAME> * * This software is distributed under the terms * of the GPL, which you should have received * along with this source. * * Authorization, Accounting, and Access control * */ #incl...
// simplified from cyclone matrix~ #include <string.h> #include <math.h> #include "m_pd.h" #define mtx_DEFGAIN 1. #define mtx_DEFfade 10. #define mtx_GAINEPSILON 1e-20f #define mtx_MINfade .001 /* LATER rethink */ #define mtx_MININLETS 1 #define mtx_MAXINLETS 512 #define mtx_MINOUTLETS 1 #define mtx_MAXOUT...
/*********************************************************** Copyright (c) 1987, 1988, 1994 X Consortium 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 li...
/* P I X 3 F I L T E R . C * BRL-CAD * * Copyright (c) 1986-2016 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1...
/** * Copyright 2011 LiveProfile * * * 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 ag...
/* * AXP20x PMIC USB power supply status driver * * Copyright (C) 2015 <NAME> <<EMAIL>> * Copyright (C) 2014 <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 ...
//char INT_CIGAROP[] = {'M', 'I', 'D', 'N', 'S', 'H', 'P', '=', 'X'}; int BTI[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, ...
/******************************************************************************* * Copyright (c) 2009-2014, MAV'RIC Development Team * 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...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * 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 cod...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
/* * Broadcom chipcommon NAND flash interface * * Copyright (C) 2013, Broadcom Corporation * All Rights Reserved. * * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation; * the contents of this file may not be disclosed to third parties, copied * or duplicated in any form, in whole or in part, ...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee a...
/* * OpenBOR - http://www.chronocrash.com * ----------------------------------------------------------------------- * All rights reserved, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2015 OpenBOR Team * * Video.c - adjunct to the main build's video.c. * Made by UTunnels (<EMAIL>). * Modif...
/* * menubox.c -- implements the menu box * * AUTHOR: <NAME> (<EMAIL>) * * Substantial rennovation: 12/18/95, <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 versi...
/** * * @file Second_Stage.c * * @copyright 2009-2014 The University of Tennessee and The University of * Tennessee Research Foundation. All rights reserved. * @copyright 2012-2018 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, * Univ. Bordeaux. All rights reserved. * @cop...
/* PsychToolbox3/Source/Common/Screen/SCREENCopyWindow.c AUTHORS: <EMAIL> awi <EMAIL> mk PLATFORMS: All. HISTORY: 02/19/03 awi Created. 03/11/04 awi Modified for textures 1/11/05 awi Cosmetic 1/14/05 awi added glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE) at mk's su...
/** * \copyright * MIT License * * Copyright (c) 2019 Infineon Technologies AG * * 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...
/* **************************************************************************** * Copyright (C) 2015 - 2016 Bosch Sensortec GmbH * * bmm050_support.c * Date: 2016/03/17 * Revision: 1.0.6 $ * * Usage: Sensor Driver support file for BMM050 and BMM150 sensor * *************************************************************...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2017 Logic PD, Inc. * * Author: <NAME> <<EMAIL>> * * Based on SabreSD by <NAME> <<EMAIL>> * and updates by <NAME> <<EMAIL>> */ #include <common.h> #include <miiphy.h> #include <input.h> #include <mmc.h> #include <fsl_esdhc.h> #include <asm/io.h> #include <...
/* datetime.c -- functions for manipulating RFC 5545 date-time values * * This code is Copyright (c) 2014, by the authors of nmh. * See the COPYRIGHT file in the root directory of the nmh * distribution for complete copyright information. */ #include "h/mh.h" #include "h/icalendar.h" #include <h/fmt_scan.h> #incl...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╚──────────────────────────────────────────────────────────────────────────────╝ │ ...
#include <windows.h> #include <setupapi.h> #include <initguid.h> #include <winioctl.h> #include <stdio.h> #include <sddl.h> #include <tchar.h> #include <cfgmgr32.h> #include <Shlwapi.h> #include "UserAccount.h" #include "Helper.h" typedef struct MountList { TCHAR driveLetter[MAX_PATH]; TCHAR devName[MAX_PATH]; TCHA...
/* Copyright (c) 2018 The Johns Hopkins University/Applied Physics Labora`tory * All Rights Reserved. * * This file is dual licensed under the terms of the Apache 2.0 License and * the BSD 3-Clause License. See the LICENSE file in the root of this * repository for more information. */ #include <openssl/err.h> #i...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <emscripten/emscripten.h> #include <mruby.h> #include <mruby/array.h> #include <mruby/class.h> #include <mruby/data.h> #include <mruby/proc.h> #include <mruby/string.h> #include <mruby/value.h> #include <mruby/variable.h> #define INVALID_HANDLE -1 ...
/*------------------------------------------------------------------------------ * rtcm.c : rtcm functions * * Copyright (C) 2009-2020 by T.TAKASU, All rights reserved. * * references : * [1] RTCM Recommended Standards for Differential GNSS (Global Navigation * Satellite Systems) Service version ...
/* $Id: ike_conf.h,v 1.53 2008/02/06 08:08:59 mk Exp $ */ /* * Copyright (C) 2004 WIDE 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 source code must r...
//////// Standard Header file for the PIC16F877A device //////////////// #device PIC16F877A #nolist //////// Program memory: 8192x14 Data RAM: 367 Stack: 8 //////// I/O: 33 Analog Pins: 8 //////// Data EEPROM: 256 //////// C Scratch area: 77 ID Location: 2000 //////// Fuses: LP,XT,HS,RC,NOWDT,WDT,NOPUT,PUT...
#include "MSPd.h" #include "fftease.h" static t_class *magfreq_analysis_class; #define OBJECT_NAME "magfreq_analysis~" typedef struct _magfreq_analysis { t_object x_obj; float x_f; int R; int N; int N2; int Nw; int Nw2; int D; int i; int inCount; float *Wanal; float *Wsyn; float *input; f...
#include <stdio.h> #include <string.h> //Trablho de Programação de computadores - <NAME>, <NAME>, <NAME> //variaveis int Codigos[80] = {0}; int TipoDeLotes[80]; int NumeroDeBarris[80] = {0}; float ValorDeCompra[80] = {0}; float ValorDeVenda[80] = {0}; char NomeDaPlataforma[80][30]; //modulo void Menu(); void Cadastr...
#include "matrix-priv.h" #include <inttypes.h> #include <poll.h> #include <time.h> /* ms_since_epoch + "_" + constantly_increasing_number */ #define TXN_FMT "%" PRIu64 "_%" PRIu64 enum method { GET = 0, POST, PUT }; struct response { long http_code; size_t len; char *data; char error[CURL_ERROR_SIZE]; struct {...
#define F_CPU 16000000UL #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include "twi.h" #include "twi_display.h" #define C_VERSION_MAJOR "1" #define C_VERSION_MINOR "0" // define the outputs // data high nibble and low nibble on different ports // due to sca and scl beeing on the only ...
/* ////////////////////////////////////////////////////////////////////////////////////// * trace */ #define TB_TRACE_MODULE_NAME "spider" #define TB_TRACE_MODULE_DEBUG (1) /* ////////////////////////////////////////////////////////////////////////////////////// * includes */ #include "../dem...
//**********************************************************************; // 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...
//Copyright (C) 2021 <NAME>. See LICENSE file for license #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <errno.h> #include <string.h> #include <stdbool.h> #include "3rdparty/miniz.h" typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; typed...
#include "apu.h" #include "mem.h" #include <stdlib.h> static uint8_t duties[4] = {1, 2, 4, 6}; apu_t *apu_new(mem_t *mem) { apu_t *apu = calloc(sizeof(*apu), 1); if (!apu) return NULL; apu->mem = mem; return apu; } void apu_del(apu_t *apu) { if (!apu) return; free(apu); } static uint8_t channel1(apu_t *a...
/* * This file is part of the coreboot project. * * Copyright (C) 2007 Advanced Micro Devices, Inc. * Copyright (C) 2008 <NAME> * Copyright (C) 2010 <NAME> <<EMAIL>> * Copyright (C) 2015 <NAME> <<EMAIL>>, Raptor Engineering * * This program is free software; you can redistribute it and/or modify * it under the...
/* ********************************************************************************************* */ /* * C Template for Kernel Execution * */ /* * Author: <NAME> * */ /* ********************************...
/****************************************************************************** * SAGE - Scalable Adaptive Graphics Environment * * Copyright (C) 2004 Electronic Visualization Laboratory, * University of Illinois at Chicago * * All rights reserved. * * Redistribution and use in source and binary forms, with or ...
/* * Copyright 2011, 2016 <NAME> * * 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 following discl...
/* * Copyright (C) 2016 "IoT.bzh" * Author <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 a...
/* <NAME> Version de 03/03/2003 */ #include <math.h> #include <stdio.h> #include <stdlib.h> #define xdois 2.0 FILE *f1; FILE *f2; FILE *f3; void help(); /****************************************************************************** programme principal ******************************************...
/* Copyright (c) 1995-2021 by Arkkra Enterprises. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condition...
/* * Copyright (c) 2005, 2007-2010 Genome Research Ltd. * Author(s): <NAME> * * 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, * ...
#include "../client/client.h" #include "unix_glw.h" #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xos.h> #include <X11/extensions/Xrandr.h> #include <X11/extensions/Xrender.h> #define MAX_MONITORS 16 typedef struct { int x, y; int w, h; RROutput outputn; RRCrtc crtcn; RRMode curMode; RRMode oldMo...
/* pgmslope_MVPH - * * Calculates the average slope of a text image * * Copyright (C) 2004 by <NAME> (<EMAIL>) * PRHLT group *****************************************************************************/ /* compilar: gcc -o pgmslope_MVPH pgmslope_MVPH.c ./libpgm.c libprep.c -lm...
/* * Robot Uprising: Micro-Invaders 2020 * * Robot frontend. This connects the robot to Wifi and to the robot * backend, allowing the robot to be remotely controlled. * * At minimum, need to get some rudimentary status information from * the robot and be able to control left and right track motors. */ #include...
/* * A simple memory allocator with a segregated LIFO explicit free list. * * Blocks are grouped by classes of sizes. There is one doubly-linked list per * class that contains all unallocated blocks in this class. * * Structure of blocks: * * +---------------+----------------+---------------+ * | size_t he...
/* osmo-demo-euse: An External USSD Entity (EUSE) for demo purpose */ /* (C) 2018 by <NAME> <<EMAIL>> * * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation; eith...
#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...
/*****************************************************************************/ /* */ /* Random Polygon Generator (RPG) */ /* */ ...
#include "hfs.h" #include <linux/hfs_fs_sb.h> #include <linux/hfs_fs_i.h> #include <linux/hfs_fs.h> #include <linux/smp_lock.h> /*================ Variable-like macros ================*/ #define HFS_VALID_MODE_BITS (S_IFREG | S_IFDIR | S_IRWXUGO) /*================ File-local functions ================*/ /* * i...
#if defined(NO_BOARD_LIB) #include "chip.h" #else #include "board.h" #endif #include "delay.h" #include "adc.h" #include "grafico.h" #include "320240.h" #include "pwm.h" #include "control.h" #include "motor.h" #include "teclado.h" #include "programa.h" /* elegimos el TIMER a usar */ #define _LPC_TIMER LPC_TIM...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "perplex.h" /* * C wrapper for Perple_X v6.6.8 * - Perple_X by <NAME> (see http://www.perplex.ethz.ch/) * - This wrapper by <NAME> (<EMAIL>) */ /* Some general notes on C-Fortran integration: * (Environment: GNU ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "grb2.h" #include "wgrib2.h" #include "fnlist.h" /* * Fix_ncep.c * * 7/2008: Public Domain: <NAME> * * need to fix up code -- hours may be assumed rather than given */ extern int decode, latlon; extern double *lat, *lon; extern int nx, ny; /* ...
#include <bpws.h> #include <assert.h> #include <time.h> #ifdef _WIN32 #else #include <sys/time.h> #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <libwebsockets.h> #ifdef _WIN32 int gettimeofday(struct timeval * tp, struct timezone * tzp) { // Note: some broken versio...
/* File: setfattr.c (Linux Extended Attributes) Copyright (C) 2001-2002 <NAME> <<EMAIL>> Copyright (C) 2001-2002 Silicon Graphics, Inc. All Rights Reserved. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free...
/* ** Copyright 2011, 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 ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applica...
#include "ec_weij.h" #include <assert.h> /* dbl-2007-bl: 1M + 8S + 1m(a) + 1m(3) */ void ec_weij_point_dbl(ec_point_t *res, const ec_point_t *a, const ec_wei_def_t *def, ec_scratch_t *s) { bigint_mmul(s->v[0], a->x, a->x, def->p); /* 1S: v0 = XX = x^2 */ bigint_mmul(s->v[1], a->y, a->y, def->p...
/* * Copyright (c) 2018 Elastos Foundation * * 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, ...
/* * (C) Copyright 2014 Kurento (http://kurento.org/) * * 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 applicab...
#include <tros/driver.h> #include <tros/hal/io.h> #include <tros/tros.h> #include <tros/memory.h> #define VGA_MEM_SIZE 65535 typedef struct { uint8_t unused:7; uint8_t dirty:1; uint8_t data[4]; } __attribute__((packed)) vga_frame_t; // maybe name vga_mem_frame? typedef struct { uint32_t width; ui...
/* GELL 15.26: include file for the module: "specnb" */ /* translation done: "Wed June 30 93 17:34:54 " */ /* impure LLM3 predefined */ extern Ptr GIdlink, GIllink, GIfcons, GIevalst; extern Ptr GMundef; extern Ptr GIfcons; extern Ptr GIbvar; extern Ptr GMt; extern Ptr GMvoid; extern Ptr ...
/* * Copyright (C) 2014 <NAME> * */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include "cJSON/cJSON.h" typedef struct { ngx_regex_compile_t *rgc; ngx_str_t *replacement; } ngx_http_ua_parse_elem_t; typedef struct { ngx_array_t *devices; ngx_array_t *browsers; ngx_array_t...
/* $OpenBSD: bytgpio.c,v 1.11 2016/05/08 11:08:01 kettenis Exp $ */ /* * Copyright (c) 2016 <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. ...
/* Cairo - a vector graphics library with display and print output * * Copyright © 2007 <NAME> * * This library is free software; you can redistribute it and/or * modify it either under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Software Foundation * (the "LGPL") or...
/***** spin: msc_tcl.c *****/ /* * This file is part of the public release of Spin. It is subject to the * terms in the LICENSE file that is included in this source directory. * Tool documentation is available at http://spinroot.com */ #include <stdlib.h> #include "spin.h" #include "version.h" #define MW 500 /* ...