text
stringlengths
5.8k
28.2k
#include "../includes/invaders.h" /* ------------------------------- GLOBALS ---------------------------------- */ // Game mechanics // Amount of lasers on screen int shots_player_count = 0; int shots_enemy_count = 0; int enemies_left = 25; // Current level int level = 1; int paused = 0; int gameover = 0; int victory...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* ==================================================================== * Copyright (c) 1999-2001 Carnegie Mellon 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. Redi...
/* $Id: mode.c,v 1.35 2008/03/13 20:27:23 cegger Exp $ ****************************************************************************** Display-kgi: mode management Copyright (C) 1997 <NAME> [<EMAIL>] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and assoc...
/*- * Public Domain 2014-present MongoDB, Inc. * Public Domain 2008-2014 WiredTiger, Inc. * * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * bina...
/** * @file Protocol.c * * @brief Protocol Layer Function Definitions * This file defines the functions for operation of each application * state in the protocol, i.e. sensor and hub. Function definitions for * Protocol Layer Command-Interface are included within this file. * * @ver...
/* * This software is copyrighted as noted below. It may be freely copied, * modified, and redistributed, provided that the copyright notice is * preserved on all copies. * * There is no warranty or other guarantee of fitness for this software, * it is provided solely "as is". Bug reports or fixes may be sent ...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * * Copyright (c) 2017 STMicroelectronics International N.V. * Al...
#include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <string.h> #include <dirent.h> #include <math.h> #define MAXSTR 10000 #define TOLERANCE 0.1 #define MAXIONS 2000 #define MININT 0.01 #define PEAK 3 #define MAYBE 1 #define MATCH 2 #define NONE 0 #define COMMON 1 #define ALL 0 typedef struct ions ions;...
/* * 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...
/* Copyright (c) 2013, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
#include "seqset.h" ss_type MkXnuSeqSet1(char *filename, e_type E, a_type A) /** return NULL if can't xnu **/ { return xnu_seqset(SeqSet1(filename, E, A)); } ss_type MkXnuSeqSet(char *filename,a_type A) /** return NULL if can't xnu **/ { return xnu_seqset(seqset(filename,A)); } ss_type MkXnuSeqSet_fptr(FILE *fptr,...
/* * birq * * Balance IRQ * */ #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <errno.h> #include <assert.h> #include <string.h> #include <signal.h> #include <syslog.h> #include <fcntl.h> #include <time...
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Copyright (C) 2016, Hewlett Packard Enterprise Development LP Copyright (C) 2018, Advanced Micro Devices, Inc. Redistribution and use in source and binary ...
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
// ------------------------------------------------------------------ // codec_domq.c // Copyright (C) 2020 <NAME> <<EMAIL>> // Please see terms and conditions in the files LICENSE.non-commercial.txt and LICENSE.commercial.txt // compression algorithm for QUAL value that has a dominant value ("dom") (roughly ove...
/* i16Make - Make a 16 bit DNA index.. */ /* This file is copyright 2008 <NAME>, but license is hereby * granted for all use - public, private or commercial. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "sqlNum.h" #include "dnaLoad.h" #include "dnaseq.h" #include "verbo...
#define _ISOC99_SOURCE #include <assert.h> #include <stdbool.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <math.h> #include <float.h> #include <stdio.h> #include <gmp.h> #include "HsFFI.h" #include "MachDeps.h" // GMP 4.x compatibility #if !defined(__GNU_MP_VERSION) # error __GNU_MP_VERSI...
/* * A driver for the Griffin Technology, Inc. "PowerMate" USB controller dial. * * v1.1, (c)2002 <NAME> <<EMAIL>> * * This device is a anodised aluminium knob which connects over USB. It can measure * clockwise and anticlockwise rotation. The dial also acts as a pushbutton with * a spring for automatic release....
/* * linux/fs/hfs/inode.c * * Copyright (C) 1995-1997 <NAME> * This file may be distributed under the terms of the GNU Public License. * * This file contains inode-related functions which do not depend on * which scheme is being used to represent forks. * * Based on the minix file system code, (C) 1991, 1992 ...
/* * Copyright (c) 2002-2004 <NAME> <<EMAIL>> * Copyright (c) 2014 <NAME> <u pkh me> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version...
/* NetHack 3.6 sit.c $NHDT-Date: 1559670609 2019/06/04 17:50:09 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.61 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) <NAME>, 2012. */ /* NetHack may be freely redistributed. See license for details. */ #include "hack.h" #include...
#pragma once #include "rizz/rizz.h" typedef struct sx_alloc sx_alloc; // config // change this value to increase number of input parameters for anim controller #ifndef RIZZ_SPRITE_ANIMCTRL_MAX_PARAMS # define RIZZ_SPRITE_ANIMCTRL_MAX_PARAMS 8 #endif // if = 0, max_frames will be only bounded by heap memory (heap...
// // ms_http_pipe.c // libms // // Created by <NAME> on 2018/11/21. // Copyright © 2018 wujianguo. All rights reserved. // #include "ms_http_pipe.h" #include "ms_memory_pool.h" #define MS_F_ON_CONTENT_CALLED MG_F_USER_1 #define MS_MAX_REDIRECT_TIME 3 //static void check_buf(struct ms_http_pipe *pipe, const cha...
/* Very basic LWIP & FreeRTOS-based DHCP server * * Based on RFC2131 http://www.ietf.org/rfc/rfc2131.txt * ... although not fully RFC compliant yet. * * TODO * * Allow binding on a single interface only (for mixed AP/client mode), lwip seems to make it hard to * listen for or send broadcasts on a specific inte...
/** * @file BtServer.c * @author <NAME> * * @copyright Copyright (c) 2014 Battelle Memorial Institute. All rights reserved. * * @par * Unauthorized use or duplication may violate state, federal and/or * international laws including the Copyright Laws of the United States * and of other internat...
/* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2012 Red Hat, Inc. All rights reserved. * * This file is part of the device-mapper userspace tools. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to...
/* Formerly src/appl/cpoly.c: * * Copyright (C) 1997-1998 <NAME> * Copyright (C) 1999-2001 R Core Team * * cpoly finds the zeros of a complex polynomial. * * On Entry * * opr, opi - double precision vectors of real and * imaginary parts of the coefficients in * order of decreasing powers. * *...
/* * ni_6527.c * Comedi driver for National Instruments PCI-6527 * * COMEDI - Linux Control and Measurement Device Interface * Copyright (C) 1999,2002,2003 <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 publishe...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include "cpu.h" #define MAX_INSTR 0x100000 typedef struct { unsigned short freq; unsigned short pulse; unsigned short adsr; unsigned char wave; int note; } CHANNEL; typedef struct { unsigned short cutoff; u...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <inttypes.h> #include <ctype.h> #include <stdbool.h> #define NDEBUG 1 #include <assert.h> #define USE_THREADS 0 #if USE_THREADS #include <pthread.h> static pthread_mutex_t mutex_hash = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t mutex_string = ...
/* * File: lexer.c * * 2018 - Created by <NAME>. * Based on gcc 0.9. */ #include "gramcnf.h" //#### supensa ### /* int check_newline () { register int c; //register int token; //obs //entramos aqui porque encontramos um '\n' while (1) { //Entramos nessa função porque encontram...
#include <psp2/kernel/iofilemgr.h> #include <psp2/kernel/clib.h> #include <psp2/kernel/sysmem.h> #include <psp2/sysmodule.h> #include <psp2/audiocodec.h> #include <stdlib.h> #include <math.h> #include "audio.h" #include "config.h" #include "touch.h" #include "id3.h" #include "utils.h" #include "vitaaudiol...
/* * 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...
/* NoirVisor - Hardware-Accelerated Hypervisor solution Copyright 2018-2022, <NAME>. All rights reserved. This file defines constants and basic structures for AMD-V. This program is distributed in the hope that it will be useful, but without any warranty (no matter implied warranty of merchantablity or f...
#include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #define caar(list) (car(car(list))) #define cadr(list) (car(cdr(list))) #define cddr(list) (cdr(cdr(list))) #define caddr(list) (car(cdr...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2014 The University of Tennessee a...
/* Copyright (c) 2012-2015, <NAME> <<EMAIL>> All rights reserved. Android port contributor: Copyright (c) 2014-2015, Haofeng "<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 me...
/* * Copyright (C) 2011-2012 Micode ( http://Micode.net/ ) * * 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 ...
//----------------------------------------------------------------------------- // error.c // // Project: EPA SWMM5 // Version: 5.1 // Date: 03/20/14 (Build 5.1.001) // 03/19/15 (Build 5.1.008) // 08/05/15 (Build 5.1.010) // 04/14/20 (Build 5.1.015) // Author: <NAME> /...
/** Header file for the Oxford version of Gilbert, Johnson and Keerthi's minimum distance routine. Version 2.4, July 1998, (c) <NAME> 1996, 1997, 1998 */ #pragma once #include <stdio.h> #include <stdlib.h> /** define NBEDUG here to turn off checking by assert() #define NDEBUG */ #include "assert.h" //#defi...
/* * 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...
/* * (C) Copyright 2010 * <NAME>, ST Micoelectronics, <EMAIL>. * * SPDX-License-Identifier: GPL-2.0+ */ /* * Designware ethernet IP driver for u-boot */ #include <common.h> #include <miiphy.h> #include <malloc.h> #include <linux/compiler.h> #include <linux/err.h> #include <asm/io.h> #include "designware.h" #i...
/* Copyright (C) 2015 by <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
#include "view.h" #include <errno.h> #include <locale.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "dom.h" #include "stack.h" /* Available colors: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE */ static const struct {short fg; short bg;} color_pairs[] = { /* color */ /* foreground*/ /*...
/** * @file cli_init.c * * This is the call, that has to be done by the boot shell! Dont call it again! */ /* PowerOS, Copyright (C) 2014. All rights reserved. */ #include "dosbase_private.h" #define GetSysTime(a) _LIBCALL(TimerBase, 10, VOID, (APTR, struct TimeVal *), (TimerBase,a)) #define MagicCLI 0x434c490...
/* * * Thread-safe Skiplist Using Integer Identifiers * Copyright 1998-2000 <NAME> (<EMAIL>) * * This software is open source. Permission to use, copy, modify, and * distribute this software for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies. No ...
// Copyright (c) 2008, <NAME> (casey dot duncan at gmail dot com) // see LICENSE.txt for details // $Id$ #include "Python.h" #include <math.h> #include <float.h> #include "_noise.h" // 2D simplex skew factors #define F2 0.3660254037844386f // 0.5 * (sqrt(3.0) - 1.0) #define G2 0.21132486540518713f // (3.0 - sqrt(3.0...
/*!\page LICENSE LICENSE Copyright (C) 2003 by the Board of Trustees of Massachusetts Institute of Technology, hereafter designated as the Copyright Owners. License to use, copy, modify, sell and/or distribute this software and its documentation for any purpose is hereby granted without royalty, subject to the follow...
/* The MIT License (MIT) Original work Copyright (c) 2015 Bang & Olufsen Modified work Copyright (c) 2018 FMFI ŠVT / Project Deadlock 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 restr...
/* * Artificial Intelligence for Humans * Volume 1: Fundamental Algorithms * C/C++ Version * http://www.aifh.org * http://www.jeffheaton.com * * Code repository: * https://github.com/jeffheaton/aifh * Copyright 2013 by <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not...
#include <stddef.h> #include <stdint.h> #include <stdbool.h> #include <drivers/vbe.h> #include <lib/libc.h> #include <lib/blib.h> #include <lib/real.h> #include <lib/print.h> #include <lib/image.h> #include <mm/pmm.h> #include <mm/mtrr.h> #define VGA_FONT_WIDTH 8 #define VGA_FONT_HEIGHT 16 #define VGA_FONT_GLYPHS 256...
#include "gui_use.h" int gui_prop_interactive(gui_obj *gui){ if (gui->modal != PROP) return 0; if (gui->step == 0) { /* try to go to next step */ gui->step = 1; gui->free_sel = 1; } /* verify if elements in selection list */ if (gui->step >= 1 && (!gui->sel_list->next || (gui->ev & EV_ADD))){ ...
#include "stdafx.h" //code by </MATRIX>@<NAME> //author: <NAME> //==================================================================================================== //MPU6050基础驱动 GyroAccelStructure gas; EulerAngleStructure eas; kf_1deriv_factor mpudmp_kf, mputemp_kf; volatile float MPU_GlobalTemp; /* MPU数据解析频率 建...
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * NaCl Server Runtime time abstraction layer. * This is the host-OS-dependent implementation. */ /* Make sure that winmm.lib is add...
/* * Adapted from: * * client.c * * Copyright (C) 2006-2015 wolfSSL Inc. * * This file is part of wolfSSL. (formerly known as CyaSSL) * * wolfSSL 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; eith...
/* * merge.c : MERGE response parsing functions for ra_serf * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional inf...
#include"threads.h" int CurrentThread =-1; // keeps track of the TCB index of the current thread int threadsCreated = 1;// a bool to see if main has been initallized int SemNum = 1; int locked = 0; // should have given all helper functions a static context but couldnt get it to work pthread_t pthread_self(void){ret...
/* * Copyright bhgv 2017 */ #include "lua.h" #include "lualib.h" #include "lauxlib.h" #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> //#include <etstimer.h> /* #include <FreeRTOS.h> #include <task.h> #include <semphr.h> #include <queue.h> *...
/* * Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2013 * The President and Fellows of Harvard College. * * 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...
/* $XConsortium: os2_select.c /main/6 1996/10/27 11:48:55 kaleb $ */ /* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/os2/os2_select.c,v 3.5 1996/12/27 07:04:30 dawes Exp $ */ /* * (c) Copyright 1996 by <NAME> * <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * c...
#include "video.h" #include <stdio.h> #include <string.h> // tsconf sprites & tiles extern int adr,xscr,yscr; extern unsigned char col, ink, pap, scrbyte, nxtbyte; void vidDrawByteDD(Video*); static int fadr; static int tile; static int sadr; // adr in sprites dsc static int xadr; // = pos with XFlip int vidTSLRe...
// main.c // includes #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "attack.h" #include "board.h" #include "book.h" #include "book_make.h" #include "book_merge.h" #include "engine.h" #include "epd.h" #include "fen.h" #include "gui.h" #include "hash.h" #incl...
/*************************************************************************** * nsock_event.c -- Functions dealing with nsock_events (and their * * msevent internal representation. An event is created when you do * * various calls (for reading, writing, connecting, timers, etc) and is * * provided ...
#include <stdio.h> #include <stdint.h> #include <unistd.h> #include <string.h> #include <time.h> #include <exanic/exanic.h> #include <exanic/fifo_rx.h> #include <exanic/fifo_tx.h> #include <exanic/time.h> #include "src/etcpSockApi.h" #include "src/debug.h" #include "src/CircularQueue.h" #include "src/packets.h" sta...
/* libltc - en+decode linear timecode Copyright (C) 2006-2012 <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 Software Foundation, either version 3 of the License, or (at your o...
/* * Copyright (c) 2004, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above * copyright notice, this list of con...
/*! \file be_issu.c * * In-Memory back-end ISSU related implementation. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #include <sal/sal_types.h> #include <...
#include "file.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #define __USE_MINGW_ANSI_STDIO 1 #define UNICODE #define NTDDI_VERSION 0x06000000 #include <windows.h> #include <pathcch.h> #include <knownfolders.h> #include <shlobj.h> #include <shlwapi.h> static Path currentDirectory; // see MSDN #def...
#include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include <unistd.h> #include <netdb.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "mappings.h" static const char* tcp_states_map[]={ [TCP_ESTABLISHED] = "ESTABLISHED", [TCP_SYN_SENT] = "SYN-SENT", ...
/* See LICENSE file for copyright and license details. * * To understand svkbd, start reading main(). */ #include <locale.h> #include <stdarg.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <X11/keysym.h> #include <X11/Xatom.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xproto....
#include <stdlib.h> #include <string.h> #include "esp_gap_ble_api.h" #include "esp_gatts_api.h" #include "esp_log.h" #undef TAG #define TAG "BLE-DIS" // https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.device_information.xml static const uint16_t dis_uuid16 = 0x180A; stati...
/* 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...
/** * \defgroup INIT Chip initialization functions * * \{ */ #include <init.h> #include <assert.h> #include <inttypes.h> #include <rcc.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <registers/flash.h> #include <registers/mpu.h> #include <registers/power.h> #include <registers/scb.h> #incl...
/* * This file is part of the TREZOR project. * * Copyright (C) 2014 <NAME> <<EMAIL>> * * This library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at y...
/* u8x8_d_st75160.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2021, <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...
/* eqncpv.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 doublereal c_b13 = 1.; /* $Procedure EQNCPV (Equinoctial Elements to position and velocity) */ /* Subroutine...
/* Nom: particule.c * Description: module qui gère les particules * Date: 11.06.2015 * version : 1.0 * responsable du module : <NAME> * groupe : <NAME>, <NAME> */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> #include "constantes.h" #include "graphic.h" #include "particule.h" #in...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ #include <math.h> #include <string.h> #include <stdio.h> #include <stdlib.h>...
/* * Copyright 2019 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, m...
// Author: <NAME> (@beardedfoo) // This program for the Sega Genesis/Megadrive is designed for the // creation and editing of tile bitmaps on the Sega Megadrive. One // notable feature of this application is that it runs directly on // a Sega Megadrive. #include <genesis.h> // Disable the use of DMA for tile loading #...
/* 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...
/*- * Copyright (c) 1994-1998 <NAME>. * Copyright (c) 1994 Brini. * All rights reserved. * * This code is derived from software written for Brini by <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1...
/* * Based on testing library from mpack: * * Copyright (c) 2015-2016 <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 ri...
/* * Copyright (C) 2003 <NAME> * * NEVERBALL is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Free Software Foundation; either version 2 of the License, * or (at your option) any later version. * * This program is distribu...
#include "bag.h" #include "battle.h" #include "catching.h" #include "conversation.h" #include "sound.h" #include "object.h" #include "otherUtils.h" extern float camera_position_x; extern float camera_position_y; extern ALLEGRO_FONT* get_menuPirnt_font(); extern battleUIStatus battleUI_status; extern bagUIStatus ba...
/* * Functions for passing information into WMCD. * This version of WMCD includes passive polymeric systems, smart MC, * and affine deformations. * * Copyright 2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
/* * Copyright(c) 2015, 2016 Intel Corporation. * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * This program is free software; you can redistribute it and/or modify * it under the terms of versi...
/* * Mach Operating System * Copyright (c) 1991,1990,1989 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of th...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * * COPYRIGHT(c) 2016 STMicroelectronics * * Redistribution and use in ...
/** * * cpulimit - a cpu limiter for Linux * * Copyright (C) 2012, by: <NAME> <<EMAIL>> * Copyright (C) 2005-2008, 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 Free Software Foundatio...
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b...
/* * Copyright (C) 2017 THL A29 Limited, a Tencent company. * 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, thi...
#include <esp_log.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "math.h" #include "hal_i2c.h" #include "bme280.h" static const char *TAG = "BME280"; static bme280_calib_data _bme280_calib; static bme_ctrl_hum _humReg; static bme_ctrl_meas _measReg; static bme_config _configReg; static int32_t ...
/* * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source c...
#define u32 unsigned int // Number of input words. Top 65 bits are overwritten with padding // (512 is bits; 32 is bits-per-word.) #define INPUT_SIZE 512 / 32 // Number of words in a SHA-1 hash #define OUTPUT_SIZE 160 / 32 // Number of words in a SHA-256 hash #define OUTPUT_SIZE_256 256 / 32 struct...
/* * See the file "COPYING" in the main distribution directory for copyright. */ #include <sys/types.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef HAVE_MEMORY_H #include <memory.h> #endif #include <math.h> #ifdef CQ_DEVELOPMENT #include <lbl/gnuc.h> #include <lbl/os-proto....
/* $Id$ *====================================================================== * * DISCLAIMER * * This material was prepared as an account of work sponsored by an * agency of the United States Government. Neither the United States * Government nor the United States Department of Energy, nor Battelle, * nor a...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "vm.h" #include "_generated.h" struct ClassInfo *ClassInfos[256]; word Here, SymVecLen, ClassVecLen; byte Memory[0x10000]; word SymVec[0x100]; word ClassVec[0x100]; word pc, fp, sp, tmp; word nilAddr = 0; word falseAddr = 2; wor...
#if __STDC_VERSION__ >= 199901L #define _XOPEN_SOURCE 600 #else #define _XOPEN_SOURCE 500 #endif /* __STDC_VERSION__ */ #include <stdlib.h> #include <time.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> #include <netinet/in.h> #include <a...