text stringlengths 5.8k 28.2k |
|---|
#include "console/console.h"
#include "video/video.h"
#include "game/menu/menu_background.h"
#include "game/scene.h"
#include "utils/log.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <enet/enet.h>
#include <controller/keyboard.h>
#include <controller/net_controller.h>
#defin... |
#include "mmt_core.h"
#include "plugin_defs.h"
#include "extraction_lib.h"
#include "../mmt_common_internal_include.h"
/////////////// PROTOCOL INTERNAL CODE GOES HERE ///////////////////
static MMT_PROTOCOL_BITMASK detection_bitmask;
static MMT_PROTOCOL_BITMASK excluded_protocol_bitmask;
static MMT_SELECTION_BITMASK... |
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdnoreturn.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include <wayland-s... |
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2016 The Linux Foundation. All rights reserved.
*/
#include <linux/pm_opp.h>
#include "a5xx_gpu.h"
/*
* The GPMU data block is a block of shared registers that can be used to
* communicate back and forth. These "registers" are by convention with the GPMU
*... |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1996-2016. 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
... |
/*
* Copyright (C) 2015-2016 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <i2c.h>
#include <pci.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <linux/crc8.h>
#include <linux/mbus.h>
#ifdef CONFIG_NET
#include <netd... |
/*
* Copyright (c) 2007-2011 Atheros Communications Inc.
* Copyright (c) 2011-2012 Qualcomm Atheros, 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 al... |
#include "simint/boys/boys_split.h"
#include "simint/eri/eri.h"
#include "simint/eri/general_eri.h"
#include <math.h>
#include <alloca.h>
#include <string.h>
int eri_sharedwork_X_s_X_s(struct simint_multi_shellpair const P,
struct simint_multi_shellpair const Q,
d... |
/*********************************************************
* Copyright (C) 2008-2017,2019 VMware, Inc. All rights reserved.
*
* 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 version 2... |
/*
* Copyright (c) 2015, <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 condit... |
/* liblouis Braille Translation and Back-Translation Library
Copyright (C) 2017 <NAME>
This file is part of liblouis.
liblouis 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 versio... |
/*
* Mesa 3-D graphics library
* Version: 7.1
*
* Copyright (C) 1999-2007 <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, includ... |
/*******************************************************************************
*******************************************************************************
*******************************************************************************
*
*
* #### ##### ##### # #### # # ####
* ... |
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME>ung (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following condition... |
/* libmpdclient
(c) 2003-2019 The Music Player Daemon Project
This project's homepage is: http://www.musicpd.org
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... |
/**************************************************************************//**
* @file main.c
* @version V1.00
* @brief Demonstrate USCI_SPI data transfer with PDMA.
* USCI_SPI0 will be configured as Master mode and USCI_SPI1 will be configured as Slave mode.
* Both TX PDMA function an... |
/*
Copyright (C) Intel Corp. 2006. All Rights Reserved.
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
develop this 3D driver.
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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <mpibind.h>
#include <flux/shell.h>
#include <jansson.h>
/* mpibind.c - flux-shell mpibind plugin
*
* flux-shell plugin to implement task binding and affinity using libmpibind.
*
* OPTIONS
*
* {
* "disable":int,
* "verbose":int,
* "smt":int,
* "g... |
// This file generated by NTAssassin Auxiliary Compiler V1.0.0.0
// Do not modify manually
#include "3rdParty\NTAssassin\include\NTAssassin.h"
I18N_ITEM NAC_I18N_Lang_en_Items[122] = {
{0x642A6E98, TEXT("None")},
{0x004F13BC, TEXT("OK")},
{0xD192564E, TEXT("Apply")},
{0xC02F2CF2, TEXT("(N/A)")},
{0x53A8CD3B, TE... |
/*
* An I2C driver for the Epson RX8581 RTC
*
* Author: <NAME> <<EMAIL>>
* Copyright 2008 GE Intelligent Platforms Embedded Systems, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software ... |
typedef struct Dwarf Dwarf;
typedef struct DwarfAttrs DwarfAttrs;
typedef struct DwarfBlock DwarfBlock;
typedef struct DwarfBuf DwarfBuf;
typedef struct DwarfExpr DwarfExpr;
typedef struct DwarfSym DwarfSym;
typedef union DwarfVal DwarfVal;
enum
{
TagArrayType = 0x01,
TagClassType = 0x02,
TagEntryPoint = 0x03,
Tag... |
// Code from nv_dds https://github.com/paroj/nv_dds
#include "gimg_dds.h"
#include "gimg_typedef.h"
#include <fs_file.h>
#include <fault.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#define DDS_REVERT_Y
enum TextureType {
TextureNone = 0, TextureFlat, /... |
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#include "Display.h"
#include "Display_f... |
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2004 Red Hat, Inc.
* Copyright © 2005 Red Hat, Inc.
*
* 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 Fr... |
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <mouse.h>
Display *display;
Font *font;
Image *screen;
int _drawdebug = 0;
static char deffontname[] = "*default*";
Screen *_screen;
int debuglockdisplay = 1;
char *winsize;
int visibleclicks = 0;
Image *mousebuttons;
Image *mousesave;
Mouse _drawmouse;
... |
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include "FLAME.h"
#include "test_libflame.h... |
/*
* Copyright (c) 2002-2005 <NAME>, <NAME>
* Copyright (c) 2006 CACE Technologies, Davis (California)
* All rights reserved.
*
* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only)
*/
/******************************************************************************/
/* File includes */
/* ... |
//@ ltl invariant positive: <>AP(p==1);
/* Provide Declarations */
#include <stdarg.h>
#include <setjmp.h>
#include <limits.h>
#include <stdint.h>
struct l_struct_struct_OC_ArchState;
struct l_struct_struct_OC_uint64v8_t;
struct l_struct_union_OC_vec512_t;
struct l_struct_union_OC_VectorReg;
struct l_struct_struct_OC_... |
/* GStreamer
* Copyright (C) <1999> <NAME> <<EMAIL>>
* Copyright (C) <2004> <NAME> <thomas at apestaart dot org>
* Copyright (C) <2011> Collabora Ltd.
* Author: <NAME> <<EMAIL>>
* Copyright (C) <2014> <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the te... |
/*
* Copyright (c) 1996, 1998 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS... |
/*
* This file is a part of Poly2Tri-C
* (c) <NAME> <<EMAIL>>
* http://code.google.com/p/poly2tri-c/
*
* 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... |
/* Copyright (c) 2002-2005 <NAME>.
*
* Redistribution and use in source forms, with and without modification,
* are permitted provided that this entire comment appears intact.
*
* Redistribution in binary form may occur without any restrictions.
*
* This software is provided ``AS IS'' without any warranties of a... |
/*
* THIS SOURCE CODE IS SUPPLIED ``AS IS'' WITHOUT WARRANTY OF ANY KIND,
* AND ITS AUTHOR AND THE JOURNAL OF ARTIFICIAL INTELLIGENCE RESEARCH
* (JAIR) AND JAIR'S PUBLISHERS AND DISTRIBUTORS, DISCLAIM ANY AND ALL
* WARRANTIES, INCLUDING BUT NOT LIMITED TO ANY IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNE... |
/* <NAME> and <NAME>
* Project 5 - Bank System
*/
#include "sessioncommands.h"
#include "server.h"
//display errors and exit
void error(char * msg)
{
perror(msg);
exit(1);
}
//session acceptor thread will continually search for new client connection requests and place them in
//their own client session threads
v... |
#define _POSIX_C_SOURCE 200809L
#define _BSD_SOURCE 1
#define _GNU_SOURCE 1
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#ifdef __APPLE__
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#inc... |
//-----------------------------------------------------------------------------
// culvert.c
//
// Project: EPA SWMM5
// Version: 5.1
// Date: 03/20/14 (Build 5.1.001)
// 05/10/18 (Build 5.1.013)
// Author: <NAME>
//
// Culvert equations for SWMM5
//
// Computes flow reduction in a... |
/*
** Copyright (C) 1999-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 published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This prog... |
/*
* Open Surge Engine
* background.c - level background/foreground
* Copyright (C) 2010 <NAME> <alemartf(at)gmail(dot)com>
* http://opensnc.sourceforge.net
*
* 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... |
/*
* Keyboard to PS2 conversion.
*
* Copyright (c) 2003 <NAME>
* Copyright (c) 2006 Openedhand Ltd.
*
* 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 wi... |
/*
yagears Yet Another Gears OpenGL demo
Copyright (C) 2013-2017 <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 limitatio... |
/* dqage.f -- translated by f2c (version 20190311).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of ... |
/* im_falsecolour
*
* 23/6/95 JC
* - rewritten for PIO
* - now walks edges of colour cube to get more saturated appearance
* 21/8/05
* - uses falsecolour scale from PET scanner
* 7/4/06
* - hmm, reversed scale
* 29/1/10
* - cleanups
* - gtkdoc
* 12/7/11
* - force input to mono 8-bit for the user
* 1/... |
/**
* \file lora_packet.c
* \brief LoRaWAN Detector of NEMEA module.
* \author <NAME> <<EMAIL>>
* \date 2018
*/
/*
* Copyright (C) 2018 CESNET
*
* LICENSE TERMS
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... |
/****************************************************************
* Grade: 73/100
* Commets: 1) Command line: 8/10
* random should be mod by 1,000,000 -2
* 2) DEBUG info: 9/9
* 3) Sorting: 26/26
* 4) Parralel sort: 0/20
* 5) Documentation: 10/10
* 6... |
/* vi: set sw=4 ts=4: */
/*
* $Id: ping.c,v 1.55 2003/07/22 08:56:51 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 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 MIT License (MIT)
Copyright (c) 2021 EGPAerospace
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,... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Mupen64plus - plugin.c *
* Mupen64Plus homepage: https://mupen64plus.org/ *
* Copyright (C) 2002 Hacktarux *
* Copyrig... |
/* paraRun - stuff to help manage para operations on collections. */
/* The overall design of this system involves a number of threads,
* all synchronized on synQueues. The threads come in three sorts,
* a manager, workers, and customers. The customers send a
* run-request message to the manager. This message incl... |
/* radcom.c
*
* Wiretap Library
* Copyright (c) 1998 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 Foundation; either version 2
* of the License, or (at your option) any late... |
/******************************************************************************
* xc_compression.c
*
* Checkpoint Compression using Page Delta Algorithm.
* - A LRU cache of recently dirtied guest pages is maintained.
* - For each dirty guest page in the checkpoint, if a previous version of the
* page exists in th... |
/**
\brief CC2420-specific implementation of AES encryption.
\author <NAME> <<EMAIL>>, April 2015.
*/
#include "opendefs.h"
#include "board.h"
#include "radio.h"
#include "cc2420.h"
#include "spi.h"
#include "debugpins.h"
#include "cryptoengine.h"
//=========================== defines ===============... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include <math.h>
#include <sys/stat.h>
#include <unistd.h>
unsigned long get_file_size(const char *filename)
{
struct stat buf;
if(stat(filename, &buf)<0)
{
return 0;
}
return ... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/*
... |
/* $OpenBSD: score.c,v 1.12 2009/10/27 23:59:26 deraadt Exp $ */
/* $NetBSD: score.c,v 1.5 1995/04/22 10:28:26 cgd Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistrib... |
#include <u.h>
#include <libc.h>
#include <fcall.h>
#include <bio.h>
#define TBLOCK 512
#define NBLOCK 40 /* maximum blocksize */
#define DBLOCK 20 /* default blocksize */
#define NAMSIZ 100
union hblock
{
char dummy[TBLOCK];
struct header
{
char name[NAMSIZ];
char mode[8];
char uid[8];
char gid[8];
char ... |
// Compile: make main
// Run: mpirun -np 4 ./main images/man9.jpg images/man10.jpg output_images/ 4 lines/lines-man9-man10.txt
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <morph.h>
#include <mpi.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb/stb_image.h>
#define STB_IMAGE_WRITE_IMPLEMENTATI... |
/* Copyright (c) 2000 <NAME>, see README for licence details */
#include <stdio.h>
#include <stdlib.h>
#include <X11/X.h>
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <X11/extensions/shape.h>
#include "dat.h"
#include "fns.h"
void
unhide_last (ScreenInfo * s)
{
... |
/* $Id: cardplay.c,v 1.40 2013/12/09 15:38:34 moonsdad Exp $ */
#include "sgui.h" /* #includes "server.h" */
/******************************************************************************/
/* Function: player_ownes */
/* Parameters: unsigned me Index o... |
#include "all.h"
extern unsigned FINAL_HIGH_WATER;
extern unsigned char CV_TEMP_RECORD;
extern unsigned CV_PUB_TXT_OFFSET;
extern unsigned CV_PUB_SYMBOL_ID;
extern unsigned CVG_SEGMENT;
extern unsigned BYTES_SO_FAR;
extern unsigned CVG_SYMBOL_OFFSET;
extern unsigned CVG_SEGMENT_OFFSET;
extern unsigned CVG_SYMBOL_HASH;... |
/* Copyright (C) 2018 <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, distri... |
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <pthread.h>
#include <errno.h>
#include <applibs/log.h>
#include <applibs/gpio.h>
#include <applibs/i2c.h>
#include <applibs/networking.h>
#include <applibs/eventloop.h>
#include "../../MT36... |
/*
* Copyright (C) 1985-1992 New York University
*
* This file is part of the Ada/Ed-C system. See the Ada/Ed README file for
* warranty (none) and distribution info and also the GNU General Public
* License for more details.
*/
#include "hdr.h"
#include "ada.h"
#include "ifile.h"
#include "miscprots.h"
#inc... |
/**
* @file jobqueue.c
* @author <NAME>
* @brief Multithreaded job queue
*
* This file implements a multithreaded job queue. Jobs are pushed
* onto a queue by the main program. Each thread (or worker) removes a
* job from the queue, executes it, and then goes back for
* another. When all jobs are finis... |
/*
* Copyright (c) 1999, 2000, 2002-2008 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file ex... |
/* Flow Box
*
* GtkFlowBox allows flexible and responsive grids which reflow
* as needed and support sorting and filtering.
*
* The children of a GtkFlowBox are regular widgets
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
static GtkWidget *window = NULL;
static GtkWidget *
color_swatch_new (... |
/*
The Keccak sponge function, designed by <NAME>, <NAME>,
<NAME> and <NAME>. For more information, feedback or
questions, please refer to our website: http://keccak.noekeon.org/
Implementation by the designers,
hereby denoted as "the implementer".
To the extent possible under law, the implementer has waived all copy... |
/**
* \file
*
* \brief AltBeacon Application
*
* Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products.
* It is your respon... |
#include <math.h>
#include "sgp.h"
#include "util.h"
#include "vec.h"
static const double SDP_THRESH_FREQ = 1440.0 / 225.0;
static const double XKMPER = 6378.135;
static const double ONE_HALF = 1.0 / 2.0;
static const double THREE_HALVES = 3.0 / 2.0;
static const double TWO_THIRDS = 2.0 / 3.0;
static const double a_E... |
// ------------------------------------------------------------------------------------------------
/* Purdue CS528 - Network Security - Spring 2016
** Lab 1: Packet Sniffing and Spoofing
** <NAME> (ispo)
**
** Task 2: Packet Spoofing
**
** This program can send spoofed ICMP echo (ping) packets along with spoofed... |
/** @file
@brief HX8357D LCD GPIO 8bit接続 ドライバ
Kuman MAR3520(Kuman 3.5inch TFT LCD Shield)
@date 2017.11.02
@author <NAME>
*/
#include "device.h"
#include "device/video_ioctl.h"
#include "device/vio_ioctl.h"
#include "timer.h"
#include "tkprintf.h"
#include "graphics.h"
//#define DEBUGKBITS 0x03
#includ... |
#include <X11/Xlib.h>
#define XK_MISCELLANY
#include <X11/keysymdef.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
const int initialIterations = 100;
const int totalThreads = 8;
const double scalingfact = 0.1;
const double mo... |
/*
* 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
* \brief Performs panel LU factorization.
*
* <pre>
* -- Distributed SuperLU routine (version 4.0) --
* Lawrence Berkeley National Lab, Univ. of California Berkeley.
* August 15, 2014
*
* <pre>
* Purpose
* =======
* Panel factorization -- block column k
*
* Factor diagonal and subdiagonal b... |
#include "render_engine.h"
#include <math.h>
#include <stdlib.h>
#include "subsystem.h"
#include "uart.h"
#include "terminal.h"
#define M_PI 3.14159265358979323846
// Rendering helper functions
point_t pointToScreen(vector_t delta,
rounding_t camHAngle, rounding_t camVAngle,
rounding_t angleHPixel, ro... |
/* Copyright 2016 The TensorFlow Authors. 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 a... |
//------------------------------------------------------------------------------
// LAGraph_tricount: count the number of triangles in a graph
//------------------------------------------------------------------------------
/*
LAGraph: graph algorithms based on GraphBLAS
Copyright 2020 LAGraph Contributors.
... |
#include "display.h"
#include "keyboard.h"
#include "softmath.h"
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#define BITPACKED_WHITE 0xffffff
#define BITPACKED_GRAY 0x808080
#define MAX_SHOTS 5
#define MAX_ASTEROIDS 8
#define ASTEROID_WIDTH 10
typedef struct {
char r;
char g;
char b;
} pixel;
t... |
/*
* Quick 'n' dirty mym to tap converter
*
* Usage: bin2tap [binfile] [tapfile]
*
* <NAME> - 08/02/2000 - tapmaker
* <NAME> - 03/12/2000 - bin2tap
* <NAME> - 29/05/2001 - ORG parameter added
* <NAME> - 10/03/2003 - integrated into appmake & options
* <NAME> -... |
/*******
* UM25C
*
* MIT/X11 License
* Copyright © 2019 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rig... |
/*
Copyright 2013-2016 by <NAME>
All rights reserved.
This software is made available under the terms of the
ICU License -- ICU 1.8.1 and later.
See the LICENSE file at the top-level directory of this distribution and
at https://sourceforge.net/p/dps8m/code/ci/master/tree/LICENSE
*/
// Convert p72 to/from 7 p... |
// WFM File I/O Routines
#include "wfm.h"
//
// Send file to client browser
// Called by cgiMain action=save
//
void save(void) {
char buff[1024]={0};
FILE *in;
int rd=0, tot=0, size=0, pos=0, blk=0;
checkfilename(NULL);
// TODO: 2gb file limit?
in=fopen(wp.phys_filename, "rb");
if(!in)... |
#include <stdio.h>
#include <stdlib.h>
#include "decod.h"
/* Chaines pour affichage */
static const char *mnem_ext[] = {"eq",
"ne",
"hs",
"lo",
"mi",
"pl",
"vs",... |
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2002,2003,2005,2007,2008,2009 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the... |
#include "platform/gs_platform.h"
#include "base/gs_engine.h"
// Hope we got this... Stupid dependencies...
#include <GL/glew.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
/*============================
// Platform Initialization
============================*/
#define __window_from_handle( platform, handle )... |
/*
* FreeBSD install - a package for the installation and maintenance
* of non-core utilities.
*
* 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... |
// Authors: <NAME>
//
// License: BSD (3-clause)
#define NPY_NO_DEPRECATED_API NPY_1_20_API_VERSION
#include <stdlib.h>
#include <Python.h>
#include <numpy/arrayobject.h>
static PyObject *_squared_moving_integration(PyObject *self,
PyObject *args,
... |
/* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 <NAME>, <NAME> and <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option... |
/*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
// Inter-integrated circuit (I2C) management:
// - initialization and configuration
// - data transfers in master mode
// - check if device with specified address responds
#include <stm32l1xx_rcc.h>
#include "gpio.h"
#include "i2c.h"
// Wait until I2C flag set
// input:
// I2Cx - I2C port
// I2C_Flag - I... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include "parser.h"
#include "expr.h"
#include "asm.h"
struct {
Variable var[0xFF];
int count;
} gblVar;
static Variable locVar[0xFF][0xFF];
static int varSize[0xFF], varCounter;
static int nowFunc; // number o... |
/* -----------------------------------------------------------------------------
*
* Copyright (C) 1997-2019 <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>,
* <NAME>,
* <NAME> & <NAME>
*
* Implementation of the Healpix bare bones C library
*... |
// See the file readme-lzhuf.txt for more information about this file.
// Modifications for Deark are Copyright (C) 2021 <NAME>, and have the
// same terms of use as the main part of Deark.
// Alternatively, at your option, the modifications for Deark may be treated
// as public domain.
// Intro from the original soft... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
* This notice applies to any and all portions of this file
* that are... |
// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Xen para-virtual DRM device
*
* Copyright (C) 2016-2018 EPAM Systems Inc.
*
* Author: <NAME> <<EMAIL>>
*/
#include <drm/drmP.h>
#if defined(CONFIG_X86)
#include <drm/drm_cache.h>
#endif
#include <linux/errno.h>
#include <linux/mm.h>
#include <asm/xen/hypervisor... |
/**
* \file
* \brief TNG TLS device certificate definition
*
* \copyright (c) 2015-2020 Microchip Technology Inc. and its subsidiaries.
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* resp... |
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <GLFW/glfw3.h>
#include <linmath/linmath.h>
#include "config.h"
#include "font.h"
#include "model.h"
#include "opengl.h"
#include "physics.h"
#include "shader.h"
#include "texture.h"
// game r... |
/******************************************************************************
* Copyright (c) 2010-2015 Texas Instruments Incorporated - http://www.ti.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:... |
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 <NAME> <<EMAIL>>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC L... |
/*
* $Id: hlevel.c,v 1.2 2007-12-28 20:20:18 thiebaut Exp $
* Define routines for recommended GIST interactive interface
*/
/* Copyright (c) 2005, The Regents of the University of California.
* All rights reserved.
* This file is part of yorick (http://yorick.sourceforge.net).
* Read the accompanying LICENSE file... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "packet.h"
#include "queue.h"
#include <sys/socket.h>
#include <netinet/in.h> // sockaddr_in6
#include <unistd.h> // write, close
#include <errno.h>
#include <unistd.h>//read()
#include <fcntl.h>
#include <stdbool.h>
int log_out; //M... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.