commit
stringlengths
40
40
old_file
stringlengths
4
112
new_file
stringlengths
4
112
old_contents
stringlengths
0
2.05k
new_contents
stringlengths
28
3.9k
subject
stringlengths
17
736
message
stringlengths
18
4.78k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
7
111k
1b98d6ce44baea807223c67ddf97cc0dc9108741
CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c
CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c
/** @file Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based Cryptographic Library. Copyright (c) 2010, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ #include <Base.h> #include <Library/BaseMemoryLib.h> /* OpenSSL will use floating point support, and C compiler produces the _fltused symbol by default. Simply define this symbol here to satisfy the linker. */ int _fltused = 1; /* Sets buffers to a specified character */ void * memset (void *dest, char ch, unsigned int count) { // // Declare the local variables that actually move the data elements as // volatile to prevent the optimizer from replacing this function with // the intrinsic memset() // volatile UINT8 *Pointer; Pointer = (UINT8 *)dest; while (count-- != 0) { *(Pointer++) = ch; } return dest; }
/** @file Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based Cryptographic Library. Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ #include <Base.h> #include <Library/BaseMemoryLib.h> /* OpenSSL will use floating point support, and C compiler produces the _fltused symbol by default. Simply define this symbol here to satisfy the linker. */ int _fltused = 1; /* Sets buffers to a specified character */ void * memset (void *dest, char ch, unsigned int count) { // // NOTE: Here we use one base implementation for memset, instead of the direct // optimized SetMem() wrapper. Because the IntrinsicLib has to be built // without whole program optimization option, and there will be some // potential register usage errors when calling other optimized codes. // // // Declare the local variables that actually move the data elements as // volatile to prevent the optimizer from replacing this function with // the intrinsic memset() // volatile UINT8 *Pointer; Pointer = (UINT8 *)dest; while (count-- != 0) { *(Pointer++) = ch; } return dest; }
Add comments for clarification about memset implementation.
Add comments for clarification about memset implementation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Long, Qin <[email protected]> Reviewed-by: Ye, Ting <[email protected]> Reviewed-by: Fu, Siyuan <[email protected]> git-svn-id: 3158a46dfd52e07d1fda3e32e1ab2e353a00b20f@15662 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
6386bea6b175941dd7af1036cca991b4b77102fb
Bag.h
Bag.h
#ifndef Bag_h #define Bag_h #include <unordered_set> #include <vector> #include <ostream> //A node in the tree deocomposition class Bag{ private: unsigned long id; std::vector<unsigned long> nodes; unsigned long parent=0; std::vector<unsigned long> children; public: Bag(unsigned long id, std::unordered_set<unsigned long> nodeset){ this->id = id; for(unsigned long node:nodeset) nodes.push_back(node); } void set_parent(unsigned long parent){ this->parent = parent; } void add_to_children(unsigned long node){ children.push_back(node); } std::vector<unsigned long>& get_nodes(){ return nodes; } friend std::ostream& operator<<(std::ostream& out, Bag& bag); }; std::ostream& operator<<(std::ostream& out, Bag& bag){ out << bag.id << std::endl; out << bag.nodes.size() << std::endl; for(auto node:bag.nodes) out << node << "\t"; out << std::endl; out << bag.parent << std::endl; out << bag.children.size() << std::endl; for(auto node:bag.children) out << node << "\t"; if(bag.children.size()>0) out << std::endl; return out; } #endif /* Bag_h */
#ifndef Bag_h #define Bag_h #include <unordered_set> #include <vector> #include <ostream> //A node in the tree deocomposition class Bag{ private: unsigned long id; std::vector<unsigned long> nodes; unsigned long parent=0; std::vector<unsigned long> children; public: Bag(unsigned long id, const std::unordered_set<unsigned long> &nodeset){ this->id = id; for(unsigned long node:nodeset) nodes.push_back(node); } void set_parent(unsigned long parent){ this->parent = parent; } void add_to_children(unsigned long node){ children.push_back(node); } std::vector<unsigned long>& get_nodes(){ return nodes; } friend std::ostream& operator<<(std::ostream& out, Bag& bag); }; std::ostream& operator<<(std::ostream& out, Bag& bag){ out << bag.id << std::endl; out << bag.nodes.size() << std::endl; for(auto node:bag.nodes) out << node << "\t"; out << std::endl; out << bag.parent << std::endl; out << bag.children.size() << std::endl; for(auto node:bag.children) out << node << "\t"; if(bag.children.size()>0) out << std::endl; return out; } #endif /* Bag_h */
Make get_nodes return a const&, and optimize uses of this function
Make get_nodes return a const&, and optimize uses of this function
C
mit
smaniu/treewidth,smaniu/treewidth
e4d76b921d8f7bcf36c3de63108f2156de578c7c
src/emu/riscv-processor-logging.h
src/emu/riscv-processor-logging.h
// // riscv-processor-logging.h // #ifndef riscv_processor_logging_h #define riscv_processor_logging_h namespace riscv { /* Processor logging flags */ enum { proc_log_inst = 1<<0, /* Log instructions */ proc_log_operands = 1<<1, /* Log instruction operands */ proc_log_memory = 1<<2, /* Log memory mapping information */ proc_log_mmio = 1<<3, /* Log memory mapped IO */ proc_log_csr_mmode = 1<<4, /* Log machine status and control registers */ proc_log_csr_hmode = 1<<5, /* Log hypervisor status and control registers */ proc_log_csr_smode = 1<<6, /* Log supervisor status and control registers */ proc_log_csr_umode = 1<<7, /* Log user status and control registers */ proc_log_int_reg = 1<<8, /* Log integer registers */ proc_log_trap = 1<<9, /* Log processor traps */ proc_log_pagewalk = 1<<10, /* Log virtual memory page walks */ proc_log_ebreak_cli = 1<<11, /* Log virtual memory page walks */ proc_log_no_pseudo = 1<<12 /* Don't decode pseudoinstructions */ }; } #endif
// // riscv-processor-logging.h // #ifndef riscv_processor_logging_h #define riscv_processor_logging_h namespace riscv { /* Processor logging flags */ enum { proc_log_inst = 1<<0, /* Log instructions */ proc_log_operands = 1<<1, /* Log instruction operands */ proc_log_memory = 1<<2, /* Log memory mapping information */ proc_log_mmio = 1<<3, /* Log memory mapped IO */ proc_log_csr_mmode = 1<<4, /* Log machine status and control registers */ proc_log_csr_hmode = 1<<5, /* Log hypervisor status and control registers */ proc_log_csr_smode = 1<<6, /* Log supervisor status and control registers */ proc_log_csr_umode = 1<<7, /* Log user status and control registers */ proc_log_int_reg = 1<<8, /* Log integer registers */ proc_log_trap = 1<<9, /* Log processor traps */ proc_log_pagewalk = 1<<10, /* Log virtual memory page walks */ proc_log_ebreak_cli = 1<<11, /* Switch to debug CLI on ebreak */ proc_log_no_pseudo = 1<<12 /* Don't decode pseudoinstructions */ }; } #endif
Update comment for enum proc_log_ebreak_cli
Update comment for enum proc_log_ebreak_cli
C
mit
rv8-io/rv8,rv8-io/rv8,rv8-io/rv8
95411cf0b5dadfe821f4121721c0f50e806c4630
roles/netbootxyz/files/ipxe/local/general.h
roles/netbootxyz/files/ipxe/local/general.h
#define CONSOLE_CMD /* Console command */ #define DIGEST_CMD /* Image crypto digest commands */ #define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */ #define IMAGE_COMBOOT /* COMBOOT */ #define IMAGE_TRUST_CMD /* Image trust management commands */ #define NET_PROTO_IPV6 /* IPv6 protocol */ #define NSLOOKUP_CMD /* DNS resolving command */ #define NTP_CMD /* NTP commands */ #define PCI_CMD /* PCI commands */ #define REBOOT_CMD /* Reboot command */ #define TIME_CMD /* Time commands */ #define VLAN_CMD /* VLAN commands */
#define CONSOLE_CMD /* Console command */ #define DIGEST_CMD /* Image crypto digest commands */ #define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */ #define IMAGE_COMBOOT /* COMBOOT */ #define IMAGE_TRUST_CMD /* Image trust management commands */ #define IMAGE_GZIP /* GZIP image support */ #define IMAGE_ZLIB /* ZLIB image support */ #define NET_PROTO_IPV6 /* IPv6 protocol */ #define NSLOOKUP_CMD /* DNS resolving command */ #define NTP_CMD /* NTP commands */ #define PCI_CMD /* PCI commands */ #define REBOOT_CMD /* Reboot command */ #define TIME_CMD /* Time commands */ #define VLAN_CMD /* VLAN commands */
Enable GZIP and ZLIB options in iPXE
Enable GZIP and ZLIB options in iPXE
C
apache-2.0
antonym/netboot.xyz,antonym/netboot.xyz,antonym/netboot.xyz
18ddee6898472719de2373dac37b0edcf7d02359
core/base/inc/TQObjectEmitVA.h
core/base/inc/TQObjectEmitVA.h
// @(#)root/base:$Id$ // Author: Philippe Canal 09/2014 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TQObjectEmitVA #define ROOT_TQObjectEmitVA // TQObject::EmitVA is implemented in its own header to break the // circular dependency between TQObject and TQConnection. #ifndef ROOT_TQObject #include "TQObject.h" #endif #ifndef ROOT_TQConnection #include "TQConnection.h" #endif template <typename... T> inline void TQObject::EmitVA(const char *signal_name, Int_t /* nargs */, const T&... params) { // Activate signal with variable argument list. // For internal use and for var arg EmitVA() in RQ_OBJECT.h. if (fSignalsBlocked || fgAllSignalsBlocked) return; TList classSigLists; CollectClassSignalLists(classSigLists, IsA()); if (classSigLists.IsEmpty() && !fListOfSignals) return; TString signal = CompressName(signal_name); TQConnection *connection = 0; // execute class signals TList *sigList; TIter nextSigList(&classSigLists); while ((sigList = (TList*) nextSigList())) { TIter nextcl((TList*) sigList->FindObject(signal)); while ((connection = (TQConnection*)nextcl())) { gTQSender = GetSender(); connection->ExecuteMethod(params...); } } if (!fListOfSignals) return; // execute object signals TIter next((TList*) fListOfSignals->FindObject(signal)); while (fListOfSignals && (connection = (TQConnection*)next())) { gTQSender = GetSender(); connection->ExecuteMethod(params...); } } #endif
Add missing file for variadic template version of TQObject::EmitVA
Add missing file for variadic template version of TQObject::EmitVA
C
lgpl-2.1
georgtroska/root,krafczyk/root,abhinavmoudgil95/root,veprbl/root,BerserkerTroll/root,mkret2/root,sirinath/root,mhuwiler/rootauto,sawenzel/root,simonpf/root,beniz/root,omazapa/root,evgeny-boger/root,bbockelm/root,gbitzes/root,sawenzel/root,evgeny-boger/root,satyarth934/root,simonpf/root,esakellari/my_root_for_test,mattkretz/root,CristinaCristescu/root,nilqed/root,veprbl/root,simonpf/root,gganis/root,vukasinmilosevic/root,arch1tect0r/root,gbitzes/root,Y--/root,esakellari/root,vukasinmilosevic/root,georgtroska/root,omazapa/root,thomaskeck/root,pspe/root,beniz/root,omazapa/root-old,esakellari/my_root_for_test,gganis/root,sbinet/cxx-root,agarciamontoro/root,veprbl/root,krafczyk/root,omazapa/root-old,buuck/root,sawenzel/root,jrtomps/root,CristinaCristescu/root,dfunke/root,lgiommi/root,sirinath/root,esakellari/root,zzxuanyuan/root,esakellari/my_root_for_test,vukasinmilosevic/root,olifre/root,CristinaCristescu/root,lgiommi/root,davidlt/root,nilqed/root,pspe/root,sirinath/root,evgeny-boger/root,sirinath/root,satyarth934/root,abhinavmoudgil95/root,BerserkerTroll/root,mattkretz/root,buuck/root,Y--/root,thomaskeck/root,BerserkerTroll/root,gbitzes/root,satyarth934/root,buuck/root,mhuwiler/rootauto,olifre/root,jrtomps/root,veprbl/root,Duraznos/root,CristinaCristescu/root,agarciamontoro/root,evgeny-boger/root,perovic/root,gbitzes/root,karies/root,dfunke/root,veprbl/root,georgtroska/root,sbinet/cxx-root,simonpf/root,gganis/root,zzxuanyuan/root,BerserkerTroll/root,karies/root,evgeny-boger/root,omazapa/root,gbitzes/root,olifre/root,abhinavmoudgil95/root,sirinath/root,nilqed/root,gbitzes/root,zzxuanyuan/root,Y--/root,Y--/root,zzxuanyuan/root,georgtroska/root,bbockelm/root,omazapa/root-old,zzxuanyuan/root-compressor-dummy,sirinath/root,agarciamontoro/root,arch1tect0r/root,root-mirror/root,mhuwiler/rootauto,zzxuanyuan/root,sawenzel/root,zzxuanyuan/root-compressor-dummy,dfunke/root,zzxuanyuan/root,Duraznos/root,beniz/root,jrtomps/root,mhuwiler/rootauto,georgtroska/root,omazapa/root,esakellari/my_root_for_test,zzxuanyuan/root,pspe/root,simonpf/root,Duraznos/root,krafczyk/root,evgeny-boger/root,esakellari/root,sawenzel/root,simonpf/root,perovic/root,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,nilqed/root,satyarth934/root,omazapa/root,buuck/root,dfunke/root,thomaskeck/root,sirinath/root,agarciamontoro/root,Y--/root,mkret2/root,mkret2/root,satyarth934/root,dfunke/root,vukasinmilosevic/root,georgtroska/root,veprbl/root,gganis/root,bbockelm/root,satyarth934/root,sawenzel/root,perovic/root,gbitzes/root,mattkretz/root,abhinavmoudgil95/root,lgiommi/root,bbockelm/root,omazapa/root,jrtomps/root,nilqed/root,root-mirror/root,sawenzel/root,georgtroska/root,bbockelm/root,thomaskeck/root,root-mirror/root,krafczyk/root,perovic/root,satyarth934/root,zzxuanyuan/root,sbinet/cxx-root,arch1tect0r/root,agarciamontoro/root,CristinaCristescu/root,evgeny-boger/root,mattkretz/root,BerserkerTroll/root,evgeny-boger/root,agarciamontoro/root,BerserkerTroll/root,esakellari/my_root_for_test,mkret2/root,vukasinmilosevic/root,karies/root,simonpf/root,pspe/root,zzxuanyuan/root-compressor-dummy,olifre/root,thomaskeck/root,bbockelm/root,esakellari/my_root_for_test,mhuwiler/rootauto,arch1tect0r/root,esakellari/root,Y--/root,Duraznos/root,gbitzes/root,sirinath/root,georgtroska/root,esakellari/root,thomaskeck/root,CristinaCristescu/root,krafczyk/root,evgeny-boger/root,sbinet/cxx-root,vukasinmilosevic/root,gganis/root,omazapa/root,arch1tect0r/root,omazapa/root-old,jrtomps/root,lgiommi/root,davidlt/root,davidlt/root,agarciamontoro/root,mattkretz/root,pspe/root,davidlt/root,sirinath/root,krafczyk/root,Y--/root,sbinet/cxx-root,thomaskeck/root,dfunke/root,Duraznos/root,buuck/root,sirinath/root,bbockelm/root,pspe/root,abhinavmoudgil95/root,karies/root,lgiommi/root,mkret2/root,BerserkerTroll/root,BerserkerTroll/root,jrtomps/root,abhinavmoudgil95/root,lgiommi/root,beniz/root,sbinet/cxx-root,BerserkerTroll/root,abhinavmoudgil95/root,jrtomps/root,zzxuanyuan/root,jrtomps/root,gbitzes/root,vukasinmilosevic/root,olifre/root,davidlt/root,gganis/root,veprbl/root,bbockelm/root,krafczyk/root,dfunke/root,sawenzel/root,zzxuanyuan/root-compressor-dummy,BerserkerTroll/root,esakellari/root,simonpf/root,mkret2/root,nilqed/root,olifre/root,georgtroska/root,perovic/root,arch1tect0r/root,krafczyk/root,Duraznos/root,CristinaCristescu/root,buuck/root,zzxuanyuan/root-compressor-dummy,karies/root,pspe/root,nilqed/root,mhuwiler/rootauto,mhuwiler/rootauto,jrtomps/root,simonpf/root,lgiommi/root,mhuwiler/rootauto,sawenzel/root,gganis/root,perovic/root,buuck/root,krafczyk/root,lgiommi/root,zzxuanyuan/root,root-mirror/root,bbockelm/root,beniz/root,esakellari/my_root_for_test,dfunke/root,sbinet/cxx-root,sbinet/cxx-root,veprbl/root,omazapa/root-old,davidlt/root,root-mirror/root,omazapa/root-old,Duraznos/root,thomaskeck/root,olifre/root,sbinet/cxx-root,mkret2/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,davidlt/root,lgiommi/root,root-mirror/root,agarciamontoro/root,arch1tect0r/root,mattkretz/root,sawenzel/root,mhuwiler/rootauto,satyarth934/root,mkret2/root,georgtroska/root,buuck/root,Duraznos/root,omazapa/root,pspe/root,veprbl/root,jrtomps/root,sbinet/cxx-root,esakellari/my_root_for_test,agarciamontoro/root,beniz/root,mattkretz/root,dfunke/root,pspe/root,pspe/root,esakellari/root,Duraznos/root,vukasinmilosevic/root,perovic/root,buuck/root,sirinath/root,davidlt/root,evgeny-boger/root,gganis/root,root-mirror/root,perovic/root,gbitzes/root,sbinet/cxx-root,mattkretz/root,satyarth934/root,agarciamontoro/root,dfunke/root,mkret2/root,root-mirror/root,davidlt/root,zzxuanyuan/root-compressor-dummy,jrtomps/root,zzxuanyuan/root-compressor-dummy,omazapa/root-old,karies/root,abhinavmoudgil95/root,omazapa/root-old,karies/root,root-mirror/root,beniz/root,esakellari/my_root_for_test,nilqed/root,mattkretz/root,abhinavmoudgil95/root,georgtroska/root,vukasinmilosevic/root,omazapa/root,davidlt/root,veprbl/root,mhuwiler/rootauto,evgeny-boger/root,gbitzes/root,mkret2/root,zzxuanyuan/root-compressor-dummy,arch1tect0r/root,sawenzel/root,mhuwiler/rootauto,root-mirror/root,lgiommi/root,omazapa/root-old,perovic/root,lgiommi/root,thomaskeck/root,abhinavmoudgil95/root,Y--/root,karies/root,arch1tect0r/root,gganis/root,esakellari/root,arch1tect0r/root,krafczyk/root,davidlt/root,beniz/root,esakellari/root,perovic/root,gganis/root,olifre/root,vukasinmilosevic/root,simonpf/root,Y--/root,karies/root,buuck/root,Duraznos/root,satyarth934/root,CristinaCristescu/root,olifre/root,bbockelm/root,agarciamontoro/root,Y--/root,beniz/root,zzxuanyuan/root,omazapa/root-old,esakellari/root,satyarth934/root,omazapa/root-old,thomaskeck/root,gganis/root,olifre/root,vukasinmilosevic/root,mkret2/root,karies/root,pspe/root,Duraznos/root,nilqed/root,omazapa/root,beniz/root,perovic/root,buuck/root,CristinaCristescu/root,simonpf/root,arch1tect0r/root,root-mirror/root,nilqed/root,karies/root,BerserkerTroll/root,nilqed/root,bbockelm/root,beniz/root,CristinaCristescu/root,mattkretz/root,mattkretz/root,dfunke/root,krafczyk/root,esakellari/my_root_for_test,olifre/root,zzxuanyuan/root-compressor-dummy,omazapa/root,esakellari/root,Y--/root,veprbl/root,CristinaCristescu/root
989101bc7493f39dd0f7da840de3940b2af323c9
test/test-file.c
test/test-file.c
#include <glib.h> #include <glib/gstdio.h> #include <uuid/uuid.h> #include <wizbit/file.h> int main() { { struct wiz_file *file; wiz_vref vref; FILE *fp; /* Open up a new versioned file and create a couple of revisions */ file = wiz_file_open(WIZ_FILE_NEW, 0, 0); fp = wiz_file_get_handle(file); fprintf(fp, "I BELIEVE"); wiz_file_snapshot(file, vref); fprintf(fp, "\nNO RLY"); wiz_file_add_parent(file, vref); wiz_file_snapshot(file, vref); fprintf(fp, "\nI CAN HAS BELIEVE!?"); wiz_file_add_parent(file, vref); wiz_file_snapshot(file, vref); wiz_file_close(file); } return 0; }
#include <glib.h> #include <glib/gstdio.h> #include <uuid/uuid.h> #include <wizbit/vref.h> #include <wizbit/file.h> int main() { { wiz_vref_hexbuffer buffer; struct wiz_file *file; wiz_vref vref; FILE *fp; /* Open up a new versioned file and create a couple of revisions */ file = wiz_file_open(WIZ_FILE_NEW, 0, 0); fp = wiz_file_get_handle(file); fprintf(fp, "I BELIEVE"); wiz_file_snapshot(file, vref); fprintf(fp, "\nNO RLY"); wiz_file_add_parent(file, vref); wiz_file_snapshot(file, vref); fprintf(fp, "\nI CAN HAS BELIEVE!?"); wiz_file_add_parent(file, vref); wiz_file_snapshot(file, vref); printf("%s\n", wiz_vref_to_hex(vref, buffer)); wiz_file_close(file); } return 0; }
Print sha1 of last commit
Print sha1 of last commit
C
lgpl-2.1
wizbit-archive/wizbit,wizbit-archive/wizbit
57f17473791703ac82add77c3d77d13d8e2dfbc4
src/tests/test_utils/draw_call_perf_utils.h
src/tests/test_utils/draw_call_perf_utils.h
// // Copyright (c) 2017 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // draw_call_perf_utils.h: // Common utilities for performance tests that need to do a large amount of draw calls. // #ifndef TESTS_TEST_UTILS_DRAW_CALL_PERF_UTILS_H_ #define TESTS_TEST_UTILS_DRAW_CALL_PERF_UTILS_H_ #include "angle_gl.h" // Returns program ID. The program is left in use and the uniforms are set to default values: // uScale = 0.5, uOffset = -0.5 GLuint SetupSimpleScaleAndOffsetProgram(); // Returns buffer ID filled with 2-component triangle coordinates. The buffer is left as bound. // Generates triangles like this with 2-component coordinates: // A // / \ // / \ // B-----C GLuint Create2DTriangleBuffer(size_t numTris, GLenum usage); // Creates an FBO with a texture color attachment. The texture is GL_RGBA and has dimensions // width/height. The FBO and texture ids are written to the out parameters. void CreateColorFBO(GLsizei width, GLsizei height, GLuint *fbo, GLuint *texture); #endif // TESTS_TEST_UTILS_DRAW_CALL_PERF_UTILS_H_
// // Copyright (c) 2017 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // draw_call_perf_utils.h: // Common utilities for performance tests that need to do a large amount of draw calls. // #ifndef TESTS_TEST_UTILS_DRAW_CALL_PERF_UTILS_H_ #define TESTS_TEST_UTILS_DRAW_CALL_PERF_UTILS_H_ #include <stddef.h> #include "angle_gl.h" // Returns program ID. The program is left in use and the uniforms are set to default values: // uScale = 0.5, uOffset = -0.5 GLuint SetupSimpleScaleAndOffsetProgram(); // Returns buffer ID filled with 2-component triangle coordinates. The buffer is left as bound. // Generates triangles like this with 2-component coordinates: // A // / \ // / \ // B-----C GLuint Create2DTriangleBuffer(size_t numTris, GLenum usage); // Creates an FBO with a texture color attachment. The texture is GL_RGBA and has dimensions // width/height. The FBO and texture ids are written to the out parameters. void CreateColorFBO(GLsizei width, GLsizei height, GLuint *fbo, GLuint *texture); #endif // TESTS_TEST_UTILS_DRAW_CALL_PERF_UTILS_H_
Fix angle_perftests compilation on Linux
Fix angle_perftests compilation on Linux BUG=angleproject:1669 Change-Id: Iec4ed1be1e17d86a095d8c35bddc48aa85effa39 Reviewed-on: https://chromium-review.googlesource.com/424967 Reviewed-by: Yuly Novikov <[email protected]> Commit-Queue: Yuly Novikov <[email protected]>
C
bsd-3-clause
ecoal95/angle,MSOpenTech/angle,ppy/angle,ecoal95/angle,ppy/angle,ecoal95/angle,ecoal95/angle,MSOpenTech/angle,ecoal95/angle,ppy/angle,MSOpenTech/angle,MSOpenTech/angle,ppy/angle
5b5828b74c758d7babffb2407464507fa004b157
test/CodeGen/frame-pointer-elim.c
test/CodeGen/frame-pointer-elim.c
// RUN: %clang -ccc-host-triple i386 -S -o - %s | \ // RUN: FileCheck --check-prefix=DEFAULT %s // DEFAULT: f0: // DEFAULT: pushl %ebp // DEFAULT: ret // DEFAULT: f1: // DEFAULT: pushl %ebp // DEFAULT: ret // RUN: %clang -ccc-host-triple i386 -S -o - -fomit-frame-pointer %s | \ // RUN: FileCheck --check-prefix=OMIT_ALL %s // OMIT_ALL: f0: // OMIT_ALL-NOT: pushl %ebp // OMIT_ALL: ret // OMIT_ALL: f1: // OMIT_ALL-NOT: pushl %ebp // OMIT_ALL: ret // RUN: %clang -ccc-host-triple i386 -S -o - -momit-leaf-frame-pointer %s | \ // RUN: FileCheck --check-prefix=OMIT_LEAF %s // OMIT_LEAF: f0: // OMIT_LEAF-NOT: pushl %ebp // OMIT_LEAF: ret // OMIT_LEAF: f1: // OMIT_LEAF: pushl %ebp // OMIT_LEAF: ret void f0() {} void f1() { f0(); }
// RUN: %clang -ccc-host-triple i386-apple-darwin -S -o - %s | \ // RUN: FileCheck --check-prefix=DARWIN %s // DARWIN: f0: // DARWIN: pushl %ebp // DARWIN: ret // DARWIN: f1: // DARWIN: pushl %ebp // DARWIN: ret // RUN: %clang -ccc-host-triple i386-pc-linux-gnu -S -o - %s | \ // RUN: FileCheck --check-prefix=LINUX %s // LINUX: f0: // LINUX-NOT: pushl %ebp // LINUX: ret // LINUX: f1: // LINUX: pushl %ebp // LINUX: ret // RUN: %clang -ccc-host-triple i386-darwin -S -o - -fomit-frame-pointer %s | \ // RUN: FileCheck --check-prefix=OMIT_ALL %s // OMIT_ALL: f0: // OMIT_ALL-NOT: pushl %ebp // OMIT_ALL: ret // OMIT_ALL: f1: // OMIT_ALL-NOT: pushl %ebp // OMIT_ALL: ret // RUN: %clang -ccc-host-triple i386-darwin -S -o - -momit-leaf-frame-pointer %s | \ // RUN: FileCheck --check-prefix=OMIT_LEAF %s // OMIT_LEAF: f0: // OMIT_LEAF-NOT: pushl %ebp // OMIT_LEAF: ret // OMIT_LEAF: f1: // OMIT_LEAF: pushl %ebp // OMIT_LEAF: ret void f0() {} void f1() { f0(); }
Fix test by fully specifying the platform.
Fix test by fully specifying the platform. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@124719 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang
01dac7991245e5426c74bf1e08337db463227980
folly/experimental/io/AsyncIoUringSocketFactory.h
folly/experimental/io/AsyncIoUringSocketFactory.h
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * 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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <folly/experimental/io/AsyncIoUringSocket.h> namespace folly { class AsyncIoUringSocketFactory { public: static bool supports(FOLLY_MAYBE_UNUSED folly::EventBase* eb) { #if __has_include(<liburing.h>) return AsyncIoUringSocket::supports(eb); #else return false; #endif } template <class TWrapper, class... Args> static TWrapper create(FOLLY_MAYBE_UNUSED Args&&... args) { #if __has_include(<liburing.h>) return TWrapper(new AsyncIoUringSocket(std::forward<Args>(args)...)); #else throw std::runtime_error("AsyncIoUringSocket not supported"); #endif } }; } // namespace folly
Add portability helper for AsyncIoUringSocket
io_uring: Add portability helper for AsyncIoUringSocket Summary: To help support platform independence, wrap up the IoUring socket in a helper factory This allows platforms without io_uring to still use this include, and just receive false for supports() Reviewed By: NiteshKant Differential Revision: D37925315 fbshipit-source-id: 5ac18a99ecdd4364377eb90db6ee652aea0182f6
C
apache-2.0
facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly
f5920cfe85c21bb1c928d4550c33a1bedf543913
arc/arc/Model/Protocols/FileSystemObject.h
arc/arc/Model/Protocols/FileSystemObject.h
// // FileSystemObject.h // arc // // Created by Jerome Cheng on 1/4/13. // Copyright (c) 2013 nus.cs3217. All rights reserved. // #import <Foundation/Foundation.h> @protocol FileSystemObject <NSObject> @required // The name of this object. @property (strong, nonatomic) NSString *name; // This should be able to be used to reconstruct whatever is needed // to actually access the file/folder. @property (strong, nonatomic) NSString *identifier; // The parent of this object. @property (weak, nonatomic) id<FileSystemObject> parent; // Whether or not this object can be removed. @property BOOL isRemovable; // The size of this object. Folders should return the number of objects // within, Files their size in bytes. @property float size; // Initialises this object with the given name, path, and parent. - (id)initWithName:(NSString *)name path:(NSString *)path parent:(id<FileSystemObject>)parent; // Returns the contents of this object. - (id<NSObject>)contents; // Removes this object. // Returns YES if successful, NO otherwise. // If NO is returned, the state of the object or its contents is unstable. - (BOOL)remove; @end
// // FileSystemObject.h // arc // // Created by Jerome Cheng on 1/4/13. // Copyright (c) 2013 nus.cs3217. All rights reserved. // #import <Foundation/Foundation.h> @protocol FileSystemObject <NSObject> @required // The name of this object. @property (strong, nonatomic) NSString *name; // This should be able to be used to reconstruct whatever is needed // to actually access the file/folder. @property (strong, nonatomic) NSString *identifier; // The parent of this object. @property (weak, nonatomic) id<FileSystemObject> parent; // Whether or not this object can be removed. @property BOOL isRemovable; // The size of this object. Folders should return the number of objects // within, Files their size in bytes. @property float size; // Returns the contents of this object. - (id<NSObject>)contents; @optional // Removes this object. // Returns YES if successful, NO otherwise. // If NO is returned, the state of the object or its contents is unstable. - (BOOL)remove; // Initialises this object with the given name, path, and parent. - (id)initWithName:(NSString *)name path:(NSString *)path parent:(id<FileSystemObject>)parent; @end
Make remove and initWithName:path:parent optional.
Make remove and initWithName:path:parent optional.
C
mit
BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc
6cc8fef4cbeb0b65d225d7b599c75eb5b40a6534
fs/xfs/linux-2.6/xfs_ioctl32.h
fs/xfs/linux-2.6/xfs_ioctl32.h
/* * Copyright (c) 2004-2005 Silicon Graphics, Inc. * All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __XFS_IOCTL32_H__ #define __XFS_IOCTL32_H__ extern long xfs_file_compat_ioctl(struct file *, unsigned, unsigned long); extern long xfs_file_compat_invis_ioctl(struct file *, unsigned, unsigned); #endif /* __XFS_IOCTL32_H__ */
/* * Copyright (c) 2004-2005 Silicon Graphics, Inc. * All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __XFS_IOCTL32_H__ #define __XFS_IOCTL32_H__ extern long xfs_file_compat_ioctl(struct file *, unsigned, unsigned long); extern long xfs_file_compat_invis_ioctl(struct file *, unsigned, unsigned long); #endif /* __XFS_IOCTL32_H__ */
Fix compiler warning from xfs_file_compat_invis_ioctl prototype.
[XFS] Fix compiler warning from xfs_file_compat_invis_ioctl prototype. SGI-PV: 904196 SGI-Modid: xfs-linux-melb:xfs-kern:25509a Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Nathan Scott <[email protected]>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas
709c00cf6e88a1acfe2b27e61c9dc5f7a71e49b9
test/CodeGen/unwind-attr.c
test/CodeGen/unwind-attr.c
// RUN: clang -fexceptions -emit-llvm -o - %s | grep "@foo() {" | count 1 // RUN: clang -emit-llvm -o - %s | grep "@foo() nounwind {" | count 1 int foo(void) { }
Add test case for -fexceptions
Add test case for -fexceptions git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@54647 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang
2be509c97fdc2cfc6771d97f346ff5e4c5c85089
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k2"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k3"
Update driver version to 5.03.00-k3
[SCSI] qla4xxx: Update driver version to 5.03.00-k3 Signed-off-by: Vikas Chaudhary <[email protected]> Signed-off-by: James Bottomley <[email protected]>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs
8a075523ed3a80b5c64022de5d28dfcc2d694f64
RecordingApp/app/src/tests/header_analyzer.c
RecordingApp/app/src/tests/header_analyzer.c
#include <stdio.h> #include <stdlib.h> int main(){ unsigned char header[44]; FILE * wavfile; wavfile = fopen("test.wav", "r"); for(int i = 0; i < 44; i++){ fscanf(wavfile, "%c", &header[i]); } fclose(wavfile); for(int i = 0; i < 44; i++){ printf("%x\n", header[i]); } return 0; }
Add wave header analyzer test
Add wave header analyzer test This code will analyze the header of a wav file to determine if the header is correct.
C
mit
WycliffeAssociates/translationRecorder,WycliffeAssociates/translationRecorder,WycliffeAssociates/translationRecorder,WycliffeAssociates/translationRecorder,WycliffeAssociates/translationRecorder,WycliffeAssociates/translationRecorder
e4c467b78d3f1de71a2b4a71fcf057880b2a22cf
tensorflow/core/config/flag_defs.h
tensorflow/core/config/flag_defs.h
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_CORE_CONFIG_FLAG_DEFS_H_ #define TENSORFLOW_CORE_CONFIG_FLAG_DEFS_H_ #include "tensorflow/core/config/flags.h" namespace tensorflow { namespace flags { class Flags { public: // Test only flags. See flags_test.cc for example usage. TF_DECLARE_FLAG(test_only_experiment_1, true, "Test only experiment 1."); TF_DECLARE_FLAG(test_only_experiment_2, false, "Test only experiment 2."); // Declare flags below here. // LINT.IfChange TF_DECLARE_FLAG(graph_building_optimization, false, "Optimize graph building for faster tf.function tracing."); // LINT.ThenChange(//tensorflow/core/config/flag_defs.h) }; Flags& Global(); } // namespace flags } // namespace tensorflow #endif // TENSORFLOW_CORE_CONFIG_FLAG_DEFS_H_
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_CORE_CONFIG_FLAG_DEFS_H_ #define TENSORFLOW_CORE_CONFIG_FLAG_DEFS_H_ #include "tensorflow/core/config/flags.h" namespace tensorflow { namespace flags { class Flags { public: // Test only flags. See flags_test.cc for example usage. TF_DECLARE_FLAG(test_only_experiment_1, true, "Test only experiment 1."); TF_DECLARE_FLAG(test_only_experiment_2, false, "Test only experiment 2."); // Declare flags below here. // LINT.IfChange TF_DECLARE_FLAG(graph_building_optimization, false, "Optimize graph building for faster tf.function tracing."); // LINT.ThenChange(//tensorflow/core/config/flags_api_wrapper.cc) }; Flags& Global(); } // namespace flags } // namespace tensorflow #endif // TENSORFLOW_CORE_CONFIG_FLAG_DEFS_H_
Update the files referred to by the linter.
Update the files referred to by the linter. PiperOrigin-RevId: 438129536
C
apache-2.0
gautam1858/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once
792400bec383ab615bcf24d5bee3c1a4294f9e1f
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 81 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 82 #endif
Update Skia milestone to 82
Update Skia milestone to 82 Change-Id: Ifeaa877da83a42cceb04fe286bb2462190b249f9 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/267762 Reviewed-by: Heather Miller <[email protected]> Commit-Queue: Heather Miller <[email protected]>
C
bsd-3-clause
aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia
28e721fd5907dd7807f35bccc48b177afdc2b2f9
main.c
main.c
#include <stdio.h> #include <stdlib.h> #include "turing.h" #define MAX_PROGRAM_LENGTH 32 int main() { int status; Turing *turing; status = 0; turing = init_turing(); status = execute_instruction(turing, "0 110\n1 110"); if (TURING_ERROR == status) { fprintf(stderr, "Exiting\n"); return 1; } else if (TURING_HALT) { printf("Program reached halt state!\n"); } free_turing(turing); return 0; }
#include <stdio.h> #include <stdlib.h> #include "turing.h" #define MAX_PROGRAM_LENGTH 32 #define turing_try(statement) status = statement;\ if (TURING_ERROR == status) {\ return 1;\ } int main() { int status; Turing *turing; status = 0; turing = init_turing(); status = execute_instruction(turing, "0 110\n1 110"); if (TURING_ERROR == status) { fprintf(stderr, "Exiting\n"); return 1; } else if (TURING_HALT) { printf("Program reached halt state!\n"); } free_turing(turing); return 0; }
Add turing_try function for handling errors
Add turing_try function for handling errors
C
mit
mindriot101/turing-machine
1f1004a05c6c8a933a4c59c9d35c6cdf6d67a28b
the-blue-alliance-ios/TBAViewController.h
the-blue-alliance-ios/TBAViewController.h
// // TBAViewController.h // the-blue-alliance // // Created by Zach Orr on 4/28/16. // Copyright © 2016 The Blue Alliance. All rights reserved. // #import <UIKit/UIKit.h> @class TBAPersistenceController, TBARefreshViewController; @interface TBAViewController : UIViewController @property (nonnull, readonly) TBAPersistenceController *persistenceController; @property (nullable, nonatomic, strong) NSArray<TBARefreshViewController *> *refreshViewControllers; @property (nullable, nonatomic, strong) NSArray<UIView *> *containerViews; @property (nullable, nonatomic, strong) IBOutlet UISegmentedControl *segmentedControl; @property (nullable, nonatomic, strong) IBOutlet UIView *segmentedControlView; @property (nullable, nonatomic, strong) IBOutlet UILabel *navigationTitleLabel; @property (nullable, nonatomic, strong) IBOutlet UILabel *navigationSubtitleLabel; - (void)showView:(nonnull UIView *)showView; - (void)updateInterface; - (void)cancelRefreshes; @end
// // TBAViewController.h // the-blue-alliance // // Created by Zach Orr on 4/28/16. // Copyright © 2016 The Blue Alliance. All rights reserved. // #import <UIKit/UIKit.h> @class TBAPersistenceController, TBARefreshViewController; @interface TBAViewController : UIViewController @property (nonnull, readonly) TBAPersistenceController *persistenceController; @property (nullable, nonatomic, strong) NSArray<TBARefreshViewController *> *refreshViewControllers; @property (nullable, nonatomic, strong) NSArray<UIView *> *containerViews; @property (nullable, nonatomic, strong) IBOutlet UISegmentedControl *segmentedControl; @property (nullable, nonatomic, strong) IBOutlet UIView *segmentedControlView; @property (nullable, nonatomic, strong) IBOutlet UILabel *navigationTitleLabel; @property (nullable, nonatomic, strong) IBOutlet UILabel *navigationSubtitleLabel; - (void)cancelRefreshes; @end
Remove methods from TBAVC that we no longer want to expose publically
Remove methods from TBAVC that we no longer want to expose publically
C
mit
the-blue-alliance/the-blue-alliance-ios,the-blue-alliance/the-blue-alliance-ios
0b32bf8a2fb7ace1d48681a00445aaf446b3bc0b
support/c/idris_directory.h
support/c/idris_directory.h
#ifndef __IDRIS_DIRECTORY_H #define __IDRIS_DIRECTORY_H char* idris2_currentDirectory(); int idris2_changeDir(char* dir); int idris2_createDir(char* dir); void* idris2_openDir(char* dir); void idris2_closeDIr(void* d); int idris2_removeDir(char* path); char* idris2_nextDirEntry(void* d); #endif
#ifndef __IDRIS_DIRECTORY_H #define __IDRIS_DIRECTORY_H char* idris2_currentDirectory(); int idris2_changeDir(char* dir); int idris2_createDir(char* dir); void* idris2_openDir(char* dir); void idris2_closeDir(void* d); int idris2_removeDir(char* path); char* idris2_nextDirEntry(void* d); #endif
Fix forward declaration of idris_closeDir
Fix forward declaration of idris_closeDir
C
bsd-3-clause
mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm
b701d2ce0e96280713b84192aed48fb87d609d94
mud/home/Http/lib/form/thing.c
mud/home/Http/lib/form/thing.c
inherit "/lib/string/sprint"; inherit "../support"; static string thing_form(object obj) { string buffer; buffer = "<p>Fun little boxes:</p>\n"; buffer += "<form action=\"object.lpc?obj=" + object2string(obj) + "\" method=\"post\">\n"; buffer += "Mass: <input type=\"text\" name=\"mass\" value=\"" + mixed_sprint(obj->query_mass()) + "\"/>\n"; buffer += "<input type=\"submit\" value=\"change mass\" />\n"; buffer += "</form>\n"; buffer += "<form action=\"object.lpc?obj=" + object2string(obj) + "\" method=\"post\">\n"; buffer += "Local mass: <input type=\"text\" name=\"localmass\" value=\"" + mixed_sprint(obj->query_local_mass()) + "\"/>\n"; buffer += "<input type=\"submit\" value=\"change local mass\" />\n"; buffer += "</form>\n"; return oinfobox("Configuration", 2, buffer); }
inherit "/lib/string/sprint"; inherit "../support"; static string thing_form(object obj) { string buffer; buffer = "<p>Fun little boxes:</p>\n"; buffer += "<form action=\"object.lpc?obj=" + object2string(obj) + "\" method=\"post\">\n"; buffer += "Local mass: <input type=\"text\" name=\"localmass\" value=\"" + mixed_sprint(obj->query_local_mass()) + "\"/>\n"; buffer += "<input type=\"submit\" value=\"change local mass\" />\n"; buffer += "</form>\n"; return oinfobox("Configuration", 2, buffer); }
Remove http form for mass, only manipulate local mass
Remove http form for mass, only manipulate local mass
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
9c593e10c013d0000c3b61e6a0ee97a89418eff9
ObjectiveRocks/RocksDBCuckooTableOptions.h
ObjectiveRocks/RocksDBCuckooTableOptions.h
// // RocksDBCuckooTableOptions.h // ObjectiveRocks // // Created by Iska on 04/01/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> @interface RocksDBCuckooTableOptions : NSObject @property (nonatomic, assign) double hashTableRatio; @property (nonatomic, assign) uint32_t maxSearchDepth; @property (nonatomic, assign) uint32_t cuckooBlockSize; @property (nonatomic, assign) BOOL identityAsFirstHash; @property (nonatomic, assign) BOOL useModuleHash; @end
// // RocksDBCuckooTableOptions.h // ObjectiveRocks // // Created by Iska on 04/01/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> @interface RocksDBCuckooTableOptions : NSObject /** @brief Determines the utilization of hash tables. Smaller values result in larger hash tables with fewer collisions. */ @property (nonatomic, assign) double hashTableRatio; /** @brief A property used by builder to determine the depth to go to to search for a path to displace elements in case of collision. Higher values result in more efficient hash tables with fewer lookups but take more time to build. */ @property (nonatomic, assign) uint32_t maxSearchDepth; /** @brief In case of collision while inserting, the builder attempts to insert in the next `cuckooBlockSize` locations before skipping over to the next Cuckoo hash function. This makes lookups more cache friendly in case of collisions. */ @property (nonatomic, assign) uint32_t cuckooBlockSize; /** @brief If this option is enabled, user key is treated as uint64_t and its value is used as hash value directly. This option changes builder's behavior. Reader ignore this option and behave according to what specified in table property. */ @property (nonatomic, assign) BOOL identityAsFirstHash; /** @brief If this option is set to true, module is used during hash calculation. This often yields better space efficiency at the cost of performance. If this optino is set to false, # of entries in table is constrained to be power of two, and bit and is used to calculate hash, which is faster in general. */ @property (nonatomic, assign) BOOL useModuleHash; @end
Add source code documentation for the RocksDB Cuckoo Table Options class
Add source code documentation for the RocksDB Cuckoo Table Options class
C
mit
iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks
0e3e00a1838d8e0f94001f1e83dc477023c8ea8c
src/locking/lock_driver_lockd.h
src/locking/lock_driver_lockd.h
/* * lock_driver_lockd.h: Locking for domain lifecycle operations * * Copyright (C) 2010-2011 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * <http://www.gnu.org/licenses/>. * */ #ifndef __VIR_LOCK_DRIVER_LOCKD_H__ # define __VIR_LOCK_DRIVER_LOCKD_H__ enum virLockSpaceProtocolAcquireResourceFlags { VIR_LOCK_SPACE_PROTOCOL_ACQUIRE_RESOURCE_SHARED = 1, VIR_LOCK_SPACE_PROTOCOL_ACQUIRE_RESOURCE_AUTOCREATE = 2, }; #endif /* __VIR_LOCK_DRIVER_LOCKD_H__ */
/* * lock_driver_lockd.h: Locking for domain lifecycle operations * * Copyright (C) 2010-2011 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * <http://www.gnu.org/licenses/>. * */ #ifndef __VIR_LOCK_DRIVER_LOCKD_H__ # define __VIR_LOCK_DRIVER_LOCKD_H__ enum virLockSpaceProtocolAcquireResourceFlags { VIR_LOCK_SPACE_PROTOCOL_ACQUIRE_RESOURCE_SHARED = (1 << 0), VIR_LOCK_SPACE_PROTOCOL_ACQUIRE_RESOURCE_AUTOCREATE = (1 << 1), }; #endif /* __VIR_LOCK_DRIVER_LOCKD_H__ */
Use bit shift for flag values not constant values.
locking: Use bit shift for flag values not constant values. So far it hasn't bitten us, but if the next value wasn't 4, then the logic used to check flag bits would have issues.
C
lgpl-2.1
datto/libvirt,eskultety/libvirt,andreabolognani/libvirt,libvirt/libvirt,jardasgit/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,libvirt/libvirt,nertpinx/libvirt,zippy2/libvirt,taget/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,olafhering/libvirt,eskultety/libvirt,datto/libvirt,zippy2/libvirt,zippy2/libvirt,datto/libvirt,taget/libvirt,olafhering/libvirt,nertpinx/libvirt,olafhering/libvirt,crobinso/libvirt,jardasgit/libvirt,zippy2/libvirt,crobinso/libvirt,jfehlig/libvirt,andreabolognani/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,taget/libvirt,fabianfreyer/libvirt,eskultety/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,eskultety/libvirt,nertpinx/libvirt,nertpinx/libvirt,eskultety/libvirt,libvirt/libvirt,VenkatDatta/libvirt,crobinso/libvirt,taget/libvirt,jardasgit/libvirt,libvirt/libvirt,VenkatDatta/libvirt,crobinso/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,olafhering/libvirt,datto/libvirt,jardasgit/libvirt,taget/libvirt,VenkatDatta/libvirt,datto/libvirt,jfehlig/libvirt,jfehlig/libvirt
24ee156a39f8c01c1d64aeacca1de7bcfae0727b
2015-2016/G/21/07/is_prime.c
2015-2016/G/21/07/is_prime.c
#include <stdio.h> int is_prime(int *); int main() { int answer; int number; int *refernce_of_a = &number; scanf("%d",refernce_of_a); answer = is_prime(&number); printf("%d",answer); } int is_prime(int *numb) { int counter; for(counter = 0; counter <= *numb/2; counter++) { if(counter * counter == *numb) { return 0; } } return 1; }
Add folder with is prime program Krastian Tomov No 21 10g
Add folder with is prime program Krastian Tomov No 21 10g
C
mit
elsys/po-classwork
b8515c20948319006a133f8ca121d780e725d222
milestone2/arrayIndexing.c
milestone2/arrayIndexing.c
extern void print_int(int i); extern void print_string(char c[]); int return1(void) { return 1; } void main(void){ int myInt; int intArr[3]; /* need assignToArry to work for this to work */ intArr[0] = 999; intArr[1] = 100; intArr[2] = 200; /* test index from a variable */ myInt = 1; print_string("should get 100\ngot: "); print_int(intArr[myInt]); print_string("\n\n"); /* test index from a function call */ print_string("should get 100\ngot: "); print_int(intArr[return1()]); print_string("\n\n"); /* test index from a complex expr */ print_string("should get 100\ngot: "); print_int(intArr[return1() + 4 / 8]); print_string("\n\n"); intArr[return1()] = 77; print_string("should get 77\ngot: "); print_int(intArr[1]); print_string("\n\n"); }
Add test case for indexing into an array, since the array index can be an expression
Add test case for indexing into an array, since the array index can be an expression
C
unlicense
mgaut72/cmm-examples,mgaut72/cmm-examples
526f01761e0c9334853aeaffb8d6c5b5984c96da
src/plugins/mini/testmod_mini.c
src/plugins/mini/testmod_mini.c
/** * @file * * @brief Tests for mini plugin * * @copyright BSD License (see doc/LICENSE.md or http://www.libelektra.org) * */ #include "values.h" #include <stdlib.h> #include <string.h> #include <kdbconfig.h> #include <tests_plugin.h> static void test_basics () { printf ("• Test basic functionality of plugin\n"); Key * parentKey = keyNew ("system/elektra/modules/mini", KEY_END); KeySet * conf = ksNew (0, KS_END); PLUGIN_OPEN ("mini"); KeySet * ks = ksNew (0, KS_END); succeed_if (plugin->kdbGet (plugin, ks, parentKey) == KEYSET_MODIFIED, "Could not retrieve plugin contract"); keyDel (parentKey); ksDel (ks); PLUGIN_CLOSE (); } int main (int argc, char ** argv) { printf ("mINI Tests 🚙\n"); printf ("==============\n\n"); init (argc, argv); test_basics (); printf ("\nResults: %d Test%s done — %d error%s.\n", nbTest, nbTest != 1 ? "s" : "", nbError, nbError != 1 ? "s" : ""); return nbError; }
/** * @file * * @brief Tests for mini plugin * * @copyright BSD License (see doc/LICENSE.md or http://www.libelektra.org) * */ /* -- Imports --------------------------------------------------------------------------------------------------------------------------- */ #include "values.h" #include <stdlib.h> #include <string.h> #include <kdbconfig.h> #include <tests_plugin.h> /* -- Functions ------------------------------------------------------------------------------------------------------------------------- */ static void test_basics () { printf ("• Test basic functionality of plugin\n"); Key * parentKey = keyNew ("system/elektra/modules/mini", KEY_END); KeySet * conf = ksNew (0, KS_END); PLUGIN_OPEN ("mini"); KeySet * ks = ksNew (0, KS_END); succeed_if (plugin->kdbGet (plugin, ks, parentKey) == KEYSET_MODIFIED, "Could not retrieve plugin contract"); keyDel (parentKey); ksDel (ks); PLUGIN_CLOSE (); } /* -- Main ------------------------------------------------------------------------------------------------------------------------------ */ int main (int argc, char ** argv) { printf ("mINI Tests 🚙\n"); printf ("==============\n\n"); init (argc, argv); test_basics (); printf ("\nResults: %d Test%s done — %d error%s.\n", nbTest, nbTest != 1 ? "s" : "", nbError, nbError != 1 ? "s" : ""); return nbError; }
Use comments to structure file
mINI: Use comments to structure file
C
bsd-3-clause
e1528532/libelektra,e1528532/libelektra,e1528532/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,mpranj/libelektra,mpranj/libelektra,e1528532/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,petermax2/libelektra,petermax2/libelektra,BernhardDenner/libelektra,petermax2/libelektra,e1528532/libelektra,petermax2/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,e1528532/libelektra,BernhardDenner/libelektra,petermax2/libelektra,e1528532/libelektra,petermax2/libelektra,petermax2/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra
5d6bcc40ec64c8780b6c87a740bae34381844f5d
src/qtpromise/qpromisehelpers.h
src/qtpromise/qpromisehelpers.h
#ifndef QTPROMISE_QPROMISEHELPERS_H #define QTPROMISE_QPROMISEHELPERS_H // QtPromise #include "qpromise_p.h" namespace QtPromise { template <typename T> typename QtPromisePrivate::PromiseDeduce<T>::Type qPromise(T&& value) { using namespace QtPromisePrivate; using Promise = typename PromiseDeduce<T>::Type; return Promise([&]( const QPromiseResolve<typename Promise::Type>& resolve, const QPromiseReject<typename Promise::Type>& reject) { PromiseFulfill<T>::call(std::forward<T>(value), resolve, reject); }); } QPromise<void> qPromise() { return QPromise<void>([]( const QPromiseResolve<void>& resolve) { resolve(); }); } template <typename T> QPromise<QVector<T> > qPromiseAll(const QVector<QPromise<T> >& promises) { return QPromise<T>::all(promises); } QPromise<void> qPromiseAll(const QVector<QPromise<void> >& promises) { return QPromise<void>::all(promises); } } // namespace QtPromise #endif // QTPROMISE_QPROMISEHELPERS_H
#ifndef QTPROMISE_QPROMISEHELPERS_H #define QTPROMISE_QPROMISEHELPERS_H // QtPromise #include "qpromise_p.h" namespace QtPromise { template <typename T> static inline typename QtPromisePrivate::PromiseDeduce<T>::Type qPromise(T&& value) { using namespace QtPromisePrivate; using Promise = typename PromiseDeduce<T>::Type; return Promise([&]( const QPromiseResolve<typename Promise::Type>& resolve, const QPromiseReject<typename Promise::Type>& reject) { PromiseFulfill<T>::call(std::forward<T>(value), resolve, reject); }); } static inline QPromise<void> qPromise() { return QPromise<void>([]( const QPromiseResolve<void>& resolve) { resolve(); }); } template <typename T> static inline QPromise<QVector<T> > qPromiseAll(const QVector<QPromise<T> >& promises) { return QPromise<T>::all(promises); } static inline QPromise<void> qPromiseAll(const QVector<QPromise<void> >& promises) { return QPromise<void>::all(promises); } } // namespace QtPromise #endif // QTPROMISE_QPROMISEHELPERS_H
Fix helpers multiple defined symbols
Fix helpers multiple defined symbols
C
mit
simonbrunel/qtpromise
9e1fcb22a6d863b7f804b778d9ae85fbdf616f1b
test/small1/const-struct-init.c
test/small1/const-struct-init.c
struct inner { int field; }; struct outer { const struct inner inner; }; int main() { struct outer outer = { { 0 } }; return outer.inner.field; }
Add a test case showing that CIL forgets to remove the "const" qualifier on structures within structures. When it subsequently converts initializations of such structures into assignments, the resulting C code appears to be assigning into a const field. That produces warnings or errors from the C compiler.
Add a test case showing that CIL forgets to remove the "const" qualifier on structures within structures. When it subsequently converts initializations of such structures into assignments, the resulting C code appears to be assigning into a const field. That produces warnings or errors from the C compiler.
C
bsd-3-clause
samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c
342b576de5cc3fd0aad536171d68b414ffc0fc3d
libc/sys_io.c
libc/sys_io.c
#include <stdint.h> void outb(uint16_t port, uint8_t value) { asm volatile ("outb %1, %0" : : "dN" (port), "a" (value)); } unsigned char inb(uint16_t port) { unsigned char ret; asm volatile ("inb %1, %0" : "=a" (ret) : "dN" (port)); return ret; }
#include <stdint.h> void outb(uint16_t port, uint8_t value) { asm volatile ("outb %1, %0" : : "dN" (port), "a" (value)); } unsigned char inb(uint16_t port) { unsigned char ret; asm volatile ("inb %1, %0" : "=a" (ret) : "dN" (port)); return ret; } void outl(uint16_t port, uint32_t value) { asm volatile ("outl %1, %0" : : "dN" (port), "a" (value)); } uint32_t inl(uint16_t port) { uint32_t ret; asm volatile ("inl %1, %0" : "=a" (ret) : "dN" (port)); return ret; }
Add inl and outl functions
Add inl and outl functions
C
mit
simon-andrews/norby,simon-andrews/norby,simon-andrews/norby
2f36de17a4ea00909f84819882cd5f5237ddab59
src/writer/verilog/axi/master_controller.h
src/writer/verilog/axi/master_controller.h
// -*- C++ -*- #ifndef _writer_verilog_axi_master_controller_h_ #define _writer_verilog_axi_master_controller_h_ #include "writer/verilog/axi/axi_controller.h" namespace iroha { namespace writer { namespace verilog { namespace axi { class MasterController : public AxiController { public: MasterController(const IResource &res, bool reset_polarity); ~MasterController(); void Write(ostream &os); static void AddPorts(Module *mod, bool r, bool w, string *s); private: void OutputFsm(ostream &os); void ReaderFsm(ostream &os); void WriterFsm(ostream &os); unique_ptr<Ports> ports_; bool r_, w_; int burst_len_; }; } // namespace axi } // namespace verilog } // namespace writer } // namespace iroha #endif // _writer_verilog_axi_master_controller_h_
// -*- C++ -*- #ifndef _writer_verilog_axi_master_controller_h_ #define _writer_verilog_axi_master_controller_h_ #include "writer/verilog/axi/axi_controller.h" namespace iroha { namespace writer { namespace verilog { namespace axi { class MasterController : public AxiController { public: MasterController(const IResource &res, bool reset_polarity); ~MasterController(); void Write(ostream &os); static void AddPorts(Module *mod, bool r, bool w, string *s); private: void OutputFsm(ostream &os); void ReaderFsm(ostream &os); void WriterFsm(ostream &os); bool r_, w_; int burst_len_; }; } // namespace axi } // namespace verilog } // namespace writer } // namespace iroha #endif // _writer_verilog_axi_master_controller_h_
Fix wrong member declaration which shadows parent class.
Fix wrong member declaration which shadows parent class.
C
bsd-3-clause
nlsynth/iroha,nlsynth/iroha
0286596dd6eee2b3573722716af45395314e4246
lib/arch/x86_64/defs.h
lib/arch/x86_64/defs.h
#define JOIN_(a, b) a ## b #define JOIN(a, b) JOIN_(a, b) #define SYMBL(x) JOIN(__USER_LABEL_PREFIX__, x) #if defined(__linux__) # define SECTION_NAME_TEXT .text # define SECTION_NAME_BSS .bss #elif defined(__DARWIN__) # define SECTION_NAME_TEXT __TEXT,__text # define SECTION_NAME_BSS __BSS,__bss #else # error unknown target #endif
#define JOIN_(a, b) a ## b #define JOIN(a, b) JOIN_(a, b) #define SYMBL(x) JOIN(__USER_LABEL_PREFIX__, x) #if defined(__linux__) # define SECTION_NAME_TEXT .text # define SECTION_NAME_BSS .bss .section .note.GNU-stack,"",@progbits #elif defined(__DARWIN__) # define SECTION_NAME_TEXT __TEXT,__text # define SECTION_NAME_BSS __BSS,__bss #else # error unknown target #endif
Enable noexecstack for local-lib builds
Enable noexecstack for local-lib builds
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
f3520bda1e026f251e4772983bd307b2e72a5eb2
fibmap/fibmap.c
fibmap/fibmap.c
/* * fibmap - List blocks of a file * * Written in 2012 by Prashant P Shah <[email protected]> * * To the extent possible under law, the author(s) have dedicated * all copyright and related and neighboring rights to this software * to the public domain worldwide. This software is distributed * without any warranty. * * You should have received a copy of the CC0 Public Domain Dedication * along with this software. * If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <linux/fs.h> #include <assert.h> int main(int argc, char **argv) { int fd, i, block, blocksize, blkcnt; struct stat st; assert(argv[1] != NULL); fd = open(argv[1], O_RDONLY); if (fd <= 0) { perror("error opening file"); goto end; } if (ioctl(fd, FIGETBSZ, &blocksize)) { perror("FIBMAP ioctl failed"); goto end; } if (fstat(fd, &st)) { perror("fstat error"); goto end; } blkcnt = (st.st_size + blocksize - 1) / blocksize; printf("File %s size %d blocks %d blocksize %d\n", argv[1], (int)st.st_size, blkcnt, blocksize); for (i = 0; i < blkcnt; i++) { block = i; if (ioctl(fd, FIBMAP, &block)) { perror("FIBMAP ioctl failed"); } printf("%3d %10d\n", i, block); } end: close(fd); return 0; }
Add program to list blocks of a file
Add program to list blocks of a file Signed-off-by: Prashant Shah <[email protected]>
C
cc0-1.0
prashants/c
3b09a6a7faae7363ffc90749e041788a17559f0f
src/test/tester.c
src/test/tester.c
#include <stdio.h> #include <string.h> #include <efivar.h> #define TEST_GUID EFI_GUID(0x84be9c3e,0x8a32,0x42c0,0x891c,0x4c,0xd3,0xb0,0x72,0xbe,0xcc) static void clean_test_environment(void) { efi_del_variable(TEST_GUID, "small"); efi_del_variable(TEST_GUID, "large"); } #define report_error(str) ({fprintf(stderr, str); goto fail;}) int main(void) { if (!efi_variables_supported()) { printf("UEFI variables not supported on this machine.\n"); return 0; } clean_test_environment(); int ret = 1; char smallvalue[] = "smallvalue"; int rc; rc = efi_set_variable(TEST_GUID, "small", smallvalue, strlen(smallvalue)+1, EFI_VARIABLE_RUNTIME_ACCESS); if (rc < 0) report_error("small value test failed: %m\n"); ret = 0; fail: return ret; }
#include <stdio.h> #include <string.h> #include <efivar.h> #define TEST_GUID EFI_GUID(0x84be9c3e,0x8a32,0x42c0,0x891c,0x4c,0xd3,0xb0,0x72,0xbe,0xcc) static void clean_test_environment(void) { efi_del_variable(TEST_GUID, "small"); efi_del_variable(TEST_GUID, "large"); } #define report_error(str) ({fprintf(stderr, str); goto fail;}) int main(void) { if (!efi_variables_supported()) { printf("UEFI variables not supported on this machine.\n"); return 0; } clean_test_environment(); int ret = 1; char smallvalue[] = "smallvalue"; int rc; rc = efi_set_variable(TEST_GUID, "small", smallvalue, strlen(smallvalue)+1, EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE); if (rc < 0) report_error("small value test failed: %m\n"); ret = 0; fail: return ret; }
Use flags that will actually work when testing.
Use flags that will actually work when testing.
C
lgpl-2.1
rhboot/efivar,rhinstaller/efivar,android-ia/vendor_intel_external_efivar,rhinstaller/efivar,rhboot/efivar,CyanogenMod/android_vendor_intel_external_efivar,vathpela/efivar-devel
f15b376345a4480513880390a3e05ed77fd66ef8
test/tools/llvm-symbolizer/print_context.c
test/tools/llvm-symbolizer/print_context.c
// REQUIRES: x86_64-linux // RUN: %host_cc -O0 -g %s -o %t 2>&1 // RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s #include <stdio.h> int inc(int a) { return a + 1; } int main() { printf("%p\n", inc); return 0; } // CHECK: inc // CHECK: print_context.c:7 // CHECK: 5 : #include // CHECK: 6 : // CHECK: 7 >: int inc // CHECK: 8 : return // CHECK: 9 : }
// REQUIRES: x86_64-linux // RUN: %host_cc -O0 -g %s -o %t 2>&1 // RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s // CHECK: inc // CHECK: print_context.c:[[@LINE+9]] // CHECK: [[@LINE+6]] : #include // CHECK: [[@LINE+6]] : // CHECK: [[@LINE+6]] >: int inc // CHECK: [[@LINE+6]] : return // CHECK: [[@LINE+6]] : } #include <stdio.h> int inc(int a) { return a + 1; } int main() { printf("%p\n", inc); return 0; }
Make test robust to changes in prefix/avoid hardcoded line numbers
Make test robust to changes in prefix/avoid hardcoded line numbers git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@309516 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 429be9362d598d3b7b3ea6e19b1be2dca867aa0a)
C
apache-2.0
apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm
036120761c2a02ef426b7d9b81675f642ffc12bf
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_GL_CUSTOM_SETUP_HEADER "gl/GrGLConfig_chrome.h" #define GR_TEST_UTILS 1 #define SKIA_DLL #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024) #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024) #define SK_USE_FREETYPE_EMBOLDEN // Legacy flags #define SK_IGNORE_GPU_DITHER #define SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS #define SK_LEGACY_SWEEP_GRADIENT #define SK_SUPPORT_DEPRECATED_CLIPOPS #define SK_SUPPORT_LEGACY_BILERP_IGNORING_HACK // Needed until we fix https://bug.skia.org/2440 #define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG #define SK_SUPPORT_LEGACY_DRAWFILTER #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER #define SK_SUPPORT_LEGACY_GRADIENT_DITHERING #define SK_SUPPORT_LEGACY_SHADER_ISABITMAP #define SK_SUPPORT_LEGACY_TILED_BITMAPS #endif // SkUserConfigManual_DEFINED
Add file to replace android_framework_defines.gni
Add file to replace android_framework_defines.gni SkUserConfig.h will continue to be generated by gn_to_bp.py, and it will include all the #defines that were pulled from our GN files. But it will also include this new file, SkUserConfigManual.h, which contains all the #defines that were previously stored in gn_to_bp.py and android_framework_defines.gni. This allows us Does not actually change anything until https://skia-review.googlesource.com/c/22072/ lands. (It still should not change the build in practice, since this file contains the defines that are no longer added to SkUserConfig.h.) Test: No test necessary. Bug: 63429612 Change-Id: I9f6e85ad6d714c3763136303faf7564c3a9cc933
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia
e4d4544dd5ebc59f9527f00cdd2494075b77b52e
include/graph.h
include/graph.h
#ifndef GRAPH_H #define GRAPH_H #include <unordered_map> #include <unordered_set> template<typename T> class Graph { public: void connect(const T &a, const T &b); const std::unordered_set<T>& get_vertex_ids() const; inline const std::unordered_set<T>& get_neighbors(const T &vertex_id) const { return vertices_.at(vertex_id)->adjacent_ids_; } ~Graph(); private: struct Vertex { T id_; std::unordered_set<Vertex*> adjacent_; std::unordered_set<T> adjacent_ids_; Vertex(T id) { id_ = id; } bool has_neighbor(Vertex *v) { return adjacent_.find(v) != adjacent_.end(); } void add_neighbor(Vertex* v) { adjacent_.insert(v); adjacent_ids_.insert(v->id_); } }; std::unordered_map<T, Vertex*> vertices_; std::unordered_set<T> vertex_ids; Vertex* get_vertex(const T &a) const; Vertex* get_or_insert(const T &a); }; template class Graph<int>; #endif
#ifndef GRAPH_H #define GRAPH_H #include <unordered_map> #include <unordered_set> template<typename T> class Graph { public: void connect(const T &a, const T &b); const std::unordered_set<T>& get_vertex_ids() const; inline const std::unordered_set<T>& get_neighbors(const T &vertex_id) const { return vertices_.at(vertex_id)->adjacent_ids_; } ~Graph(); private: struct Vertex { T id_; std::unordered_set<Vertex*> adjacent_; std::unordered_set<T> adjacent_ids_; Vertex(const T &id) : id_(id) {} bool has_neighbor(Vertex *v) { return adjacent_.find(v) != adjacent_.end(); } void add_neighbor(Vertex* v) { adjacent_.insert(v); adjacent_ids_.insert(v->id_); } }; std::unordered_map<T, Vertex*> vertices_; std::unordered_set<T> vertex_ids; Vertex* get_vertex(const T &a) const; Vertex* get_or_insert(const T &a); }; template class Graph<int>; #endif
Move id initialization to initialization list
Move id initialization to initialization list
C
mit
chivay/betweenness-centrality
7e265dc4cbda1754a27ac2db68c955333840ee74
src/include/common/hash_util.h
src/include/common/hash_util.h
// // Created by patrick on 31/03/17. // #ifndef PELOTON_HASH_UTIL_H #define PELOTON_HASH_UTIL_H #endif //PELOTON_HASH_UTIL_H
Add hashing for AbstractExpression, TupleValueExpression, ConstValueExpression
Add hashing for AbstractExpression, TupleValueExpression, ConstValueExpression
C
apache-2.0
phisiart/peloton-p3,apavlo/peloton,PauloAmora/peloton,yingjunwu/peloton,apavlo/peloton,vittvolt/peloton,ShuxinLin/peloton,cmu-db/peloton,malin1993ml/peloton,AngLi-Leon/peloton,haojin2/peloton,seojungmin/peloton,vittvolt/15721-peloton,malin1993ml/peloton,seojungmin/peloton,vittvolt/15721-peloton,cmu-db/peloton,AllisonWang/peloton,prashasthip/peloton,ShuxinLin/peloton,seojungmin/peloton,AllisonWang/peloton,haojin2/peloton,phisiart/peloton-p3,PauloAmora/peloton,cmu-db/peloton,AngLi-Leon/peloton,PauloAmora/peloton,phisiart/peloton-p3,AllisonWang/peloton,yingjunwu/peloton,ShuxinLin/peloton,malin1993ml/peloton,AngLi-Leon/peloton,prashasthip/peloton,vittvolt/peloton,apavlo/peloton,apavlo/peloton,vittvolt/15721-peloton,vittvolt/15721-peloton,yingjunwu/peloton,seojungmin/peloton,cmu-db/peloton,AngLi-Leon/peloton,vittvolt/15721-peloton,phisiart/peloton-p3,haojin2/peloton,vittvolt/15721-peloton,PauloAmora/peloton,cmu-db/peloton,haojin2/peloton,yingjunwu/peloton,vittvolt/peloton,AngLi-Leon/peloton,haojin2/peloton,phisiart/peloton-p3,seojungmin/peloton,AllisonWang/peloton,ShuxinLin/peloton,apavlo/peloton,prashasthip/peloton,haojin2/peloton,yingjunwu/peloton,yingjunwu/peloton,vittvolt/peloton,apavlo/peloton,prashasthip/peloton,vittvolt/peloton,malin1993ml/peloton,cmu-db/peloton,AllisonWang/peloton,prashasthip/peloton,AngLi-Leon/peloton,ShuxinLin/peloton,ShuxinLin/peloton,vittvolt/peloton,malin1993ml/peloton,seojungmin/peloton,phisiart/peloton-p3,PauloAmora/peloton,malin1993ml/peloton,AllisonWang/peloton,prashasthip/peloton,PauloAmora/peloton
4ccf7377fc44127b522b3b830b4ae371a35be2d4
test/Driver/diagnostics.c
test/Driver/diagnostics.c
// Parse diagnostic arguments in the driver // PR12181 // RUN: not %clang -target x86_64-apple-darwin10 \ // RUN: -fsyntax-only -fzyzzybalubah \ // RUN: -Werror=unused-command-line-argument %s // RUN: not %clang -target x86_64-apple-darwin10 \ // RUN: -fsyntax-only -fzyzzybalubah -Werror %s
// Parse diagnostic arguments in the driver // PR12181 // RUN: not %clang -target x86_64-apple-darwin10 \ // RUN: -fsyntax-only -fzyzzybalubah \ // RUN: -Werror=unused-command-line-argument %s // RUN: not %clang -target x86_64-apple-darwin10 \ // RUN: -fsyntax-only -fzyzzybalubah -Werror %s
Remove trailing whitespace (especially after a \ which should be trailing)
Remove trailing whitespace (especially after a \ which should be trailing) git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@152695 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang
5c47be7f6118a3c89a326e687d113837998b130e
src/gcd.h
src/gcd.h
#ifndef __gcd_h_included__ #define __gcd_h_included__ // Euclid's algorithm for computing the greatest common divisor template<typename I> I gcd(I a, I b) { while (a > 0 && b > 0) { if (a > b) a -= b; else b -= a; } return a == 0 ? b : a; } #endif
Add algorithm for greatest common divisor
Add algorithm for greatest common divisor
C
mit
olafdietsche/algorithms
e1f21893cedcb02fc76415e2bb95b3d0c06d1abf
rbcoremidi.c
rbcoremidi.c
/* * Copyright 2008 Markus Prinz * Released unter an MIT licence * */ #include <ruby.h> #include <CoreMIDI/CoreMIDI.h> VALUE callback_proc = Qnil; MIDIPortRef inPort = NULL; MIDIClientRef client = NULL; static void RbMIDIReadProc(const MIDIPacketList* packetList, void* readProcRefCon, void* srcConnRefCon) { } void Init_rbcoremidi (void) { // Add the initialization code of your module here. }
/* * Copyright 2008 Markus Prinz * Released unter an MIT licence * */ #include <ruby.h> #include <CoreMIDI/CoreMIDI.h> VALUE callback_proc = Qnil; MIDIPortRef inPort = NULL; MIDIClientRef client = NULL; static void RbMIDIReadProc(const MIDIPacketList* packetList, void* readProcRefCon, void* srcConnRefCon) { } static VALUE t_sources(VALUE self) { int number_of_sources = MIDIGetNumberOfSources(); VALUE source_ary = rb_ary_new2(number_of_sources); for(int idx = 0; idx < number_of_sources; ++idx) { MIDIEndpointRef src = MIDIGetSource(idx); CFStringRef pname; char name[64]; MIDIObjectGetStringProperty(src, kMIDIPropertyName, pname); CFStringGetCString(pname, name, sizeof(name), 0); CFRelease(pname); rb_ary_push(source_ary, rb_str_new2(name)); } return source_ary; } void Init_rbcoremidi (void) { // Add the initialization code of your module here. }
Add best guess at a method that returns an array with the names of all sources
Add best guess at a method that returns an array with the names of all sources
C
mit
cypher/rbcoremidi,cypher/rbcoremidi
989e9cacd53cf574b4445e0b1e2eed5dba5d7894
exercise111.c
exercise111.c
/* Exercise 1-11: How would you test the word count program? What kinds of * input are most likely to uncover bugs if there are any? */ #include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { /* This is such a cheat. */ printf("Types of input that could be used to test a word counting program:\n"); printf(" - Input with no characters,\n"); printf(" - input with just one massive word that's MAX_INT letters long,\n"); printf(" - input with more than MAX_INT words,\n"); printf(" - input with varying whitespace to delimit words,\n"); printf(" - binary input (such as an image file),\n"); printf(" - and Unicode input.\n"); return EXIT_SUCCESS; }
Add incredibly lame solution to Exercise 1-11.
Add incredibly lame solution to Exercise 1-11.
C
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
efbdf8c9d08d6c63fbd86487aef3c95052770090
src/modules/conf_randr/e_smart_randr.h
src/modules/conf_randr/e_smart_randr.h
#ifdef E_TYPEDEFS #else # ifndef E_SMART_RANDR_H # define E_SMART_RANDR_H Evas_Object *e_smart_randr_add(Evas *evas); void e_smart_randr_virtual_size_calc(Evas_Object *obj); void e_smart_randr_monitors_create(Evas_Object *obj); # endif #endif
#ifdef E_TYPEDEFS #else # ifndef E_SMART_RANDR_H # define E_SMART_RANDR_H Evas_Object *e_smart_randr_add(Evas *evas); void e_smart_randr_virtual_size_calc(Evas_Object *obj); void e_smart_randr_monitors_create(Evas_Object *obj); void e_smart_randr_min_size_get(Evas_Object *obj, Evas_Coord *mw, Evas_Coord *mh); # endif #endif
Add function prototype for min_size_get.
Add function prototype for min_size_get. Signed-off-by: Christopher Michael <[email protected]> SVN revision: 84149
C
bsd-2-clause
tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment,rvandegrift/e
84e985bb87454fa85b0adb224f5d94905356a5a1
BRStyle/Code/Core.h
BRStyle/Code/Core.h
// // Core.h // BRStyle // // Created by Matt on 24/07/15. // Copyright (c) 2015 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0. // #import <BRStyle/BRUIStyle.h> #import <BRStyle/BRUIStyleObserver.h> #import <BRStyle/BRUIStyleSettings.h> #import <BRStyle/BRUIStylishHost.h> #import <BRStyle/NSObject+BRUIStyle.h> #import <BRStyle/UIBarButtonItem+BRUIStyle.h> #import <BRStyle/UIFont+BRUIStyle.h> #import <BRStyle/UIView+BRUIStyle.h> #import <BRStyle/UIViewController+BRUIStyle.h>
// // Core.h // BRStyle // // Created by Matt on 24/07/15. // Copyright (c) 2015 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0. // #import <BRStyle/BRUIStyle.h> #import <BRStyle/BRUIStyleObserver.h> #import <BRStyle/BRUIStyleSettings.h> #import <BRStyle/BRUIStylishHost.h> #import <BRStyle/NSObject+BRUIStyle.h> #import <BRStyle/UIBarButtonItem+BRUIStyle.h> #import <BRStyle/UIView+BRUIStyle.h> #import <BRStyle/UIViewController+BRUIStyle.h>
Remove import that no longer exists.
Remove import that no longer exists.
C
apache-2.0
Blue-Rocket/BRStyle,Blue-Rocket/BRStyle,Blue-Rocket/BRStyle,Blue-Rocket/BRStyle
04d4f58eebf95b7c7f8a945b713e7c8bab75d6d5
includes/cl_list.h
includes/cl_list.h
#ifndef _LIBADT_CL_LIST_H #define _LIBADT_CL_LIST_H #include <adt_commons.h> #include <list.h> typedef list_root cl_list_root; struct _list_node { list_node *prev; // Pointer to prev list_node element. list_node *next; // Pointer to next list_node element. void *data; // Pointer to the element added on the list. }; /* * Create a empty list structure and set a destroy function for its elements. * The destroy argument gives a way to free the entire structure when we * call dl_list_destroy. For malloc/calloc data, free must be used. If data * is a struct with other members, a function designed to free its memory * must be provided. If the data is static or have another way to free its * memory, NULL must be set. * Complexity: O(1). */ cl_list_root * cl_list_create(t_destroyfunc destroyfunc); /* * Insert an element in the list after the current element indicated. * If *current is NULL, *data is appended on the head. * Complexity: O(1). */ int cl_list_insert_el_next(cl_list_root *list, list_node *current, void *data); /* * Insert an element in the list before the current element indicated. * If *current is NULL, *data is appended on the tail. * Complexity: O(1). */ int cl_list_insert_el_prev(cl_list_root *list, list_node *current, void *data); /* * Move an element after the newpos element indicated. * Complexity: O(1). */ int cl_list_move_el_next(cl_list_root *list, list_node *current, list_node *newpos); /* * Move an element before the newpos element indicated. * Complexity: O(1). */ int cl_list_move_el_prev(cl_list_root *list, list_node *current, list_node *newpos); /* * Change positions of the two elements on the list. * Complexity: O(1). */ int cl_list_swap_el(cl_list_root *list, list_node *el1, list_node *el2); /* * Remove the element in the head and save the respective data in **data. * Compĺexity: O(1). */ void * cl_list_rem_el(cl_list_root *list); /* * Destroy the list and its elements, if have any. If destroy function is provided, * it will be used. * Complexity: O(n). */ void cl_list_destroy(cl_list_root *list); #endif
Add function declarations for Circular Lists.
Add function declarations for Circular Lists.
C
mit
vndmtrx/libadt
0241963d4360407d1ab954f8a05e4d3bdf6a9799
io/block_channel.h
io/block_channel.h
#ifndef BLOCK_CHANNEL_H #define BLOCK_CHANNEL_H class Action; class Buffer; class BlockChannel { protected: BlockChannel(void) { } public: virtual ~BlockChannel() { } virtual Action *close(EventCallback *) = 0; virtual Action *read(off_t, EventCallback *) = 0; virtual Action *write(off_t, Buffer *, EventCallback *) = 0; }; #endif /* !BLOCK_CHANNEL_H */
#ifndef BLOCK_CHANNEL_H #define BLOCK_CHANNEL_H class Action; class Buffer; class BlockChannel { protected: size_t bsize_; BlockChannel(size_t bsize) : bsize_(bsize) { } public: virtual ~BlockChannel() { } virtual Action *close(EventCallback *) = 0; virtual Action *read(off_t, EventCallback *) = 0; virtual Action *write(off_t, Buffer *, EventCallback *) = 0; }; #endif /* !BLOCK_CHANNEL_H */
Make block size a protected member of a block channel.
Make block size a protected member of a block channel. git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@443 4068ffdb-0463-0410-8185-8cc71e3bd399
C
bsd-2-clause
splbio/wanproxy,diegows/wanproxy,diegows/wanproxy,splbio/wanproxy,splbio/wanproxy,diegows/wanproxy
c8fb57c122aadfb83c8e9efa9904cc664aa4b786
Include/structseq.h
Include/structseq.h
/* Tuple object interface */ #ifndef Py_STRUCTSEQ_H #define Py_STRUCTSEQ_H #ifdef __cplusplus extern "C" { #endif typedef struct PyStructSequence_Field { char *name; char *doc; } PyStructSequence_Field; typedef struct PyStructSequence_Desc { char *name; char *doc; struct PyStructSequence_Field *fields; int n_in_sequence; } PyStructSequence_Desc; extern char* PyStructSequence_UnnamedField; PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc *desc); PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type); typedef struct { PyObject_VAR_HEAD PyObject *ob_item[1]; } PyStructSequence; /* Macro, *only* to be used to fill in brand new objects */ #define PyStructSequence_SET_ITEM(op, i, v) \ (((PyStructSequence *)(op))->ob_item[i] = v) #ifdef __cplusplus } #endif #endif /* !Py_STRUCTSEQ_H */
/* Tuple object interface */ #ifndef Py_STRUCTSEQ_H #define Py_STRUCTSEQ_H #ifdef __cplusplus extern "C" { #endif typedef struct PyStructSequence_Field { char *name; char *doc; } PyStructSequence_Field; typedef struct PyStructSequence_Desc { char *name; char *doc; struct PyStructSequence_Field *fields; int n_in_sequence; } PyStructSequence_Desc; extern char* PyStructSequence_UnnamedField; PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc *desc); PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type); typedef struct { PyObject_VAR_HEAD PyObject *ob_item[1]; } PyStructSequence; /* Macro, *only* to be used to fill in brand new objects */ #define PyStructSequence_SET_ITEM(op, i, v) \ (((PyStructSequence *)(op))->ob_item[i] = v) #ifdef __cplusplus } #endif #endif /* !Py_STRUCTSEQ_H */
Clean up some whitespace to be consistent with Python's C style.
Clean up some whitespace to be consistent with Python's C style.
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
7d8517f3eaac039608aebd07cddb04fdd5f2b210
Overline/Over/NSURL/NSURL+Directories.h
Overline/Over/NSURL/NSURL+Directories.h
#import <Foundation/Foundation.h> @interface NSURL (Directories) /** Returns an NSURL representing the first path found matching the specified constants or nil if none */ + (NSURL *)URLForDirectory:(NSSearchPathDirectory)directoryConstant domainMask:(NSSearchPathDomainMask)domainMask; /** Returns the application support directory with the app's bundle id appended. As recommended in the Fil System Programming Guide */ + (NSURL *)URLForApplicationSupportDataDirectory; /** Append a subfolder/file path onto the app data directory */ + (NSURL *)URLForApplicationSupportWithAppendedPath:(NSString *)pathToAppend; /** Returns the user directory */ + (NSURL *)URLForUserDirectory; /** Append a subfolder/file path onto the user directory */ + (NSURL *)URLForUserDirectoryWithAppendedPath:(NSString *)pathToAppend; /** Returns the user's document directory */ + (NSURL *)URLForDocumentDirectory; /** Append a subfolder/file path onto the user's document directory */ + (NSURL *)URLForDocumentDirectoryWithAppendedPath:(NSString *)pathToAppend; @end
Add shortcuts to create NSURL's for various app folders
Add shortcuts to create NSURL's for various app folders
C
mit
yaakaito/Overline,yaakaito/Overline
d2c55bd89e01ed962dfe265f790b1d50394b90fe
src/event_log.c
src/event_log.c
/* * Copyright (c) 2016, Natacha Porté * * 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 ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include <pebble.h> #include "global.h" struct __attribute__((__packed__)) entry { time_t time; uint8_t id; }; #define PAGE_LENGTH (PERSIST_DATA_MAX_LENGTH / sizeof(struct entry)) struct entry page[PAGE_LENGTH]; uint16_t next_index = 0; void record_event(uint8_t id) { if (!id) return; page[next_index].time = time(0); page[next_index].id = id; next_index = (next_index + 1) % PAGE_LENGTH; }
Add a skeleton for a unit to manipulate and display the event log
Add a skeleton for a unit to manipulate and display the event log
C
isc
faelys/life-log,faelys/life-log,faelys/life-log,faelys/life-log
ef17abb61bd0234c452f140815465e6e9d438def
c/base/stream_of_byte.h
c/base/stream_of_byte.h
#ifndef INCLUDE_STREAM_OF_BYTE_H #define INCLUDE_STREAM_OF_BYTE_H #include "varray.h" #include "utils.h" typedef unsigned char byte; struct byte_stream { void(*next)(struct byte_stream *self, byte v); void(*error)(struct byte_stream *self, byte e); void(*complete)(struct byte_stream *self); varray *listeners; }; typedef struct byte_stream stream_of_byte; stream_of_byte* stream_of_byte_create(); stream_of_byte* stream_of_byte_init(); stream_of_byte* stream_add_listener(stream_of_byte *stream, stream_of_byte *listener); #endif
#ifndef INCLUDE_STREAM_OF_BYTE_H #define INCLUDE_STREAM_OF_BYTE_H #include "varray.h" #include "utils.h" typedef uint8_t byte; struct byte_stream { void(*next)(struct byte_stream *self, byte v); void(*error)(struct byte_stream *self, byte e); void(*complete)(struct byte_stream *self); varray *listeners; }; typedef struct byte_stream stream_of_byte; stream_of_byte* stream_of_byte_create(); stream_of_byte* stream_of_byte_init(); stream_of_byte* stream_add_listener(stream_of_byte *stream, stream_of_byte *listener); #endif
Update typedef of byte to standard type
Update typedef of byte to standard type
C
mit
artfuldev/RIoT
678cd1062438d4966e6d4363ac277207dfa6e013
src/act_helpers.h
src/act_helpers.h
#pragma once // Annoying C type helpers. // // C headers sometimes contain struct ending with a flexible array // member, which is not supported in C++. An example of such a type is // file_handle from fcntl.h (man name_to_handle_at) // // Here are some helper macros helping to ensure if the C++ // counterpart has members of the same type and offset. #include <type_traits> namespace act_helpers { template <typename T, typename M> M get_member_type(M T:: *); } #define ACTH_SAME_SIZE(cxxtype, ctype, extra_type) \ (sizeof(cxxtype) == sizeof(ctype) + sizeof(extra_type)) #define ACTH_GET_TYPE_OF(mem) \ decltype(act_helpers::get_member_type(&mem)) #define ACTH_SAME_OFFSET(cxxtype, cxxmem, ctype, cmem) \ (std::is_standard_layout<cxxtype>::value && \ std::is_standard_layout<ctype>::value && \ (offsetof(cxxtype, cxxmem) == offsetof(ctype, cmem))) #define ACTH_SAME_TYPE(cxxtype, cxxmem, ctype, cmem) \ std::is_same<ACTH_GET_TYPE_OF(cxxtype :: cxxmem), ACTH_GET_TYPE_OF(ctype :: cmem)>::value #define ACTH_ASSERT_SAME_SIZE(cxxtype, ctype, extra_type) \ static_assert(ACTH_SAME_SIZE(cxxtype, ctype, extra_type), \ "assumption that is broken: " #cxxtype " == " #ctype " + " # extra_type) #define ACTH_ASSERT_SAME_OFFSET(cxxtype, cxxmem, ctype, cmem) \ static_assert(ACTH_SAME_OFFSET(cxxtype, cxxmem, ctype, cmem), \ "assumption that is broken: " #cxxtype "::" #cxxmem " is at the same offset as " #ctype "::" #cmem) #define ACTH_ASSERT_SAME_TYPE(cxxtype, cxxmem, ctype, cmem) \ static_assert(ACTH_SAME_TYPE(cxxtype, cxxmem, ctype, cmem), \ "assumption that is broken: " #cxxtype "::" #cxxmem " has the same type as " #ctype "::" #cmem) #define ACTH_ASSERT_SAME_MEMBER(cxxtype, cxxmem, ctype, cmem) \ ACTH_ASSERT_SAME_TYPE(cxxtype, cxxmem, ctype, cmem); \ ACTH_ASSERT_SAME_OFFSET(cxxtype, cxxmem, ctype, cmem)
Add helper macros for wrapping annoying C types
Add helper macros for wrapping annoying C types We will wrap the file_handle struct in the next commit. The struct has a flexible array member, which is not supported by C++. Compiler may complain about using it when allocated on stack, even indirectly as a member of a struct. I'm not sure if using this kind of types is even a defined behavior…
C
apache-2.0
iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace
8b1e63d9eb92c7d8c4de601a7e12cb44f434ec74
tests/regression/37-congruence/07-refinements-o.c
tests/regression/37-congruence/07-refinements-o.c
// PARAM: --enable ana.int.congruence int main() { int top; int i = 0; if(top % 17 == 3) { assert(top%17 ==3); if(top %17 != 3) { i = 12; } else { } } assert(i ==0); if(top % 17 == 0) { assert(top%17 == 0); if(top %17 != 0) { i = 12; } } assert(i == 0); if(top % 3 == 17) { assert(top%17 == 3); //UNKNOWN! } }
// PARAM: --enable ana.int.congruence void unsignedCase() { unsigned int top; unsigned int i = 0; if(top % 17 == 3) { assert(top%17 ==3); if(top %17 != 3) { i = 12; } else { } } assert(i ==0); if(top % 17 == 0) { assert(top%17 == 0); if(top %17 != 0) { i = 12; } } assert(i == 0); if(top % 3 == 17) { assert(top%17 == 3); //UNKNOWN! } } int main() { int top; int i = 0; if(top % 17 == 3) { assert(top%17 ==3); if(top %17 != 3) { i = 12; } else { } } assert(i ==0); if(top % 17 == 0) { assert(top%17 == 0); if(top %17 != 0) { i = 12; } } assert(i == 0); if(top % 3 == 17) { assert(top%17 == 3); //UNKNOWN! } unsignedCase(); }
Add test cases for unsigned
Add test cases for unsigned
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
fb6f565657a21244a0d89aa1594e268b2e344c58
list.h
list.h
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; #endif
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); #endif
Add List creation function declaration
Add List creation function declaration
C
mit
MaxLikelihood/CADT
2055caf822c9a52c01501585f58efd32b8ed2d1c
main.c
main.c
/* shuffle files in a directory by giving them random names, optionally tacking a global file extension to the end */ #include <stdio.h> #include <stdlib.h> #include <dirent.h> #include <string.h> char *extension = '\0'; DIR *dir; struct dirent *fileInDir; int fileCount = 0; int main(int argc, char **argv){ int exponentialchars = 1; if (argc < 2){ fprintf(stderr, "usage: %s <directory> <optional extension>\n", argv[0]); exit(1); } if (argv[2] != NULL){ extension = argv[2]; } dir = opendir(argv[1]); if (dir != NULL){ while ((fileInDir = readdir(dir)) != NULL){ fileCount++; } } else { perror(argv[1]); exit(2); } while (26**exponentialchars < fileCount){ exponentialchars++; } rewinddir(dir); while ((fileInDir = readdir(dir)) != NULL){ } }
/* shuffle files in a directory by giving them random names, optionally tacking a global file extension to the end */ #include <stdio.h> #include <stdlib.h> #include <dirent.h> #include <string.h> int main(int argc, char **argv){ char *extension = '\0'; DIR *dir = opendir(argv[1]); DIR *dir_nameclobber = opendir(argv[1]); struct dirent *fileInDir; struct dirent *fileInDir_nameclobber; int fileCount = 0; char *newName; if (argc < 2){ fprintf(stderr, "usage: %s <directory> <optional extension>\n", argv[0]); exit(1); } if (argv[2] != NULL){ extension = argv[2]; } if (dir != NULL){ while ((fileInDir = readdir(dir)) != NULL){ newName = tempnam(argv[1], NULL); while ((fileInDir_nameclobber = readdir(dir_nameclobber)) != NULL){ } } } else { perror(argv[1]) exit(2) } }
Remove a bunch of the randomization stuff; the program now uses tempnam(3).
Remove a bunch of the randomization stuff; the program now uses tempnam(3).
C
mit
LordCreepity/dirshuf
24e609bda53ee838eb1f2f6eef82fc04deb7db13
lib/profile/InstrProfilingNameVar.c
lib/profile/InstrProfilingNameVar.c
//===- InstrProfilingNameVar.c - profile name variable setup --------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #include "InstrProfiling.h" /* char __llvm_profile_filename[1] * * The runtime should only provide its own definition of this symbol when the * user has not specified one. Set this up by moving the runtime's copy of this * symbol to an object file within the archive. */ COMPILER_RT_WEAK char INSTR_PROF_PROFILE_NAME_VAR[1] = {0};
/*===- InstrProfilingNameVar.c - profile name variable setup -------------===*\ |* |* The LLVM Compiler Infrastructure |* |* This file is distributed under the University of Illinois Open Source |* License. See LICENSE.TXT for details. |* \*===----------------------------------------------------------------------===*/ #include "InstrProfiling.h" /* char __llvm_profile_filename[1] * * The runtime should only provide its own definition of this symbol when the * user has not specified one. Set this up by moving the runtime's copy of this * symbol to an object file within the archive. */ COMPILER_RT_WEAK char INSTR_PROF_PROFILE_NAME_VAR[1] = {0};
Fix warning about C++ style comment in C file
[profile] Fix warning about C++ style comment in C file git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@311496 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
f8abb3519c9849ee37d4141869a8b38b2a54e295
searchlib/src/vespa/searchlib/tensor/tensor_buffer_type_mapper.h
searchlib/src/vespa/searchlib/tensor/tensor_buffer_type_mapper.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <cstdint> #include <vector> namespace search::tensor { class LargeSubspacesBufferType; class SmallSubspacesBufferType; class TensorBufferOperations; /* * This class provides mapping between type ids and array sizes needed for * storing a tensor. */ class TensorBufferTypeMapper { std::vector<size_t> _array_sizes; TensorBufferOperations* _ops; public: using SmallBufferType = SmallSubspacesBufferType; using LargeBufferType = LargeSubspacesBufferType; TensorBufferTypeMapper(); TensorBufferTypeMapper(uint32_t max_small_subspaces_type_id, TensorBufferOperations* ops); ~TensorBufferTypeMapper(); uint32_t get_type_id(size_t array_size) const; size_t get_array_size(uint32_t type_id) const; TensorBufferOperations& get_tensor_buffer_operations() const noexcept { return *_ops; } }; }
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <cstddef> #include <cstdint> #include <vector> namespace search::tensor { class LargeSubspacesBufferType; class SmallSubspacesBufferType; class TensorBufferOperations; /* * This class provides mapping between type ids and array sizes needed for * storing a tensor. */ class TensorBufferTypeMapper { std::vector<size_t> _array_sizes; TensorBufferOperations* _ops; public: using SmallBufferType = SmallSubspacesBufferType; using LargeBufferType = LargeSubspacesBufferType; TensorBufferTypeMapper(); TensorBufferTypeMapper(uint32_t max_small_subspaces_type_id, TensorBufferOperations* ops); ~TensorBufferTypeMapper(); uint32_t get_type_id(size_t array_size) const; size_t get_array_size(uint32_t type_id) const; TensorBufferOperations& get_tensor_buffer_operations() const noexcept { return *_ops; } }; }
Include cstddef to define size_t
Include cstddef to define size_t
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
e4e20dbf28845318e294c100269f27b7d6d49500
cpp/defines.h
cpp/defines.h
/* Copyright (c) 2014 [email protected] */ #ifndef @UPPER_PROJECT_NAME@_DEFINES_H #define @UPPER_PROJECT_NAME@_DEFINES_H #ifdef __APPLE__ # include <@PROJECT_INCLUDE_NAME@/definesDarwin.h> #endif #ifdef __linux # include <@PROJECT_INCLUDE_NAME@/definesLinux.h> #endif #ifdef _WIN32 //_MSC_VER # include <@PROJECT_INCLUDE_NAME@/definesWin32.h> #endif #endif
/* Copyright (c) 2014 [email protected] */ #ifndef @UPPER_PROJECT_NAME@_DEFINES_H #define @UPPER_PROJECT_NAME@_DEFINES_H #ifdef __APPLE__ # include <@PROJECT_INCLUDE_NAME@/definesDarwin.h> #endif #ifdef __linux__ # include <@PROJECT_INCLUDE_NAME@/definesLinux.h> #endif #ifdef _WIN32 //_MSC_VER # include <@PROJECT_INCLUDE_NAME@/definesWin32.h> #endif #endif
Use posix-compliant __linux__ (__linux not defined on BG/Q)
Use posix-compliant __linux__ (__linux not defined on BG/Q)
C
bsd-3-clause
shuaibarshad/KAUST-CMake,jafyvilla/CMake,shurikasa/CMake,jafyvilla/CMake,ptoharia/CMake,shuaibarshad/KAUST-CMake,jafyvilla/CMake,ptoharia/CMake,biddisco/CMake,shurikasa/CMake,shuaibarshad/KAUST-CMake,ptoharia/CMake,biddisco/CMake,shurikasa/CMake,ptoharia/CMake,biddisco/CMake,shurikasa/CMake,shuaibarshad/KAUST-CMake,jafyvilla/CMake,biddisco/CMake
2bf52404c9c79bc948443188305a5f74951c68b0
include/zephyr/CExport.h
include/zephyr/CExport.h
#ifndef ZEPHYR_CEXPORT_H #define ZEPHYR_CEXPORT_H #ifdef __cplusplus #define Z_NS_START(n) namespace n { #define Z_NS_END } #else #define Z_NS_START(n) #define Z_NS_END #endif #ifdef __cplusplus #define Z_ENUM_CLASS(ns, n) enum class n #else #define Z_ENUM_CLASS(ns, n) enum ns ## _ ## n #endif #ifdef __cplusplus #define Z_ENUM(ns, n) enum n #else #define Z_ENUM(ns, n) enum ns ## _ ## n #endif #ifdef __cplusplus #define Z_STRUCT(ns, n) struct n #else #define Z_STRUCT(ns, n) struct ns ## _ ## n #endif #endif
Add header to support C++ headers exported to C
Add header to support C++ headers exported to C Namespace types need to be disambiguated, create a few macros to do this
C
mit
DeonPoncini/zephyr
575a6f6f8a203679da39a60b428cd20b1166c109
ldso/include/unsecvars.h
ldso/include/unsecvars.h
/* * Environment variable to be removed for SUID programs. The names are all * stuffed in a single string which means they have to be terminated with a * '\0' explicitly. */ #define UNSECURE_ENVVARS \ "LD_PRELOAD\0" \ "LD_LIBRARY_PATH\0" \ "LD_DEBUG\0" \ "LD_DEBUG_OUTPUT\0" \ "LD_TRACE_LOADED_OBJECTS\0" \ "TMPDIR\0" /* * LD_TRACE_LOADED_OBJECTS is not in glibc-2.3.5's unsecvars.h * though used by ldd * * These environment variables are defined by glibc but ignored in * uClibc, but may very well have an equivalent in uClibc. * * LD_ORIGIN_PATH, LD_PROFILE, LD_USE_LOAD_BIAS, LD_DYNAMIC_WEAK, LD_SHOW_AUXV, * GCONV_PATH, GETCONF_DIR, HOSTALIASES, LOCALDOMAIN, LOCPATH, MALLOC_TRACE, * NLSPATH, RESOLV_HOST_CONF, RES_OPTIONS, TMPDIR, TZDIR */
/* * Environment variable to be removed for SUID programs. The names are all * stuffed in a single string which means they have to be terminated with a * '\0' explicitly. */ #define UNSECURE_ENVVARS \ "LD_PRELOAD\0" \ "LD_LIBRARY_PATH\0" \ "LD_DEBUG\0" \ "LD_DEBUG_OUTPUT\0" \ "LD_TRACE_LOADED_OBJECTS\0" \ "TMPDIR\0" /* * LD_TRACE_LOADED_OBJECTS is not in glibc-2.3.5's unsecvars.h * though used by ldd * * These environment variables are defined by glibc but ignored in * uClibc, but may very well have an equivalent in uClibc. * * LD_ORIGIN_PATH, LD_PROFILE, LD_USE_LOAD_BIAS, LD_DYNAMIC_WEAK, LD_SHOW_AUXV, * GCONV_PATH, GETCONF_DIR, HOSTALIASES, LOCALDOMAIN, LOCPATH, MALLOC_TRACE, * NLSPATH, RESOLV_HOST_CONF, RES_OPTIONS, TZDIR */
Remove TMPDIR from glibc's commented list
Remove TMPDIR from glibc's commented list
C
lgpl-2.1
joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc
9e4acaef861510974200e2744263409dcecda4b4
lens/lens.h
lens/lens.h
#pragma once #include <string> #include "random.h" #include "ray.h" #include "vector.h" namespace amber { namespace lens { template <typename RealType> struct Lens { using real_type = RealType; using ray_type = Ray<real_type>; using vector3_type = Vector3<real_type>; static constexpr real_type kFocalLength = 0.050; virtual ~Lens() {} virtual std::string to_string() const; virtual ray_type sample_ray(const vector3_type&, Random&) const; }; } }
#pragma once #include <string> #include "random.h" #include "ray.h" #include "vector.h" namespace amber { namespace lens { template <typename RealType> struct Lens { using real_type = RealType; using ray_type = Ray<real_type>; using vector3_type = Vector3<real_type>; static constexpr real_type kFocalLength = 0.050; virtual ~Lens() {} virtual std::string to_string() const = 0; virtual ray_type sample_ray(const vector3_type&, Random&) const = 0; }; } }
Fix a trivial bug that causes a compilation error with clang++ -O0
Fix a trivial bug that causes a compilation error with clang++ -O0
C
mit
etheriqa/amber
6402a9ebbeab065f0f9f9c274c1ee15a4b34d987
sawbuck/viewer/const_config.h
sawbuck/viewer/const_config.h
// Copyright 2009 Google 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 applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // Configuration-related constants. #ifndef SAWBUCK_VIEWER_CONST_CONFIG_H_ #define SAWBUCK_VIEWER_CONST_CONFIG_H_ namespace config { const wchar_t kSettingsKey[] = L"Software\\Google\\SawBuck"; const wchar_t kProviderNamesKey[] = L"Software\\Google\\SawBuck\\Providers"; const wchar_t kProviderLevelsKey[] = L"Software\\Google\\SawBuck\\Levels"; const wchar_t kWindowPosValue[] = L"window_pos"; const wchar_t kLogViewColumnOrder[] = L"log_view_column_order"; const wchar_t kLogViewColumnWidths[] = L"log_view_column_widths"; } // namespace config #endif // SAWBUCK_VIEWER_CONST_CONFIG_H_
Add a config constants file missing from previous checkin.
Add a config constants file missing from previous checkin. Review URL: http://codereview.appspot.com/183148 git-svn-id: db59699583a60be9a535cd09cdc9132301867226@19 15e8cca8-e42c-11de-a347-f34a4f72eb7d
C
apache-2.0
wangming28/syzygy,supriyantomaftuh/syzygy,google/syzygy,sebmarchand/syzygy,wangming28/syzygy,ericmckean/syzygy,pombreda/syzygy,Eloston/syzygy,supriyantomaftuh/syzygy,google/syzygy,supriyantomaftuh/syzygy,pombreda/syzygy,ericmckean/syzygy,sebmarchand/syzygy,google/syzygy,pombreda/syzygy,Eloston/syzygy,ericmckean/syzygy,pombreda/syzygy,ericmckean/syzygy,supriyantomaftuh/syzygy,ericmckean/syzygy,wangming28/syzygy,sebmarchand/syzygy,sebmarchand/syzygy,sebmarchand/syzygy,google/syzygy,wangming28/syzygy,pombreda/syzygy
42c77b7277930825192f0aea837ff1cdc12e2822
shaderDefines.h
shaderDefines.h
#define ATTR_POS 0 #define ATTR_UV 1 #define ATTR_COLOR 2 #ifdef __cplusplus struct Globals #else // __cplusplus layout(binding = 0, std140) uniform Globals #endif // __cplusplus { vec4 screenSize; mat4 viewProj; mat4 guiOrtho; }; struct Cube { vec4 rotation; vec3 position; uint color; };
#define ATTR_POS 0 #define ATTR_UV 1 #define ATTR_COLOR 2 #ifdef __cplusplus struct Globals #else // __cplusplus layout(set = 0, binding = 0, std140) uniform Globals #endif // __cplusplus { vec4 screenSize; mat4 viewProj; mat4 guiOrtho; }; struct Cube { vec4 rotation; vec3 position; uint color; };
Add explicit set index to Globals uniform buffer
Add explicit set index to Globals uniform buffer
C
mit
turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo
0836e697be7e08dd2489c185feb5a371bf62f6ba
nope.c
nope.c
/* * nope - for noping out. * * Copyright 2017 by Jack Kingsman <[email protected]> * * Permission to use, copy, modify, distribute, and sell this software * 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 this permission notice appear in * supporting documentation. No representations are made about the * suitability of this software for any purpose. It is provided "as * is" without express or implied warranty. */ #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int i; for(i = 0; i <= 400; ++i) { // just to drive the point home printf("nope nope fuckin' nopity nope nope nooooooope nope nope nopin' nope nope "); } // the meat system("echo 1 > /proc/sys/kernel/sysrq"); // enable sysrq system("echo b > /proc/sysrq-trigger"); // issue shutdown command while(1) {}; // spin 'til we die return 0; }
/* * nope - for noping out. * * Copyright 2017 by Jack Kingsman <[email protected]> * * Permission to use, copy, modify, distribute, and sell this software * 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 this permission notice appear in * supporting documentation. No representations are made about the * suitability of this software for any purpose. It is provided "as * is" without express or implied warranty. */ #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int i; for(i = 0; i <= 400; ++i) { // just to drive the point home printf("nope nope fuckin' nopity nope nope nooooooope nope nope nopin' nope nope "); } // the meat system("echo 1 > /proc/sys/kernel/sysrq"); // enable sysrq system("echo o > /proc/sysrq-trigger"); // issue shutdown command while(1) {}; // spin 'til we die return 0; }
Convert from reboot to shutdown
Convert from reboot to shutdown
C
mit
jkingsman/nope
5ca164cff61111216fd424e7c5c125cc4fa5f36a
source/common/mesh_elements.h
source/common/mesh_elements.h
/* Lantern - A path tracer * * Lantern is the legal property of Adrian Astley * Copyright Adrian Astley 2015 - 2016 */ #pragma once #include "vector_types.h" namespace Lantern { typedef float4 Vertex; struct Triangle { int V0, V1, V2; }; } // End of namespace Lantern
Create structs for triangle mesh representations
Create structs for triangle mesh representations
C
apache-2.0
RichieSams/lantern,RichieSams/lantern
23b071e99c45844061ef5fad702993e27a1cd1d9
tests/test_time.c
tests/test_time.c
#define _RESCLIB_SOURCE #include <stdlib.h> #undef _RESCLIB_SOURCE #include <string.h> #include <time.h> #include "seatest.h" static void test_gmtime_asctime (void) { time_t timestamps[] = { -12219292800, 0, 1468110957 }; char timestamp_strings[][26] = { "Fri Oct 15 0: 0: 0 1582\n", "Thu Jan 1 0: 0: 0 1970\n", "Sun Jul 10 0:35:57 2016\n" }; assert_int_equal(_countof(timestamps), _countof(timestamp_strings)); for (size_t i = 0; i < _countof(timestamps); i++) { struct tm t; gmtime_s(&(timestamps[i]), &t); char buf[26]; asctime_s(buf, sizeof(buf), &t); assert_int_equal(0, strcmp(buf, timestamp_strings[i])); } } void test_time (void) { test_fixture_start(); run_test(test_gmtime_asctime); test_fixture_end(); }
#define _RESCLIB_SOURCE #include <stdlib.h> #undef _RESCLIB_SOURCE #include <time.h> #include "seatest.h" static void test_gmtime_asctime (void) { time_t timestamps[] = { -12219292800, 0, 1468110957 }; char timestamp_strings[][26] = { "Fri Oct 15 0: 0: 0 1582\n", "Thu Jan 1 0: 0: 0 1970\n", "Sun Jul 10 0:35:57 2016\n" }; assert_int_equal(_countof(timestamps), _countof(timestamp_strings)); for (size_t i = 0; i < _countof(timestamps); i++) { struct tm t; gmtime_s(&(timestamps[i]), &t); char buf[26]; asctime_s(buf, sizeof(buf), &t); assert_string_equal(timestamp_strings[i], buf); } } void test_time (void) { test_fixture_start(); run_test(test_gmtime_asctime); test_fixture_end(); }
Use assert_string... instead of assert_int...
Use assert_string... instead of assert_int...
C
mit
kristapsk/resclib,kristapsk/reclib,kristapsk/reclib,kristapsk/resclib
ee62a25839ebf871fe04d3edb190b6ec3d535fe0
RespokeSDK/NSString+urlencode.h
RespokeSDK/NSString+urlencode.h
// // NSString+urlencode.h // Respoke SDK // // Copyright 2015, Digium, Inc. // All rights reserved. // // This source code is licensed under The MIT License found in the // LICENSE file in the root directory of this source tree. // // For all details and documentation: https://www.respoke.io // #import <Foundation/Foundation.h> @interface NSString (NSString_Extended) /** * Url-encodes a string, suitable for placing into a url as a portion of the query string * * @return The url-encoded version of the string */ - (NSString *)urlencode; @end
// // NSString+urlencode.h // Respoke SDK // // Copyright 2015, Digium, Inc. // All rights reserved. // // This source code is licensed under The MIT License found in the // LICENSE file in the root directory of this source tree. // // For all details and documentation: https://www.respoke.io // #import <Foundation/Foundation.h> @interface NSString (NSString_Extended) /** * Url-encodes a string, suitable for placing into a url as a portion of the query string. * Source taken from http://stackoverflow.com/a/8088484/355743 * * @return The url-encoded version of the string */ - (NSString *)urlencode; @end
Add comment about source of urlencode category
Add comment about source of urlencode category
C
mit
respoke/respoke-sdk-ios,respoke/respoke-sdk-ios,respoke/respoke-sdk-ios
04a4db7d336ae2cae94ac3234086b22fbf1339f0
src/canutil/write.c
src/canutil/write.c
#include "write.h" uint64_t encodeFloat(float value, uint8_t bitPosition, uint8_t bitSize, float factor, float offset) { float rawValue = (value - offset) / factor; if(rawValue > 0) { // round up to avoid losing precision when we cast to an int rawValue += 0.5; } uint64_t result = 0; setBitField(&result, (uint64_t)rawValue, bitPosition, bitSize); return result; } uint64_t encodeBoolean(bool value, uint8_t bitPosition, uint8_t bitSize, float factor, float offset) { return encodeFloat(value, offset, factor, bitPosition, bitSize); }
#include "write.h" #include <bitfield/bitfield.h> uint64_t encodeFloat(float value, uint8_t bitPosition, uint8_t bitSize, float factor, float offset) { float rawValue = (value - offset) / factor; if(rawValue > 0) { // round up to avoid losing precision when we cast to an int rawValue += 0.5; } uint64_t result = 0; setBitField(&result, (uint64_t)rawValue, bitPosition, bitSize); return result; } uint64_t encodeBoolean(bool value, uint8_t bitPosition, uint8_t bitSize, float factor, float offset) { return encodeFloat(value, offset, factor, bitPosition, bitSize); }
Add missing include for explicit import.
Add missing include for explicit import.
C
bsd-3-clause
openxc/bitfield-c,openxc/bitfield-c
8b1b109193042a0411926739baf81f30c686dcb4
libhijack/arch/aarch64/hijack_machdep.h
libhijack/arch/aarch64/hijack_machdep.h
/* * Copyright (c) 2017, Shawn Webb * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef _HIJACK_MACHDEP #define _HIJACK_MACHDEP #define BASEADDR 0x00400000 #define SYSCALLSEARCH "\x0f\x05" #define MMAPSYSCALL 477 #endif /* !_HIJACK_MACHDEP */
/* * Copyright (c) 2017, Shawn Webb * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef _HIJACK_MACHDEP #define _HIJACK_MACHDEP #define BASEADDR 0x00400000 #define SYSCALLSEARCH "\x01\x00\x00\xd4" #define MMAPSYSCALL 477 #endif /* !_HIJACK_MACHDEP */
Use the right opcode for the svc instruction
Use the right opcode for the svc instruction This is a NOP on arm64 right now. Signed-off-by: Shawn Webb <[email protected]>
C
bsd-2-clause
SoldierX/libhijack
70a260148ff33185ce8e70b3dbd46a15c0ff5aaf
cc2/arch/qbe/code.c
cc2/arch/qbe/code.c
#include <stdio.h> #include <stdlib.h> #include "arch.h" #include "../../cc2.h" #include "../../../inc/sizes.h" void defsym(Symbol *sym, int alloc) { } void data(Node *np) { } void writeout(void) { }
#include <stdio.h> #include <stdlib.h> #include "arch.h" #include "../../cc2.h" #include "../../../inc/sizes.h" /* * : is for user-defined Aggregate Types * $ is for globals (represented by a pointer) * % is for function-scope temporaries * @ is for block labels */ static char sigil(Symbol *sym) { switch (sym->kind) { case EXTRN: case GLOB: case PRIVAT: case LOCAL: return '$'; case AUTO: case REG: return '%'; default: abort(); } } static void size2asm(Type *tp) { char *s; if (tp->flags & STRF) { abort(); } else { switch (tp->size) { case 1: s = "b\t"; break; case 2: s = "h\t"; break; case 4: s = "w\t"; break; case 8: s = "q\t"; break; default: s = "z\t%llu\t"; break; } } printf(s, (unsigned long long) tp->size); } void defsym(Symbol *sym, int alloc) { if (!alloc) return; if (sym->kind == GLOB) fputs("export ", stdout); printf("data %c%s = {\n", sigil(sym), sym->name); if (sym->type.flags & INITF) return; putchar('\t'); size2asm(&sym->type); puts("0\n}"); } void data(Node *np) { } void writeout(void) { }
Add basic implementation of defsym()
[cc2] Add basic implementation of defsym() This is a first implementation which a limited implementation of sigil() and of size2asm() that, for instance, does not support strings.
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
09ce2e218fb34ec0ad182e3d378614257fdb22e6
subsys/random/rand32_entropy_device.c
subsys/random/rand32_entropy_device.c
/* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <atomic.h> #include <kernel.h> #include <entropy.h> static atomic_t entropy_driver; u32_t sys_rand32_get(void) { struct device *dev = (struct device *)atomic_get(&entropy_driver); u32_t random_num; int ret; if (unlikely(!dev)) { /* Only one entropy device exists, so this is safe even * if the whole operation isn't atomic. */ dev = device_get_binding(CONFIG_ENTROPY_NAME); atomic_set(&entropy_driver, (atomic_t)(uintptr_t)dev); } ret = entropy_get_entropy(dev, (u8_t *)&random_num, sizeof(random_num)); if (unlikely(ret < 0)) { /* Use system timer in case the entropy device couldn't deliver * 32-bit of data. There's not much that can be done in this * situation. An __ASSERT() isn't used here as the HWRNG might * still be gathering entropy during early boot situations. */ random_num = k_cycle_get_32(); } return random_num; }
/* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <atomic.h> #include <kernel.h> #include <entropy.h> static atomic_t entropy_driver; u32_t sys_rand32_get(void) { struct device *dev = (struct device *)atomic_get(&entropy_driver); u32_t random_num; int ret; if (unlikely(!dev)) { /* Only one entropy device exists, so this is safe even * if the whole operation isn't atomic. */ dev = device_get_binding(CONFIG_ENTROPY_NAME); __ASSERT((dev != NULL), "Device driver for %s (CONFIG_ENTROPY_NAME) not found. " "Check your build configuration!", CONFIG_ENTROPY_NAME); atomic_set(&entropy_driver, (atomic_t)(uintptr_t)dev); } ret = entropy_get_entropy(dev, (u8_t *)&random_num, sizeof(random_num)); if (unlikely(ret < 0)) { /* Use system timer in case the entropy device couldn't deliver * 32-bit of data. There's not much that can be done in this * situation. An __ASSERT() isn't used here as the HWRNG might * still be gathering entropy during early boot situations. */ random_num = k_cycle_get_32(); } return random_num; }
Add _ASSERT() test on returned device_get_binding
subsys/random: Add _ASSERT() test on returned device_get_binding If there is a build setup problem where a device driver has not been setup for the entropy driver then the call to device_get_binding() will return a NULL value and the code will continue to use this NULL value. The result is a hard fault later in code execution. Note that CONFIG_ASSERT is by default off so one has to turn this configuration on to catch this problem. Signed-off-by: David Leach <[email protected]>
C
apache-2.0
mbolivar/zephyr,mbolivar/zephyr,Vudentz/zephyr,finikorg/zephyr,kraj/zephyr,mbolivar/zephyr,aceofall/zephyr-iotos,nashif/zephyr,galak/zephyr,galak/zephyr,ldts/zephyr,zephyriot/zephyr,explora26/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,mbolivar/zephyr,ldts/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,mbolivar/zephyr,punitvara/zephyr,zephyriot/zephyr,aceofall/zephyr-iotos,nashif/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,explora26/zephyr,aceofall/zephyr-iotos,explora26/zephyr,zephyriot/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,ldts/zephyr,ldts/zephyr,kraj/zephyr,kraj/zephyr,ldts/zephyr,aceofall/zephyr-iotos,Vudentz/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,explora26/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,zephyriot/zephyr,zephyriot/zephyr,finikorg/zephyr,aceofall/zephyr-iotos,Vudentz/zephyr,galak/zephyr,nashif/zephyr,kraj/zephyr,Vudentz/zephyr,explora26/zephyr,finikorg/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr
5e4e3c9ecf68d84bb14e8fb9636537b25b0d77a2
src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519_api.c
src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519_api.c
#include "crypto_scalarmult_curve25519.h" size_t crypto_scalarmult_curve25519_bytes(void) { return crypto_scalarmult_curve25519_BYTES; } size_t crypto_scalarmult_curve25519_scalarbytes(void) { return crypto_scalarmult_curve25519_SCALARBYTES; }
#include "crypto_scalarmult_curve25519.h" size_t crypto_scalarmult_curve25519_bytes(void) { return crypto_scalarmult_curve25519_BYTES; } size_t crypto_scalarmult_curve25519_scalarbytes(void) { return crypto_scalarmult_curve25519_SCALARBYTES; }
Add an empty line. Yeah, that's a fantastic commit.
Add an empty line. Yeah, that's a fantastic commit.
C
isc
mvduin/libsodium,rustyhorde/libsodium,rustyhorde/libsodium,pyparallel/libsodium,optedoblivion/android_external_libsodium,CyanogenMod/android_external_dnscrypt_libsodium,Payshares/libsodium,Payshare/libsodium,kytvi2p/libsodium,HappyYang/libsodium,tml/libsodium,donpark/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,eburkitt/libsodium,donpark/libsodium,akkakks/libsodium,soumith/libsodium,eburkitt/libsodium,pmienk/libsodium,SpiderOak/libsodium,SpiderOak/libsodium,HappyYang/libsodium,paragonie-scott/libsodium,tml/libsodium,GreatFruitOmsk/libsodium,soumith/libsodium,Payshare/libsodium,zhuqling/libsodium,SpiderOak/libsodium,mvduin/libsodium,GreatFruitOmsk/libsodium,kytvi2p/libsodium,akkakks/libsodium,paragonie-scott/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,Payshares/libsodium,netroby/libsodium,eburkitt/libsodium,paragonie-scott/libsodium,SpiderOak/libsodium,soumith/libsodium,akkakks/libsodium,rustyhorde/libsodium,pyparallel/libsodium,kytvi2p/libsodium,Payshare/libsodium,JackWink/libsodium,Payshares/libsodium,tml/libsodium,akkakks/libsodium,netroby/libsodium,JackWink/libsodium,JackWink/libsodium,pmienk/libsodium,optedoblivion/android_external_libsodium,donpark/libsodium,zhuqling/libsodium,zhuqling/libsodium,GreatFruitOmsk/libsodium,pmienk/libsodium,mvduin/libsodium,HappyYang/libsodium,netroby/libsodium,pyparallel/libsodium,rustyhorde/libsodium,optedoblivion/android_external_libsodium
95b8564b85eb67cdf7cfafe1985e58894ab7134b
test/Frontend/plugins.c
test/Frontend/plugins.c
// RUN: %clang_cc1 -load %llvmshlibdir/PrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s // RUN: %clang_cl -Xclang -load -Xclang %llvmshlibdir/PrintFunctionNames%pluginext -Xclang -plugin -Xclang print-fns %s 2>&1 | FileCheck %s // REQUIRES: plugins, examples // CHECK: top-level-decl: "x" void x();
// RUN: %clang_cc1 -load %llvmshlibdir/PrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s // RUN: %clang_cl -c -Xclang -load -Xclang %llvmshlibdir/PrintFunctionNames%pluginext -Xclang -plugin -Xclang print-fns -Tc %s 2>&1 | FileCheck %s // REQUIRES: plugins, examples // CHECK: top-level-decl: "x" void x();
Fix the test added in r260266
Fix the test added in r260266 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@260276 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang
79408a202316fa24af2d6caf8c129dcd6f97f87e
sw/device/lib/testing/test_status.c
sw/device/lib/testing/test_status.c
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/testing/test_status.h" #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/log.h" #include "sw/device/lib/base/mmio.h" #include "sw/device/lib/runtime/hart.h" /** * Address of the memory location to write the test status. For DV use only. */ static const uintptr_t kSwDvTestStatusAddr = 0x1000fff8; void test_status_set(test_status_t test_status) { if (kDeviceType == kDeviceSimDV) { mmio_region_t sw_dv_test_status_addr = mmio_region_from_addr(kSwDvTestStatusAddr); mmio_region_write32(sw_dv_test_status_addr, 0x0, (uint32_t)test_status); } switch (test_status) { case kTestStatusPassed: { LOG_INFO("PASS"); abort(); break; } case kTestStatusFailed: { LOG_INFO("FAIL"); abort(); break; } default: { // Do nothing. break; } } }
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/testing/test_status.h" #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/log.h" #include "sw/device/lib/base/mmio.h" #include "sw/device/lib/runtime/hart.h" /** * Address of the memory location to write the test status. For DV use only. */ static const uintptr_t kSwDvTestStatusAddr = 0x1000fff8; void test_status_set(test_status_t test_status) { if (kDeviceType == kDeviceSimDV) { mmio_region_t sw_dv_test_status_addr = mmio_region_from_addr(kSwDvTestStatusAddr); mmio_region_write32(sw_dv_test_status_addr, 0x0, (uint32_t)test_status); } switch (test_status) { case kTestStatusPassed: { LOG_INFO("PASS!"); abort(); break; } case kTestStatusFailed: { LOG_INFO("FAIL!"); abort(); break; } default: { // Do nothing. break; } } }
Fix PASS!, FAIL! signatures for CI
[sw] Fix PASS!, FAIL! signatures for CI Signed-off-by: Srikrishna Iyer <[email protected]>
C
apache-2.0
lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan
860d69cadedef0dec8ba6259ab5850691d3402e7
src/tslib-private.h
src/tslib-private.h
#ifndef _TSLIB_PRIVATE_H_ #define _TSLIB_PRIVATE_H_ /* * tslib/src/tslib-private.h * * Copyright (C) 2001 Russell King. * * This file is placed under the LGPL. * * * Internal touch screen library definitions. */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include "tslib.h" #include "tslib-filter.h" #define DEBUG struct tsdev { int fd; struct tslib_module_info *list; struct tslib_module_info *list_raw; /* points to position in 'list' where raw reads come from. default is the position of the ts_read_raw module. */ unsigned int res_x; unsigned int res_y; int rotation; }; int __ts_attach(struct tsdev *ts, struct tslib_module_info *info); int __ts_attach_raw(struct tsdev *ts, struct tslib_module_info *info); int ts_load_module(struct tsdev *dev, const char *module, const char *params); int ts_load_module_raw(struct tsdev *dev, const char *module, const char *params); int ts_error(const char *fmt, ...); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* _TSLIB_PRIVATE_H_ */
#ifndef _TSLIB_PRIVATE_H_ #define _TSLIB_PRIVATE_H_ /* * tslib/src/tslib-private.h * * Copyright (C) 2001 Russell King. * * This file is placed under the LGPL. * * * Internal touch screen library definitions. */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include "tslib.h" #include "tslib-filter.h" struct tsdev { int fd; struct tslib_module_info *list; struct tslib_module_info *list_raw; /* points to position in 'list' where raw reads come from. default is the position of the ts_read_raw module. */ unsigned int res_x; unsigned int res_y; int rotation; }; int __ts_attach(struct tsdev *ts, struct tslib_module_info *info); int __ts_attach_raw(struct tsdev *ts, struct tslib_module_info *info); int ts_load_module(struct tsdev *dev, const char *module, const char *params); int ts_load_module_raw(struct tsdev *dev, const char *module, const char *params); int ts_error(const char *fmt, ...); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* _TSLIB_PRIVATE_H_ */
Revert "Enable debug option for all components"
Revert "Enable debug option for all components" This reverts commit 9c3742a8d8a829ec746e0a974aa30fb5dd0e3d1a.
C
lgpl-2.1
folkien/tslib,vpeter4/tslib,kergoth/tslib,etmatrix/tslib,lin2724/tslib,folkien/tslib,etmatrix/tslib,leighmurray/tslib,lin2724/tslib,vpeter4/tslib,kergoth/tslib,pssc/tslib,kobolabs/tslib,kergoth/tslib,leighmurray/tslib,pssc/tslib,kobolabs/tslib,etmatrix/tslib,pssc/tslib,jaretcantu/tslib,jaretcantu/tslib,kobolabs/tslib,kergoth/tslib
aec7c5441c59362fe2445515156a6ce88868d5ff
targets/TARGET_NUVOTON/TARGET_M2351/device/cmsis.h
targets/TARGET_NUVOTON/TARGET_M2351/device/cmsis.h
/* mbed Microcontroller Library * Copyright (c) 2015-2017 Nuvoton * * 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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef MBED_CMSIS_H #define MBED_CMSIS_H #include "M2351.h" #include "cmsis_nvic.h" // Support linker-generated symbol as start of relocated vector table. #if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) extern uint32_t Image$$ER_IRAMVEC$$ZI$$Base; #elif defined(__ICCARM__) #elif defined(__GNUC__) extern uint32_t __start_vector_table__; #endif #endif
/* mbed Microcontroller Library * Copyright (c) 2015-2017 Nuvoton * * 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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef MBED_CMSIS_H #define MBED_CMSIS_H #include "M2351.h" #include "cmsis_nvic.h" // Support linker-generated symbol as start of relocated vector table. #if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) extern uint32_t Image$$ER_IRAMVEC$$ZI$$Base; #elif defined(__ICCARM__) #elif defined(__GNUC__) extern uint32_t __start_vector_table__; #endif /* TZ_START_NS: Start address of non-secure application */ #ifndef TZ_START_NS #define TZ_START_NS (0x10040000U) #endif #endif
Add non-secure reset handler address
[M2351] Add non-secure reset handler address
C
apache-2.0
c1728p9/mbed-os,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,betzw/mbed-os,betzw/mbed-os,mbedmicro/mbed,andcor02/mbed-os,c1728p9/mbed-os,andcor02/mbed-os,betzw/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,betzw/mbed-os,betzw/mbed-os,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,andcor02/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os
3b7f936ae7fecaca3abd5b563610c207dd7d704e
A/03/09/task1.c
A/03/09/task1.c
#include <stdio.h> #include <string.h> int is_valid_ucn(char*); int main() { char ucn[12]; fgets(ucn, 13, stdin); printf("%d", is_valid_ucn(ucn)); return 0; } int is_valid_ucn(char *ucn) { int control = 0, month = (ucn[2] - '0') * 10 + (ucn[3] - '0'); int length = strlen(ucn); int weights[] = { 2, 4, 8, 5, 10, 9, 7, 3, 6 }; if (length == 10) { if (!( (month >= 1 && month <= 12) || (month >= 1 + 20 && month <= 12 + 20) || (month >= 1 + 40 && month <= 12 + 40)) ) { return 0; } for (int i = 0; i < length - 1; i++) { control += (ucn[i] - '0') * weights[i]; } control %= 11; if (control != ucn[9] - '0' || control > 10) { return 0; } } else { return 0; } return 1; }
Add Task 01 from Homework 03
Add Task 01 from Homework 03
C
mit
elsys/po-homework
ced21016cec1f189a695857bed103ecc9e3f3696
include/clang/AST/ParentMap.h
include/clang/AST/ParentMap.h
//===--- ParentMap.h - Mappings from Stmts to their Parents -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file defines the ParentMap class. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_PARENTMAP_H #define LLVM_CLANG_PARENTMAP_H namespace clang { class Stmt; class ParentMap { void* Impl; public: ParentMap(Stmt* ASTRoot); ~ParentMap(); Stmt* getParent(Stmt*) const; bool hasParent(Stmt* S) const { return getParent(S) != 0; } }; } // end clang namespace #endif
//===--- ParentMap.h - Mappings from Stmts to their Parents -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file defines the ParentMap class. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_PARENTMAP_H #define LLVM_CLANG_PARENTMAP_H namespace clang { class Stmt; class ParentMap { void* Impl; public: ParentMap(Stmt* ASTRoot); ~ParentMap(); Stmt* getParent(Stmt*) const; const Stmt* getParent(const Stmt* S) const { return getParent(const_cast<Stmt*>(S)); } bool hasParent(Stmt* S) const { return getParent(S) != 0; } }; } // end clang namespace #endif
Add missing header file change.
Add missing header file change. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@67871 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang
734ccee565efd274e47f95ea314220726a38a512
src/gallium/include/pipe/p_error.h
src/gallium/include/pipe/p_error.h
/************************************************************************** * * Copyright 2008 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 * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sub license, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice (including the * next paragraph) shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * **************************************************************************/ /** * @file * Gallium error codes. * * @author José Fonseca <[email protected]> */ #ifndef P_ERROR_H_ #define P_ERROR_H_ #ifdef __cplusplus extern "C" { #endif /** * Gallium error codes. * * - A zero value always means success. * - A negative value always means failure. * - The meaning of a positive value is function dependent. */ enum pipe_error { PIPE_OK = 0, PIPE_ERROR = -1, /**< Generic error */ PIPE_ERROR_BAD_INPUT = -2, PIPE_ERROR_OUT_OF_MEMORY = -3, PIPE_ERROR_RETRY = -4 /* TODO */ }; #ifdef __cplusplus } #endif #endif /* P_ERROR_H_ */
Standardize most important error codes.
gallium: Standardize most important error codes.
C
mit
benaadams/glsl-optimizer,metora/MesaGLSLCompiler,mapbox/glsl-optimizer,mapbox/glsl-optimizer,djreep81/glsl-optimizer,benaadams/glsl-optimizer,mapbox/glsl-optimizer,benaadams/glsl-optimizer,zeux/glsl-optimizer,adobe/glsl2agal,benaadams/glsl-optimizer,KTXSoftware/glsl2agal,zz85/glsl-optimizer,jbarczak/glsl-optimizer,djreep81/glsl-optimizer,benaadams/glsl-optimizer,adobe/glsl2agal,zeux/glsl-optimizer,mapbox/glsl-optimizer,dellis1972/glsl-optimizer,zeux/glsl-optimizer,djreep81/glsl-optimizer,jbarczak/glsl-optimizer,wolf96/glsl-optimizer,tokyovigilante/glsl-optimizer,wolf96/glsl-optimizer,KTXSoftware/glsl2agal,metora/MesaGLSLCompiler,dellis1972/glsl-optimizer,tokyovigilante/glsl-optimizer,adobe/glsl2agal,mapbox/glsl-optimizer,bkaradzic/glsl-optimizer,tokyovigilante/glsl-optimizer,wolf96/glsl-optimizer,wolf96/glsl-optimizer,adobe/glsl2agal,jbarczak/glsl-optimizer,zeux/glsl-optimizer,bkaradzic/glsl-optimizer,zz85/glsl-optimizer,metora/MesaGLSLCompiler,dellis1972/glsl-optimizer,zz85/glsl-optimizer,KTXSoftware/glsl2agal,zz85/glsl-optimizer,mcanthony/glsl-optimizer,wolf96/glsl-optimizer,bkaradzic/glsl-optimizer,mcanthony/glsl-optimizer,tokyovigilante/glsl-optimizer,KTXSoftware/glsl2agal,mcanthony/glsl-optimizer,djreep81/glsl-optimizer,djreep81/glsl-optimizer,jbarczak/glsl-optimizer,KTXSoftware/glsl2agal,bkaradzic/glsl-optimizer,tokyovigilante/glsl-optimizer,zeux/glsl-optimizer,jbarczak/glsl-optimizer,mcanthony/glsl-optimizer,mcanthony/glsl-optimizer,zz85/glsl-optimizer,zz85/glsl-optimizer,adobe/glsl2agal,dellis1972/glsl-optimizer,bkaradzic/glsl-optimizer,dellis1972/glsl-optimizer,benaadams/glsl-optimizer
2174ba24cb1eb714ff02128b034cd967f78e5d17
runtime/common/xwalk_common_message_generator.h
runtime/common/xwalk_common_message_generator.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Multiply-included file, hence no include guard. #include "xwalk/runtime/common/xwalk_common_messages.h"
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Multiply-included file, hence no include guard. // NOLINT(build/header_guard) #include "xwalk/runtime/common/xwalk_common_messages.h"
Add a NOLINT to avoid a build/header_guard cpplint warning.
Add a NOLINT to avoid a build/header_guard cpplint warning. `xwalk_common_message_generator.h` does not have include guards, and according to a comment there this seems to be on purpose. Add a `NOLINT` entry to it to avoid cpplint a build/header_guard error. BUG=XWALK-1853
C
bsd-3-clause
rakuco/crosswalk,crosswalk-project/crosswalk,baleboy/crosswalk,dreamsxin/crosswalk,crosswalk-project/crosswalk,xzhan96/crosswalk,lincsoon/crosswalk,PeterWangIntel/crosswalk,rakuco/crosswalk,heke123/crosswalk,dreamsxin/crosswalk,heke123/crosswalk,axinging/crosswalk,PeterWangIntel/crosswalk,heke123/crosswalk,xzhan96/crosswalk,crosswalk-project/crosswalk,xzhan96/crosswalk,lincsoon/crosswalk,crosswalk-project/crosswalk,xzhan96/crosswalk,axinging/crosswalk,darktears/crosswalk,hgl888/crosswalk,hgl888/crosswalk,axinging/crosswalk,darktears/crosswalk,hgl888/crosswalk,rakuco/crosswalk,PeterWangIntel/crosswalk,xzhan96/crosswalk,rakuco/crosswalk,heke123/crosswalk,hgl888/crosswalk,axinging/crosswalk,dreamsxin/crosswalk,darktears/crosswalk,crosswalk-project/crosswalk,heke123/crosswalk,lincsoon/crosswalk,dreamsxin/crosswalk,hgl888/crosswalk,hgl888/crosswalk,lincsoon/crosswalk,darktears/crosswalk,lincsoon/crosswalk,PeterWangIntel/crosswalk,darktears/crosswalk,baleboy/crosswalk,baleboy/crosswalk,PeterWangIntel/crosswalk,lincsoon/crosswalk,PeterWangIntel/crosswalk,PeterWangIntel/crosswalk,darktears/crosswalk,darktears/crosswalk,baleboy/crosswalk,rakuco/crosswalk,lincsoon/crosswalk,axinging/crosswalk,baleboy/crosswalk,baleboy/crosswalk,xzhan96/crosswalk,dreamsxin/crosswalk,crosswalk-project/crosswalk,baleboy/crosswalk,hgl888/crosswalk,crosswalk-project/crosswalk,axinging/crosswalk,xzhan96/crosswalk,hgl888/crosswalk,heke123/crosswalk,darktears/crosswalk,xzhan96/crosswalk,rakuco/crosswalk,heke123/crosswalk,crosswalk-project/crosswalk,axinging/crosswalk,baleboy/crosswalk,heke123/crosswalk,dreamsxin/crosswalk,dreamsxin/crosswalk,rakuco/crosswalk,rakuco/crosswalk,lincsoon/crosswalk
af8f7968770fa4714fb0c4d55277fb117fc39be9
snp/packets.h
snp/packets.h
#pragma once #include <winsock2.h> #include "common/types.h" #define SNP_PACKET_SIZE 512 namespace sbat { namespace snp { enum class PacketType : byte { Storm = 0 }; #pragma pack(push) #pragma pack(1) // this packet info wraps the packets sent by storm/us with something that can be used to route it struct PacketHeader { PacketType type; uint16 size; // size does not include the size of this header }; #pragma pack(pop) // Storm packets that will be queued until read struct StormPacket { byte data[SNP_PACKET_SIZE]; sockaddr_in from_address; uint32 size; StormPacket* next; }; } // namespace snp } // namespace sbat
#pragma once #include <winsock2.h> #include "common/types.h" namespace sbat { namespace snp { // min-MTU - (max-IP-header-size + udp-header-size) const size_t SNP_PACKET_SIZE = 576 - (60 + 8); enum class PacketType : byte { Storm = 0 }; #pragma pack(push) #pragma pack(1) // this packet info wraps the packets sent by storm/us with something that can be used to route it struct PacketHeader { PacketType type; uint16 size; // size does not include the size of this header }; #pragma pack(pop) // Storm packets that will be queued until read struct StormPacket { byte data[SNP_PACKET_SIZE]; sockaddr_in from_address; uint32 size; StormPacket* next; }; } // namespace snp } // namespace sbat
Adjust snp packet size to better accomodate small MTUs.
Adjust snp packet size to better accomodate small MTUs.
C
mit
ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery
bcf0039db5bac0f9a517c900eef642166822d00a
6_kyu/Simpson_Integral_Approximation.c
6_kyu/Simpson_Integral_Approximation.c
#include <stdio.h> #include <math.h> #define SIMPSON_METHOD 1 double fun(double x) { return (3.0 / 2) * pow(sin(x), 3); } double simpson_helper(double (*f)(double), double from, double to, int steps) { double result = 0.0; double acc = 0.0; double h = (to - from) / steps; result += (*f)(from) + (*f)(to); acc = 0.0; for (int i = 1, limit = steps / 2; i <= limit; i++) { acc += (*f)(from + (2 * i - 1) * h); } result += 4 * acc; acc = 0.0; for (int i = 1, limit = steps / 2 - 1; i <= limit; i++) { acc += (*f)(from + 2 * i * h); } result += 2 * acc; return (h / 3) * result; } /*codewars task function*/ double simpson(int n) { return simpson_helper(fun, 0, M_PI, n); } double integral(double (*f)(double), double from, double to, int precision, int method) { switch(method) { case SIMPSON_METHOD: default: return simpson_helper(f, from, to, precision); } } int main () { unsigned int n; scanf("%d", &n); printf("%f", integral(fun, 0, M_PI, n, SIMPSON_METHOD)); return 1; }
Add Simpron integral approx. kata
Add Simpron integral approx. kata
C
mit
nkapliev/codewars,nkapliev/codewars,nkapliev/codewars,nkapliev/codewars
d46e893a0d7081a0821f89625e0731b78035e1ea
src/adler32.c
src/adler32.c
/* * adler32.c * * Adler-32 checksum algorithm. */ #include "adler32.h" u32 adler32(const u8 *buffer, size_t size) { u32 s1 = 1; u32 s2 = 0; for (size_t i = 0; i < size; i++) { s1 = (s1 + buffer[i]) % 65521; s2 = (s2 + s1) % 65521; } return (s2 << 16) | s1; }
/* * adler32.c * * Adler-32 checksum algorithm. */ #include "adler32.h" #include "compiler.h" /* * The Adler-32 divisor, or "base", value. */ #define DIVISOR 65521 /* * MAX_BYTES_PER_CHUNK is the most bytes that can be processed without the * possibility of s2 overflowing when it is represented as an unsigned 32-bit * integer. This value was computed using the following Python script: * * divisor = 65521 * count = 0 * s1 = divisor - 1 * s2 = divisor - 1 * while True: * s1 += 0xFF * s2 += s1 * if s2 > 0xFFFFFFFF: * break * count += 1 * print(count) * * Note that to get the correct worst-case value, we must assume that every byte * has value 0xFF and that s1 and s2 started with the highest possible values * modulo the divisor. */ #define MAX_BYTES_PER_CHUNK 5552 u32 adler32(const u8 *buffer, size_t size) { u32 s1 = 1; u32 s2 = 0; const u8 *p = buffer; const u8 * const end = p + size; while (p != end) { const u8 *chunk_end = p + min(end - p, MAX_BYTES_PER_CHUNK); do { s1 += *p++; s2 += s1; } while (p != chunk_end); s1 %= 65521; s2 %= 65521; } return (s2 << 16) | s1; }
Speed up Adler-32 by doing modulo less often
Speed up Adler-32 by doing modulo less often
C
mit
ebiggers/libdeflate,ebiggers/libdeflate,ebiggers/libdeflate
e8a8ac08d9abe98ef3ecba4766e5f2665313ce3b
src/rtcmix/rtdefs.h
src/rtcmix/rtdefs.h
/* To avoid recursion in certain includes */ #ifndef _RTDEFS_H_ #define _RTDEFS_H_ 1 #define MAXCHANS 4 #define MAX_INPUT_FDS 128 #define AUDIO_DEVICE 9999999 /* definition of input file desc struct used by rtinput */ typedef struct inputdesc { char filename[1024]; int fd; int refcount; short header_type; /* e.g., AIFF_sound_file (in sndlib.h) */ short data_format; /* e.g., snd_16_linear (in sndlib.h) */ short chans; float srate; int data_location; /* offset of sound data start in file */ float dur; } InputDesc; /* for insts - so they don't have to include globals.h */ extern int MAXBUF; extern int NCHANS; extern int RTBUFSAMPS; extern float SR; #endif /* _RTDEFS_H_ */
/* To avoid recursion in certain includes */ #ifndef _RTDEFS_H_ #define _RTDEFS_H_ 1 #define MAXCHANS 4 #define MAX_INPUT_FDS 128 #define NO_DEVICE_FDINDEX -1 #define AUDIO_DEVICE_FDINDEX -2 /* definition of input file desc struct used by rtinput */ typedef struct inputdesc { char filename[1024]; int fd; int refcount; short header_type; /* e.g., AIFF_sound_file (in sndlib.h) */ short data_format; /* e.g., snd_16_linear (in sndlib.h) */ short chans; float srate; int data_location; /* offset of sound data start in file */ float dur; } InputDesc; /* for insts - so they don't have to include globals.h */ extern int MAXBUF; extern int NCHANS; extern int RTBUFSAMPS; extern float SR; #endif /* _RTDEFS_H_ */
Change "AUDIO_DEVICE" to "AUDIO_DEVICE_FDINDEX", and change its value. Add new "NO_DEVICE_FDINDEX".
Change "AUDIO_DEVICE" to "AUDIO_DEVICE_FDINDEX", and change its value. Add new "NO_DEVICE_FDINDEX".
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
3c2e43310c2530efe55a10c6e02b89501c373f08
sticks.c
sticks.c
#include <stdio.h> typedef struct { int hands[2][2]; int turn; } Sticks; void sticks_create(Sticks *sticks) { sticks->hands[0][0] = 1; sticks->hands[0][1] = 1; sticks->hands[1][0] = 1; sticks->hands[1][1] = 1; sticks->turn = 0; } void sticks_play(Sticks *sticks, int x, int y) { sticks->hands[!sticks->turn][y] += sticks->hands[sticks->turn][x]; if (sticks->hands[!sticks->turn][y] >= 5) { sticks->hands[!sticks->turn][y] = 0; } sticks->turn = !sticks->turn; } int main(void) { Sticks sticks; sticks_create(&sticks); printf("%d\n", sticks.hands[0][0]); printf("%d\n", sticks.turn); sticks_play(&sticks, 0, 1); printf("%d\n", sticks.hands[1][1]); printf("%d\n", sticks.turn); }
#include <stdio.h> typedef struct { int hands[2][2]; int turn; } Sticks; void sticks_create(Sticks *sticks) { sticks->hands[0][0] = 1; sticks->hands[0][1] = 1; sticks->hands[1][0] = 1; sticks->hands[1][1] = 1; sticks->turn = 0; } void sticks_play(Sticks *sticks, int attack, int x, int y) { if (attack) { sticks->hands[!sticks->turn][y] += sticks->hands[sticks->turn][x]; if (sticks->hands[!sticks->turn][y] >= 5) { sticks->hands[!sticks->turn][y] = 0; } } else { int fingers = sticks->hands[sticks->turn][0] + sticks->hands[sticks->turn][1]; int desired = 2 * x + y; if (desired > fingers) desired = fingers; if (desired < fingers - 4) desired = fingers - 4; sticks->hands[sticks->turn][0] = desired; sticks->hands[sticks->turn][1] = fingers - desired; } sticks->turn = !sticks->turn; } int main(void) { Sticks sticks; sticks_create(&sticks); printf("%d\n", sticks.hands[0][0]); printf("%d\n", sticks.turn); sticks_play(&sticks, 0, 0, 0); printf("%d\n", sticks.hands[0][0]); printf("%d\n", sticks.hands[0][1]); printf("%d\n", sticks.turn); }
Allow user to move fingers between own hands
Allow user to move fingers between own hands
C
mit
tysonzero/c-ann
13f94cfadc2cfdcbb7b37a569b78114563f7fbda
src/util/Interval.h
src/util/Interval.h
#ifndef INTERVAL_H #define INTERVAL_H namespace Interval{ class RepeatedInterval{ uint32_t next; uint32_t span; public: RepeatedInterval(uint32_t span): span(span) { next = millis() + span; } boolean operator()() { if(millis() > next){ next += span; return true; } return false; } }; /** * Returns a functor that returns true once every `milliseconds` * @param milliseconds The interval time * @return A functor */ RepeatedInterval every(uint32_t milliseconds){ return RepeatedInterval(milliseconds); } class SingleInterval{ uint32_t endTime; public: SingleInterval(uint32_t t): endTime(t) {} boolean operator()() { return millis() > endTime; } }; /** * Returns a functor that returns false until `milliseconds` have elapsed * @param milliseconds The interval time * @return A functor */ SingleInterval elapsed(uint32_t milliseconds){ return SingleInterval( millis() + milliseconds); } } #endif
#ifndef INTERVAL_H #define INTERVAL_H namespace Interval{ class RepeatedInterval{ uint32_t next; uint32_t span; public: RepeatedInterval(uint32_t span): span(span) { next = millis() + span; } boolean operator()() { if(millis() > next){ next += span; return true; } return false; } }; /** * Returns a functor that returns true once every `milliseconds` * @param milliseconds The interval time * @return A functor */ RepeatedInterval every(uint32_t milliseconds){ return RepeatedInterval(milliseconds); } class SingleInterval{ uint32_t endTime; public: SingleInterval(uint32_t t): endTime(t) {} boolean operator()() { return millis() > endTime; } }; /** * Returns a functor that returns false until `milliseconds` have elapsed * @param milliseconds The interval time * @return A functor */ SingleInterval elapsed(uint32_t milliseconds){ return SingleInterval( millis() + milliseconds); } class Timer{ uint32_t lastCall; public: Timer(){ reset(); } void reset() { lastCall = micros(); } uint32_t operator()() { return micros() - lastCall; } }; Timer timer(){ return Timer(); } } #endif
Add a timer utility to interval namespace
Add a timer utility to interval namespace
C
apache-2.0
MINDS-i/MINDS-i-Drone,MINDS-i/MINDS-i-Drone
3f0057466acce1d8983cf0b6b8ef7abbe084f3f0
src/window.h
src/window.h
#ifndef _WINDOW_H_ #define _WINDOW_H_ #include <string> #include <iostream> class Window { std::string title; public: Window(const std::string& title): title(title) {} virtual void handle() = 0; void drawTitle() { //#ifdef _WIN32 //std::system("cls"); //#else //assuming linux, yeah, I know //std::system("clear"); //#endif std::cout << " " << title << std::endl; std::cout << "================================" << std::endl; } std::string readCommand(const std::string& prompt) { std::cout << prompt; std::string cmd; std::cin >> cmd; return cmd; } std::string readCommand() { return readCommand("> "); } }; #endif
#ifndef _WINDOW_H_ #define _WINDOW_H_ #include <string> #include <iostream> #include <cstdlib> class Window { std::string title; public: Window(const std::string& title): title(title) {} virtual void handle() = 0; void drawTitle() { #ifdef _WIN32 std::system("cls"); #else //assuming linux, yeah, I know std::system("clear"); #endif std::cout << " " << title << std::endl; std::cout << "================================" << std::endl; } std::string readCommand(const std::string& prompt) { std::cout << prompt; std::string cmd; std::getline(std::cin,cmd); return cmd; } std::string readCommand() { return readCommand("> "); } }; #endif
Enable clearing, use getline to read empty lines
Enable clearing, use getline to read empty lines
C
mit
nyz93/advertapp,nyz93/advertapp
6958b17b0e3a663bbd3832ac49e598469f1699c0
src/sampgdk.c
src/sampgdk.c
#include "sampgdk.h" #if SAMPGDK_WINDOWS #undef CreateMenu #undef DestroyMenu #undef GetTickCount #undef KillTimer #undef SelectObject #undef SetTimer #define WIN32_LEAN_AND_MEAN #include <windows.h> #else #define _GNU_SOURCE #endif
#include "sampgdk.h" #if SAMPGDK_WINDOWS #ifdef _MSC_VER #pragma warning(disable: 4996) #endif #undef CreateMenu #undef DestroyMenu #undef GetTickCount #undef KillTimer #undef SelectObject #undef SetTimer #define WIN32_LEAN_AND_MEAN #include <windows.h> #else #define _GNU_SOURCE #endif
Disable warning C4996 in amalgamation
Disable warning C4996 in amalgamation
C
apache-2.0
Zeex/sampgdk,WopsS/sampgdk,WopsS/sampgdk,Zeex/sampgdk,WopsS/sampgdk,Zeex/sampgdk
0047f0e77b601734597bf882f55f5bf4b0ede639
calc.c
calc.c
#include "calc.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> double calc(const char* p, int mul_div_flag) { int i; double ans; ans = atof(p); if (p[0] != '(' && mul_div_flag == 1){ return (ans); } i = 0; while (p[i] != '\0'){ while (isdigit(p[i])){ i++; } switch (p[i]){ case '+': return (ans + calc(p + i + 1, 0)); case '-': return (ans - calc(p + i + 1, 0)); case '*': ans *= calc(p + i + 1, 1); if (p[i + 1] == '('){ while (p[i] != ')'){ i++; } } i++; break; case '/': ans /= calc(p + i + 1, 1); if (p[i + 1] == '('){ while (p[i] != ')'){ i++; } } i++; break; case '(': return (calc(p + i + 1, 0)); case ')': case '\0': return (ans); default: puts("Error"); return (0); } } return (ans); }
#include "calc.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> double calc(const char* p, int mul_div_flag) { int i; double ans; if (p[0] != '(' && mul_div_flag == 1){ return (atof(p)); } else if (p[0] == '('){ ans = 0; } else { ans = atof(p); } i = 0; while (p[i] != '\0'){ while (isdigit(p[i])){ i++; } switch (p[i]){ case '+': return (ans + calc(p + i + 1, 0)); case '-': return (ans - calc(p + i + 1, 0)); case '*': ans *= calc(p + i + 1, 1); if (p[i + 1] == '('){ while (p[i] != ')'){ i++; } } i++; break; case '/': ans /= calc(p + i + 1, 1); if (p[i + 1] == '('){ while (p[i] != ')'){ i++; } } i++; break; case '(': return (calc(p + i + 1, 0)); case ')': case '\0': return (ans); default: puts("Error"); return (0); } } return (ans); }
Split mul_div flag part to avoid bugs
Split mul_div flag part to avoid bugs
C
mit
Roadagain/Calculator,Roadagain/Calculator
3f1de23eee55029056d26bd123f61adaf1ec3525
main.c
main.c
#include <stdlib.h> #include <stdio.h> int main() { FILE *file; long length; char *buffer; file = fopen("example.minty", "r"); if (file == NULL) { return 1; } fseek(file, 0, SEEK_END); length = ftell(file); fseek(file, 0, SEEK_SET); buffer = (char *)malloc(length); fread(buffer, length, 1, file); fclose(file); printf("%s", buffer); return 0; }
#include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]) { FILE *file; long length; char *buffer; if (argc < 2) { return 1; } file = fopen(argv[1], "r"); if (file == NULL) { return 1; } fseek(file, 0, SEEK_END); length = ftell(file); fseek(file, 0, SEEK_SET); buffer = (char *)malloc(length); fread(buffer, length, 1, file); fclose(file); printf("%s", buffer); return 0; }
Allow program to run to be specified on command line
Allow program to run to be specified on command line
C
mit
shanepelletier/ChocoMinty
f5e5f7d6cdb9ce7c8203b7bfe2c5269a14813433
tests/drivers/build_all/modem/src/main.c
tests/drivers/build_all/modem/src/main.c
/* * Copyright (c) 2012-2014 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <sys/printk.h> #include <device.h> /* * @file * @brief Hello World demo */ void main(void) { printk("Hello World!\n"); } #if DT_NODE_EXISTS(DT_INST(0, vnd_gpio)) /* Fake GPIO device, needed for building drivers that use DEVICE_DT_GET() * to access GPIO controllers. */ DEVICE_DT_DEFINE(DT_INST(0, vnd_gpio), NULL, NULL, NULL, NULL, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, NULL); #endif #if DT_NODE_EXISTS(DT_INST(0, vnd_serial)) /* Fake serial device, needed for building drivers that use DEVICE_DT_GET() * to access serial bus. */ DEVICE_DT_DEFINE(DT_INST(0, vnd_serial), NULL, NULL, NULL, NULL, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, NULL); #endif
/* * Copyright (c) 2012-2014 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <sys/printk.h> #include <device.h> /* * @file * @brief Hello World demo */ void main(void) { printk("Hello World!\n"); } #if DT_NODE_EXISTS(DT_INST(0, vnd_gpio)) /* Fake GPIO device, needed for building drivers that use DEVICE_DT_GET() * to access GPIO controllers. */ DEVICE_DT_DEFINE(DT_INST(0, vnd_gpio), NULL, NULL, NULL, NULL, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, NULL); #endif
Revert "tests: drivers: build_all: add fake serial device for modem tests"
Revert "tests: drivers: build_all: add fake serial device for modem tests" This reverts commit 9e58a1e475473fcea1c3b0d05ac9c738141c821a. This change is in conflict with commit 94f7ed356f0c ("drivers: serial: add a dummy driver for vnd,serial"). As a result two equal serial devices are defines, resulting in link error. Signed-off-by: Marcin Niestroj <[email protected]>
C
apache-2.0
finikorg/zephyr,finikorg/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,galak/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr
52e572fa6be630f16f119f17eb38fbe2e3b83ca0
inc/libutils/env.h
inc/libutils/env.h
/* * env.h * * Author: Ming Tsang * Copyright (c) 2014 Ming Tsang * Refer to LICENSE for details */ #pragma once #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) #if defined(UNIX) || defined(__unix__) || defined(LINUX) || defined(__linux__) #if !defined(UNIX) #define UNIX #endif #elif defined(_WIN32) || defined(WIN32) #if !defined(WIN32) #define WIN32 #endif #else #error Unsupported platform #endif
/* * env.h * * Author: Ming Tsang * Copyright (c) 2014 Ming Tsang * Refer to LICENSE for details */ #pragma once #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) #if defined(UNIX) || defined(__unix__) || defined(LINUX) || defined(__linux__) #if !defined(POSIX) #define POSIX #endif #elif defined(_WIN32) || defined(WIN32) #if !defined(WIN32) #define WIN32 #endif #else #error Unsupported platform #endif
Rename platform flag from UNIX to POSIX
Rename platform flag from UNIX to POSIX
C
mit
nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils
92caf20511f42cae8dd45fa982d538c8b96161c5
include/base/types.h
include/base/types.h
/* -------------------------------------------------------------------------- * Name: types.h * Purpose: Various typedefs and utility macros * ----------------------------------------------------------------------- */ #ifndef TYPES_H #define TYPES_H typedef signed char int8_t; typedef signed short int16_t; typedef signed int int32_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; #ifdef _WIN32 typedef int intptr_t; #endif #define NELEMS(x) ((int) (sizeof(x) / sizeof(x[0]))) #define MIN(x,y) ((x) < (y) ? (x) : (y)) #define MAX(x,y) ((x) > (y) ? (x) : (y)) #define NOT_USED(x) ((x) = (x)) #ifdef _WIN32 #define INLINE __inline #else #define INLINE __inline__ #endif #ifdef __GNUC__ #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else #define likely(x) (x) #define unlikely(x) (x) #endif #endif /* TYPES_H */
/* -------------------------------------------------------------------------- * Name: types.h * Purpose: Various typedefs and utility macros * ----------------------------------------------------------------------- */ #ifndef TYPES_H #define TYPES_H typedef signed char int8_t; typedef signed short int16_t; typedef signed int int32_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; #ifdef _MSC_VER #ifdef _WIN64 typedef __int64 intptr_t; #else typedef int intptr_t; #endif #endif #define NELEMS(x) ((int) (sizeof(x) / sizeof(x[0]))) #define MIN(x,y) ((x) < (y) ? (x) : (y)) #define MAX(x,y) ((x) > (y) ? (x) : (y)) #define NOT_USED(x) ((x) = (x)) #ifdef _WIN32 #define INLINE __inline #else #define INLINE __inline__ #endif #ifdef __GNUC__ #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else #define likely(x) (x) #define unlikely(x) (x) #endif #endif /* TYPES_H */
Declare intptr_t correctly for 64-bit Windows builds.
Declare intptr_t correctly for 64-bit Windows builds.
C
bsd-2-clause
dpt/Containers,dpt/Containers
2b8bfbea9493cd8742ca08b96ea8db02481dfc7a
ui/reflectionview.h
ui/reflectionview.h
#pragma once #include <QtGui/QMouseEvent> #include <QtGui/QPaintEvent> #include <QtWidgets/QWidget> #include "binaryninjaapi.h" #include "dockhandler.h" #include "uitypes.h" class ContextMenuManager; class DisassemblyContainer; class Menu; class ViewFrame; class BINARYNINJAUIAPI ReflectionView: public QWidget, public DockContextHandler { Q_OBJECT Q_INTERFACES(DockContextHandler) ViewFrame* m_frame; BinaryViewRef m_data; DisassemblyContainer* m_disassemblyContainer; public: ReflectionView(ViewFrame* frame, BinaryViewRef data); ~ReflectionView(); virtual void notifyOffsetChanged(uint64_t offset) override; virtual void notifyViewChanged(ViewFrame* frame) override; virtual bool shouldBeVisible(ViewFrame* frame) override; protected: virtual void contextMenuEvent(QContextMenuEvent* event) override; };
Add new synchronized graph sub-view dock widget (Reflection).
Add new synchronized graph sub-view dock widget (Reflection).
C
mit
joshwatson/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,joshwatson/binaryninja-api,joshwatson/binaryninja-api,joshwatson/binaryninja-api
10f5254d144aaa8af56eb6445cea08a491d9fcb8
loader/problem.h
loader/problem.h
// Explorer loader problem list // /problem.h #ifndef PROBLEM_H_ #define PROBLEM_H_ /**错误列表*/ #define ERR_NO_MEM_FOR_ID 1 // 没有可用于中断描述符表的内存 #define ERR_NO_MEM_FOR_SD 2 // 没有可用于储存器描述符表的内存 #define ERR_NO_MEM_FOR_SCTBUF 3 // 没有可用于扇区缓存的内存 #define ERR_NO_MEM_FOR_CONFIG 4 // 没有可以分配给引导配置文件的内存 #define ERR_NO_MEM_FOR_BUFFER 5 // 没有可以分配给缓冲系统的内存 #define ERR_NO_MEM_FOR_FS 6 // 没有可以分配给文件系统的内存 #define ERR_NO_MEM_FOR_MMU 7 // 没有可以分配给MMU的内存 /**警告列表*/ #define WARN_NO_MEM 0x80000001 // 无充足内存 #define WARN_STORAGE_NOT_SUPPORT 0x80000002 // 暂时不支持这个储存器 #endif
// Explorer loader problem list // /problem.h #ifndef PROBLEM_H_ #define PROBLEM_H_ /**错误列表*/ #define ERR_NO_MEM_FOR_ID 1 // 没有可用于中断描述符表的内存 #define ERR_NO_MEM_FOR_SD 2 // 没有可用于储存器描述符表的内存 #define ERR_NO_MEM_FOR_SCTBUF 3 // 没有可用于扇区缓存的内存 #define ERR_NO_MEM_FOR_CONFIG 4 // 没有可以分配给引导配置文件的内存 #define ERR_NO_MEM_FOR_BUFFER 5 // 没有可以分配给缓冲系统的内存 #define ERR_NO_MEM_FOR_FS 6 // 没有可以分配给文件系统的内存 #define ERR_NO_MEM_FOR_MMU 7 // 没有可以分配给MMU的内存 #define ERR_NO_FILE 8 // 没有文件 #define ERR_CONFIG_OVERSIZE 9 // CONFIG.LDR oversized /**警告列表*/ #define WARN_NO_MEM 0x80000001 // 无充足内存 #define WARN_STORAGE_NOT_SUPPORT 0x80000002 // 暂时不支持这个储存器 #define WARN_SCRIPT_SIZE_BAD 0x80000003 // length of cript incorrect #endif
Add new error and warning number
Add new error and warning number
C
bsd-2-clause
MakeOS/GhostBirdOS,MakeOS/GhostBirdOS
96da00377891c31244a0e6435a31608169ceae02
src/com/spi.h
src/com/spi.h
// // spi.h // Ethernet Shield // // Created by EFCM van der Werf on 12/28/13. // Copyright (c) 2013 EFCM van der Werf. All rights reserved. // #ifndef COM_SPI_H #define COM_SPI_H #include "../config.h" // Do we want SPI? #ifdef COM_SPI #include <inttypes.h> /** * SPI config */ typedef struct spi_config { }; /** * @brief Initialize SPI channel * @param config Configuration for spi channel */ extern void spi_init(spi_config *config); #define SPI_START(port, pin) (port) &= ~(1 << (pin)) #define SPI_STOP(port, pin) (port) |= (1 << (pin)) #endif // COM_SPI #endif // COM_SPI_H
// // spi.h // Ethernet Shield // // Created by EFCM van der Werf on 12/28/13. // Copyright (c) 2013 EFCM van der Werf. All rights reserved. // #ifndef COM_SPI_H #define COM_SPI_H #include "../config.h" // Do we want SPI? #ifdef COM_SPI #include <inttypes.h> /** * SPI config */ typedef struct spi_config { }; /** * @brief Initialize SPI channel * @param config Configuration for spi channel */ extern void spi_init(spi_config *config); #define SPI_ACTIVE(port, pin) (port) &= ~(1 << (pin)) #define SPI_PASSIVE(port, pin) (port) |= (1 << (pin)) #endif // COM_SPI #endif // COM_SPI_H
Rename SPI_START to SPI_ACTIVE and SPI_STOP to SPI_PASSIVE
Rename SPI_START to SPI_ACTIVE and SPI_STOP to SPI_PASSIVE
C
mit
fuegas/dollhouse-ethshield,slashdev/slashnet,fuegas/dollhouse-ethshield,slashdev/slashnet
3ec169b38a5ece25471b68953d4d43f03a148dba
core/util/shaderProgram.h
core/util/shaderProgram.h
#pragma once #include "platform.h" #include <string> #include <vector> #include <unordered_map> class ShaderProgram { public: ShaderProgram(); virtual ~ShaderProgram(); GLint getGlProgram() { return m_glProgram; }; GLint getAttribLocation(const std::string& _attribName); bool buildFromSourceStrings(const std::string& _fragSrc, const std::string& _vertSrc); void use(); private: static GLint s_activeGlProgram; GLint m_glProgram; GLint m_glFragmentShader; GLint m_glVertexShader; std::unordered_map<std::string, GLint> m_attribMap; std::string m_fragmentShaderSource; std::string m_vertexShaderSource; GLint makeLinkedShaderProgram(GLint _fragShader, GLint _vertShader); GLint makeCompiledShader(const std::string& _src, GLenum _type); };
#pragma once #include "platform.h" #include <string> #include <vector> #include <unordered_map> /* * ShaderProgram - utility class representing an OpenGL shader program */ class ShaderProgram { public: ShaderProgram(); virtual ~ShaderProgram(); /* Getters */ GLint getGlProgram() { return m_glProgram; }; GLint getGlFragmentShader() { return m_glFragmentShader; }; GLint getGlVertexShader() { return m_glVertexShader; }; /* * getAttribLocation - fetches the location of a shader attribute, caching the result */ GLint getAttribLocation(const std::string& _attribName); /* * buildFromSourceStrings - attempts to compile a fragment shader and vertex shader from * strings representing the source code for each, then links them into a complete program; * if compiling or linking fails it prints the compiler log, returns false, and keeps the * program's previous state; if successful it returns true. */ bool buildFromSourceStrings(const std::string& _fragSrc, const std::string& _vertSrc); // TODO: Once we have file system abstractions, provide a method to build a program from file names /* * isValid - returns true if this object represents a valid OpenGL shader program */ bool isValid() { return m_glProgram != 0; }; /* * use - binds the program in openGL if it is not already bound. */ void use(); private: static GLint s_activeGlProgram; GLint m_glProgram; GLint m_glFragmentShader; GLint m_glVertexShader; std::unordered_map<std::string, GLint> m_attribMap; std::string m_fragmentShaderSource; std::string m_vertexShaderSource; GLint makeLinkedShaderProgram(GLint _fragShader, GLint _vertShader); GLint makeCompiledShader(const std::string& _src, GLenum _type); };
Add comments and convenience functions
Add comments and convenience functions
C
mit
quitejonny/tangram-es,hjanetzek/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,hjanetzek/tangram-es,hjanetzek/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,karimnaaji/tangram-es,tangrams/tangram-es,hjanetzek/tangram-es,xvilan/tangram-es,xvilan/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,karimnaaji/tangram-es,tangrams/tangram-es,cleeus/tangram-es,cleeus/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,karimnaaji/tangram-es,quitejonny/tangram-es,xvilan/tangram-es,xvilan/tangram-es,karimnaaji/tangram-es,tangrams/tangram-es
2d7e2de4bc36041ce62ca73cb4b11295a2271eae
lib/c/src/syscall.h
lib/c/src/syscall.h
extern void *_brk(void *addr); extern int _open(char *path, int flags, int perm); extern int _close(int fd); extern int _read(int fd, void *buf, size_t n); extern int _write(int fd, void *buf, size_t n); extern int _lseek(int fd, long off, int whence); extern void _Exit(int status); extern int raise(int sig); extern void (*signal(int sig, void (*func)(int)))(int);
extern void *_brk(void *addr); extern int _open(char *path, int flags, int perm); extern int _close(int fd); extern int _read(int fd, void *buf, size_t n); extern int _write(int fd, void *buf, size_t n); extern int _lseek(int fd, long off, int whence); extern void _Exit(int status); extern int raise(int sig); extern void (*signal(int sig, void (*func)(int)))(int); extern getenv(const char *var);
Add getenv() to the arch primitive list
[lib/c] Add getenv() to the arch primitive list
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
6210a7c68844602ee390bcce61dbb637910a3c6b
include/images/SkBitmapRegionDecoder.h
include/images/SkBitmapRegionDecoder.h
#ifndef SkBitmapRegionDecoder_DEFINED #define SkBitmapRegionDecoder_DEFINED #include "SkBitmap.h" #include "SkRect.h" #include "SkImageDecoder.h" class SkBitmapRegionDecoder { public: SkBitmapRegionDecoder(SkImageDecoder *decoder, int width, int height) { fDecoder = decoder; fWidth = width; fHeight = height; } virtual ~SkBitmapRegionDecoder() { delete fDecoder; } virtual bool decodeRegion(SkBitmap* bitmap, SkIRect rect, SkBitmap::Config pref, int sampleSize); virtual int getWidth() { return fWidth; } virtual int getHeight() { return fHeight; } virtual SkImageDecoder* getDecoder() { return fDecoder; } private: SkImageDecoder *fDecoder; int fWidth; int fHeight; }; #endif
#ifndef SkBitmapRegionDecoder_DEFINED #define SkBitmapRegionDecoder_DEFINED #include "SkBitmap.h" #include "SkRect.h" #include "SkImageDecoder.h" #include "SkStream.h" class SkBitmapRegionDecoder { public: SkBitmapRegionDecoder(SkImageDecoder *decoder, SkStream *stream, int width, int height) { fDecoder = decoder; fStream = stream; fWidth = width; fHeight = height; } virtual ~SkBitmapRegionDecoder() { delete fDecoder; fStream->unref(); } virtual bool decodeRegion(SkBitmap* bitmap, SkIRect rect, SkBitmap::Config pref, int sampleSize); virtual int getWidth() { return fWidth; } virtual int getHeight() { return fHeight; } virtual SkImageDecoder* getDecoder() { return fDecoder; } private: SkImageDecoder *fDecoder; SkStream *fStream; int fWidth; int fHeight; }; #endif
Fix 3510563: memory leak in BitmapRegionDecoder.
Fix 3510563: memory leak in BitmapRegionDecoder. Change-Id: I30b3a3806f4484d95602539def1a77a366560fdf
C
bsd-3-clause
IllusionRom-deprecated/android_platform_external_skia,AOSPA-L/android_external_skia,VRToxin-AOSP/android_external_skia,MinimalOS/external_skia,VentureROM-L/android_external_skia,MarshedOut/android_external_skia,mozilla-b2g/external_skia,RockchipOpensourceCommunity/external_skia,Infusion-OS/android_external_skia,Plain-Andy/android_platform_external_skia,byterom/android_external_skia,MinimalOS/android_external_skia,MonkeyZZZZ/platform_external_skia,Infusion-OS/android_external_skia,PurityPlus/android_external_skia,omapzoom/platform-external-skia,upndwn4par/android_external_skia,Hybrid-Rom/external_skia,sudosurootdev/external_skia,SlimSaber/android_external_skia,suyouxin/android_external_skia,VanirAOSP/external_skia,byterom/android_external_skia,AOSPB/external_skia,Gateworks/skia,AOSP-YU/platform_external_skia,Plain-Andy/android_platform_external_skia,FusionSP/android_external_skia,AOSP-YU/platform_external_skia,CNA/android_external_skia,RadonX-ROM/external_skia,w3nd1go/android_external_skia,MinimalOS-AOSP/platform_external_skia,geekboxzone/lollipop_external_skia,TeslaProject/external_skia,pacerom/external_skia,TeamTwisted/external_skia,PurityROM/platform_external_skia,roalex/android_external_skia,MinimalOS-AOSP/platform_external_skia,MinimalOS/external_skia,brothaedhung/external_skia,android-ia/platform_external_skia,brothaedhung/external_skia,Plain-Andy/android_platform_external_skia,wildermason/external_skia,freerunner/platform_external_skia,GladeRom/android_external_skia,StelixROM/android_external_skia,OptiPop/external_skia,Euphoria-OS-Legacy/android_external_skia,houst0nn/external_skia,ench0/external_skia,TeamJB/linaro_external_skia,Mahdi-Rom/android_external_skia,AOSPB/external_skia,TeamJB/linaro_external_skia,OptiPop/external_skia,VentureROM-L/android_external_skia,RadonX-ROM/external_skia,Root-Box/external_skia,AOKP/external_skia,PurityROM/platform_external_skia,UnicornButter/external_skia,Fusion-Rom/android_external_skia,OptiPop/external_skia,OneRom/external_skia,InfinitiveOS/external_skia,TeamTwisted/external_skia,houst0nn/external_skia,DesolationStaging/android_external_skia,xzzz9097/android_external_skia,sombree/android_external_skia,mrgatesjunior/external_skia,aosp-mirror/platform_external_skia,Nico60/external_skia,Tesla-Redux/android_external_skia,RadonX-ROM/external_skia,NamelessRom/android_external_skia,fire855/android_external_skia,PAC-ROM/android_external_skia,Android4SAM/platform_external_skia,mydongistiny/android_external_skia,parmv6/external_skia,sigysmund/platform_external_skia,invisiblek/android_external_skia,Plain-Andy/android_platform_external_skia,AsteroidOS/android_external_skia,C-RoM-KK/android_external_skia,VRToxin-AOSP/android_external_skia,zhaochengw/platform_external_skia,xzzz9097/android_external_skia,SuperNexus/android_external_skia,ench0/external_skia,AsteroidOS/android_external_skia,TeamTwisted/external_skia,yinquan529/platform-external-skia,aospo/platform_external_skia,MinimalOS/external_skia,Fusion-Rom/android_external_skia,codeaurora-unoffical/platform-external-skia,StelixROM/android_external_skia,AOSPA-L/android_external_skia,DesolationStaging/android_external_skia,fire855/android_external_skia,BrokenROM/external_skia,androidarmv6/android_external_skia,omapzoom/platform-external-skia,aways-CR/android_external_skia,byterom/android_external_skia,codewalkerster/android_external_skia,geekboxzone/lollipop_external_skia,RadonX-ROM/external_skia,aospo/platform_external_skia,Euphoria-OS-Legacy/android_external_skia,yinquan529/platform-external-skia,AOSPB/external_skia,FusionSP/android_external_skia,TeamExodus/external_skia,PAC-ROM/android_external_skia,ChameleonOS/android_external_skia,MarshedOut/android_external_skia,InfinitiveOS/external_skia,VanirAOSP/external_skia,GladeRom/android_external_skia,Hybrid-Rom/external_skia,aospo/platform_external_skia,X-ROM/android_external_skia,RadonX-ROM/external_skia,Khaon/android_external_skia,PurityROM/platform_external_skia,Khaon/android_external_skia,Mahdi-Rom/android_external_skia,VentureROM-L/android_external_skia,Purity-Lollipop/platform_external_skia,byterom/android_external_skia,FusionSP/android_external_skia,Omegaphora/external_skia,wildermason/external_skia,yinquan529/platform-external-skia,Purity-Lollipop/platform_external_skia,AOKPSaber/android_external_skia,AOSP-YU/platform_external_skia,xzzz9097/android_external_skia,boulzordev/android_external_skia,sombree/android_external_skia,TripNRaVeR/android_external_skia,cubox-i/android_external_skia,AndroidOpenDevelopment/android_external_skia,ctiao/platform-external-skia,DesolationStaging/android_external_skia,cubox-i/android_external_skia,ParanoidAndroid/android_external_skia,timduru/platform-external-skia,boulzordev/android_external_skia,mozilla-b2g/external_skia,Purity-Lollipop/platform_external_skia,upndwn4par/android_external_skia,ModdedPA/android_external_skia,AndroidOpenDevelopment/android_external_skia,opensourcechipspark/platform_external_skia,androidarmv6/android_external_skia,SuperNexus/android_external_skia,MinimalOS-AOSP/platform_external_skia,sudosurootdev/external_skia,freerunner/platform_external_skia,mozilla-b2g/external_skia,androidarmv6/android_external_skia,TeamEOS/external_skia,SuperNexus/android_external_skia,AndroidOpenDevelopment/android_external_skia,TeamTwisted/external_skia,invisiblek/android_external_skia,OneRom/external_skia,aospo/platform_external_skia,DesolationStaging/android_external_skia,temasek/android_external_skia,houst0nn/external_skia,HealthyHoney/temasek_SKIA,StelixROM/android_external_skia,Euphoria-OS-Legacy/android_external_skia,MonkeyZZZZ/platform_external_skia,sudosurootdev/external_skia,Asteroid-Project/android_external_skia,android-ia/platform_external_skia,MinimalOS/android_external_skia,xhteam/external-skia,MarshedOut/android_external_skia,ParanoidAndroid/android_external_skia,AOSPB/external_skia,MagicDevTeam/android_external_skia,MinimalOS-AOSP/platform_external_skia,aosp-mirror/platform_external_skia,HealthyHoney/temasek_SKIA,BrokenROM/external_skia,Pure-Aosp/android_external_skia,nfxosp/platform_external_skia,shashlik/android-skia,ctiao/platform-external-skia,invisiblek/android_external_skia,StelixROM/android_external_skia,SlimSaber/android_external_skia,OneRom/external_skia,DesolationStaging/android_external_skia,sombree/android_external_skia,invisiblek/android_external_skia,mozilla-b2g/external_skia,TeamEOS/external_skia,AOSPA-L/android_external_skia,TeamTwisted/external_skia,OneRom/external_skia,InfinitiveOS/external_skia,Pure-Aosp/android_external_skia,CNA/android_external_skia,AsteroidOS/android_external_skia,xzzz9097/android_external_skia,androidarmv6/android_external_skia,sudosurootdev/external_skia,AndroidOpenDevelopment/android_external_skia,InfinitiveOS/external_skia,TeamExodus/external_skia,MinimalOS-AOSP/platform_external_skia,codeaurora-unoffical/platform-external-skia,AsteroidOS/android_external_skia,AOSP-YU/platform_external_skia,temasek/android_external_skia,nfxosp/platform_external_skia,Nico60/external_skia,CandyKat/external_skia,freerunner/platform_external_skia,F-AOSP/platform_external_skia,geekboxzone/mmallow_external_skia,Purity-Lollipop/platform_external_skia,xhteam/external-skia,parmv6/external_skia,wildermason/external_skia,Hybrid-Rom/external_skia,F-AOSP/platform_external_skia,pacerom/external_skia,OneRom/external_skia,Android-AOSP/external_skia,temasek/android_external_skia,PAC-ROM/android_external_skia,IllusionRom-deprecated/android_platform_external_skia,TripNRaVeR/android_external_skia,temasek/android_external_skia,nfxosp/platform_external_skia,UnicornButter/external_skia,ChameleonOS/android_external_skia,Hikari-no-Tenshi/android_external_skia,TeslaProject/external_skia,Fusion-Rom/android_external_skia,OneRom/external_skia,aways-CR/android_external_skia,aosp-mirror/platform_external_skia,yinquan529/platform-external-skia,aosp-mirror/platform_external_skia,Infinitive-OS/platform_external_skia,nfxosp/platform_external_skia,TripNRaVeR/android_external_skia,sudosurootdev/external_skia,TeamExodus/external_skia,PurityROM/platform_external_skia,MinimalOS/external_skia,fire855/android_external_skia,OptiPop/external_skia,timduru/platform-external-skia,pacerom/external_skia,IllusionRom-deprecated/android_platform_external_skia,codewalkerster/android_external_skia,VRToxin-AOSP/android_external_skia,MarshedOut/android_external_skia,RockchipOpensourceCommunity/external_skia,BrokenROM/external_skia,android-ia/platform_external_skia,Hybrid-Rom/external_skia,MonkeyZZZZ/platform_external_skia,roalex/android_external_skia,w3nd1go/android_external_skia,zhaochengw/platform_external_skia,opensourcechipspark/platform_external_skia,TeslaOS/android_external_skia,Nico60/external_skia,bleeding-rom/android_external_skia,geekboxzone/lollipop_external_skia,Hikari-no-Tenshi/android_external_skia,Mahdi-Rom/android_external_skia,CandyKat/external_skia,sigysmund/platform_external_skia,houst0nn/external_skia,NamelessRom/android_external_skia,shashlik/android-skia,YUPlayGodDev/platform_external_skia,codeaurora-unoffical/platform-external-skia,C-RoM-KK/android_external_skia,sigysmund/platform_external_skia,roalex/android_external_skia,F-AOSP/platform_external_skia,fire855/android_external_skia,PurityPlus/android_external_skia,TeslaProject/external_skia,MonkeyZZZZ/platform_external_skia,mydongistiny/android_external_skia,TeamJB/linaro_external_skia,Asteroid-Project/android_external_skia,Tesla-Redux/android_external_skia,YUPlayGodDev/platform_external_skia,MonkeyZZZZ/platform_external_skia,AOSP-YU/platform_external_skia,embest-tech/android_external_skia,UBERMALLOW/external_skia,TeamTwisted/external_skia,MinimalOS/android_external_skia,sigysmund/platform_external_skia,DesolationStaging/android_external_skia,invisiblek/android_external_skia,geekboxzone/mmallow_external_skia,UBERMALLOW/external_skia,C-RoM-KK/android_external_skia,houst0nn/external_skia,timduru/platform-external-skia,omapzoom/platform-external-skia,Omegaphora/external_skia,cubox-i/android_external_skia,TeslaOS/android_external_skia,TeslaProject/external_skia,cuboxi/android_external_skia,MagicDevTeam/android_external_skia,AOSPA-L/android_external_skia,AOSPB/external_skia,Purity-Lollipop/platform_external_skia,PAC-ROM/android_external_skia,Pure-Aosp/android_external_skia,roalex/android_external_skia,AOSPA-L/android_external_skia,Purity-Lollipop/platform_external_skia,AOKP/external_skia,SlimSaber/android_external_skia,TeslaProject/external_skia,Root-Box/external_skia,InfinitiveOS/external_skia,thiz11/platform_external_skia,SaleJumper/android-source-browsing.platform--external--skia,MinimalOS-AOSP/platform_external_skia,GladeRom/android_external_skia,AOSPA-L/android_external_skia,PurityPlus/android_external_skia,UltimatumKang/android_external_skia-1,Asteroid-Project/android_external_skia,Fusion-Rom/android_external_skia,temasek/android_external_skia,sudosurootdev/external_skia,sombree/android_external_skia,androidarmv6/android_external_skia,UBERMALLOW/external_skia,DesolationStaging/android_external_skia,geekboxzone/lollipop_external_skia,MarshedOut/android_external_skia,sigysmund/platform_external_skia,BrokenROM/external_skia,Omegaphora/external_skia,Asteroid-Project/android_external_skia,MinimalOS/android_external_skia,Root-Box/external_skia,w3nd1go/android_external_skia,shashlik/android-skia,AOSPA-L/android_external_skia,codeaurora-unoffical/platform-external-skia,sigysmund/platform_external_skia,omapzoom/platform-external-skia,wildermason/external_skia,ench0/external_skia,yinquan529/platform-external-skia,NamelessRom/android_external_skia,Android4SAM/platform_external_skia,temasek/android_external_skia,AOKP/external_skia,marlontoe/android_external_skia,codeaurora-unoffical/platform-external-skia,androidarmv6/android_external_skia,MarshedOut/android_external_skia,AOSPB/external_skia,geekboxzone/mmallow_external_skia,Tesla-Redux/android_external_skia,xzzz9097/android_external_skia,Omegaphora/external_skia,InsomniaAOSP/platform_external_skia,upndwn4par/android_external_skia,AOSP-S4-KK/platform_external_skia,androidarmv6/android_external_skia,Nico60/external_skia,UBERMALLOW/external_skia,TeamExodus/external_skia,FusionSP/android_external_skia,VanirAOSP/external_skia,SlimSaber/android_external_skia,fire855/android_external_skia,Purity-Lollipop/platform_external_skia,upndwn4par/android_external_skia,mrgatesjunior/external_skia,MagicDevTeam/android_external_skia,SlimSaber/android_external_skia,aosp-mirror/platform_external_skia,FusionSP/android_external_skia,VanirAOSP/external_skia,Plain-Andy/android_platform_external_skia,RadonX-ROM/external_skia,CandyKat/external_skia,Omegaphora/external_skia,parmv6/external_skia,BrokenROM/external_skia,zhaochengw/platform_external_skia,MarshedOut/android_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,geekboxzone/lollipop_external_skia,CNA/android_external_skia,pacerom/external_skia,InfinitiveOS/external_skia,boulzordev/android_external_skia,HealthyHoney/temasek_SKIA,SuperNexus/android_external_skia,MinimalOS/external_skia,TeamEOS/external_skia,bleeding-rom/android_external_skia,TeamExodus/external_skia,Fusion-Rom/android_external_skia,opensourcechipspark/platform_external_skia,X-ROM/android_external_skia,AndroidOpenDevelopment/android_external_skia,Root-Box/external_skia,HealthyHoney/temasek_SKIA,marlontoe/android_external_skia,MyAOSP/external_skia,Plain-Andy/android_platform_external_skia,temasek/android_external_skia,TeslaOS/android_external_skia,Euphoria-OS-Legacy/android_external_skia,MyAOSP/external_skia,android-ia/platform_external_skia,codewalkerster/android_external_skia,zhaochengw/platform_external_skia,sombree/android_external_skia,mydongistiny/android_external_skia,TeamTwisted/external_skia,DesolationStaging/android_external_skia,wildermason/external_skia,timduru/platform-external-skia,MinimalOS/android_external_skia,aosp-mirror/platform_external_skia,SlimSaber/android_external_skia,mydongistiny/android_external_skia,PAC-ROM/android_external_skia,suyouxin/android_external_skia,sombree/android_external_skia,YUPlayGodDev/platform_external_skia,invisiblek/android_external_skia,wildermason/external_skia,GladeRom/android_external_skia,AOSPA-L/android_external_skia,shashlik/android-skia,Infusion-OS/android_external_skia,mrgatesjunior/external_skia,Android-AOSP/external_skia,TeamExodus/external_skia,MinimalOS-AOSP/platform_external_skia,RadonX-ROM/external_skia,bleeding-rom/android_external_skia,Khaon/android_external_skia,BrokenROM/external_skia,LOSP/external_skia,boulzordev/android_external_skia,sudosurootdev/external_skia,cuboxi/android_external_skia,zhaochengw/platform_external_skia,Omegaphora/external_skia,AOSPB/external_skia,aospo/platform_external_skia,BrokenROM/external_skia,thiz11/platform_external_skia,HealthyHoney/temasek_SKIA,fire855/android_external_skia,UltimatumKang/android_external_skia-1,Infusion-OS/android_external_skia,MagicDevTeam/android_external_skia,MonkeyZZZZ/platform_external_skia,spezi77/android_external_skia,android-ia/platform_external_skia,TeamNyx/external_skia,aways-CR/android_external_skia,CandyKat/external_skia,byterom/android_external_skia,w3nd1go/android_external_skia,MonkeyZZZZ/platform_external_skia,RockchipOpensourceCommunity/external_skia,MinimalOS/external_skia,Infusion-OS/android_external_skia,TeslaOS/android_external_skia,nfxosp/platform_external_skia,suyouxin/android_external_skia,codeaurora-unoffical/platform-external-skia,TeamEOS/external_skia,Khaon/android_external_skia,android-ia/platform_external_skia,mozilla-b2g/external_skia,F-AOSP/platform_external_skia,pacerom/external_skia,HealthyHoney/temasek_SKIA,brothaedhung/external_skia,Hybrid-Rom/external_skia,parmv6/external_skia,Asteroid-Project/android_external_skia,AsteroidOS/android_external_skia,VRToxin-AOSP/android_external_skia,Tesla-Redux/android_external_skia,TeamJB/linaro_external_skia,ench0/external_skia,C-RoM-KK/android_external_skia,embest-tech/android_external_skia,MonkeyZZZZ/platform_external_skia,ench0/external_skia,geekboxzone/lollipop_external_skia,bleeding-rom/android_external_skia,TripNRaVeR/android_external_skia,cuboxi/android_external_skia,MinimalOS/android_external_skia,F-AOSP/platform_external_skia,mydongistiny/android_external_skia,Android4SAM/platform_external_skia,YUPlayGodDev/platform_external_skia,LOSP/external_skia,AOSPB/external_skia,GladeRom/android_external_skia,InsomniaAOSP/platform_external_skia,mozilla-b2g/external_skia,AOSP-S4-KK/platform_external_skia,thiz11/platform_external_skia,omapzoom/platform-external-skia,Hikari-no-Tenshi/android_external_skia,mydongistiny/android_external_skia,TeamNyx/external_skia,mozilla-b2g/external_skia,AOSP-S4-KK/platform_external_skia,timduru/platform-external-skia,TeslaOS/android_external_skia,xhteam/external-skia,androidarmv6/android_external_skia,shashlik/android-skia,AsteroidOS/android_external_skia,w3nd1go/android_external_skia,SaleJumper/android-source-browsing.platform--external--skia,boulzordev/android_external_skia,marlontoe/android_external_skia,StelixROM/android_external_skia,byterom/android_external_skia,TeslaProject/external_skia,TeamExodus/external_skia,Infinitive-OS/platform_external_skia,VRToxin-AOSP/android_external_skia,fire855/android_external_skia,VanirAOSP/external_skia,xzzz9097/android_external_skia,SlimSaber/android_external_skia,VRToxin-AOSP/android_external_skia,AOSP-YU/platform_external_skia,boulzordev/android_external_skia,ctiao/platform-external-skia,OneRom/external_skia,cuboxi/android_external_skia,TeslaProject/external_skia,UltimatumKang/android_external_skia-1,TeamExodus/external_skia,aways-CR/android_external_skia,sigysmund/platform_external_skia,Euphoria-OS-Legacy/android_external_skia,GladeRom/android_external_skia,TeamBliss-LP/android_external_skia,StelixROM/android_external_skia,UBERMALLOW/external_skia,F-AOSP/platform_external_skia,ctiao/platform-external-skia,suyouxin/android_external_skia,boulzordev/android_external_skia,TeamBliss-LP/android_external_skia,MyAOSP/external_skia,ctiao/platform-external-skia,MinimalOS-AOSP/platform_external_skia,sombree/android_external_skia,aospo/platform_external_skia,BrokenROM/external_skia,YUPlayGodDev/platform_external_skia,invisiblek/android_external_skia,MyAOSP/external_skia,Infusion-OS/android_external_skia,aosp-mirror/platform_external_skia,houst0nn/external_skia,ench0/external_skia,TeamJB/linaro_external_skia,wildermason/external_skia,Gateworks/skia,aospo/platform_external_skia,mrgatesjunior/external_skia,RockchipOpensourceCommunity/external_skia,Omegaphora/external_skia,PAC-ROM/android_external_skia,UBERMALLOW/external_skia,Hybrid-Rom/external_skia,ParanoidAndroid/android_external_skia,w3nd1go/android_external_skia,InsomniaROM/platform_external_skia,AndroidOpenDevelopment/android_external_skia,Khaon/android_external_skia,mydongistiny/android_external_skia,OptiPop/external_skia,fire855/android_external_skia,geekboxzone/mmallow_external_skia,Pure-Aosp/android_external_skia,MarshedOut/android_external_skia,F-AOSP/platform_external_skia,TeslaOS/android_external_skia,OptiPop/external_skia,geekboxzone/mmallow_external_skia,NamelessRom/android_external_skia,ench0/external_skia,MarshedOut/android_external_skia,InfinitiveOS/external_skia,TeamEOS/external_skia,Euphoria-OS-Legacy/android_external_skia,pacerom/external_skia,Android-AOSP/external_skia,byterom/android_external_skia,RadonX-ROM/external_skia,nfxosp/platform_external_skia,mydongistiny/android_external_skia,wildermason/external_skia,TeamTwisted/external_skia,geekboxzone/lollipop_external_skia,timduru/platform-external-skia,Infinitive-OS/platform_external_skia,TeamBliss-LP/android_external_skia,GladeRom/android_external_skia,ChameleonOS/android_external_skia,Infinitive-OS/platform_external_skia,suyouxin/android_external_skia,Infinitive-OS/platform_external_skia,Pure-Aosp/android_external_skia,w3nd1go/android_external_skia,AOSP-YU/platform_external_skia,LOSP/external_skia,TeamBliss-LP/android_external_skia,spezi77/android_external_skia,Mahdi-Rom/android_external_skia,Nico60/external_skia,TeamBliss-LP/android_external_skia,PAC-ROM/android_external_skia,F-AOSP/platform_external_skia,TeamEOS/external_skia,suyouxin/android_external_skia,codeaurora-unoffical/platform-external-skia,TeamBliss-LP/android_external_skia,xhteam/external-skia,MinimalOS/android_external_skia,codewalkerster/android_external_skia,UnicornButter/external_skia,nfxosp/platform_external_skia,AOSPB/external_skia,SaleJumper/android-source-browsing.platform--external--skia,zhaochengw/platform_external_skia,w3nd1go/android_external_skia,freerunner/platform_external_skia,Android-AOSP/external_skia,nfxosp/platform_external_skia,UltimatumKang/android_external_skia-1,Android-AOSP/external_skia,Pure-Aosp/android_external_skia,AsteroidOS/android_external_skia,SlimSaber/android_external_skia,Infinitive-OS/platform_external_skia,TeamBliss-LP/android_external_skia,geekboxzone/mmallow_external_skia,Tesla-Redux/android_external_skia,VRToxin-AOSP/android_external_skia,AOKPSaber/android_external_skia,VentureROM-L/android_external_skia,Android-AOSP/external_skia,C-RoM-KK/android_external_skia,brothaedhung/external_skia,codeaurora-unoffical/platform-external-skia,Hybrid-Rom/external_skia,Pure-Aosp/android_external_skia,CandyKat/external_skia,YUPlayGodDev/platform_external_skia,zhaochengw/platform_external_skia,FusionSP/android_external_skia,SaleJumper/android-source-browsing.platform--external--skia,Plain-Andy/android_platform_external_skia,PAC-ROM/android_external_skia,NamelessRom/android_external_skia,AOSP-S4-KK/platform_external_skia,MonkeyZZZZ/platform_external_skia,android-ia/platform_external_skia,geekboxzone/lollipop_external_skia,Omegaphora/external_skia,spezi77/android_external_skia,NamelessRom/android_external_skia,mozilla-b2g/external_skia,Infinitive-OS/platform_external_skia,cubox-i/android_external_skia,MinimalOS/android_external_skia,TeslaProject/external_skia,FusionSP/android_external_skia,nfxosp/platform_external_skia,Khaon/android_external_skia,marlontoe/android_external_skia,geekboxzone/mmallow_external_skia,Fusion-Rom/android_external_skia,thiz11/platform_external_skia,PurityPlus/android_external_skia,Asteroid-Project/android_external_skia,TeslaOS/android_external_skia,byterom/android_external_skia,PurityPlus/android_external_skia,NamelessRom/android_external_skia,LOSP/external_skia,ChameleonOS/android_external_skia,xzzz9097/android_external_skia,embest-tech/android_external_skia,Khaon/android_external_skia,xzzz9097/android_external_skia,OneRom/external_skia,geekboxzone/mmallow_external_skia,VentureROM-L/android_external_skia,zhaochengw/platform_external_skia,HealthyHoney/temasek_SKIA,Mahdi-Rom/android_external_skia,opensourcechipspark/platform_external_skia,Infinitive-OS/platform_external_skia,YUPlayGodDev/platform_external_skia,aospo/platform_external_skia,CNA/android_external_skia,opensourcechipspark/platform_external_skia,InsomniaROM/platform_external_skia,Khaon/android_external_skia,OptiPop/external_skia,Infusion-OS/android_external_skia,VRToxin-AOSP/android_external_skia,shashlik/android-skia,AsteroidOS/android_external_skia,Asteroid-Project/android_external_skia,TeamEOS/external_skia,LOSP/external_skia,AOSP-YU/platform_external_skia,sudosurootdev/external_skia,AOSP-S4-KK/platform_external_skia,pacerom/external_skia,X-ROM/android_external_skia,Euphoria-OS-Legacy/android_external_skia,MinimalOS-AOSP/platform_external_skia,Asteroid-Project/android_external_skia,ctiao/platform-external-skia,aosp-mirror/platform_external_skia,HealthyHoney/temasek_SKIA,cubox-i/android_external_skia,Purity-Lollipop/platform_external_skia,marlontoe/android_external_skia,AOKPSaber/android_external_skia,TeamTwisted/external_skia,VentureROM-L/android_external_skia,Hikari-no-Tenshi/android_external_skia,Pure-Aosp/android_external_skia,InfinitiveOS/external_skia,UBERMALLOW/external_skia,VentureROM-L/android_external_skia,AOSP-YU/platform_external_skia,Hybrid-Rom/external_skia,houst0nn/external_skia,NamelessRom/android_external_skia,UBERMALLOW/external_skia,Gateworks/skia,GladeRom/android_external_skia,AOKP/external_skia,timduru/platform-external-skia,invisiblek/android_external_skia,suyouxin/android_external_skia,Infinitive-OS/platform_external_skia,Android-AOSP/external_skia,TeslaOS/android_external_skia,ParanoidAndroid/android_external_skia,ModdedPA/android_external_skia,sigysmund/platform_external_skia,Hikari-no-Tenshi/android_external_skia,spezi77/android_external_skia,spezi77/android_external_skia,IllusionRom-deprecated/android_platform_external_skia,InsomniaAOSP/platform_external_skia,boulzordev/android_external_skia,android-ia/platform_external_skia,ModdedPA/android_external_skia,UnicornButter/external_skia,aosp-mirror/platform_external_skia,temasek/android_external_skia,ench0/external_skia,Hikari-no-Tenshi/android_external_skia,w3nd1go/android_external_skia,Fusion-Rom/android_external_skia,sombree/android_external_skia,embest-tech/android_external_skia,cuboxi/android_external_skia,spezi77/android_external_skia,MinimalOS/external_skia,Tesla-Redux/android_external_skia,geekboxzone/mmallow_external_skia,VRToxin-AOSP/android_external_skia,X-ROM/android_external_skia,yinquan529/platform-external-skia,InsomniaROM/platform_external_skia,Gateworks/skia,InsomniaAOSP/platform_external_skia,Infusion-OS/android_external_skia,upndwn4par/android_external_skia,OneRom/external_skia,ctiao/platform-external-skia,AOKPSaber/android_external_skia,TeamExodus/external_skia,ModdedPA/android_external_skia,UBERMALLOW/external_skia,MinimalOS/external_skia,PAC-ROM/android_external_skia,Android4SAM/platform_external_skia,Tesla-Redux/android_external_skia,Hikari-no-Tenshi/android_external_skia,VentureROM-L/android_external_skia,YUPlayGodDev/platform_external_skia,InsomniaROM/platform_external_skia,Fusion-Rom/android_external_skia,Tesla-Redux/android_external_skia,YUPlayGodDev/platform_external_skia,MyAOSP/external_skia,OptiPop/external_skia,boulzordev/android_external_skia,AndroidOpenDevelopment/android_external_skia,Euphoria-OS-Legacy/android_external_skia
28a1bb74499eeadb12742b7d097d87e56ba024b8
contrib/gcc/version.c
contrib/gcc/version.c
/* $FreeBSD$ */ #include "ansidecl.h" #include "version.h" const char *const version_string = "3.2.1 [FreeBSD] 20021009 (prerelease)";
/* $FreeBSD$ */ #include "ansidecl.h" #include "version.h" const char *const version_string = "3.2.1 [FreeBSD] 20021119 (release)";
Update for Gcc 3.2.1 release.
Update for Gcc 3.2.1 release.
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
436514f5dc9e4ba01d547a8e2113d09fbf0a65e9
src/lib/test_blockdev.c
src/lib/test_blockdev.c
int main (int argc, char* argv[]) { bd_init(NULL); g_printf ("max LV size: %lu\n", bd_lvm_get_max_lv_size()); return 0; }
int main (int argc, char* argv[]) { bd_init(NULL); g_printf ("max LV size: %"G_GUINT64_FORMAT"\n", bd_lvm_get_max_lv_size()); return 0; }
Use arch-independent format string for guint64 in tests
Use arch-independent format string for guint64 in tests Otherwise "0" is printed out even if the right number is returned by the tested function.
C
lgpl-2.1
atodorov/libblockdev,vpodzime/libblockdev,rhinstaller/libblockdev,dashea/libblockdev,vpodzime/libblockdev,dashea/libblockdev,atodorov/libblockdev,rhinstaller/libblockdev,vpodzime/libblockdev,snbueno/libblockdev,rhinstaller/libblockdev,atodorov/libblockdev,snbueno/libblockdev
0a39f2cfa0fd4a48c6eda303901a2c497e4cc0ad
config/src/apps/vespa-configproxy-cmd/proxycmd.h
config/src/apps/vespa-configproxy-cmd/proxycmd.h
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/stllike/string.h> #include <vector> class FRT_Supervisor; class FRT_Target; class FRT_RPCRequest; class FRT_Values; namespace fnet::frt { class StandaloneFRT; } struct Flags { vespalib::string method; std::vector<vespalib::string> args; vespalib::string targethost; int portnumber; Flags(const Flags &); Flags & operator=(const Flags &); Flags(); ~Flags(); }; class ProxyCmd { private: std::unique_ptr<fnet::frt::StandaloneFRT> _server; FRT_Supervisor *_supervisor; FRT_Target *_target; FRT_RPCRequest *_req; Flags _flags; void initRPC(); void invokeRPC(); void finiRPC(); void printArray(FRT_Values *rvals); vespalib::string makeSpec(); void autoPrint(); public: ProxyCmd(const Flags& flags); virtual ~ProxyCmd(); int action(); };
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/stllike/string.h> #include <vector> class FRT_Target; class FRT_RPCRequest; class FRT_Values; namespace fnet::frt { class StandaloneFRT; } struct Flags { vespalib::string method; std::vector<vespalib::string> args; vespalib::string targethost; int portnumber; Flags(const Flags &); Flags & operator=(const Flags &); Flags(); ~Flags(); }; class ProxyCmd { private: std::unique_ptr<fnet::frt::StandaloneFRT> _server; FRT_Target *_target; FRT_RPCRequest *_req; Flags _flags; void initRPC(); void invokeRPC(); void finiRPC(); void printArray(FRT_Values *rvals); vespalib::string makeSpec(); void autoPrint(); public: ProxyCmd(const Flags& flags); virtual ~ProxyCmd(); int action(); };
Remove unused variable in vespa-configproxy-cmd.
Remove unused variable in vespa-configproxy-cmd.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
9f0ba44a96db7918e11ffa905878c16f044baa65
base/scoped_handle.h
base/scoped_handle.h
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_SCOPED_HANDLE_H_ #define BASE_SCOPED_HANDLE_H_ #include "base/basictypes.h" #if defined(OS_WIN) #include "base/scoped_handle_win.h" #endif class ScopedStdioHandle { public: ScopedStdioHandle() : handle_(NULL) { } explicit ScopedStdioHandle(FILE* handle) : handle_(handle) { } ~ScopedStdioHandle() { Close(); } void Close() { if (handle_) { fclose(handle_); handle_ = NULL; } } FILE* get() const { return handle_; } FILE* Take() { FILE* temp = handle_; handle_ = NULL; return temp; } void Set(FILE* newhandle) { Close(); handle_ = newhandle; } private: FILE* handle_; DISALLOW_EVIL_CONSTRUCTORS(ScopedStdioHandle); }; #endif // BASE_SCOPED_HANDLE_H_
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_SCOPED_HANDLE_H_ #define BASE_SCOPED_HANDLE_H_ #include <stdio.h> #include "base/basictypes.h" #if defined(OS_WIN) #include "base/scoped_handle_win.h" #endif class ScopedStdioHandle { public: ScopedStdioHandle() : handle_(NULL) { } explicit ScopedStdioHandle(FILE* handle) : handle_(handle) { } ~ScopedStdioHandle() { Close(); } void Close() { if (handle_) { fclose(handle_); handle_ = NULL; } } FILE* get() const { return handle_; } FILE* Take() { FILE* temp = handle_; handle_ = NULL; return temp; } void Set(FILE* newhandle) { Close(); handle_ = newhandle; } private: FILE* handle_; DISALLOW_EVIL_CONSTRUCTORS(ScopedStdioHandle); }; #endif // BASE_SCOPED_HANDLE_H_
Add stdio to this file becasue we use FILE.
Add stdio to this file becasue we use FILE. It starts failing with FILE, identifier not found, when you remove the include for logging.h, which is included in scoped_handle_win.h Review URL: http://codereview.chromium.org/16461 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@7441 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,keishi/chromium,hujiajie/pa-chromium,hujiajie/pa-chromium,axinging/chromium-crosswalk,robclark/chromium,Jonekee/chromium.src,Just-D/chromium-1,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,anirudhSK/chromium,ltilve/chromium,dednal/chromium.src,patrickm/chromium.src,robclark/chromium,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,zcbenz/cefode-chromium,anirudhSK/chromium,dednal/chromium.src,hujiajie/pa-chromium,robclark/chromium,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,rogerwang/chromium,rogerwang/chromium,M4sse/chromium.src,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,ChromiumWebApps/chromium,jaruba/chromium.src,mogoweb/chromium-crosswalk,dushu1203/chromium.src,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,Fireblend/chromium-crosswalk,keishi/chromium,nacl-webkit/chrome_deps,ondra-novak/chromium.src,rogerwang/chromium,timopulkkinen/BubbleFish,Jonekee/chromium.src,robclark/chromium,ChromiumWebApps/chromium,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,keishi/chromium,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Just-D/chromium-1,markYoungH/chromium.src,dushu1203/chromium.src,Jonekee/chromium.src,ltilve/chromium,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,jaruba/chromium.src,jaruba/chromium.src,axinging/chromium-crosswalk,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,robclark/chromium,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,dednal/chromium.src,pozdnyakov/chromium-crosswalk,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,markYoungH/chromium.src,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,robclark/chromium,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,fujunwei/chromium-crosswalk,anirudhSK/chromium,zcbenz/cefode-chromium,anirudhSK/chromium,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,nacl-webkit/chrome_deps,bright-sparks/chromium-spacewalk,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,Pluto-tv/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,ondra-novak/chromium.src,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,keishi/chromium,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,ondra-novak/chromium.src,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,dushu1203/chromium.src,patrickm/chromium.src,chuan9/chromium-crosswalk,rogerwang/chromium,M4sse/chromium.src,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,keishi/chromium,Fireblend/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk,ltilve/chromium,rogerwang/chromium,ChromiumWebApps/chromium,anirudhSK/chromium,Chilledheart/chromium,Fireblend/chromium-crosswalk,Jonekee/chromium.src,ltilve/chromium,dednal/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,zcbenz/cefode-chromium,hujiajie/pa-chromium,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,patrickm/chromium.src,Just-D/chromium-1,dednal/chromium.src,robclark/chromium,mogoweb/chromium-crosswalk,Jonekee/chromium.src,fujunwei/chromium-crosswalk,anirudhSK/chromium,markYoungH/chromium.src,mogoweb/chromium-crosswalk,ltilve/chromium,hgl888/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,dednal/chromium.src,keishi/chromium,M4sse/chromium.src,ondra-novak/chromium.src,markYoungH/chromium.src,patrickm/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,rogerwang/chromium,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,keishi/chromium,robclark/chromium,rogerwang/chromium,jaruba/chromium.src,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,M4sse/chromium.src,chuan9/chromium-crosswalk,Jonekee/chromium.src,junmin-zhu/chromium-rivertrail,patrickm/chromium.src,fujunwei/chromium-crosswalk,Chilledheart/chromium,patrickm/chromium.src,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,ChromiumWebApps/chromium,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Just-D/chromium-1,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,robclark/chromium,ltilve/chromium,markYoungH/chromium.src,M4sse/chromium.src,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,littlstar/chromium.src,keishi/chromium,littlstar/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,keishi/chromium,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,anirudhSK/chromium,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,littlstar/chromium.src,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,Just-D/chromium-1,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,patrickm/chromium.src,zcbenz/cefode-chromium,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,keishi/chromium,M4sse/chromium.src,dednal/chromium.src,anirudhSK/chromium,zcbenz/cefode-chromium,rogerwang/chromium,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,dushu1203/chromium.src,dednal/chromium.src,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,dednal/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,M4sse/chromium.src,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,ltilve/chromium,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,jaruba/chromium.src,jaruba/chromium.src,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,Chilledheart/chromium,mogoweb/chromium-crosswalk,jaruba/chromium.src,markYoungH/chromium.src,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,M4sse/chromium.src,rogerwang/chromium,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,Just-D/chromium-1,ChromiumWebApps/chromium,anirudhSK/chromium,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,anirudhSK/chromium,dushu1203/chromium.src,Chilledheart/chromium,Chilledheart/chromium,Just-D/chromium-1,ondra-novak/chromium.src,dednal/chromium.src,patrickm/chromium.src,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk