text
stringlengths
7.55k
41.9k
/* S H O W T H E R M . C * BRL-CAD * * Copyright (c) 2004-2016 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 ...
/* Test application for Carrier board * * @author: <NAME> * @date: 2018-08-15 */ #include <stdbool.h> #include <stdint.h> #include "nrf.h" #include "nrf_delay.h" #include "nrf_gpio.h" #include "nrfx_power.h" #include "nrf_gpiote.h" #include "nrfx_gpiote.h" // SPI #include "nrf_spi_mngr.h" #include "nrf_drv_spi.h"...
// 0x07010AD8 - 0x07010AF0 static const Lights1 ttm_seg7_lights_07010AD8 = gdSPDefLights1( 0x4c, 0x4c, 0x4c, 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 ); // 0x07010AF0 - 0x07010B08 static const Lights1 ttm_seg7_lights_07010AF0 = gdSPDefLights1( 0x5d, 0x5d, 0x5d, 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 ); // 0x070...
/**************************************************************************** * * * PGP Key Read Routines * * Copyright <NAME> 1992-1998 * * * ****************************************************************************/ #include <ctype.h> #include <stdio.h> #...
#include "FileBrowser.h" #include "vector.h" #include "colors.h" #include <assert.h> #if defined(ALLEGRO_WINDOWS) #include <string.h> #else #include <strings.h> #endif struct FILEBROWSER { ALLEGRO_BITMAP *b; int w, h; FONT fonts[FILEBROWSER_FONT_MAX]; ALLEGRO_COLOR colors[FILEBROWSER_COLOR_MAX]; VECTOR *d; /* A...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include "cfg.h" #include "error.h" /**************************************************************/ void ReverseList(TGram *G) { Rule1 *reg1, *reg2; Rule2 *gre1, *gre2; int i; for (i=0; i<(*G).NoTer; i++) { reg1 = (*G).a[i]; ...
/* GStreamer Intel MSDK plugin * Copyright (c) 2016, Oblong Industries, 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 copy...
/* $OpenBSD: elf.c,v 1.34 2015/12/09 19:28:34 mmcc Exp $ */ /* * Copyright (c) 2003 <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...
#include <assert.h> #include <errno.h> #include <dirent.h> #include <fcntl.h> #include <signal.h> #include <stdio.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/syscall.h> #include <libsocket/libinetsocket...
/*s: kernel/network/ip/udp.c */ #include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "../port/error.h" #include "ip.h" #include "ipv6.h" /*s: constant [[DPRINT]] */ #define DPRINT if(0)print /*e: constant [[DPRINT]] */ /*s: enum [[_anon_ (kernel...
/* * Copyright (C) 2005 <NAME> */ #include "cache.h" #include "diff.h" #include "diffcore.h" #include "object-store.h" #include "hashmap.h" #include "progress.h" /* Table of rename/copy destinations */ static struct diff_rename_dst { struct diff_filespec *two; struct diff_filepair *pair; } *rename_dst; static int...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <sys/wait.h> #include <sys/stat.h> #include <sys/types.h> #define MAX_LEN 1024 /* The maximum length command */ #define MAX_HISTORY 1024 /* the maximum number of history of commands*/ //global variables int backg...
/* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ /* * snake - crt hack game. * * You move around the screen with arrow keys trying to pick up money * without getting eaten...
/* pdp11_kg.c - Communications Arithmetic Option KG11-A Copyright (c) 2007-2010, <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 li...
/* * Copyright (c) 2006-2009, <NAME> <antirez at gmail dot com> * 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...
/******************************************************************************* * Copyright 2016-2019 Intel Corporation * * 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.apa...
#include "box.h" #include "image_u32.h" #include <alloca.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <stdio.h> #include <pthread.h> #include <math.h> #ifdef __linux #include <malloc.h> int my_memalign(void** pptr, size_t alignment, size_t size) { *pptr = memalign(alignment, size); int...
/* * This code is mainly code I have found in * ida-0.14 <NAME> <<EMAIL>> * http://bytesex.org/ida * Ida is a small and fast image viewer, motif-based. * * Copyright (C) 2002 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Ge...
// SPDX-License-Identifier: GPL-2.0-only /* * Broadcom GENET MDIO routines * * Copyright (c) 2014-2017 Broadcom */ #include <linux/acpi.h> #include <linux/types.h> #include <linux/delay.h> #include <linux/wait.h> #include <linux/mii.h> #include <linux/ethtool.h> #include <linux/bitops.h> #include <linux/netdevice....
/* crypto/sha/sha512.c */ /* ==================================================================== * Copyright (c) 2004 The OpenSSL Project. All rights reserved * according to the OpenSSL license [found in ../../LICENSE]. * ==================================================================== */ /* * IMPLEMENTATION...
/* * Copyright (c) 2006-2016 Chelsio, Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source ...
/** * (C) Copyright 2019-2020 Intel Corporation. * * 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 l...
/////////////////////////////////////////////////////////////////////////////////////////////////// // // APPLICATION PROGRAM INTERFACE ROUTINES FOR dsPIC33EXXXX MICROCONTROLLER // // (c) Copyright 2016-2019, <NAME>, Selangor, MALAYSIA // All Rights Reserved // ///////////////////////////////////////////...
/* dkrdem.f -- translated by f2c (version 20160102). 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...
/* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ * \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/ * ...
/* Copyright (C) 2010, 2013 <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <float.h> #include <math.h> #include <string.h> #include "alloc.h" #include "gsgp.h" /*********************************************************************************************************************** * EXTERNAL FUNCTIONS THAT WILL BE USED I...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Monkey HTTP Server * ================== * Copyright 2001-2014 Monkey Software LLC <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
/* * Copyright 2003 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, m...
/* * Copyright (c) 2017-2022 Pantacor 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 without limitation the rights * to use, copy, modify, merge, ...
/* FreeTDS - Library of routines accessing Sybase and Microsoft databases * Copyright (C) 1998-1999 <NAME> * Copyright (C) 2015 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Found...
/* cache.c -- generic single block cache */ #include <assert.h> #include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "utils/barith.h" #include "datastruct/cache.h" /* ----------------------------------------------------------------------- */ /* Organisation * -...
/* * %CopyrightBegin% * * Copyright Ericsson AB 1998-2013. 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 © 2004 <NAME> * Copyright © 2008 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 Free Software Foundation * (the "LGPL") or, at your option, under the terms...
/* * upotrf_kernel.h * Decl { {u'A': Symmetric[A, (4, 4), USMatAccess], 'T195': Matrix[T195, (1, 4), GenMatAccess]} } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ann: {'part_schemes': {'ldiv_ut_ow_opt': {'m': 'm4.ll', 'n': 'n1.ll'}, 'chol_u_ow_opt': {'m': 'm3.ll'}}, 'cl1ck_v': 1, 'variant_tag': 'chol_u_ow_opt_m3_ldiv_ut_ow_opt_m...
//============================================================================== // FUNZIONI CHE COSTRUISCONO LA DISTRIBUZIONE ELETTRONICA //============================================================================== #include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #include <unistd.h> //...
/* SPDX-License-Identifier: GPL-2.0+ */ /* * K2G EVM: Pinmux configuration * * (C) Copyright 2015 * Texas Instruments Incorporated, <www.ti.com> */ #include <common.h> #include <asm/io.h> #include <asm/arch/mux-k2g.h> #include <asm/arch/hardware.h> #include "board.h" struct pin_cfg k2g_generic_pin_cfg[] = { ...
/* File skycoor.c * July 24, 2009 * By <NAME>, Harvard-Smithsonian Center for Astrophysics * Send bug reports to <EMAIL> Copyright (C) 1996-2009 Smithsonian Astrophysical Observatory, Cambridge, MA USA This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
#include <stdio.h> #include "NuMicro.h" #include "NeoPixel.h" #include "delay.h" #include "pid.h" /* Hardware configuration */ #define LED_PIN PA0 #define MAX_BRIGHTNESS 0x80 // 我們店裡的正常是半糖喔 #define DATA_FLASH_BASE 0x7E00 #define MODE_ID_OFFSET 0 /* CONFIG0: Enable data flash. */ #define CONF...
/****************************************************************************** * ETSI TS 103 634 V1.1.1 * * Low Complexity Communication Codec Plus (LC3plus) * * * ...
# define _BSD_SOURCE # define _XOPEN_SOURCE # include <stdio.h> # include <stdlib.h> # include <time.h> # include <math.h> # include <string.h> # include <unistd.h> # include <limits.h> # include <sys/types.h> # include <stdint.h> # include <ctype.h> # include <hdf5.h> # include <hdf5_hl.h> void date_from_sec(char *d...
#include <stdio.h> typedef struct _message { unsigned int id; char *str; } MESSAGE; MESSAGE __MSGTAB[] = { {1001, "%s : option name ambiguous"}, // "%s : option name ambiguous" {1003, "/Q and /EXEPACK incompatible"}, // "/Q and /EXEPACK incompatible" {1004, "%s : invalid numeric value"}, // "%s : invalid ...
// gcc --std=c99 -D_POSIX_C_SOURCE=199309L rogue.c -lncurses // Headers /* char joku[12]; sprintf(joku, "%d", ran); mvprintw(0,0,joku); */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <ncurses.h> // Define global names: #define FLOOR 0 #define DOOR 1 #define LOOT 2 #define EN...
#include "pperf.h" //#define ESTIMATE_LATENCY //#define PC_ONLY #ifdef DEBUG #define debug_printf(...) fprintf(stderr, __VA_ARGS__) #else #define debug_printf(...) #endif #if !defined(__amd64__) && !defined(__aarch64__) && !defined(__riscv) #error "Architecture not supported!" #endif //Older Kernel do not have th...
#define _GNU_SOURCE #include <getopt.h> #include <pcap/pcap.h> #include <pthread.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <sys/time.h> #include <time.h> #include <sched.h> #include <fcntl.h> #include <unistd.h> #include <signal.h> #include <anic_api.h> #include <arpa/inet.h> #include <sys/...
/* Copyright (c) 2013-2015, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2012 STRATO AG. All rights reserved. */ #ifdef __linux__ #define _BSD_SOURCE #define _DEFAULT_SOURCE #define _LARGEFILE64_SOURCE #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #endif #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> ...
/* SPDX-License-Identifier: MIT Copyright 2020 <NAME> (kevin 'period' thibedeau 'at' gmail 'punto' com) See LICENSE in the EVFS project root for details */ /* ------------------------------------------------------------------------------ Embedded Virtual Filesystem Common path operations --------------------------...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <getopt.h> #include <string.h> #include <inttypes.h> #include <ctype.h> #include <libgen.h> #include "tldevel.h" #include "tlmisc.h" #include "tlseqbuffer.h" #include "sequence_struct.h" #include "sequence_alloc.h" #includ...
/* The goal here is to produce lots of .text pages. * We'd like to create a lot of page faults on text pages. */ void call_all_loop(int count); void call_all(void); /* keep this small */ #define FUNCTION_LOOP (2) /* Create prototypes for all of the functions */ #define PROTFUNC(num) int func_##num(void); PROTFUNC...
#include <fcntl.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include "alloc.h" #include "elf.h" #include "link.h" #define __os__seek __os__lseek /* extern SectionChain* InitialSection; */ static void* RawDataOffset = 0; static int FileOffset = 0; static int FileDescriptor = 0; static void* Section...
#include <getopt.h> #include <ini.h> #include <ncurses.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "dbg.h" #include "pomodoro.h" /* #### Useful constants #### */ /* Maximum filepath length, not including NUL terminator */ const int MAXPATH = 255; const char *PROG_NAM...
// Computational routines for one-dimensional orthogonal polynomial transforms. #include "fasttransforms.h" static inline double stirlingseries(const double z) { double iz = 1.0/z; if (z >= 3274.12075200175) return (1.0 + iz*(0.08333333333333333 + iz*(0.003472222222222222 + iz*(-0.0026813271604938273)...
#include "param.h" #include "types.h" #include "defs.h" #include "x86.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "elf.h" #include "spinlock.h" extern char data[]; // defined by kernel.ld pde_t *kpgdir; // for use in scheduler() struct spinlock lock; char pg_refcount[PHYSTOP >> PTXSHIFT]; /...
bool initGame(WarContext* context) { glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API); context->globalScale = 3; context->globalSpeed = 1; context->origina...
/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include <sys/types.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <stdbool.h> #include <string.h> #include <unistd.h> #include <assert.h> #i...
/* * 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 ...
/* * Copyright 2016 GoPro Inc. * * 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, Vers...
#include <fcntl.h> #include <termios.h> #include <sys/types.h> #include <sys/mman.h> #include <sys/wait.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #define SIZE_HASH 10000 /*THIS VERSION WORK VERY GOOD (Y)*/ int const multiplier=263; long const prime =1000000007; int i, j ; vo...
#include <stdint.h> #include <string.h> /* Note: This struct assumes a member alignment of 4 bytes. ** This matters when pitch_lag > 216 on the first subframe of any given frame. */ typedef struct UTKContext { FILE *fp; const uint8_t *ptr, *end; int parsed_header; unsigned int bits_value; int bits_...
#include <stdio.h> #include <stdlib.h> #include <string.h> #ifndef _WIN32 # include <unistd.h> #endif #include "cgnslib.h" #define NUM_SIDE 5 float coord[NUM_SIDE*NUM_SIDE*NUM_SIDE]; #define CHECK(L,B) if(!(B)){fprintf(stderr,"mismatch in %s\n",L);exit(1);} void error_exit (char *where) { fprintf (stderr, "ERRO...
// // Copyright (c) 2019-2022 yanggaofeng // #include "libavutil/avstring.h" #include "libavutil/opt.h" #include "libavutil/time.h" #include "libavformat/avformat.h" #include "libavformat/url.h" #include <pthread.h> #include "libavformat/YangMetaConnection.h" typedef struct PacketQueue { AVPacketList *first_pkt...
/* The Outernet Uplink driver is a bit different to the other drives. Whereas the others send one bundle at a time, and use the normal mechanism for doing so, we must cope with the fact that we have a uni-directional communications link. This means that we need to periodically assess the highest priority bu...
/** ****************************************************************************** * @addtogroup Device_Drivers Device Drivers * @{ * @file adxl_drv.c * @author ADI * @version V2.0 * @date 20-October-2015 * @brief Reference design device driver to access ADI ADXL chip. ...
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ /* Feature : Cpu Tx Proc ECMP member * * Usage : BCM.0> cint cpu_tx_proc...
/*************************************************************************** * Copyright (C) 2011 by Broadcom Corporation * * <NAME> - <EMAIL> * * * * This program is free soft...
/////////////////////////////////////////////////////////////////////////////////////////////////// /* Memory Management memory.c This implements: 1. Creation and destruction of address space for user processes 2. adding pages to an address space 3. mapping pages 4. granting pages from one address space to...
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */ /* The copyright notice above does not evidence any */ /* actual or intended publication of such source code. */ #pragma ident "@(#)whodo.c 1.24 97/01/23 SMI" /* SVr4.0 1.30 */ ...
/* * Copyright 2004-2004 The Apache Software Foundation. // (c) Copyright IBM Corp. 2004, 2005 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 * * htt...
/* * fs/cifs/dir.c * * vfs operations that deal with dentries * * Copyright (C) International Business Machines Corp., 2002,2007 * Author(s): <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 p...
/* * endin.c * * Copyright (c) <NAME> 2003-2020 * * Program and source code released under the GPL version 2 * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "is_ws.h" #include "str.h" #include "str_conv.h" #include "fields.h" #include "url.h" #include "reftypes.h" #inc...
// Copyright (c) <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT License was not distributed with this file, // You can obtain one at https://spdx.org/licenses/MIT.html. #include "matoya.h" #include <stdlib.h> #include <stdint.h> #include <string.h> #i...
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #include "ParTI.h" #include "sptensor.h" /*Interface to everything in this file is orderit(.., ..)*/ /*function declarations*/ void sptLexiOrderPerMode(sptSparseTensor * tsr, sptIndex mode, sptIndex ** orgIds, int tk); void sptBFSLike(spt...
/* Copyright (c) 2012, <NAME> <<EMAIL>> Copyright (c) 2013- <NAME> <<EMAIL>> and <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 ab...
/* * Copyright 2004-2015 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 * ...
/** * @file LB_D1Q3_2-components.c * @author <NAME> * @date 2 December 2017 * * The module _LB_D1Q3_2-components.c_ contains the code to run a lattice Boltzmann simulation. It also contains the definitions of all externs from the header * file _LB_D1Q3_2-components.h_. */ #include "LB_D1Q3_2-components.h" /...
/* bind.c - decode an ldap bind operation and pass it to a backend db */ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 1998-2020 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modificat...
/*------------------------------------------------------------------------------------ */ /* Implementation of the simple pipe ECHO hash function in its 512-bit outputs variant.*/ /* Optimized for ANSI C, 64-bit mode */ /* ...
/* * Copyright (c) 2020 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS AL...
/** * Main vvd operations */ #include <assert.h> #include <string.h> // memcpy #include <inttypes.h> #include "vvd.h" #include "utils.h" #include "fs/mbr.h" #include "fs/gpt.h" // // Global variables // // Since only one instance of any vvd_* is running at a time (seeing that // they're directly invoked from main()...
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ #include <math.h> #include <string.h> #include "qfits_rw.h" #include "qfits_tools.h" #include "os-features.h" #include "sip_qfits.h" #include "an-bool.h" #include "fitsioutils.h" #include "errors.h" #in...
#include "json.h" //----------------------------------json prevs begin-------------------------------- // // str_cmpi - 字符串不区分大小写比较函数 // ls : 左串 // rs : 右串 // return : ls > rs 返回 > 0; ... < 0; ... =0 // int str_cmpi(const char * ls, const char * rs) { int l, r; if (!ls || !rs) return (int)(ls -...
/* * MIT License * * Copyright (c) 2020 Newracom, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, m...
/* * Copyright (c) 2005-2009, <NAME>. * Copyright (c) 2004-2005, <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 copyrig...
/* arems.c: execute command from trusted remote senders (Allnet REMote Shell) */ /* invoke as "arems -s sender1 sender2 ... senderN" to invoke as a server */ /* invoke as "arems receiver command" to invoke as a client */ /* commands and responses are sent with a per-contact counter (persistently * kept in ~/.allnet/co...
/* winicontoppm.c - read a MS Windows .ico file and write portable pixmap(s) ** ** Copyright (C) 2000,2003 by <NAME> - <EMAIL> ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, provided ** that the above copyright notice appea...
#include <math.h> #include <stdlib.h> #include "forge.h" #include "confuse.h" extern void c_character_event_anim(CCharDesc *desc, CCharacter *c, uint tool_count, uint *tools, float *tool_matrix, uint selected_tool, float delta); extern void c_character_matrix_aim(float *matrix, float *aim, float *normal, float *pos, f...
#include "eval.h" #include "env.h" #include "bool.h" #include "symbol.h" #include "number.h" #include "list.h" #include "error.h" #include "port.h" #include "read.h" #include "print.h" #define EVAL(expr) { exp = expr; goto EVAL; } #define apply_primitive_procedure(proc, argc, argv) (((scm_primitive_proc *)proc)->pri...
/* SCREENDrawDots.c AUTHORS: <EMAIL> kas <NAME> <EMAIL> fjc <NAME> <EMAIL> mk <NAME> PLATFORMS: All. HISTORY: mm/dd/yy 12/13/04 kas Created ...
/* ==================================================================== * Copyright (c) 1999-2006 Carnegie Mellon University. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redi...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /* drn2g.f -- translated by f2c (version 20090411). You must link the resu...
/* random.c - random number generator * Copyright (C) 1998, 1999, 2000, 2001, 2002, * 2003, 2006 Free Software Foundation, Inc. * * This file is part of GnuPG. * * GnuPG is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by ...
/* hen.c -- kernel signature patches * * Copyright (C) 2016 <NAME> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include <psp2kern/ctrl.h> #include <psp2kern/types.h> #include <psp2kern/io/stat.h> #include <psp2kern/kernel/sysmem.h> ...
#include "dat.h" #include "fns.h" #include "error.h" #include "interp.h" #include <isa.h> #include "libinterp/runt.h" extern Pool* imagmem; extern void (*memmonitor)(int, ulong, ulong, ulong); static void cpxec(Prog *); static void memprof(int, void*, ulong); static void memprofmi(int, ulong, ulong, ulong); extern I...
// Copyright 2019 <NAME>. All rights reserved. // SPDX-License-Identifier: BSD-2-Clause #include "avif/internal.h" #include <math.h> #include <string.h> // ------------------------------------------------------------------------------------------------ // Adapted from gb_math: // // gb_math.h - v0.07c - public domai...
#include "http-server-internal.h" #include "aio-transport.h" #include "http-reason.h" #include "http-parser.h" #include "sha.h" #include "base64.h" #include <inttypes.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <errno.h> #if defined(OS_WINDOWS) #define iov_base buf #defi...
/* * 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 pinmux.c * @brief PINMUX Driver Implementation File * @date 20.May.2014 * @version 04.00.00 * */ /* (c) Texas Instruments 2009-2014, All rights reserved. */ /* Include Files */ #include "reg_system.h" #include "pinmux.h" /*LDRA_INSPECTWINDOW 50 */ /*SAFETYMCUSW 125 S MR: 19.13 REVIEW...
/* ############################################################################ # # File: ppm.c # # Subject: Functions to manipulate PPM files in memory # # Author: <NAME> # # Date: November 17, 1997 # ############################################################################ # # This file is in the publ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** ** This notice applies to any and all portions of this...