text
stringlengths
3.12k
18.7k
#include "TM1637.h" #include "stm32f10x.h" #include "misc.h" #include "Delay.h" #include "stm32f10x_gpio.h" #define uchar unsigned char #define ushort unsigned short #define ulong unsigned long #define uint unsigned int void TM1637Start(GPIO_TypeDef * port, int _CLK, int _DIO); void TM1637Stop(GPIO_TypeDef * port, in...
/* * Copyright (C) 2007 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND IN...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "harness.h" #include "queue.h" /* * Function prototype for merging queue when sorting */ list_ele_t *sort_List(list_ele_t *); list_ele_t *merge_List(list_ele_t *, list_ele_t *); /* * Create empty queue. * Return NULL if could not allocate space....
#include <tros/driver.h> #include <tros/hal/io.h> #include <tros/irq.h> #include <tros/tros.h> #include <tros/klib/devicebuffer.h> #include <keycodes.h> #define KEY_DEVICE 0x60 #define KEY_PENDING 0x64 static int _kbd_scancode_map[] = { //key scancode KEY_UNKNOWN, //0 KEY_ESCAPE, //1 ...
/* * Copyright (C) 2010 The Android Open Source Project * * 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 app...
#include "ibm.h" #include "amstrad.h" #include "ide.h" #include "io.h" #include "video.h" #include "cpu.h" uint8_t (*port_inb[0x10000][2])(uint16_t addr, void *priv); uint16_t (*port_inw[0x10000][2])(uint16_t addr, void *priv); uint32_t (*port_inl[0x10000][2])(uint16_t addr, void *priv); void (*port_outb[...
/* sd_cuts.h - Somewhat Different C Unit Testing System * * 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 ...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #define NUM_DEVICES 3 #define MAX_SENSORS 32 #define MAX_SWEEP_INFO 4 #define MAX_DATAPOINTS_PER_SECTION 16384 //Takes 300MB of ram to boot. const char * Devices[] = { "HMD", "WM0", "WM1" }; const char * DevMap[] = { "LX", "LY", "RX", "RY...
// 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 <standardIO.h> #include <string.h> #include <chess.h> #include <moves.h> #include <chessVisual.h> #include <syscalls.h> #include <maths.h> #define INSTRUCTION_L...
/** * (C) Copyright 2016 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 law or...
/* * * Configuration DB * * $Id: ldb.c,v 1.2 2001/10/09 22:33:07 paulsch Exp $ * */ #if HAVE_CONFIG_H #include <config.h> #endif /* System includes */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <atm.h> #include <ctype.h> /* Local includes */ #include "lecs.h" #inclu...
/* osdep.h Operating system dependencies... */ /* * Copyright (c) 1996, 1997, 1998, 1999 The Internet Software Consortium. * 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. Red...
/* Unix SMB/CIFS implementation. ejs <-> rpc interface definitions Copyright (C) <NAME> 2005 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, o...
/***************************************************************************** * Copyright (c) 2019, Nations Technologies Inc. * * All rights reserved. * **************************************************************************** * * Redistribution and use in source and binary forms, with or without * mo...
// (c) Copyright 2008-2009 <NAME> // Portions (c) Copyright 2012 <NAME> & <NAME> // // 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, ...
/* * [ ctwm ] * * Copyright 1992 <NAME>. * * Permission to use, copy, modify and distribute this software [ctwm] and * its documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and that both that * copyright notice and thi...
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once // Select the right implementation. #ifdef __cplusplus #include <zxtest/cpp/zxtest.h> #else #include <zxtest/c/zxtest.h> #endif #define _ASS...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "BF.h" #include "hash_table.h" #include "record_struct.h" #include "error_messages.h" /* The first block of a hash file looks like this: * -------------------------------------------------- * | % | attrType | attrLength | attrName | numBuckets| \0 ...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* Definitions of target machine GNU compiler. IA-64 version. Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. Contributed by <NAME> <<EMAIL>> and <NAME> <<EMAIL>> This file is part of GNU CC. GNU CC is free software; you can redistribute it and/or modify it under the terms...
/******************************************************************** * * * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENS...
/* * Name: <NAME> * Section: 04 * Date: 10/22/2019 * Lab: CIS2107_Lab08_Manual * Goal: To design and implement functions to process characters and strings. */ #include <stdio.h> #include <memory.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <time.h> //functions void * upperL...
/** * Copyright (C) 2017, <NAME> **/ #include <errno.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <pservlet.h> #include <pstd/option.h> #include <error.h> #include <utils/static_assertion.h> /** * @brief the internal buffer used to parse the command line arguments *...
/* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc. This file is part of GNU Inetutils. GNU Inetutils is free software: you can redistribute it and/or modify it under the terms of the GNU Gen...
/*! ************************************************************************ * \file nalu.c * * \brief * Decoder NALU support functions * * \author * Main contributors (see contributors.h for copyright, address and affiliation details) * - <NAME> <<EMAIL>> *****************************...
/* * FIG : Facility for Interactive Generation of figures * Copyright (c) 1985-1988 by <NAME> * Parts Copyright (c) 1989-2015 by <NAME> * Parts Copyright (c) 1991 by <NAME> * Parts Copyright (c) 2016-2019 by <NAME> * * Any party obtaining a copy of these files is granted, free of charge, a * full and unrestrict...
/* testPHA() */ /* Rip_PHA() */ /* Depack_PHA() */ #include "globals.h" #include "extern.h" int16_t testPHA ( void ) { /* test #1 */ if ( PW_i < 11 ) { /* printf ( "#1 (PW_i:%ld)\n" , PW_i ); */ return BAD; } /* test #2 (volumes,sample addresses and whole sample size) */ PW_Start_Address = PW_i-11...
#include "espNow.h" #include "wifiConfig.h" #include "mqtt.h" #include "esp_timer.h" #include "esp_system.h" #include "esp_event_loop.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_sleep.h" #include <stdio.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos...
#include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> #include "stm32f4xx_hal.h" #include "tcp_client.h" #include "rtc.h" #include "FreeRTOS.h" #include "task.h" #include "semphr.h" #define RTC_ASYNCH_PREDIV 127 #define RTC_SYNCH_PREDIV 249 typedef struct { uint16_t year...
#include "../common.h" /* * global variables */ const struct amp_effect_i amp_octave_iface = { (amp_info_f)amp_octave_info, (amp_effect_f)amp_octave_proc, (amp_copy_f)amp_octave_copy, (amp_delete_f)amp_octave_delete }; /** * Tone structure. * @t, q, f, g, s: The time, quality, frequency, gain, and filter s...
#include <uapi/console.h> #include "device.h" #include "fd.h" #include "ioport.h" #include "ipc.h" #include "mmap.h" #include "proc.h" #include "syscall.h" #include "vm.h" extern int sys_debug_exit(int r); extern uint64_t sys_debug_sysctl(uint64_t id); static int sys_nop(void) { return -ENOSYS; } //static void ...
#include <linux/input-event-codes.h> #include <math.h> #include <pthread.h> #include <stddef.h> #include <stdint.h> #include <unistd.h> #include <wiringPi.h> #include "display.h" #include "display-menu.h" #include "i2c.h" #include "utils.h" #include "dac-es9028.h" #define msleep(x) usleep(x*1000) static pthread_t th...
/* $OpenBSD: adm1024.c,v 1.14 2007/06/24 05:34:35 dlg Exp $ */ /* * Copyright (c) 2005 <NAME> * * 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. * *...
/* * Copyright (c) 2018, 2019 <NAME> <<EMAIL>> * 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 right...
/* u8x8_d_ssd1362.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, <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 ...
/* Copyright (C) 2012,2014 by <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish...
/** * @file Platform specific functions */ /****************************************************************************** * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserve...
/******************************************************************************** Written by: <NAME> NEX Robotics Pvt. Ltd. AVR Studio Version 4.17, Build 666 Date: 13th January 2010 This experiment demonstrates Servo motor control using PWM. Concepts covered: Use of timer to generate PWM for servo motor cont...
#include "../common/common.h" #define MAX_IP_LEN 15 #define MAX_LINE_LEN 128 #define ADD_REMOTE_MSG "/add " #define LIST_MSG "/list" #define REFRESH_MSG "/refresh" #define STOP_MSG "/stop" #define START_MSG "/start" #define REMOVE_MSG "/remove " #define MAX_RMSG_LENGTH 128 #define HLINE_LENGTH 50 // Mode parsing #def...
/* Copyright (C) 2020 <NAME> for the Convolutional Interactive Artificial Neural Networks by/for Astrophysicists (CIANNA) Code (https://github.com/Deyht/CIANNA) 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 c...
/** @file * PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers. * Copyright 2002 <NAME>. All rights reserved. * PyMite is offered through one of two licenses: commercial or open-source. * See the LICENSE file at the root of this package for licensing details. * * some sections based on...
/** * flexTimer.c * interrupt handler and hardware FlexTimer init * * ARM-based K70F120M microcontroller board * for educational purposes only * CSCI E-92 Spring 2021, Professor <NAME>, Harvard Extension School * * Written by <NAME> (<EMAIL>) * * Copyright (c) 2021, 2017, 2015, 2014, 2012 <NAME>. All right...
#include <stdint.h> #include <xmmsclient/xmmsclient.h> #include <xmmsclient/xmmsclient-glib.h> #include "xmms2.h" static PlayTimeCallback playtime_callback; static StatusCallback status_callback; static TrackInfoCallback track_info_callback; static PlaylistPositionCallback playlist_position_callback; static Xmms2Vol...
/* ZenVM v0.1 * Bytecode Interpreter of Zen Programming Language * Zenlang: An interpreted language created at 8:28 PM, 4/26/2018. * Copyright <NAME>. All Rights Reserved. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "zenvm.h" #include "instructions.h" #define magic_num...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> int conversion_successes = 0; int conversion_failures = 0; FILE * fortranoutput; void check_conversion(bool criterion) { if ( criterion ) { printf("CONVERSION SUCCESSFULL\n\n"); conversion_successes++; } else ...
#include <stdio.h> #include <stdint.h> #include <string.h> #include <time.h> #include <stdbool.h> uint8_t rule_rows[9*9] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6...
/****************************************************************************** * * Copyright (c) International Business Machines Corp., 2006 * * 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 Softwar...
/* This file is part of the auxiliaries library. Written by <NAME>, <EMAIL> $Id: utf8.c,v 1.13 2017-12-14 15:39:22 Gebruiker Exp $ */ #include <stdio.h> #include <stdlib.h> #include "utf8.h" /* Library utf8 source prelude */ #undef _UTF8_CODE_ #ifndef lint #define _UTF8_CODE_ #endif #ifdef LIB #define _UTF8_CODE_ ...
#include <arpa/inet.h> #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /** internal representation of a pixel. * * Although the output format support 16-bit channels, we work with 8-bit since * my setup ends up showing 8-bit colors anyways. */ typedef struct { uin...
/****************************************************************************/ /* */ /* This file is part of CONCORDE */ /* */ /* ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <assert.h> #include <stdbool.h> #include <sys/time.h> #include <unistd.h> #include "mkl.h" #include <immintrin.h> #include "omp.h" float* build(char* eval_folder, int reconstruction_len, int num_subcircuits, int* subcircuit_indices,...
/*---------------------------------------------------------------*/ /*--- ---*/ /*--- This file (host-generic/h_generic_regs.c) is ---*/ /*--- Copyright (C) OpenWorks LLP. All rights reserved. ---*/ /*--- ...
/****************************************************************************** * * PROGRAM: diane_regul * * PURPOSE: compute interpolati...
/* $Id$ Copyright 1989-2014 <NAME> This file is part of Linear/C3 Library. Linear/C3 Library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later v...
/* Copyright 2013-2016 by <NAME> All rights reserved. This software is made available under the terms of the ICU License -- ICU 1.8.1 and later. See the LICENSE file at the top-level directory of this distribution and at https://sourceforge.net/p/dps8m/code/ci/master/tree/LICENSE */ #include <stdint.h> #inclu...
/* * client.c * * Created on: 27.12.2014 * Author: <NAME> */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <signal.h> #include <sys/ipc.h> #include <sys/msg.h> #include <sys/shm.h> #include <sys/types.h> #include <sys/sem.h> #include <sys/socket.h> #include <netdb....
/** Copyright 2018, 2021 <NAME><<EMAIL>> */ #include "sm4.h" #if _MSC_VER == 1200 #ifndef uint8_t #define uint8_t unsigned char #define uint16_t unsigned short #define uint32_t unsigned int #define uint64_t unsigned __int64 #define int8_t char #define int16_t short #define int32_t int #define int64_t __int64 #endif ...
#include<stdio.h> #include<string.h> // 視線データの最大数(静的に確保しないと面倒だから,これくらい確保してけばいいだろう的な値) #define DATA_MAX 6000 // 実験時間 #define EXPERIMENT_TIME 60000 // 注視時間 #define FIXATION_TIME 3000 // 正面図のサイズ #define FRONT_VIEW_LEFT 288 #define FRONT_VIEW_RIGHT 811 #define FRONT_VIEW_TOP 597 #define FRONT_VIEW_BOTTOM 1051 // 平面図のサ...
/* xstring core code * by <NAME> <<EMAIL>> */ #include "xstring.h" #include <lauxlib.h> #include <stdlib.h> #include <string.h> #include <assert.h> #define _buf_valid(B) ((B) && (B)->data) #define _xstr_valid(XS) _buf_valid((XS)->buf) /* currently not possible for it to be null */ #define checkxs(L,I) (xst...
/* Copyright 2016. <NAME>. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2016 <NAME> <<EMAIL>> */ #include <math.h> #include <assert.h> #include "splines.h" static long binomial(unsigned int n, unsigned int k) { long...
/* $NetBSD: filter.c,v 1.1.1.2 2009/12/02 00:26:47 haad Exp $ */ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is made available to anyone wishing to use, * modify...
/* # #Copyright 2008, <NAME> # Part of the Posda package # Posda may be copied only under the terms of either the Artistic License or the # GNU General Public License, which may be found in the Posda Distribution, # or at http://posda.com/License.html # # # All of the parameters on the command line are of the form: #...
/* * Copyright (C) 2000-2007 <NAME>, <NAME> and various contributors * Copyright (C) 2004-2014 <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 wi...
/* * logsave.c --- A program which saves the output of a program until * /var/log is mounted. * * Copyright (C) 2003 <NAME>. * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public * License. * %End-Header% */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <...
/************************************************************************** * * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Softwa...
#include <stdlib.h> #include <stdbool.h> #include <stdarg.h> #include <librtmp/rtmp.h> #include <librtmp/log.h> #include "gopt.h" #include "util.h" #include "run.h" typedef struct timespec timespec_; typedef struct { pthread_mutex_t mutex; int frame_num; bool should_stop; } counter_thread_param_t; #def...
/* $NetBSD: lancereg.h,v 1.2 1998/08/15 10:18:14 mycroft Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modific...
/* File tek.c from Kermit Demos. Compile with gcc tek.c -lm * * -p: send print command to save a screenshot in print.six. * (will appear to hang if terminal does not support Tek Print to Host) * -P: send graphics to printer as sixels * (will appear to hang if printer port is not connected) */ /...
/* * @file seed.c * * The functions for the SEED object. * * $Id$ * */ #include "seed.h" #include "alphabet.h" #include <assert.h> #define trace(Y) fprintf(stderr,Y) /** * new_seed generates a new SEED object. * \return A pointer to the new object. */ SEED *new_seed( char *str_seed, ///< An ascii...
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <math.h> #include <time.h> #include "etime.h" long threadCount; int K; int Samples; int Dimensions; int flagOne=1; int flagTwo=1; pthread_mutex_t kmeansMutex; pthread_barrier_t kmeansBarrier; int *sampleClusterMap; //Creating sampleClusterMap...
/* floating_bus.c: implement behaviour of floating bus in unused ports * * Copyright 2019 <NAME>. * */ // see http://ramsoft.bbk.org.omegahg.com/floatingbus.html #include "../h/env.h" // RAM address of each pixel line on screen int screen_lines[192] = { 0x4000, // 1st section of screen 0x4100, 0x4200, ...
#include <errno.h> #include <glib.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <unistd.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <sys/select.h> #include <sys/socket.h> #include <sys/time.h> #include <time.h> #include "client_connection.h" #include "consta...
/* ckgr02.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__2 = 2; static integer c__6 = 6; static integer c__7 = 7; /* $Procedure CKGR02 ( C-kernel, get rec...
/************************************************************************* * MATLAB MEX ROUTINE LEMIRE_ENGINE.C * [minval maxval] = LEMIRE_ENGINE(a, window) * * PURPOSE: single shoot (one vector) 1D min/max running/filtering * * INPUTS * A: vector, logical and all numeric classes are supported * window: scala...
#include "postgres.h" #include "c.h" #include "fmgr.h" #include "tsearch/ts_cache.h" #include "tsearch/ts_type.h" #include "tsearch/ts_utils.h" #include "utils/memutils.h" PG_MODULE_MAGIC; PG_FUNCTION_INFO_V1(ts_exact_match); Datum ts_exact_match(PG_FUNCTION_ARGS); PG_FUNCTION_INFO_V1(ts_squeeze); Datum ts_squeeze...
void test_points_and_vectors(void) { vec4 p = vec4_make_point (4.3, -4.2, 3.1); vec4 v = vec4_make_vector(4.3, -4.2, 3.1); assert(vec4_is_point (p) == true); assert(vec4_is_vector(p) == false); assert(vec4_is_vector(v) == true); assert(vec4_is_point (v) == false); } void test_add_vectors(vo...
#include "2d.h" #include "engine.h" #include "utils.h" #include "stb_image.h" #include "linmath.h" #include "stretchy_buffer.h" #include <stdbool.h> cbTexture cbLoadTexture(const char *path) { cbTexture texture; unsigned char *data = stbi_load(path, &texture.width, &texture.height, &texture.channels, 0); ...
/* * License: MIT * * 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,...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Duda I/O * -------- * Copyright (C) 2012-2014, <NAME>. <<EMAIL>> * * 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...
//============================================================================= // This is free and unencumbered software released into the public domain. // // Anyone is free to copy, modify, publish, use, compile, sell, or // distribute this software, either in source code form or as a compiled // binary, for any pur...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Resea...
/* Copyright (c) 1988 Bellcore ** All Rights Reserved ** Permission is granted to copy or use this program, EXCEPT that it ** may not be sold for profit, the copyright notice must be reproduced ** on copies, and credit should be given to Bellcore where...
#include <vslc.h> /* Hash table for global variables and function names */ tlhash_t *global_names; /* Dynamic array for string table */ char **string_list; size_t n_string_list = 8, /* Size of the table */ stringc = 0; /* Count of strings in it */ /* Stack of tables for local scopes */ static tlhash_...
/* * tc_filter.c "tc filter". * * 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. * * Authors: <NAME>, <<EMAI...
#include "kshell.h" #include <logging.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void kshell_print_prompt(); static char readline[READLINE_SIZE] = { 0 }; static char last_readline[READLINE_SIZE] = { 0 }; static unsigned int readline_index = 0; static bool caps_lock_mode = fals...
#include <stdlib.h> #include <string.h> #include <gdk-pixbuf/gdk-pixbuf.h> #include <glib.h> #include <glib/gstdio.h> #include "panel.h" #include "misc.h" #include "plugin.h" #include "bg.h" #include "gtkbgbox.h" #include "run.h" //#define DEBUGPRN #include "dbg.h" #define MENU_DEFAULT_ICON_SIZE 22 #define MENU_DEF...
/*- * Copyright (c) 1996 - 2001 <NAME> <<EMAIL>> * based on work by <NAME> <<EMAIL>> * Internet Initiative Japan, Inc (IIJ) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following co...
/*- * Copyright (C) 2009-2012 Semihalf * 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 condi...
/** * FreeRDP: A Remote Desktop Protocol Implementation * RemoteFX Codec Library - Decode * * Copyright 2011 <NAME> * Copyright 2011 <NAME> <<EMAIL>> * * 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...
/* * QDesign Music 2 (QDM2) payload for RTP * Copyright (c) 2010 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the L...
/* $License: Copyright (C) 2010 InvenSense Corporation, All Rights Reserved. $ */ /******************************************************************************* * $Id: $ *******************************************************************************/ /** * @defgroup MSP430_System_Layer MSP430 Sy...
#include <stdint.h> #include <string.h> #include "sha256.h" #define CHUNK_SIZE 64 #define TOTAL_LEN_LEN 8 /* * ABOUT bool: this file does not use bool in order to be as pre-C99 compatible as possible. */ /* * Comments from pseudo-code at https://en.wikipedia.org/wiki/SHA-2 are reproduced here. * When useful for...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "lil/lil.h" #include "graforge.h" #include "core.h" #include "sklil.h" void sklil_load_sine(lil_t lil); void sklil_load_wavout(lil_t lil); void sklil_load_arith(lil_t lil); void sklil_load_scale(lil_t lil); void sklil_load_phasor(lil_t lil); void skl...
/* cget35.f -- translated by f2c (version 20061008). 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...
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions ...
extern "C" { #include <micron.h> #include "sdcard.h" } //XXX can we eliminate this table? static const uint8_t crc7Table[256] = { 0x00, 0x09, 0x12, 0x1B, 0x24, 0x2D, 0x36, 0x3F, 0x48, 0x41, 0x5A, 0x53, 0x6C, 0x65, 0x7E, 0x77, 0x19, 0x10, 0x0B, 0x02, 0x3D, 0x34, 0x2F, 0x26, 0x51, 0x58, 0x43, 0x4...
/* * Copyright (c) 2017, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of co...
// SPDX-License-Identifier: GPL-2.0+ /* * addi_apci_1516.c * Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module. * Project manager: <NAME> * * ADDI-DATA GmbH * Dieselstrasse 3 * D-77833 Ottersweier * Tel: +19(0)7223/9493-0 * Fax: +49(0)7223/9493-92 * http://www.addi-data.com * <EMAIL>...
/* * $Id: t-test1.c,v 1.2 2006/03/27 16:05:13 wg Exp $ * by <NAME> 1996-1999, 2001, 2004, 2006 * A multi-thread test for malloc performance, maintaining one pool of * allocated bins per thread. */ #if (defined __STDC__ && __STDC__) || defined __cplusplus # include <stdlib.h> #endif #include <stdio.h> #include <un...
/****************************************************************************** * * Copyright (C) 2009 - 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...