text stringlengths 3.12k 18.7k |
|---|
/* Test of u16_to_u8() function.
Copyright (C) 2010-2012 Free Software Foundation, Inc.
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 3 of the License, or
(at your opt... |
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... |
/*
* Copyright (c) 2007-12 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
*/
#include <barrelfish/barrelfi... |
/* hvGfx - browser graphics interface. This is a thin layer on top of vGfx
* providing genome browser-specific features. It was added to handle
* reverse-complement display. */
#include "common.h"
#include "hvGfx.h"
static char const rcsid[] = "$Id: hvGfx.c,v 1.6 2010/06/05 19:29:47 braney Exp $";
static struct ... |
/*
* This file is part of RGBDS.
*
* Copyright (c) 2019, <NAME> and RGBDS contributors.
*
* SPDX-License-Identifier: MIT
*/
#include <limits.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "asm/fstack.h"
#include "asm/main.h"
#include "asm/warning.h... |
/*
* This file is in the public domain.
* Use it as you wish.
*/
/*
* This is a compact tar extraction program using libarchive whose
* primary goal is small executable size. Statically linked, it can
* be very small, depending in large part on how cleanly factored your
* system libraries are. Note that this ... |
/* -*- mode: C; c-file-style: "stroustrup"; indent-tabs-mode: nil; -*- */
/*
* Copyright (C) 2012 Texas Instruments
*
* 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.... |
/*
* header.h, Atto Emacs, <NAME>, 2015
* Derived from: Anthony's Editor January 93, (Public Domain 1991, 1993 by <NAME>)
*/
#include "simba.h"
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
#include "curses.h"
#include <stdio.h>
#include <sys/types.h>
#include <ctype.h>
#include <limits.h>
#include <... |
/*
* Copyright (c) 2011-2014, <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 con... |
/* Author : <NAME>
Roll No : 14EC35001
Title: Tic Tac Toe program
*/
#include <stdio.h>
#include <stdlib.h>
struct nodetype{
char game_state[3][3];
int EP;
};
typedef struct nodetype EP_node;
// Check if the character 'ch' is the winner
int check_win_state(char g_state[][3],char ch){... |
/*
* http_server - HTTP server
* Copyright (c) 2009, <NAME> <<EMAIL>>
*
* 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 Foundation.
*
* Alternatively, this software may be distributed und... |
/*
* MIT License
*
* Copyright (c) 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 limitation the rights
* to use, copy, modify, m... |
/*
* Copyright 2007,2009-2010 Freescale Semiconductor, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <command.h>
#include <pci.h>
#include <asm/processor.h>
#include <asm/mmu.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_pci.h>
#include <fsl_ddr_sdram.h>
#include <asm/fsl_serdes.h>
... |
/*
This is a C program supports Deflate/Zlib compression and decompression.
This code is modified from zpipe.c from the source code repository of
the Zlib project. This program is used to test the correctness of LibDeflate.
*/
/* zpipe.c: example of proper use of zlib's inflate() and deflate()
Not copyrighted -- p... |
/* (C) 1997-1999 Microsoft Corp.
*
* file : MCSCore.c
* author : <NAME>
*
* description: MCS core manipulation code for actions that are common
* between inbound PDU handling and API calls from upper components.
*/
#include "PreComp.h"
#pragma hdrstop
#include <MCSImpl.h>
// Gets a new dyn... |
/*
* Copyright (c) 2008 <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 conditions a... |
/*
* Macros to abstract access to Tcl internals where possible.
* This file is part of the Next Scripting Framework
*
* Copyright (C) 2010-2014 <NAME>
*
* Vienna University of Economics and Business
* Institute of Information Systems and New Media
* A-1020, Welthandelsplatz 1
* Vienna, Austria
*
* This work ... |
// SPDX-License-Identifier: MIT
// Copyright (c) 2013, 2014 <NAME>
#include <stdint.h>
#include <pbdrv/config.h>
// options to control how MicroPython is built
#define MICROPY_ENABLE_COMPILER (PYBRICKS_STM32_OPT_COMPILER)
#define MICROPY_QSTR_BYTES_IN_HASH (1)
#define MICROPY_ALLOC_PATH_MAX (256)
#define ... |
/**
* Copyright 2014 Couchbase, Inc.
*
* 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 applicabl... |
/* asmstructs.c */
/*****************************************************************************/
/* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only */
/* */
/* AS-Portierung ... |
#include "talloc.h"
#include "ir.h"
#include "value.h"
static int dump_varid(struct ir_function *fn, struct ir_var *var)
{
for (int n = 0; n < fn->vars_count; n++)
if (fn->vars[n] == var)
return n;
return -1;
}
static char *loc_str(void *ctx, LOC p)
{
return talloc_steal(ctx, source_po... |
#include "sfc_famicom.h"
#include <assert.h>
#include <string.h>
// 加载默认ROM
static sfc_ecode sfc_load_default_rom(void*, sfc_rom_info_t*);
// 释放默认ROM
static sfc_ecode sfc_free_default_rom(void*, sfc_rom_info_t*);
// 释放默认ROM
static void sfc_before_execute(void*, sfc_famicom_t*);
// 加载新的ROM
static sfc_ecode sfc_load_ne... |
/* ellik.c
*
* Incomplete elliptic integral of the first kind
*
*
*
* SYNOPSIS:
*
* double phi, m, y, ellik();
*
* y = ellik( phi, m );
*
*
*
* DESCRIPTION:
*
* Approximates the integral
*
*
*
* phi
* -
* ... |
#include "mini_kernel.h"
#define GRAPHICS_EXTERN
#include "graphics.h"
#define XY_TO_POS(x, y) (fb_pitch * (y) + bytesperpixel * (x))
static int font_w, font_h;
static color* font_data = NULL;
static int bg_w, bg_h;
static color* bg_data = NULL;
static uint8_t* fb;
static int fb_width, fb_height, fb_... |
/**
MIT License
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,... |
/********************************************************************************/
/* */
/* */
/* Written by <NAME> */
/* IBM Thomas J. Watson Research Center */
/* $Id: NVReserved.c 953 2017-03-06 20:31:40Z kgoldman $ */
/* */
/* Licenses and Notices ... |
/* 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 may not... |
// See LICENSE for license details.
#include <stdio.h>
#include <stdlib.h>
#include "platform.h"
#include <string.h>
#include "plic/plic_driver.h"
#include "encoding.h"
#include <unistd.h>
#include "stdatomic.h"
void reset_demo (void);
// Structures for registering different interrupt handlers
// for different parts... |
/* $OpenBSD: if_enc.c,v 1.64 2015/11/09 10:19:10 dlg Exp $ */
/*
* Copyright (c) 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 permission notice appear in all copi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>
#include <dirent.h>
#include <event2/event.h>
#include <event2/http.h>
#include <event2/buffer.h>
#include <event2/util.h>
#include ... |
/*
* app_gps.c
*
* Created on: 18.12.2018
* Author: rex
*/
#include <stdio.h>
#include <string.h>
#include "main.h"
#include "app_gps.h"
#include "app_minmea.h"
SAppGPSData app_gps_data;
static void parse_buffer(const char * pBuffer);
static void handle_rmc(const char * pBuffer);
static void handle_gga(... |
/*
* This file was ported to MPlayer from xine CVS rmff.h,v 1.3 2003/02/10 22:11:10
*/
/*
* Copyright (C) 2002 the xine project
*
* This file is part of xine, a free video player.
*
* xine is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publishe... |
/*
** $Id: print.c,v 1.55a 2006/05/31 13:30:05 lhf Exp $
** print bytecodes
** See Copyright Notice in lua.h
*/
#include <ctype.h>
#include <stdio.h>
#define luac_c
#define LUA_CORE
#include "ldebug.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lundump.h"
#define PrintFunction luaU_print
#define Sizeof(x... |
// ============================================================================
// Copyright (c) 2013, FORTH-ICS / CARV
// (Foundation for Research & Technology -- Hellas,
// Institute of Computer Science,
// Computer Architecture & VLSI Systems Laboratory)... |
/*
* Copyright 2005-2018 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/* Copyright (c) 2021 <NAME> */
#include <errno.h>
#include <stdio.h>
#include <sys/resource.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <time.h>
#include <bpf/libbpf.h>
#include <bpf/bpf.h>
#include <sys/timerfd.h>
... |
/**
* @Copyright (c) 2019,mculover666 All rights reserved
* @filename main.c
* @breif 测试LCD驱动程序
* @version
* v1.0 完成基本驱动程序,可以刷屏 mculover666 2019/7/10
* v1.1 添加打点、画线、画矩形、画圆算法实现 mculover666 2019/7/12
* v1.2... |
/**
******************************************************************************
* @file RCC/RCC_CRS_Synchronization_Polling/Src/main.c
* @author MCD Application Team
* @brief This example describes how to use the RCC HAL API to configure the
* system clock (SYSCLK) and modify the clock ... |
#include "sha1/sha1.h"
#include <b64/cencode.h>
#include "websocket.h"
#include "client.h"
#include "cmd.h"
#include "worker.h"
#include "pool.h"
#include "http.h"
/* message parsers */
#include "formats/json.h"
#include "formats/raw.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#i... |
/******************************************************************************
* Project: PROJ.4
* Purpose: Apply vertical datum shifts based on grid shift files, normally
* geoid grids mapping WGS84 to NAVD88 or something similar.
* Author: <NAME>, <EMAIL>
*
***************************************... |
#include "mex.h"
#include "math.h"
#include "matrix.h"
#include "float.h"
/*
* VestBMS_c1postandlikec1sum_discrete.c
*
*VESTBMS_C1POSTANDLIKEC1QTRAPZ Multiple computations for C=1 (correlated,discrete)
*
* ================ INPUT VARIABLES ====================
* POSTPDF_C2_UNI: p(s) * p(x_vest|s). [S-by-1-by-K] (... |
#include "json.h"
#include "document.h"
#include "rmutil/rm_assert.h"
#include "vector_index.h"
#include <string.h>
// REJSON APIs
RedisJSONAPI_V1 *japi = NULL;
///////////////////////////////////////////////////////////////////////////////////////////////
void ModuleChangeHandler(struct RedisModuleCtx *ctx, Redis... |
/*
* Copyright (c) 2016, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstr 6, CH-8092 Zurich. Attn: Systems Group.
*/
#include <kernel.h>
#include <... |
#include "parser.h"
#include "arguments.h"
#include "control.h"
#include "lexer.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
static struct {
enum TokenType type;
char *string;
} const TYPE_STRING_TABLE[] = {
{TOK_OPCODE, "opcode"},
{TOK_NAME, "name"},
{TOK_SYMBOL, "symbol"},
{TOK_FLAG, "... |
// Basic Console Output.
#include <stdint.h>
#include <string.h>
#include <console.h>
#include "include\vgamodes.h"
#include "include\vgadriver.h"
#define DEFAULT_THICKNESS 1
// Video memory
uint8_t* _vgaMemory = (uint8_t *)0xA0000;
unsigned char _scanMemory[1024 * 1024];
size_t _scanMemIndex = 0;
// Current pixel... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
#include <time.h>
#define DEFAULT_BLOCK_SIZE 1024 // default ls block size 1k
char cwd_buf[1024]; // cu... |
// SPDX-License-Identifier: GPL-2.0
/*
* PCIe RC driver for Synopsys DesignWare Core
*
* Copyright (C) 2015-2016 Synopsys, Inc. (www.synopsys.com)
*
* Authors: <NAME> <<EMAIL>>
*/
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#includ... |
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
#include "traps.h"
#include "spinlock.h"
// Interrupt descriptor table (shared by all CPUs).
struct gatedesc idt[256];
extern uint vectors[]; // in vectors.S: array of 256 entry pointers
... |
/*
* Hardware entropy collector for M487 RNG
*
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "FreeRTOS.h"
#include "task.h"
#include "NuMicro.h"
#include "semphr.h"
#include "task.h"
/*
* Get Random number generator.
*/
/* The random number generation solution presented in this file is... |
/*
* EXPLOIT Novell eDirectory evtFilteredMonitorEventsRequest
* Invalid Free Attempt
*
* Copyright (C) 2007 Sourcefire, Inc. All Rights Reserved
*
* Writen by <NAME> <<EMAIL>>
*
* This file may contain proprietary rules that were created, tested and
* certified by Sourcefire, Inc. (the "VRT Certified Rules... |
/*
* Modified version (c) Copyright 2021 by <NAME>. All rights reserved.
*
* Based on original (c) Copyright 2021 by <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:
* * Redistribu... |
/**
* (C) Copyright 2016-2021 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
enum fs_op {
FS_COPY
};
enum cont_op {
CONT_CREATE,
CONT_DESTROY,
CONT_CLONE,
CONT_LIST_OBJS,
CONT_QUERY,
CONT_STAT,
CONT_CHECK,
CONT_GET_PROP,
CONT_SET_PROP,
CONT_LIST_ATTRS,
CONT_DEL_ATTR,
CONT_GET_... |
/*
* linux/arch/arm/mm/fault-common.c
*
* Copyright (C) 1995 <NAME>
* Modifications for ARM processor (c) 1995-2001 <NAME>
*
* 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 Foundation.... |
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define Countof(x) ((sizeof (x)) / (sizeof *(x)))
enum suit {
SPADES = 1,
HEARTS,
CLUBS,
DIAMONDS,
};
enum {
JACK = 11,
QUEEN,
KING,
ACE,
};
const char *suit_names[] = { [SPADES] = "Spades", [HEARTS] = "Hearts", [CLUBS] = "Clubs"... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "chained_list.h"
#include "file.h"
#include "chaine.h"
#include "initialize.h"
/**
* Function to read a file and assign them to a maillon
* @param char fileName, int typeNum
* typeNum is the type of enumeration
* @return data*
*/
data *readingD... |
/***************************************************************************//**
* @file
* @brief This file contains the additional API library for the listed members of
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.sil... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
#include <string.h>
#define BITS_PER_LINE ((size_t)12)
/* Convert bits to an unsigned 32-bit int. */
static uint32_t to_decimal(bool bits[BITS_PER_LINE]);
struct Node {
bool bits[BITS_PER_LINE];
struct Node *prev, *n... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2019 - <NAME>
*
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any lat... |
#include <assert.h>
#include <setjmp.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "CuTest.h"
#include "adt_hash.h"
#include "adt_ary.h"
#ifdef MEM_LEAK_CHECK
#include "CMemLeak.h"
#endif
static void vfree(void *arg)
{
free(arg);
}
void test_adt_hash_c... |
/*
* Copyright (c) 2003-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 conditi... |
/*
*
* DOES NOT USE BUILT-IN DETECTION FUNCTION
alert tcp $EXTERNAL_NET $HTTP_PORTS -> $HOME_NET any (msg: "WEB-CLIENT Microsoft Excel malformed OBJ record arbitrary code execution attempt"; flow: to_client, established; flowbits: isset, file.xls; content:"|5D 00|"; metadata: policy balanced-ips drop, policy securit... |
/*
* mehstation - Reusable popup.
*
* Copyright © 2015 <NAME>
*/
#include "system/app.h"
#include "system/consts.h"
#include "view/screen.h"
#include "view/widget_rect.h"
#include "view/screen/simple_popup.h"
#include "view/screen/executable_list.h"
#include "view/screen/exec_complete_selec.h"
static void meh_sim... |
/*
Copyright (c) 2012-2013 <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 DISCLAIMS... |
/*
* Copyright (C) 2016 Free Software Foundation, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* The GnuTLS 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.1 of
... |
/**
* \file Ifx_Ssw_Tc2.c
* \brief Startup Software for Core2
*
* \version iLLD_1_0_1_10_0
* \copyright Copyright (c) 2018 Infineon Technologies AG. All rights reserved.
*
*
* IMPORTANT NOTICE
*
*
* Infineon Technologies AG (Infineon) is supplying this file for use
* exclusiv... |
/*
(c) Copyright 1996 Hewlett-Packard Company
(c) Copyright 1996 International Business Machines Corp.
(c) Copyright 1996 Sun Microsystems, Inc.
(c) Copyright 1996 Novell, Inc.
(c) Copyright 1996 Digital Equipment Corp.
(c) Copyright 1996 Fujitsu Limited
(c) Copyright 1996 Hitachi, Ltd.
Permission is hereby granted, f... |
/*
* 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 ... |
//
// This file is part of the GNU ARM Eclipse distribution.
// Copyright (c) 2014 <NAME>.
//
// ----------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include "Trace.h"
#include "Timer.h"
#include "BlinkLed.h"
#include "ExceptionHandlers.h"
#include "stm... |
// Copyright (C) 2015-2021 <NAME>, Inc.
//
// 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,... |
/*
* Copyright (c) 2016 Motorola Mobility, LLC
* Copyright (c) 2015 Google Inc.
* 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 cop... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "font.h"
// Simple 4x4 bitmap font renderer.
/*
* each nibble is a line from top to bottom
* each character has a width and height of 1 unit
* a chararacter's x and y are in the center
* kerning is built into the font
* each character has 2 triang... |
#include "spasm.h"
int atoiT[64];
static char *reg_names[] =
{
"zero",
"at",
"v0", "v1",
"a0", "a1", "a2", "a3",
"t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7",
"s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7",
"t8", "t9",
"k0", "k1",
"gp", "sp",
"fp",
"ra",
NULL
};
static int regtoi(char *arg)
{
int i;
... |
#include <assert.h>
#include <numa.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <rte_config.h>
#include <rte_cycles.h>
#include <rte_eal.h>
#include <rte_ethdev.h>
#include <rte_timer.h>
#include "mempool.h"
#define NUM_PFRAMES (2048 - 1) // Number of pframes in the memp... |
/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
#include <stdlib.h>
#include "memory.h"
#include "stuff.h"
#include "main.h"
#include "fov.h"
#include "game.h"
#include "traps.h"
/*
Copies visible parts of the level into level memory.
*/
void update_level_memory(level_t * level)
{
unsigned int y;
unsigned int x;
unsigned int mask;
trap_t * trap;
if... |
#include "cocogen/ast.h"
#include "cocogen/filegen-driver.h"
#include "cocogen/filegen-util.h"
#include "cocogen/str-ast.h"
#include "lib/imap.h"
#include "lib/memory.h"
#include "lib/smap.h"
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
// Map from node name to index in reachability ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2011-2012 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2014 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
... |
/*--------------------------------------------------------------------
# Filename: xcorr.c
# Purpose: Cross correlation in time domain
# Author: <NAME>
# a lot of staff (normalization) copy & pasted from
# Obspy's xcorr.c (<NAME>, <NAME>)
# Copyright (C) 2011 <NAME> - GNU GPL 3
#------------------------------------... |
/* $NetBSD: msgdb.c,v 1.23 2012/03/06 16:26:01 mbalmer Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
* All rights reserved.
*
* Written by <NAME> for Piermont Information Systems Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... |
/*
* Copyright (c) 2016, Nordic Semiconductor
* 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 o... |
/*
* Copyright (c) 1998-2006 The TCPDUMP project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code
* distributions retain the above copyright notice and this paragraph
* in its entirety, and (2) distributions including binary code i... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <irq.h>
#include <uart.h>
#include <console.h>
#include <generated/csr.h>
#include <generated/mem.h>
static char *readstr(void)
{
char c[2];
static char s[64];
static int ptr = 0;
if(readchar_nonblock()) {
c[0] = readchar();
c[1] = 0;
swi... |
#include <MsRdpEx/RdpFile.h>
MsRdpEx_RdpFileEntry* MsRdpEx_RdpFileEntry_New(char type, const char* name, const char* value)
{
MsRdpEx_RdpFileEntry* entry;
if ((type != 'i') && (type != 's')) {
return NULL;
}
entry = (MsRdpEx_RdpFileEntry*) calloc(1, sizeof(MsRdpEx_RdpFileEntry));
if (!entry)
return NULL;... |
/* info - UCSC Known Genes Model Info section. */
#include "common.h"
#include "hash.h"
#include "linefile.h"
#include "dystring.h"
#include "spDb.h"
#include "web.h"
#include "txInfo.h"
#include "hgGene.h"
void doTxInfoDescription()
/* Put up info on fields in txInfo table. */
{
cartWebStart(cart, database, "Gene M... |
/*
* CD image handler
* (C) notaz, 2007,2013
*
* This work is licensed under the terms of MAME license.
* See COPYING file in the top-level directory.
*/
#include "../pico_int.h"
#include "genplus_macros.h"
#include "cdd.h"
#include "cue.h"
static int handle_mp3(const char *fname, int index)
{
track_t *track ... |
#include <stdint.h>
#include <stdlib.h>
#include "Private/TGAPrivate.h"
/*
* The TGA Footer is only present in version 2 of the TGA Specification.
* This function should be called first to see if the file contains a valid TGA
* Footer, and thus determine if this is a TGA V2 file, rather than a V1 file.
*/
static ... |
#if defined(__APPLE__)
#include <stdlib.h>
#else
#include <malloc.h>
#endif
#include <stdio.h>
#include <stddef.h>
#include <string.h>
#include <ruby.h>
#include <ctype.h>
#include "match.h"
#define SUCCESS_STATE 42
#define FAILURE_STATE 23
typedef struct {
const char * input;
const char * wildcard;
co... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
/* This sample shows how to translate the Device Twin json received from Azure IoT Hub into meaningful data for your application.
* It uses the parson library, a very ... |
/* example.c libabpoa usage example */
/* To compile: */
/* gcc -O2 example.c -I ./include -L ./lib -labpoa -lz -o example */
/* Or: gcc -O2 example.c -I ./include ./lib/libabpoa.a -lz -o example */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "abpoa.h"
// AaCcGgTtNn ==> ... |
/*
* 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 Service Runtime. Directory descriptor / Handle abstraction.
*/
#include "native_client/src/include/portability.h"
#include <w... |
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
/*
* dhcpcd - DHCP client daemon
* Copyright (c) 2006-2011 <NAME> <<EMAIL>>
*
* 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... |
/***************************************************************************
kdbtools.c - Elektra High Level Methods
-------------------
begin : Sat Jan 22 2005
copyright : (C) 2005 by <NAME>
email : <EMAIL>
***************... |
//<NAME>, January 20th
//To Generate tex coord S and T at vector x by applying formulae learnt in class
int getChi(renRenderer *ren, double unif[], double x[], double a[], double b[], double c[], double attr[]) {
double m[2][2] = {
{b[0]-a[0], c[0]-a[0]},
{b[1]-a[1], c[1]-a[1]}
};
double Inv[2][2] = {
{0.0,... |
/*-
* BSD LICENSE
*
* Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. 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 th... |
/*
* Copyright 2013/2014 <NAME> <<EMAIL>>
*
* This file is part of AirSpy (based on HackRF project).
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option... |
#include <stdio.h> /* printf, sprintf */
#include <stdlib.h> /* exit, atoi, malloc, free */
#include <string.h>
#include <curl/curl.h>
#include <inttypes.h> //int64_t, uint64_t
#include <time.h>
#include <json-c/json.h>
#define STRING_LENGTH 256
int64_t cases[ ][3] = {
//{zero, start, cash}
/*AT*/{0x4... |
#include "builtin.h"
#include "cache.h"
#include "parse-options.h"
#include "quote.h"
#include "pathspec.h"
#include "dir.h"
#include "utf8.h"
#include "submodule.h"
#include "submodule-config.h"
#include "string-list.h"
#include "run-command.h"
struct module_list {
const struct cache_entry **entries;
int alloc, nr;... |
////////////////////////////////////////////////////////////////////////////////
/// @file WL_BLE_SERVICES.C
/// @author <NAME>
/// @version v2.0.0
/// @date 2019-02-18
/// @brief THIS FILE PROVIDES ALL THE BLE_SERVICE EXAMPLE.
//////////////////////////////////////////////////////////////////////////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.