text stringlengths 3.12k 18.7k |
|---|
/**********************************************************************************
* Copyright (c) 2017 <NAME> *
* *
* Permission is hereby granted, free of charge, to any person obtaining a ... |
// ------------------------------------------------------------------
// digest.c
// Copyright (C) 2020 <NAME> <<EMAIL>>
// Please see terms and conditions in the files LICENSE.non-commercial.txt and LICENSE.commercial.txt
#include "libdeflate/libdeflate.h"
#include "genozip.h"
#include "digest.h"
#include "buff... |
/* q_hhf.c Heavy-Hitter Filter (HHF)
*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <syslog.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include "utils.h"
#include "tc_util.h"
stati... |
#include <libopencm3/cm3/nvic.h>
#include <libopencm3/efm32/cmu.h>
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/cdc.h>
#include <string.h>
#include <ctype.h>
#define VENDOR_ID 0x1209 // pid.code
#define PRODUCT_ID 0x70b1 // Assigned to Tomu project
#define DEVICE_VER 0x0101 // Program v... |
#include <stdio.h>
#include <string.h>
#include "objstring.h"
#include "index.h"
#include "memory.h"
#include "number.h"
#include "utf8.h"
#include "vm.h"
#define CHECK_ARG_IS_STRING(index) \
if (argCount >= index+1 && !IS_STRING(args[index])) { \
runtimeError(vm, "Argument %d must be a string, got %s.", inde... |
/*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pu... |
#include "nsfcmn.h"
void dumpcmn ( int *iret );
int main ( void )
/************************************************************************
* TESTNSF *
* *
* This program test the NSF library of routines. *
* *
** *
* Log: *
* <NAME>/NCEP 6/99 Created *
* <NAME>/G... |
/* Stuff to display details on tracks that are clusters of peaks (items) in other tracks.
* In particular peaks in either ENCODE narrowPeak or broadPeak settings, and residing in
* composite tracks.
*
* These come in two main forms currently:
* DNAse hypersensitive clusters - peaks clustered across cell line... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdint.h>
#include <poll.h>
#include <signal.h>
#include <sys/uio.h>
#include "mcmc.h"
static void show_response(void *c, char *rbuf, size_t bufsize) {
int status;
// buffer shouldn't change until the read is completed.
... |
/*
* Copyright (c) 2019 <NAME> <<EMAIL>>
*
* 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" AND THE AUTHOR DISCL... |
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include <commands.h>
#include <keys.h>
#include <lib.h>
#include <registers.h>
#include <shell.h>
#include <stdint.h>
#include <stringLib.h>
#include <systemCal... |
#include "glfw.h"
#include "position.h"
#include "workarea.h"
#include "scale.h"
#include "video_mode.h"
#include "gamma_ramp.h"
#include "monitor.h"
// Constructor/Destructor
JSValue glfw_monitor_ctor(JSContext* ctx, JSValueConst new_target, int argc, JSValueConst *argv) {
return glfw_monitor_new_instance(ctx, glf... |
/**
* @file hmm_check.c
*
* <JA>
* @brief トライフォンの辞書上での整合性チェック
* </JA>
*
* <EN>
* @brief Triphone checker on word dictionary
* </EN>
*
* @author <NAME>
* @date Thu Mar 17 20:50:07 2005
*
* $Revision: 1.5 $
*
*/
/*
* Copyright (c) 1991-2013 Kawahara Lab., Kyoto University
* Copyright (c) 2000-... |
/*
* Copyright (c) 2010, Swedish Institute of Computer Science.
* 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
* n... |
/**
* The MIT License:
*
* Copyright (c) 2012 <NAME>, <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 right... |
/*
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 "tank.h"
#include "../mem.h"
#include "../archive.h"
#include "../stage.h"
#include "../main.... |
/*-
* Copyright (c) 2011 NetApp, Inc.
* Copyright (c) 2015 xhyve developers
* 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 copy... |
#include <math.h>
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include "./includes/complex.h"
#define MASTER 0 /* taskid of first task */
#define FROM_MASTER 1 /* setting a message type */
#define FROM_WORKER 2 /* setting a message type */
/*
Description: operat... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <pwd.h>
#include "../range.h"
#include "list.h"
#include "str.h"
#include "alloc.h"
#define ispwchr(x) (isalpha(x) || (x) == '_')
int iswordchar(int c)
{
return isalnum(c) || c == '_';
}
int isfnamechar(... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <signal.h>
#include <libftdi1/ftdi.h>
/* Wiring:
* VCC - VCC (red)
* Trig - GPIOL0 (gray)
* Echo - TDI (green)
* GND - GND (black)
*/
/* Useful references:
* http://www.ftdichip.com/Support/Documents/AppNotes/AN_108_Com... |
/**
* Copyright (c) 2020 <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, d... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* streams.c : stream encapsulation routines for the ra_svn protocol
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for add... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/epoll.h>
#include <arpa/inet.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <string.h>
#include "./log/log.h"
#include "sp.h"
#include "fds/fds.h"
#define MAX_EVENTS 10
void err_exit(char *msg) {
log_err(msg);
exit(2);
}
void clean(int fd, int epoll_fd);... |
/* GStreamer
* Copyright (C) <2005> <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
... |
/*! \file cluster.h
* \brief defines functions for cluster I/O and basic cluster manipulation and
* relation.
*/
/*! \brief Structure storing a single cluster to be found by
* clustering algorithms
* such as dbscan.
*/
typedef struct {
int * members; /*!< integer containing the numb... |
/*
* Copyright 2013 Freescale Semiconductor Inc.
*
* 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 t... |
/**
* @file rpg_states.c
* @brief A simple program demos struct/union and bit
* operations.
* @author <NAME> (<EMAIL>)
* @date 04/12/2017 created.
* @date 04/13/2017 last modified.
* @version 0.1.0
* @copyright MIT, (C) 2017 <NAME>
* @details
*
* A simple ... |
#include "../header/cp_tar.h"
void launcher_cp(int nbArg, char ** argument, char * path);
void printSameFileError(char * src, char * dst);
void printMissingArgumentWithR(char * src);
void cp_help();
void cp_tar(char * src, char * dst, char * path);
void cp_tar_r(char * src, char * dst, char * path);
int nbBlockFile(i... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
#include "os.h"
/*
* Following global vars are defined in mem.S
*/
extern uint32_t TEXT_START;
extern uint32_t TEXT_END;
extern uint32_t DATA_START;
extern uint32_t DATA_END;
extern uint32_t RODATA_START;
extern uint32_t RODATA_END;
extern uint32_t BSS_START;
extern uint32_t BSS_END;
extern uint32_t HEAP_START;
exte... |
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: <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 v... |
/*
* Copyright 2020 Intel Corporation
* SPDX-License-Identifier: Apache 2.0
*/
#include <stdio.h>
#include "safe_lib.h"
#include "util.h"
#include <safe_lib.h>
#include <atca_basic.h>
#include <atcacert/atcacert_client.h>
#include <atcacert/atcacert_def.h>
#define LOCKING_ENABLED 1
#define ECDSA_KEY_SLOT 0x0
#def... |
/* $NetBSD: hpcioman.c,v 1.6 2002/01/13 14:00:38 takemura Exp $ */
/*-
* Copyright (c) 1999-2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by UCHIYAMA Yasushi.
*
* Redistribution and use in source and binary forms, with or wi... |
/*
* Samba Unix/Linux SMB client utility
* Write Eventlog records to a tdb, perform other eventlog related functions
*
*
* Copyright (C) <NAME> 2005.
* Copyright (C) <NAME> 2009.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... |
/* MAr.C */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "mar.h"
#include "types.h"
#include "algo.h"
#include "archive.h"
#include "bitio.h"
#include "bwt.h"
#include "crc.h"
#include "debug.h"
#include "delta.h"
/* Variables */
static char *Program;
/* Prototypes */
st... |
/*
* Copyright 2020 <NAME>
*
* See LICENCE for the full copyright terms.
*/
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <fsm/fsm.h>
#include <fsm/bool.h>
#include <fsm/capture.h>
#include <fsm/pred.h>
#include <fsm/print.h>
#include "captest.h"
/* Combine 2 mostly ove... |
// ----------------------------------------------------------------------------
// Copyright 2020 ARM Ltd.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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 L... |
/*
* @author: <NAME>
* Stdn ID: 9812762463
* Project: Linux Shell with C
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <readline/readline.h>
#include <readline/history.h>
... |
/* A simple HTTPS server */
#include "common.h"
#include "server.h"
static void http_serve_headers(BIO *io, int status, const char *status_msg, const char *content_type)
{
if(BIO_printf(io, "HTTP/1.0 %d %s\r\n", status, status_msg) <= 0)
err_exit("Write error");
if(BIO_printf(io, "Content-type: %s\r\n", content_ty... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
/* somewhat unix-specific */
#include <sys/time.h>
#include <unistd.h>
/* curl stuff */
#include <curl/curl.h>
#include <curl/mprintf.h>
//#define CURL_HTTP_X_DEBUG
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stre... |
#include "common.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/mman.h>
#include "fail.h"
#include "insn.h"
#define S_Z 1
#define S_C 2
struct processor {
size_t pc;
uint8_t regs[16];
uint8_t x;
uint8_t s;
uint8_t* dmem;
uint8_t* pmem;
};
void store(const st... |
/*
* cebsocket is a lightweight WebSocket library for C
*
* https://github.com/rohanrhu/cebsocket
*
* Licensed under MIT
* Copyright (C) 2020, <NAME> (https://oguzhaneroglu.com/) <<EMAIL>>
*
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <signal.... |
/* $OpenBSD: mbrdisksubr.c,v 1.2 2003/12/20 22:40:15 miod Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
* Copyright (c) 1996 <NAME>
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary for... |
/* -*- coding: utf-8-unix -*- */
#include <assert.h>
#include "vm/debug.h"
#include "vm/vm.h"
impl_Mem(Update);
impl_Array(Update);
impl_Mem(Closure);
impl_Array(Closure);
impl_Mem(Cell);
impl_Array(Cell);
/** panic! */
void panic(String msg) {
printf("panic: %s\n", msg);
abort();
}
/** garbage collector (no... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "QueueCheque.h"
#include "ArvoreCliente.h"
/* Projecto 2 IAED
Grupo AL006: <NAME> 80967
<NAME> 81172
<NAME> 81328
*/
/*Prototipos das funcoes do programa */
void adicionaCheque(Q fila, A arvore); /* Adiciona um Cheque a fila e atualiza a... |
#include "delivery.h"
// New constructor
// Creates a element for delivery and places it in the queue, waiting for a
// poll to arrive. Creates the waithandle if required and sends the UDP
// notification if set.
//
// @returns; NULL if it failed
// @err; DSS_SUCCESS, DSS_ERR_UDP_SEND_FAILED, DSS_ERR_INVALID_UTILI... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "config_power_domain.h"
#include "morello_core.h"
#include "morello_scc_reg.h"
#include "morello_scp_mmap.h"
#include "morello_scp_pik.h"
#include <mod_cmn_skee... |
// Kvad - a C99 quadtree implementation
// http://github.com/appscape/kvad
#include "kvad.h"
#include <stdlib.h>
#include <stdbool.h>
// Activate asserts only if KVAD_ASSERTS=1 is defined
#if KVAD_ASSERTS
#include <assert.h>
#define ASSERT(expr) assert(expr)
#else
#define ASSERT(expr) /* */
#endif
typedef struct { ... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cirBlitter.h,v 3.12 1996/12/23 06:56:27 dawes Exp $ */
/* Definitions for BitBLT engine communication. */
/* $XConsortium: cirBlitter.h /main/5 1996/10/25 10:30:37 kaleb $ */
/* BitBLT modes. */
#define FORWARDS 0x00
#define BACKWARDS 0x01
#defin... |
/* Copyright (C) 2011-2016 OldTimes Software
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 ... |
#define CUSTOM_SETTINGS
#define INCLUDE_GAMEPAD_MODULE
#include "DabbleApp\DabbleESP32.h"
#include "KidsyDabbleJoystick.h"
#define FLAT_SPEED 90 // velocidad de una llanta ponchada (magenta)
#define NOMINAL_SPEED 140 // velocidad nominal (negro o rojo)
#define BOOST_SPEED 255 ... |
#include <tee_api.h>
#include <utee_api.h>
/*
The following constraints are put on the internal representation of the TEE_BigInt:
1) The size of the representation must be a multiple of 4 bytes.
2) The extra memory within the representation to store metadata must not exceed 8 bytes.
3) The representation ... |
/*
* 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... |
/*****************************************************************************
* Product: User Interface with State-Local Storage Example
* Last Updated for Version: 4.5.00
* Date of the Last Update: May 24, 2012
*
* Q u a n t u m L e a P s
* ---------------------------
* ... |
/* =======================================
* SUSY
*
* TODO:
* - still giving qualitatively wrong answer
* =======================================
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#define sq(x) pow((x),2.0)
#define cb(x) pow((x),3.0)
#define qd(x) pow((x),4.0)
// GSL Random Number Gener... |
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by MSWebDVD.rc
//
#define IDS_PROJNAME 100
#define IDB_MSWEBDVD 101
#define IDS_ABOUT 101
#define IDR_MSWEBDVD 102
#define IDS_WEBDVD_ABOUT ... |
/*********************************************************************************************************
* Software License Agreement (BSD License) *
* Author: <NAME> <<EMAIL>> *
* *
* Copyright (c) 2013, WIDE Project and NICT *... |
/*
* Copyright (C) 2009-2012 the libgit2 contributors
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "git2/types.h"
#include "git2/errors.h"
#include "git2/refs.h"
#include "git2/revwalk.... |
#include <string.h>
#include <stdlib.h>
#include "lexer.h"
#include "token.h"
#include "util.h"
static pkeyword_t keywords[] = {
{ "if", 2, TOK_KEY_IF, },
{ "in", 2, TOK_KEY_IN, },
{ "is", 2, TOK_KEY_IS, },
{ "or", 2, TOK_KEY_OR, },
{ "and", 3, TOK_KEY_AND... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <libusb-1.0/libusb.h>
#include "usb_device_handle.h"
#include "usb_device_enum.h"
void print_device();
void main(void)
{
//
// device descriptor
struct libusb_device_descriptor *sldd = mall... |
/* ==========================================================================
Licensed under BSD 2clause license See LICENSE file for more information
Author: <NAME> <<EMAIL>>
==========================================================================
-------------------------------------------------... |
/*
* Copyright (C) 2012-2015, <NAME> <http://juan.cl/>
* All rights reserved.
*
* This file is part of MultimediaTools. https://github.com/juanbarrios/multimedia_tools
* MultimediaTools is made available under the terms of the BSD 2-Clause License.
*/
#include "parallel_util.h"
#include <time.h>
#include <sys/ti... |
/***************************************************************************
*
* du.c
* Copyright (c) 2004 <NAME>
* 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; ... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Meson8, Meson8b and GXBB USB2 PHY driver
*
* Copyright (C) 2016 <NAME> <<EMAIL>>
* Copyright (C) 2018 BayLibre, SAS
*
* Author: <NAME> <<EMAIL>>
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
#include <power/regulator.h>
#include <regma... |
#define LUA_LIB
#include <stdlib.h>
#include <lua.h>
#include <lauxlib.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <ctype.h>
#include <fcntl.h>
#include <time.h>
#include "mcdc04.h"
#define CIEX 3
#define CIEY 1
#define CIEZ 2
#define TRD 0
#define ARRAYSIZE(arr) (sizeof(arr) / sizeof(arr[... |
/* tokenizer.c
* by Andrew 'ChronalDragon' Chronister
*
* Basic, not-to-spec C tokenizing
*
* Part of the codegen translation unit (included there directly)
* Separated out here for ease of navigation.
*/
typedef struct
{
const char* At;
const char* Start;
const char* LineStart;
int LineCount;... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
// Includes para sockets
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/un.h>
#include "fredchatserver.h"
#include "fredSocket.h"
#include... |
///
/// Copyright (C) 2014-2016, Dependable Systems Laboratory, EPFL
/// Copyright (C) 2014-2017, Cyberhaven
///
/// 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, inc... |
#include "rr_fts.h"
#include "rr_malloc.h"
#include "rr_stopwords.h"
#include "rr_stemmer.h"
#include "rr_logging.h"
#include "adlist.h"
#include "sds.h"
#include "rr_minheap.h"
#include <assert.h>
#include <math.h>
struct fts_iterator_t {
minheap_t *docs;
};
static const char* puncs = ",.:;?!";
typedef struct ... |
//include defines etc.
#include "x86_desc.h"
#include "idt_init.h"
#include "lib.h"
#include "types.h"
#include "i8259.h"
#include "keyboard.h"
#include "rtc.h"
#include "exception_link.H"
#include "sys_call_link.H"
#include "pit.h"
int i; // loop variable
/*
* idt_init
* Author: Sam
* Description: This function is... |
// 0x0700C2A0 - 0x0700C2E0
static const Vtx castle_grounds_seg7_vertex_0700C2A0[] = {
{{{ 268, 803, -3206}, 0, { 990, 328}, {0xc4, 0xc4, 0xd0, 0xff}}},
{{{ -243, 803, -3206}, 0, { 0, 330}, {0xc4, 0xc4, 0xd0, 0xff}}},
{{{ -245, 803, -2844}, 0, { 0, 970}, {0xc4, 0xc4, 0xd0, ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "particle.h"
#include "raylib.h"
#define GRAVITY 10;
void swap_particles(int, int, Particle**);
void free_particle(int, int, int, Particle**);
void reset_has_been_updated(int, int, Particle**);
void traverse_matrix(int, int, int, int, int, Particle**);... |
/*
* net/tipc/ref.c: TIPC object registry code
*
* Copyright (c) 1991-2006, Ericsson AB
* Copyright (c) 2004-2007, Wind River Systems
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* ... |
/******************************************************************************
*
* Copyright (C) 2008 - 2014 Xilinx, 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 Softw... |
/* Flower Video Hardware */
#include "driver.h"
#include "includes/flower.h"
static tilemap *flower_bg0_tilemap, *flower_bg1_tilemap, *flower_text_tilemap, *flower_text_right_tilemap;
UINT8 *flower_textram, *flower_bg0ram, *flower_bg1ram, *flower_bg0_scroll, *flower_bg1_scroll;
PALETTE_INIT( flower )
{
... |
/* $OpenBSD: readpassphrase.c,v 1.26 2016/10/18 12:47:18 millert Exp $ */
/*
* Copyright (c) 2000-2002, 2007, 2010
* <NAME> <<EMAIL>>
*
* 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 file is Copyright (c) 2017 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*
* This file contains functions to deal with compatibility issues across OSes.
*
* The initial version of this file is a near-verbatim concatenation of the
* following three sou... |
#include <stdint.h>
#include "usb-desc.h"
#include "usb-msc.h"
#include "usb.h"
static const uint8_t max_lun = 0;
#define DISK_SIZE 117760 // ~112 kilobytes
#define BLOCK_SIZE 512
#define BLOCK_COUNT (DISK_SIZE / BLOCK_SIZE)
static uint32_t memory_backing[DISK_SIZE/4];
static uint32_t swap32(uint32_t x) {
return ... |
/*
* Copyright (c) 2021, Renesas Electronics Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <common/debug.h>
#include <lib/mmio.h>
#include "qos_init_g2h_v30.h"
#include "../qos_common.h"
#include "../qos_reg.h"
#define RCAR_QOS_VERSION "rev.0.07"
... |
/****************************************************************\
* *
* Priority queue library using pairing heaps. *
* *
* <NAME>.. mailto:<EMAIL> *
*... |
#include "libos.h"
#include "listlib.h"
#include "utils.h"
bool buffer2file(char *buffer, int len, char *pszFileName)
{
extern char* g_dataPathDir;
static char realName[1024] = {0};
sprintf(realName, "%s/%s", g_dataPathDir,pszFileName);
remove(realName);
FILE *pOUT = fopen(realName, "ab+");
if(NULL==p... |
/* Public Domain Curses */
#include <curspriv.h>
/*man-start**************************************************************
getch
-----
### Synopsis
int getch(void);
int wgetch(WINDOW *win);
int mvgetch(int y, int x);
int mvwgetch(WINDOW *win, int y, int x);
int ungetch(int ch);
int flushinp... |
/*
* !/usr/bin/python
* -*- coding: utf-8 -*-
*
* This file is part of pyunicorn.
* Copyright (C) 2008--2017 <NAME> and pyunicorn authors
* URL: <http://www.pik-potsdam.de/members/donges/software>
* License: BSD (3-clause)
*/
// cross_recurrence_plot ======================================================
void _manha... |
/*
* From Coreboot
* Copyright (C) 2008-2009 coresystems GmbH
*
* SPDX-License-Identifier: GPL-2.0
*/
#include <common.h>
#include <ahci.h>
#include <dm.h>
#include <fdtdec.h>
#include <asm/io.h>
#include <asm/pch_common.h>
#include <asm/pci.h>
#include <asm/arch/pch.h>
DECLARE_GLOBAL_DATA_PTR;
static void comm... |
/****************************************************************************
Filename: crc16fast.c
Description: Cyclic Redundancy Check 16 functions
Created: 24-Feb-1999
** Copyright 2011,2012,2013,2014 FLIR Systems - Commercial
** Vision Systems. All rights reserved.
**
** Proprietar... |
/*
* cocos2d for iPhone: http://www.cocos2d-iphone.org
*
* Copyright (c) 2008-2010 <NAME>
* Copyright (c) 2011 Zynga 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 res... |
/************************************************************************
* Copyright (c) 2016-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, includi... |
/*
* This file and its contents are licensed under the Apache License 2.0.
* Please see the included NOTICE for copyright information and
* LICENSE-APACHE for a copy of the license.
*/
#include <postgres.h>
#include <access/xact.h>
#include <access/transam.h>
#include <commands/event_trigger.h>
#include <catalog/na... |
/* -*- mode: c; -*- */
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <stdio.h>
#include <stdlib.h>
#include "os.h"
#include "main.h"
int step;
const rectangle start_head = {50, 60, 50, 60};
const rectangle score_cover = {80, 180, 0, 10};
const rectangle end_game = {100,... |
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <GDEngine/OpenGL.h>
#include <GDEngine/ModelReader.h>
#include <GDEngine/Camera.h>
#include <GDEngine/Maths.h>
#include <GDEngine/Alloc.h>
#define CAMERA_MOVE_UP_STEP (4.0f)
#define CAMERA_MOVE_FORwARD_STEP (10.0f)
#... |
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <unwind.h>
#include <stacktrace.h>
#include <pthread.h>
struct stacktrace_frame {
void *addr;
char *file;
char *func;
int line;
};
struct file_map {
unsigned long long start;
unsigned long long end;
unsigned long long o... |
/**
* APDS9301.h
*
* nRF52 TWI interface for APDS9301 ambient light sensor.
*
* Electronut Labs
* electronut.in
*
*/
#include <stdint.h>
#include <stdbool.h>
#include "nrf_drv_twi.h"
#include "nrf_delay.h"
#include "app_util_platform.h"
#include "app_error.h"
#include "boards.h"
#include "nrf_drv_twi.h... |
/*
* Written by Dr <NAME> (<EMAIL>) for the OpenSSL
* project.
*/
/* ====================================================================
* Copyright (c) 2008 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... |
/*
* This file is part of the Nautilus AeroKernel developed
* by the Hobbes and V3VEE Projects with funding from the
* United States National Science Foundation and the Department of Energy.
*
* The V3VEE Project is a joint project between Northwestern University
* and the University of New Mexico. The Hobb... |
/*
UMBC CMSC 421
Spring 2021
Project 1
Due Date: 2/28/21 11:59:00 pm
Author Name: <NAME>
Author email: <EMAIL>
Description: a simple linux shell designed to perform basic linux commands
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>... |
/* GIO - GLib Input, Output and Streaming Library
*
* Copyright (C) 2008 <NAME>, <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 ... |
/*
* Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
/*
Copyright (c) 2011, <NAME> (<EMAIL>)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the ... |
/**************************************************************************************
**************************************************************************************
* File Name : falcon_furia_pll_config.c *
* Created On : 23/12/2013 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.