text
stringlengths
5.8k
28.2k
#include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> //Widget for Search Bar typedef struct _SearchBar { GtkWidget *search_entry; GtkWidget *sbutton; GtkWidget *nbutton; GtkWidget *qbutton; GtkWidget *text_view; } SearchBar; //Widget for open-dialog typedef struct _OpenDialog{ GtkWidget *window; GtkTextBuff...
/* pygame - Python Game Library Copyright (C) 2009 <NAME> 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. ...
/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
/* * This file is part of MPlayer. * * MPlayer 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. * * MPlayer is distributed in th...
/* Programa de demonstracao de analise nodal modificada Por <NAME> <EMAIL> Versao 1.0 - 6/9/2000 Versao 1.0a - 8/9/2000 Ignora comentarios Versao 1.0b - 15/9/2000 Aumentado Yn, retirado Js Versao 1.0c - 19/2/2001 Mais comentarios Versao 1.0d - 16/2/2003 Tratamento correto de nomes em minusculas Versao 1.0e - 21...
// Taken and adapted from https://github.com/d0k3/GodMode9 #include "disadiff.h" #include <3ds.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define getbe16(d) \ (((d)[0]<<8) | (d)[1]) #define getbe32(d) \ ((((u32) getbe16(d))<<16) | ((u32) getbe16(d+2))) #define getbe64(d) \ ((((u64) get...
/* sha3.c * * The sha3 hash function. */ /* nettle, low-level cryptographics library * * Copyright (C) 2012 <NAME> * * The nettle 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; eith...
/* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* * Copyright (c) 2008 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copy...
/*$ Copyright (c) 2014-2017, Azel 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 follow...
/* ** Copyright (c) 2008 <NAME> */ static const char PROJ_ID[] = "$Id: node.c,v 2.3 2009/04/03 18:25:37 gie Exp gie $"; /* ** 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 restri...
/* Example Elliptic Curve Diffie-Hellman program for 32-bit constrained environments. Uses point compression. Stack-only memory allocation Use with this mirdef.h header (for a PC using MS C) #define MR_LITTLE_ENDIAN #define MIRACL 32 #define mr_utype int #define MR_IBITS 32 #define MR_LBITS 32 #define mr_unsign32 un...
/* ============================================================================ Name : 2048.c Author : <NAME> Description : Console version of the game "2048" for GNU/Linux ============================================================================ */ #define _XOPEN_SOURCE 500 #include <stdio.h> #in...
// based on source: https://github.com/DataDog/sketches-go/tree/43f19ad77ff73bc865c41f7e391ef4b23b82810a/ddsketch // // Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Co...
/* * $Id: thumbs.c 39749 2011-08-28 14:46:03Z schlaile $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 ...
/* * Atari SAP-R File Compressor * --------------------------- * * This implementa an optimal LZSS compressor for the SAP-R music files. * The compressed files can be played in an Atari using the included * assembly programs, depending on the specific parameters. * * (c) 2020 DMSC * Code under MIT license, see...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #define IX(i,j,k) ((i)+(M+2)*(j) + (M+2)*(N+2)*(k)) #define MAX(a,b) (((a) > (b)) ? (a) : (b)) #define WINDOW_TITLE "Fluid" #define WINDOW_WIDTH 768 #define WINDOW_HEIGHT 768 #...
/**************************************************************************/ /* */ /* OCaml */ /* */ /* ...
#include "u.h" #include "lib.h" #include "dat.h" #include "fns.h" #include "error.h" #include <draw.h> #include <memdraw.h> #include <keyboard.h> #include <cursor.h> #include "screen.h" #undef long #undef ulong #include <linux/fb.h> #include <linux/input.h> uchar* fbp; Memimage* screenimage; Memimage* backbuf; Rec...
/* sha1.c - Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1. Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the G...
/* * Copyright 2016-2019 NXP * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list * of conditions and th...
/* Copyright (c) 2003-2006, 2012, 2021 <NAME> <dirkx(a)apache(dot)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 * * Unle...
/* Aureal Vortex Soundcard driver. IO addr collected from asp4core.vxd: function address 0005D5A0 13004 00080674 14004 00080AFF 12818 */ #define CHIP_AU8830 #define CARD_NAME "Aureal Vortex 2 3D Sound Processor" #define CARD_NAME_SHORT "au8830" #define NR_ADB 0x20 #define NR_SR...
/* APL Key Translation (version 2) for use with GNU APL <NAME> <<EMAIL>> July 2016 */ #include <errno.h> #include <langinfo.h> #include <locale.h> #include <pty.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <termios.h> #include <unistd.h> #include <sys/ioctl.h> #incl...
/* * Copyright (c) 2008-2011 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
/* $NetBSD: i82365_isasubr.c,v 1.3 1999/10/15 06:07:27 haya Exp $ */ /* $NetBSD: i82365_isa.c,v 1.11 1998/06/09 07:25:00 thorpej Exp $ */ #include <sys/cdefs.h> __FBSDID("$FreeBSD: src/sys/dev/pcic/i82365_isa.c,v 1.25 2003/08/24 17:54:15 obrien Exp $"); /* * Copyright (c) 1998 <NAME>. All rights reserved. * Copyri...
/* * Copyright © 2014 Intel Corporation * * 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, pub...
/* * Copyright 2002-2011, The TenDRA Project. * Copyright 1997, United Kingdom Secretary of State for Defence. * * See doc/copyright/ for the full copyright terms. */ #include <string.h> #include <shared/bool.h> #include <shared/check.h> #include <shared/error.h> #include <local/tag.h> #include <tdf/shape.h> #...
/* * ***** BEGIN LICENSE BLOCK ***** Copyright (C) 2009-2020 <NAME> Copyright (C) 2020 <NAME> and Rubicon Communications, LLC(Netgate) This file is part of CLIXON. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may ...
/* * nstat.c handy utility to read counters /proc/net/netstat and snmp * * 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 late...
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/sem.h> #include <sys/shm.h> #include <sys/msg.h> #include <string.h> #include <unistd.h> #include <sys/wait.h> #include <errno.h> #include <time.h> #include "procTools.h" #include "semop.h" #include "messages.h" #include "...
/***************************************************************************//** * @file * @brief This file implements the packet commands for RAIL test applications. ******************************************************************************* * # License * <b>Copyright 2018 Silicon Laboratories Inc. www.silabs...
/* * Copyright (c) 2015, Cybernetica AS * 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 co...
/* * Copyright (c) 2018, 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: * * Redistributions of source code must retain the above copyright * notice, this list of co...
// // processing.c // oscituner // // Created by <NAME> on 29.12.14. // Copyright (c) 2014 <NAME>. All rights reserved. // #include "processing.h" #include "dspmath.h" #include <stdlib.h> #include <math.h> #include <string.h> /* memset */ #include <unistd.h> /* close */ //double processing_detect_undertone(Proce...
#include <stdio.h> #include <unistd.h> #include <linux/unistd.h> #include <sys/syscall.h> #include <sys/time.h> #include <sys/types.h> #include <sched.h> #include <signal.h> #include <setjmp.h> #include <errno.h> #include <assert.h> #include "gt_include.h" // ** DEBUG #define DEBUG 1 // ** CREDIT BURN #define BURN_CR...
//----------------------------------------------------------------------------- // This is the Windows-side program that you run to download code into a // device. It is capable of loading both the application (i.e., a piece of // code starting at address 0x00002000 in flash) or the bootrom (i.e., a // piece of cod...
#include "phy.h" /* * internal phy storage */ #include "log.h" #define _XTAL_FREQ 8000000 struct PHY_storage_t { uint8_t mode; uint8_t channel; uint8_t band; uint8_t bitrate; uint8_t power; uint8_t send_done; uint8_t recived_packet[MAX_PHY_PAYLOAD_SIZE]; uint8_t cca_noise_treshol...
/* spcacb.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 SPCACB ( SPK and CK add comments from a buffer ) */ /* Subroutine */ int spca...
#include "gpiolib_addr.h" #include "gpiolib_reg.h" #include <string.h> #include <stdint.h> #include <stdio.h> //for the printf() function #include <fcntl.h> #include <linux/watchdog.h> //needed for the watchdog specific constants #include <unistd.h> //needed for sleep #include <sys/ioctl.h> //needed for t...
/** * See lead-in comment from snesl2utf8.h for purpose, * documentation, license, etc. */ #include "ansel2utf8.h" #include "platform.h" #include <string.h> // strcasecmp #include <ctype.h> // isspace #include <stdio.h> // FILE*, fseek, etc const char *codec_names[] = { "Unknown", "ANSEL", "UTF-8",...
/* * Taken from https://github.com/swenson/sort * Revision: 05fd77bfec049ce8b7c408c4d3dd2d51ee061a15 * Removed all code unrelated to Timsort and made minor adjustments for * cross-platform compatibility. */ /* * The MIT License (MIT) * * Copyright (c) 2010-2017 <NAME>. * Copyright (c) 2012 <NAME>. * Copyrigh...
/** * @file brtc_cfg.c * @author <NAME> * @brief Application to configure bridge vlan based on sysrepo datastore. * * Copyright 2020 NXP * * 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 ...
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * Program calib_theta * To compute the theta zero for speckle interferometry * using images of stars which moves because of the Earth rotation * * Assumes that the stars moves roughtly along the X axis * * JLP * Version 11-01-2017 -----------------...
/************************************************************ * HMMER - Biological sequence analysis with HMMs * Copyright 1992-1995 <NAME> * * This source code is distributed under the terms of the * GNU General Public License. See the files COPYING and * GNULICENSE for details. * ***********************...
/* This program implements the ECIES public key encryption scheme based on the NIST B409 elliptic curve and the XTEA block cipher. The code was written as an accompaniment for an article published in phrack #63 and is released to the public domain. Modified by kkirov to work with files. 10.09.2007 Modified by...
/* polylog.c * * Polylogarithms * * * * SYNOPSIS: * * double x, y, polylog(); * int n; * * y = polylog( n, x ); * * * The polylogarithm of order n is defined by the series * * * inf k * - x * Li (x) = > --- . * n - n * k=1 ...
#include<stdio.h> #include<string.h> //#include "encoding.h" char * CP1252 = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd...
/* * File: runs.c * Author: <NAME> [<EMAIL>] * Copyright (c) 2007 The Trustees of Columbia University * * This file implements the run based optimization on the hybrid * and global table. * */ #include "aggregate.h" #include "global.h" #include <atomic.h> #include <thread.h> #include <pthread.h> #include <a...
// SPDX-License-Identifier: AGPL-3.0-or-later AND BSD-3-Clause /* PASST - Plug A Simple Socket Transport * for qemu/UNIX domain socket mode * * PASTA - Pack A Subtle Tap Abstraction * for network namespace/tap device mode * * checksum.c - TCP/IP checksum routines * * Copyright (c) 2021 Red Hat GmbH * Author...
// gcc -g -O3 -Wall gzfastq_uniq_sort.c -o gzfastq_uniq_sort -I/share/software/software/zlib_1.2.8_install/include -I. -L/share/software/software/zlib_1.2.8_install/lib -L. -l hashtbl -lz #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <getopt.h> #include <zlib.h> #include <time...
/* * libxlu_cfg.c - xl configuration file parsing: setup and helper functions * * Copyright (C) 2010 Citrix Ltd. * Author <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Softwa...
#include "TexturePack.h" #include "Constants.h" #include "Stream.h" #include "World.h" #include "Graphics.h" #include "Event.h" #include "Game.h" #include "Funcs.h" #include "Errors.h" #include "Chat.h" #include "ExtMath.h" #include "Options.h" #include "Logger.h" #define LIQUID_ANIM_MAX 64 #define WATE...
struct ObjectHitbox sMrBlizzardHitbox = { /* interactType: */ INTERACT_MR_BLIZZARD, /* downOffset: */ 24, /* damageOrCoinValue: */ 2, /* health: */ 99, /* numLootCoins: */ 3, /* radius: */ 65, /* height: */ 170, /* hurtboxRadius: */ 6...
#include "model.h" #ifdef USE_GLEW # include <GL/glew.h> #else # include <GL/gl.h> # include <GL/glu.h> #endif /* if defined manually render all the points and stuff */ #define MANUAL_RENDER #define VERTEX_ATTRIB 0 #define NORMAL_ATTRIB 1 #define TEXTURE_ATTRIB 2 static const GLfloat vertices_cube[] = { /* norm...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Python 3 ...
/* -*- c-basic-offset: 4; -*- */ /* Icecast * * This program is distributed under the GNU General Public License, version 2. * A copy of this license is included with this source. * * Copyright 2000-2004, <NAME> <<EMAIL>, * <NAME> <<EMAIL>>, * oddsock <<EMAIL>>, * ...
/* * whirlpool_core.c * Author: <NAME> <<EMAIL>> * Date: 2015-07-17 */ #include "whirlpool_core.h" #include "int_util.h" #include <string.h> #include <stdbool.h> void whirlpool_init_hash(uint64_t hash[8]) { memset(hash, 0, WHIRLPOOL_HASH_SIZE); } void whirlpool_hash_to_digest(uint64_t hash[8], uint8_t digest[WH...
/* Copyright 2015 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
#include <stdio.h> #include <stdlib.h> #include<string.h> struct stoixeia { char onomaepwnumo[40]; unsigned int ar_thes; unsigned short int ar_til[10]; }; void epilogi1(struct stoixeia passenger[],int seats); void epilogi2(struct stoixeia passenger[],int seats,int kratisi); void epilogi3(struct stoixeia p...
/* * hisvb.c * * The SVB Device Driver for hisilicon * * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. * * 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...
/**************************************************************************** * real mode i286 emulator v1.4 by <NAME> * * (initial work based on <NAME>'s pcemu) * ****************************************************************************/ struct i80x86_timing {...
/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "both.h" #include "../mem.h" #include "../archive.h" #include "../stage.h" #include "../main.h" //Both ...
#include "sha1.h" #include "sha256.h" #include "hmac.h" #define hmac_printf #ifndef MIN #define MIN(a,b) ((a) < (b) ? (a) : (b)) #endif #ifndef CEIL_DIV #define CEIL_DIV(a, b) (((a) + (b) - 1) / (b)) #endif #define SHA1_DIGEST_SIZE 20 #define SHA1_BLOCK_SIZE 64 #define SHA256_DIGEST_SIZE 32 #defi...
/* * Copyright 2001 <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 code must retain the above copyright * notice, this list of conditi...
/* ** mouse:~ppr/src/ppad/ppad_conf.c ** Copyright 1995--2006, Trinity College Computing Center. ** Written by <NAME>. ** ** This file is part of PPR. You can redistribute it and modify it under the ** terms of the revised BSD licence (without the advertising clause) as ** described in the accompanying file LICENSE.tx...
/* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 <NAME>, <NAME> and <NAME> * * gpoll.c: poll(2) abstraction * Copyright 1998 <NAME> * Copyright 2008 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gene...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <string.h> #include <pthread.h> #include "bSwap.h" #include "yaz0.c" #include "crc.c" /* Needed to compile on Windows */ #ifdef _WIN32 #include <Windows.h> #endif /* Different ROM sizes */ #define UINTSIZE 0x1000000 #define COMPSI...
/* ** $Id$ ** Library for MPEG support ** See Copyright Notice in COPYRIGHT */ #include <smpeg/smpeg.h> #include <SDL_mixer.h> #include "Main.h" #include "Macros.h" #include "Movie.h" #include "Graphics.h" #include "physfsrwops.h" #define tomoviep(L) \ (Lua_Movie **)luaL_checkudata(L, 1, "scrupp.movie") Lua_Movie ...
/******************************************************************************* Copyright (C) Marvell International Ltd. and its affiliates This software file (the "File") is owned and distributed by Marvell International Ltd. and/or its affiliates ("Marvell") under the following alternative licensing terms. Once yo...
/**************************************************************************//** * @file main.c * @version V1.00 * @brief Show FMC dual bank capability. Non-blocking program APROM bank1 * while program is running on APROM bank0. * is running on bank0 without being blocked. * * @copyrig...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <signal.h> #include <sys/time.h> #include <freespace/freespace.h> #include <freespace/freespace_codecs.h> #include <freespace/freespace_printers.h> #include "appControlHandler.h" #ifdef WIN32 #include "win32/stdafx.h" #include <windows.h> #include <s...
#include <stdio.h> #include "test.h" #include "libhorns.h" #include "parse.h" extern node *NODE_RESULT; extern int SUCCESSES; extern int FAILURES; extern int yy_scan_string(char *); void test_code(char *code, node *result) { (void) yy_scan_string(code); parse(); if (node_cmp(NODE_RESULT, result) == 0) SUCCESSES+...
/* * vim: ts=8:sw=8:tw=79:noet */ #define _GNU_SOURCE #include <errno.h> #include <fcntl.h> #include <hdfs.h> #include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/resource.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> #include <tim...
#include <stdio.h> #include <math.h> #include <string.h> #include <float.h> #include <time.h> #include "protos.h" #include "pert.h" #include "mc_main.h" #include "nrutil.h" /********GLOBAL variables *****************************/ extern struct Photon *photptr; extern struct Tissue *tissptr; extern struc...
/* $NetBSD: fstest_puffs.c,v 1.11 2013/09/09 19:47:38 pooka Exp $ */ /* * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc. * * 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...
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <string.h> #include<sys/time.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <sys/ipc.h> #include <sys/sem.h> #include <time.h> #include <sched.h> #include "fair_share_sched.h" #incl...
/* This file is part of Cloudy and is copyright (C)1978-2019 by <NAME> and * others. For conditions of distribution and use see copyright notice in license.txt */ // >>>>>>>> WARNING: do not #define PHYSCONST_TEMPLATE_H_ // >>>>>>>> WARNING: This is a header template file, designed to be included // on more than on...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/** * @file main_x11.c * This module contains entry point and initialization for X11 variant * of application. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <EGL/egl.h> #include ...
#include <ifdhandler.h> #include <pcsclite.h> #include <reader.h> #include <stdio.h> #include <string.h> #include <syslog.h> #include "myson.h" #define MAX_READER_NUM 16 static reader rd[MAX_READER_NUM]; static void closeDriver ( DWORD Lun ) { int readerNum = (Lun & 0xFFFF0000) >> 16; libusb_attach_kernel_driv...
#ifdef __APPLE__ #include <OpenCL/opencl.h> #else #include <CL/opencl.h> #endif #include <math.h> #include <stdlib.h> #include "../utils.h" #include "clUtils.h" #define CL_UTILS_INCLUDE_DEBUGS 1 clSettings globalClSettings = {.initialized = 0}; clKernels globalClKernels; static const char *addKernelSrc = "__ker...
/* * Copyright (c) 2015-2018 Nexenta Systems, inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informat...
/* * IMU.c * * Created: 03/04/2016 16:45:34 * Author: Caio */ #include <asf.h> #include "IMU.h" #include "HAL/HAL_UART.h" #include "LCD.h" #include "Filter/KalmanFilter.h" #include "Filter/ComplementaryFilter.h" #include "UART_Comm.h" #include "HAL/HAL_Encoder.h" #include <string.h> #define xQueueOverwrite(xQ...
#include "Banks/SetAutoBank.h" #include "main.h" #include "ZGBMain.h" #include <gb/gb.h> #include "Scroll.h" #include "SpriteManager.h" #include "Sprite.h" #include "Palette.h" #include "Keys.h" #include "Sound.h" #include "Music.h" #include "Print.h" #include "Palette.h" #include "rand.h" #include <stdli...
#include <stdio.h> #include <stdint.h> #include <string.h> #include <time.h> #include <sys/ioctl.h> #include <linux/spi/spidev.h> #include "util.h" #include "gpio.h" #include "spi.h" #define SI4432_IRQ_PIN 25 // BCM2835 GPIO pin connected to the IRQ pin #define SI4432_SDN_PIN 24 // BCM2835 GPIO...
/* Projeto 1 - IAED 2015/2016 2 Semestre * Rede de Aeroportos * <NAME> 85333 - Grupo 81 - Taguspark * <NAME> 83540 - Grupo 38 - Alameda */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_NOME 4 #define MAX_AEROPORTOS 1001 #define MAX_VOOS 1001 #define NOT_FOUNDED -1 /* Funcao que devolve as...
/**************************************************************************** * * Copyright 2022 Samsung Electronics All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License\n"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Li...
#include "kheap.h" #include <paging.h> #include <system.h> // end is defined in the linker script. extern uint32_t end; uint32_t placement_address = (uint32_t)&end; extern page_directory_t *kernel_directory; heap_t *kheap = 0; size_t kmalloc_int(size_t sz, char align, uint32_t *phys) { if (kheap != 0) { void *a...
#include "utilities/memory_table.h" #include "intercode.h" extern void yyrestart(FILE * input_file); struct intercode * parse_single_intercode(const char *); struct intercode * intercodes[INSTR_COUNT]; int get_intercodes(); char * strcopy(const char *); FILE * asm_file = NULL; int streq(const char *s1, const ch...
/* Low level AX.25 code: */ #include <stdio.h> #include "global.h" #include "mbuf.h" #include "iface.h" #include "arp.h" #include "slip.h" #include "ax25.h" #include "lapb.h" #include "netrom.h" #include "ip.h" #include "devparam.h" #include <ctype.h> /* List of AX.25 multicast addresses in network for...
#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...
#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...
// stb_layout - v0.01 - public domain - http://nothings.org/stb/stb_layout.h // by <NAME>, 2009-2010 // // This file implements the logic for a box layout model. It is designed to // modular from the details of the things that it is laying out; you run // through your content and build an appropriate hierarchy of ...
/* $OpenBSD: if_vmxreg.h,v 1.3 2013/08/28 10:19:19 reyk Exp $ */ /* * Copyright (c) 2013 <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. * ...
/* * (C) Copyright 2009 <NAME>, <EMAIL> * * base on universe.h by * * (C) Copyright 2003 <NAME>, <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 a...
/************************************************************************** * * Copyright 2009 VMware, Inc. * 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 wit...
/* Copyright 2007,2008 ENSEIRB, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distribution of free software. You can ** use,...
/* * Copyright (c) 2000-2005 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 Software Foundation. * * This program is distributed in the hope that it would be ...
// Here are several functions that I created to print the spectral and cepstral results. // There are several functions because there are several different ways that I might want // to see the results. // // Method 1: Prints the top three peaks in the spectrum and cepstrum. Watch via SerialMonitor // // Method 2: Pri...
/* * mkbootimg/minix.c * * Copyright (C) 2017 - 2021 bzt (<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 ...