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
df7f69f7a0f5268b3bf0dea2797bed8da774c003
src/Version.h
src/Version.h
#include "SocketCommand.h" class Version : public SocketCommand { Q_OBJECT public: Version(WebPageManager *, QStringList &arguments, QObject *parent = 0); virtual void start(); };
#include "qtwebkitversion.h" #include "SocketCommand.h" class Version : public SocketCommand { Q_OBJECT public: Version(WebPageManager *, QStringList &arguments, QObject *parent = 0); virtual void start(); };
Include qtwebkitversion.h to work in newer qtwebkit
Include qtwebkitversion.h to work in newer qtwebkit This likely got pulled in automatically in a previous qtwebkit version, but now needs to be explicitly included.
C
mit
thoughtbot/capybara-webkit,thoughtbot/capybara-webkit,thoughtbot/capybara-webkit,thoughtbot/capybara-webkit,mhoran/capybara-webkit,twalpole/capybara-webkit,twalpole/capybara-webkit,mhoran/capybara-webkit,mhoran/capybara-webkit,mhoran/capybara-webkit,twalpole/capybara-webkit,twalpole/capybara-webkit
8c3434c5cb94857dcc3b381d9ca5490643e18074
AVOS/AVOSCloudIM/TypedMessages/AVIMRecalledMessage.h
AVOS/AVOSCloudIM/TypedMessages/AVIMRecalledMessage.h
// // AVIMRecalledMessage.h // AVOS // // Created by Tang Tianyong on 26/06/2017. // Copyright © 2017 LeanCloud Inc. All rights reserved. // #import "AVIMTypedMessage.h" NS_ASSUME_NONNULL_BEGIN @interface AVIMRecalledMessage : AVIMTypedMessage <AVIMTypedMessageSubclassing> @end NS_ASSUME_NONNULL_END
// // AVIMRecalledMessage.h // AVOS // // Created by Tang Tianyong on 26/06/2017. // Copyright © 2017 LeanCloud Inc. All rights reserved. // #import "AVIMTypedMessage.h" NS_ASSUME_NONNULL_BEGIN /** This class is a type of messages that have been recalled by its sender. */ @interface AVIMRecalledMessage : AVIMTypedMessage <AVIMTypedMessageSubclassing> @end NS_ASSUME_NONNULL_END
Add comment for recalled message
Add comment for recalled message
C
apache-2.0
leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk
9a674b55fe0a9e22bc7e324e09fff3ad188b08e0
tests/regression/36-octapron/29-combine-arg-var-conflict.c
tests/regression/36-octapron/29-combine-arg-var-conflict.c
// SKIP PARAM: --sets ana.activated[+] octApron #include <assert.h> int f(int x) { return x + 1; } int g(int x) { int y; y = f(x); assert(y == x + 1); return x; } int main(void) { int z, w; w = g(z); assert(z == w); return 0; }
Add test for octApron combine where arg vars conflict
Add test for octApron combine where arg vars conflict
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
a28adab74e7d55aa414829a03cedd20bd966eacf
interpreter/cling/include/cling/UserInterface/CompilationException.h
interpreter/cling/include/cling/UserInterface/CompilationException.h
//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // author: Axel Naumann <[email protected]> //------------------------------------------------------------------------------ #ifndef CLING_COMPILATIONEXCEPTION_H #define CLING_COMPILATIONEXCEPTION_H #include <stdexcept> #include <string> #include "cling/Interpreter/RuntimeException.h" namespace cling { class Interpreter; class MetaProcessor; //\brief Exception pull us out of JIT (llvm + clang) errors. class CompilationException: public virtual runtime::InterpreterException, public virtual std::runtime_error { public: CompilationException(const std::string& reason): std::runtime_error(reason) {} ~CompilationException() throw(); // vtable pinned to UserInterface.cpp virtual const char* what() const throw() { return std::runtime_error::what(); } }; } #endif // CLING_COMPILATIONEXCEPTION_H
//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // author: Axel Naumann <[email protected]> //------------------------------------------------------------------------------ #ifndef CLING_COMPILATIONEXCEPTION_H #define CLING_COMPILATIONEXCEPTION_H #include <stdexcept> #include <string> #include "cling/Interpreter/RuntimeException.h" namespace cling { class Interpreter; class MetaProcessor; ///\brief Exception that pulls cling out of runtime-compilation (llvm + clang) /// errors. /// /// If user code provokes an llvm::unreachable it will cause this exception /// to be thrown. Given that this is at the process's runtime and an /// interpreter error it inherits from InterpreterException and runtime_error. /// Note that this exception is *not* thrown during the execution of the /// user's code but during its compilation (at runtime). class CompilationException: public virtual runtime::InterpreterException, public virtual std::runtime_error { public: CompilationException(const std::string& reason): std::runtime_error(reason) {} ~CompilationException() throw(); // vtable pinned to UserInterface.cpp virtual const char* what() const throw() { return std::runtime_error::what(); } }; } #endif // CLING_COMPILATIONEXCEPTION_H
Add more rationale as to how this exception is different from others.
Add more rationale as to how this exception is different from others.
C
lgpl-2.1
karies/root,mkret2/root,omazapa/root,buuck/root,krafczyk/root,CristinaCristescu/root,thomaskeck/root,sbinet/cxx-root,gganis/root,nilqed/root,arch1tect0r/root,mattkretz/root,esakellari/my_root_for_test,esakellari/my_root_for_test,zzxuanyuan/root,mattkretz/root,zzxuanyuan/root-compressor-dummy,georgtroska/root,mattkretz/root,omazapa/root-old,dfunke/root,mhuwiler/rootauto,buuck/root,bbockelm/root,veprbl/root,mattkretz/root,veprbl/root,alexschlueter/cern-root,omazapa/root-old,sawenzel/root,veprbl/root,vukasinmilosevic/root,buuck/root,krafczyk/root,0x0all/ROOT,perovic/root,BerserkerTroll/root,satyarth934/root,beniz/root,vukasinmilosevic/root,gbitzes/root,Duraznos/root,pspe/root,satyarth934/root,zzxuanyuan/root,zzxuanyuan/root,esakellari/my_root_for_test,lgiommi/root,davidlt/root,sawenzel/root,beniz/root,Y--/root,BerserkerTroll/root,evgeny-boger/root,alexschlueter/cern-root,thomaskeck/root,Y--/root,perovic/root,BerserkerTroll/root,davidlt/root,bbockelm/root,0x0all/ROOT,davidlt/root,karies/root,agarciamontoro/root,krafczyk/root,0x0all/ROOT,dfunke/root,Duraznos/root,simonpf/root,buuck/root,mhuwiler/rootauto,mhuwiler/rootauto,esakellari/root,esakellari/my_root_for_test,pspe/root,Duraznos/root,mattkretz/root,smarinac/root,Duraznos/root,beniz/root,gganis/root,georgtroska/root,veprbl/root,bbockelm/root,arch1tect0r/root,gganis/root,gbitzes/root,CristinaCristescu/root,smarinac/root,esakellari/my_root_for_test,krafczyk/root,nilqed/root,beniz/root,esakellari/root,Y--/root,esakellari/my_root_for_test,pspe/root,sawenzel/root,esakellari/my_root_for_test,gganis/root,esakellari/root,krafczyk/root,sawenzel/root,sirinath/root,gganis/root,olifre/root,beniz/root,vukasinmilosevic/root,BerserkerTroll/root,dfunke/root,zzxuanyuan/root-compressor-dummy,root-mirror/root,abhinavmoudgil95/root,zzxuanyuan/root-compressor-dummy,georgtroska/root,0x0all/ROOT,simonpf/root,buuck/root,zzxuanyuan/root,davidlt/root,vukasinmilosevic/root,bbockelm/root,omazapa/root,mhuwiler/rootauto,gbitzes/root,omazapa/root,vukasinmilosevic/root,BerserkerTroll/root,arch1tect0r/root,sawenzel/root,Duraznos/root,nilqed/root,cxx-hep/root-cern,veprbl/root,olifre/root,lgiommi/root,dfunke/root,alexschlueter/cern-root,simonpf/root,karies/root,evgeny-boger/root,jrtomps/root,gbitzes/root,root-mirror/root,gbitzes/root,cxx-hep/root-cern,abhinavmoudgil95/root,zzxuanyuan/root,esakellari/root,perovic/root,esakellari/root,agarciamontoro/root,thomaskeck/root,satyarth934/root,nilqed/root,BerserkerTroll/root,gganis/root,gbitzes/root,buuck/root,sawenzel/root,mattkretz/root,zzxuanyuan/root-compressor-dummy,jrtomps/root,Duraznos/root,Y--/root,Duraznos/root,nilqed/root,mkret2/root,vukasinmilosevic/root,esakellari/root,Duraznos/root,sirinath/root,CristinaCristescu/root,simonpf/root,beniz/root,karies/root,dfunke/root,evgeny-boger/root,satyarth934/root,gbitzes/root,pspe/root,omazapa/root-old,vukasinmilosevic/root,georgtroska/root,pspe/root,smarinac/root,pspe/root,mkret2/root,pspe/root,buuck/root,satyarth934/root,BerserkerTroll/root,sawenzel/root,olifre/root,smarinac/root,davidlt/root,beniz/root,gganis/root,zzxuanyuan/root-compressor-dummy,georgtroska/root,arch1tect0r/root,sbinet/cxx-root,mhuwiler/rootauto,bbockelm/root,beniz/root,Y--/root,veprbl/root,thomaskeck/root,root-mirror/root,sirinath/root,karies/root,Y--/root,omazapa/root-old,arch1tect0r/root,cxx-hep/root-cern,evgeny-boger/root,georgtroska/root,perovic/root,bbockelm/root,dfunke/root,0x0all/ROOT,zzxuanyuan/root,root-mirror/root,smarinac/root,thomaskeck/root,jrtomps/root,Y--/root,gganis/root,beniz/root,simonpf/root,nilqed/root,zzxuanyuan/root,buuck/root,simonpf/root,root-mirror/root,abhinavmoudgil95/root,sirinath/root,krafczyk/root,BerserkerTroll/root,sbinet/cxx-root,sirinath/root,nilqed/root,thomaskeck/root,gbitzes/root,omazapa/root-old,perovic/root,alexschlueter/cern-root,arch1tect0r/root,arch1tect0r/root,agarciamontoro/root,evgeny-boger/root,mhuwiler/rootauto,omazapa/root,mhuwiler/rootauto,zzxuanyuan/root-compressor-dummy,pspe/root,arch1tect0r/root,bbockelm/root,smarinac/root,perovic/root,zzxuanyuan/root,karies/root,davidlt/root,jrtomps/root,evgeny-boger/root,root-mirror/root,krafczyk/root,omazapa/root,zzxuanyuan/root,smarinac/root,root-mirror/root,esakellari/my_root_for_test,jrtomps/root,evgeny-boger/root,sirinath/root,BerserkerTroll/root,karies/root,zzxuanyuan/root,cxx-hep/root-cern,olifre/root,gganis/root,agarciamontoro/root,mattkretz/root,lgiommi/root,mkret2/root,veprbl/root,karies/root,nilqed/root,vukasinmilosevic/root,olifre/root,esakellari/root,jrtomps/root,omazapa/root-old,simonpf/root,veprbl/root,sawenzel/root,gbitzes/root,gganis/root,smarinac/root,satyarth934/root,karies/root,thomaskeck/root,BerserkerTroll/root,sbinet/cxx-root,esakellari/my_root_for_test,olifre/root,perovic/root,lgiommi/root,0x0all/ROOT,olifre/root,sawenzel/root,abhinavmoudgil95/root,olifre/root,dfunke/root,arch1tect0r/root,sbinet/cxx-root,satyarth934/root,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,Duraznos/root,abhinavmoudgil95/root,simonpf/root,esakellari/root,krafczyk/root,CristinaCristescu/root,jrtomps/root,Duraznos/root,sbinet/cxx-root,0x0all/ROOT,buuck/root,mhuwiler/rootauto,georgtroska/root,omazapa/root,thomaskeck/root,mkret2/root,bbockelm/root,zzxuanyuan/root-compressor-dummy,evgeny-boger/root,cxx-hep/root-cern,sirinath/root,krafczyk/root,CristinaCristescu/root,agarciamontoro/root,gganis/root,omazapa/root-old,omazapa/root-old,root-mirror/root,omazapa/root,evgeny-boger/root,zzxuanyuan/root-compressor-dummy,lgiommi/root,evgeny-boger/root,root-mirror/root,vukasinmilosevic/root,jrtomps/root,zzxuanyuan/root,pspe/root,arch1tect0r/root,abhinavmoudgil95/root,Duraznos/root,satyarth934/root,sirinath/root,karies/root,veprbl/root,CristinaCristescu/root,omazapa/root,sawenzel/root,CristinaCristescu/root,simonpf/root,omazapa/root-old,georgtroska/root,mhuwiler/rootauto,abhinavmoudgil95/root,smarinac/root,sbinet/cxx-root,beniz/root,evgeny-boger/root,thomaskeck/root,agarciamontoro/root,mkret2/root,pspe/root,cxx-hep/root-cern,agarciamontoro/root,satyarth934/root,CristinaCristescu/root,abhinavmoudgil95/root,BerserkerTroll/root,esakellari/root,pspe/root,lgiommi/root,thomaskeck/root,mattkretz/root,agarciamontoro/root,root-mirror/root,agarciamontoro/root,satyarth934/root,mkret2/root,jrtomps/root,sirinath/root,dfunke/root,bbockelm/root,alexschlueter/cern-root,jrtomps/root,olifre/root,georgtroska/root,simonpf/root,0x0all/ROOT,omazapa/root,sbinet/cxx-root,abhinavmoudgil95/root,olifre/root,jrtomps/root,root-mirror/root,davidlt/root,bbockelm/root,perovic/root,cxx-hep/root-cern,davidlt/root,sbinet/cxx-root,omazapa/root,dfunke/root,olifre/root,mkret2/root,omazapa/root-old,mhuwiler/rootauto,vukasinmilosevic/root,esakellari/root,davidlt/root,esakellari/my_root_for_test,mattkretz/root,mattkretz/root,dfunke/root,Y--/root,agarciamontoro/root,veprbl/root,buuck/root,CristinaCristescu/root,perovic/root,mkret2/root,mattkretz/root,nilqed/root,lgiommi/root,lgiommi/root,abhinavmoudgil95/root,beniz/root,krafczyk/root,georgtroska/root,zzxuanyuan/root-compressor-dummy,CristinaCristescu/root,gbitzes/root,sirinath/root,gbitzes/root,sawenzel/root,nilqed/root,buuck/root,zzxuanyuan/root-compressor-dummy,mkret2/root,mkret2/root,smarinac/root,veprbl/root,mhuwiler/rootauto,alexschlueter/cern-root,omazapa/root,Y--/root,abhinavmoudgil95/root,cxx-hep/root-cern,satyarth934/root,Y--/root,nilqed/root,Y--/root,lgiommi/root,karies/root,simonpf/root,davidlt/root,sirinath/root,sbinet/cxx-root,davidlt/root,alexschlueter/cern-root,lgiommi/root,lgiommi/root,perovic/root,bbockelm/root,georgtroska/root,dfunke/root,krafczyk/root,agarciamontoro/root,sbinet/cxx-root,perovic/root,CristinaCristescu/root,zzxuanyuan/root,arch1tect0r/root,0x0all/ROOT,esakellari/root,omazapa/root-old
97c44a23a590b79c8538874798e140f1e1db559f
tests/sources/basic/30-mpi/src/main/c/addVector.c
tests/sources/basic/30-mpi/src/main/c/addVector.c
#include "mpi.h" #include <stdio.h> #include <math.h> int main(int argc, char **argv) { // Variables used per process int myid, numprocs; int myresult = 0; // Global variables int DATA_SIZE = argc; int data[DATA_SIZE], result; // Chunk control variables int i, low, high, size; //------------------------------------------- // INIT MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &numprocs); MPI_Comm_rank(MPI_COMM_WORLD, &myid); //------------------------------------------- // PROCESS 0 GETS THE DATA if (myid == 0) { // Get data from args for (i = 0; i < argc; ++i) { data[i] = argv[i]; } } // Distribute the Data MPI_Bcast(data, MAXSIZE, MPI_INT, 0, MPI_COMM_WORLD); //------------------------------------------- // EACH PROCESS COMPUTES ITS PART size = DATA_SIZE/numprocs; low = myid * size; high = low + size; for (i = low; i < high; ++i) { myresult += data[i]; } //printf("I got %d from %d\n", myresult, myid); //------------------------------------------- // COMPUTE GLOBAL SUM MPI_Reduce(&myresult, &result, 1, MPI_INT, MPI_SUM, 0, MPI_COMM_WORLD); //------------------------------------------- // PROCESS 0 PRINTS THE RESULT if (myid == 0) { printf("%d\n", result); } //------------------------------------------- // FINISH MPI_Finalize(); }
Add mpiCC source for MPI test
Add mpiCC source for MPI test git-svn-id: 6cb0c57df7a4a7d32342646683f5f1b5f4d88845@2381 9ab3861e-6c05-4e1b-b5ef-99af60850597
C
apache-2.0
mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs
8bf24c66e6a41067fb4fb7b443fb6ea85dc96b8e
Demo/Classes/AppDelegate.h
Demo/Classes/AppDelegate.h
// // SVProgressHUDAppDelegate.h // SVProgressHUD // // Created by Sam Vermette on 27.03.11. // Copyright 2011 Sam Vermette. All rights reserved. // #import <UIKit/UIKit.h> @class ViewController; @interface AppDelegate : NSObject <UIApplicationDelegate> { UIWindow *__weak window; ViewController *__weak viewController; } @property (weak, nonatomic) IBOutlet UIWindow *window; @property (weak, nonatomic) IBOutlet ViewController *viewController; @end
// // SVProgressHUDAppDelegate.h // SVProgressHUD // // Created by Sam Vermette on 27.03.11. // Copyright 2011 Sam Vermette. All rights reserved. // #import <UIKit/UIKit.h> @class ViewController; @interface AppDelegate : NSObject <UIApplicationDelegate> @property (strong, nonatomic) IBOutlet UIWindow *window; @property (strong, nonatomic) IBOutlet ViewController *viewController; @end
Fix ARC warning in demo project.
Fix ARC warning in demo project.
C
mit
sdonly/SVProgressHUD,luxe-eng/valet-ios.SVProgressHUD,phildow/SVProgressHUD,ohyeslk/SVProgressHUD,Sunday4/SVProgressHUD,CoderJFCK/SVProgressHUD,cnzlh/SVProgressHUD,bertramdev/SVProgressHUD,lyndonChen/SVProgressHUD,wrcj12138aaa/SVProgressHUD,DramaFever/DFProgressHUD,CPF183/SVProgressHUD,PeeJWeeJ/SwiftyHUD,ddc391565320/SVProgressHUD,tonyunreal/SVProgressHUD,Alsen007/SVProgressHUD,zeptolee/SVProgressHUD,ashfurrow/SVProgressHUD,Kevin775263419/SVProgressHUD,1yvT0s/SVProgressHUD,hanangellove/SVProgressHUD,SuPair/SVProgressHUD,bhapca/SVProgressHUD,grachyov/SVProgressHUD,Pingco/SVProgressHUD,zdiovo/SVProgressHUD,siburb/SVProgressHUD,AutoScout24/SVProgressHUD,ShowerLi1991/SVProgressHUD,hnney/SVProgressHUD,SVProgressHUD/SVProgressHUD,flovilmart/SVProgressHUD,haiiev/SVProgressHUD,TransitApp/SVProgressHUD,morgman/TASVProgressHUD,dongdonggaui/SVProgressHUD,pplant/SVProgressHUD,zoyi/SVProgressHUD,hoanganh6491/SVProgressHUD,pengleelove/SVProgressHUD,iamcharleych/SVProgressHUD,hyperoslo/SVProgressHUD,ShyHornet/SVProgressHUD,basvankuijck/SVProgressHUD,mohsinalimat/SVProgressHUD,taviscaron/SVProgressHUD,cuppi/SVProgressHUD,powerhome/SVProgressHUD,z514306470/SVProgressHUD,andreyvit/SVProgressHUD,apascual/SVProgressHUD,wjszf/SVProgressHUD,Dschee/SVProgressHUD,pblondin/SVProgressHUD,cnbin/SVProgressHUD,Benuuu/SVProgressHUD,Karumi/SVProgressHUD,isghe/SVProgressHUD,SixFiveSoftware/SVProgressHUD,ezescaruli/SVProgressHUD,PeeJWeeJ/SwiftyHUD,maxcampolo/SVProgressHUD,RyanCodes/SVProgressHUD,yarneo/SVProgressHUD,shizu2014/SVProgressHUD,shenhzou654321/SVProgressHUD,adrum/SVProgressHUD,emodeqidao/SVProgressHUD,hoowang/SVProgressHUD,lzhao18/SVProgressHUD,huqiji/SVProgressHUD,lookingstars/SVProgressHUD,kohtenko/SVProgressHUD,cogddo/SVProgressHUD,icepy/SVProgressHUD,Staance/SVProgressHUD,HelloWilliam/SVProgressHUD,dxt/SVProgressHUD
667f1a5478e2196696554fc32993cd5ff2b718fa
You-DataStore/internal/operations/serialization_operation.h
You-DataStore/internal/operations/serialization_operation.h
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATIONS_SERIALIZATION_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATIONS_SERIALIZATION_OPERATION_H_ #include "../operation.h" namespace You { namespace DataStore { namespace Internal { class SerializationOperation : public IOperation { public: /// Serialize task to an xml node static void serialize(const SerializedTask&, pugi::xml_node&); /// Deserialize task from an xml node static SerializedTask deserialize(const pugi::xml_node&); private: /// The new task contents. SerializedTask task; }; } // namespace Internal } // namespace DataStore } // namespace You #endif // YOU_DATASTORE_INTERNAL_OPERATIONS_SERIALIZATION_OPERATION_H_
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATIONS_SERIALIZATION_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATIONS_SERIALIZATION_OPERATION_H_ #include "../operation.h" namespace You { namespace DataStore { namespace Internal { class SerializationOperation : public IOperation { public: /// Serialize task to an xml node static void serialize(const SerializedTask&, pugi::xml_node&); /// Deserialize task from an xml node static SerializedTask deserialize(const pugi::xml_node&); }; } // namespace Internal } // namespace DataStore } // namespace You #endif // YOU_DATASTORE_INTERNAL_OPERATIONS_SERIALIZATION_OPERATION_H_
Remove unnecessary member variable in SerializationOperation
Remove unnecessary member variable in SerializationOperation
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
d5321842528dfb73f8254a48556b4adb1b6d1c5a
contrib/cube/cubedata.h
contrib/cube/cubedata.h
/* contrib/cube/cubedata.h */ #include "fmgr.h" #define CUBE_MAX_DIM (100) typedef struct NDBOX { int32 vl_len_; /* varlena header (do not touch directly!) */ unsigned int dim; double x[1]; } NDBOX; #define DatumGetNDBOX(x) ((NDBOX*)DatumGetPointer(x)) #define PG_GETARG_NDBOX(x) DatumGetNDBOX( PG_DETOAST_DATUM(PG_GETARG_DATUM(x)) ) #define PG_RETURN_NDBOX(x) PG_RETURN_POINTER(x)
/* contrib/cube/cubedata.h */ #define CUBE_MAX_DIM (100) typedef struct NDBOX { int32 vl_len_; /* varlena header (do not touch directly!) */ unsigned int dim; double x[1]; } NDBOX; #define DatumGetNDBOX(x) ((NDBOX*)DatumGetPointer(x)) #define PG_GETARG_NDBOX(x) DatumGetNDBOX( PG_DETOAST_DATUM(PG_GETARG_DATUM(x)) ) #define PG_RETURN_NDBOX(x) PG_RETURN_POINTER(x)
Remove "fmgr.h" include in cube contrib --- caused crash on a Gentoo builfarm member.
Remove "fmgr.h" include in cube contrib --- caused crash on a Gentoo builfarm member.
C
mpl-2.0
zeroae/postgres-xl,arcivanov/postgres-xl,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,Postgres-XL/Postgres-XL,zeroae/postgres-xl,xinzweb/gpdb,ashwinstar/gpdb,adam8157/gpdb,zeroae/postgres-xl,zeroae/postgres-xl,postmind-net/postgres-xl,oberstet/postgres-xl,50wu/gpdb,pavanvd/postgres-xl,arcivanov/postgres-xl,snaga/postgres-xl,ovr/postgres-xl,xinzweb/gpdb,50wu/gpdb,postmind-net/postgres-xl,greenplum-db/gpdb,kmjungersen/PostgresXL,tpostgres-projects/tPostgres,50wu/gpdb,tpostgres-projects/tPostgres,jmcatamney/gpdb,snaga/postgres-xl,adam8157/gpdb,arcivanov/postgres-xl,lisakowen/gpdb,50wu/gpdb,greenplum-db/gpdb,lisakowen/gpdb,kmjungersen/PostgresXL,yazun/postgres-xl,ovr/postgres-xl,ovr/postgres-xl,techdragon/Postgres-XL,arcivanov/postgres-xl,Postgres-XL/Postgres-XL,greenplum-db/gpdb,pavanvd/postgres-xl,lisakowen/gpdb,Postgres-XL/Postgres-XL,postmind-net/postgres-xl,jmcatamney/gpdb,jmcatamney/gpdb,50wu/gpdb,techdragon/Postgres-XL,oberstet/postgres-xl,yazun/postgres-xl,kmjungersen/PostgresXL,ovr/postgres-xl,yazun/postgres-xl,tpostgres-projects/tPostgres,xinzweb/gpdb,pavanvd/postgres-xl,50wu/gpdb,techdragon/Postgres-XL,greenplum-db/gpdb,snaga/postgres-xl,greenplum-db/gpdb,yazun/postgres-xl,ashwinstar/gpdb,tpostgres-projects/tPostgres,jmcatamney/gpdb,ovr/postgres-xl,xinzweb/gpdb,50wu/gpdb,snaga/postgres-xl,lisakowen/gpdb,postmind-net/postgres-xl,Postgres-XL/Postgres-XL,lisakowen/gpdb,kmjungersen/PostgresXL,arcivanov/postgres-xl,jmcatamney/gpdb,50wu/gpdb,adam8157/gpdb,oberstet/postgres-xl,jmcatamney/gpdb,xinzweb/gpdb,lisakowen/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,adam8157/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,ashwinstar/gpdb,adam8157/gpdb,greenplum-db/gpdb,snaga/postgres-xl,yazun/postgres-xl,adam8157/gpdb,techdragon/Postgres-XL,kmjungersen/PostgresXL,adam8157/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,xinzweb/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,zeroae/postgres-xl,lisakowen/gpdb,adam8157/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,arcivanov/postgres-xl,xinzweb/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,xinzweb/gpdb,oberstet/postgres-xl,oberstet/postgres-xl,techdragon/Postgres-XL,tpostgres-projects/tPostgres
520cee1eeb88bae50e20c4b53c0eedf843269ba9
tensorflow/core/platform/test_benchmark.h
tensorflow/core/platform/test_benchmark.h
/* Copyright 2015 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. ==============================================================================*/ // Simple benchmarking facility. #ifndef TENSORFLOW_CORE_PLATFORM_TEST_BENCHMARK_H_ #define TENSORFLOW_CORE_PLATFORM_TEST_BENCHMARK_H_ #include "tensorflow/core/platform/platform.h" #if defined(PLATFORM_GOOGLE) #include "tensorflow/core/platform/google/test_benchmark.h" #else #include "tensorflow/core/platform/default/test_benchmark.h" #endif // PLATFORM_GOOGLE #endif // TENSORFLOW_CORE_PLATFORM_TEST_BENCHMARK_H_
/* Copyright 2015 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. ==============================================================================*/ // Simple benchmarking facility. #ifndef TENSORFLOW_CORE_PLATFORM_TEST_BENCHMARK_H_ #define TENSORFLOW_CORE_PLATFORM_TEST_BENCHMARK_H_ #include "tensorflow/core/platform/platform.h" #if defined(PLATFORM_GOOGLE) #include "tensorflow/core/platform/google/test_benchmark.h" // IWYU pragma: export #else #include "tensorflow/core/platform/default/test_benchmark.h" // IWYU pragma: export #endif // PLATFORM_GOOGLE #endif // TENSORFLOW_CORE_PLATFORM_TEST_BENCHMARK_H_
Add IWYU tags to headers TF is re-exporting.
Add IWYU tags to headers TF is re-exporting. PiperOrigin-RevId: 291557790 Change-Id: Ic0268063ea1048bf6f22ba6aee1b9854d6420f30
C
apache-2.0
gunan/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,karllessard/tensorflow,xzturn/tensorflow,yongtang/tensorflow,xzturn/tensorflow,aldian/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,renyi533/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,xzturn/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,annarev/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,tensorflow/tensorflow,aldian/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,karllessard/tensorflow,jhseu/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,paolodedios/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,renyi533/tensorflow,petewarden/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,petewarden/tensorflow,gunan/tensorflow,yongtang/tensorflow,aam-at/tensorflow,annarev/tensorflow,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,annarev/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,freedomtan/tensorflow,annarev/tensorflow,cxxgtxy/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,Intel-Corporation/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,petewarden/tensorflow,yongtang/tensorflow,gunan/tensorflow,aam-at/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,xzturn/tensorflow,annarev/tensorflow,davidzchen/tensorflow,renyi533/tensorflow,karllessard/tensorflow,yongtang/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,petewarden/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,karllessard/tensorflow,karllessard/tensorflow,jhseu/tensorflow,aldian/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,annarev/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,sarvex/tensorflow,paolodedios/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,xzturn/tensorflow,paolodedios/tensorflow,xzturn/tensorflow,aldian/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,gunan/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,aam-at/tensorflow,aldian/tensorflow,gunan/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,gunan/tensorflow,gunan/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,gunan/tensorflow,gautam1858/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,sarvex/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,annarev/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,xzturn/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,renyi533/tensorflow,karllessard/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,karllessard/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,xzturn/tensorflow,jhseu/tensorflow
d58efe12d8c0dcfcc7a2495682dbea864a8112fa
src/tinyarg.h
src/tinyarg.h
#ifndef __TINYARG_H__ #define __TINYARG_H__ struct tiny_args_t; bool tiny_args_parse(struct tiny_args_t* args, int argc, const char* argv[]); void tiny_args_add_bool(struct tiny_args_t** args, char short_opt, const char* long_opt, bool* flag, const char* desc); void tiny_args_add_str(struct tiny_args_t** args, char short_opt, const char* long_opt, char* str, size_t str_len, const char* desc); void tiny_args_usage(const char* process_name, struct tiny_args_t* args); void tiny_args_destroy(struct tiny_args_t* args); #endif /* __TINYARG_H__ */
#ifndef __TINYARG_H__ #define __TINYARG_H__ #ifdef __cplusplus extern "C" { #endif struct tiny_args_t; bool tiny_args_parse(struct tiny_args_t* args, int argc, const char* argv[]); void tiny_args_add_bool(struct tiny_args_t** args, char short_opt, const char* long_opt, bool* flag, const char* desc); void tiny_args_add_str(struct tiny_args_t** args, char short_opt, const char* long_opt, char* str, size_t str_len, const char* desc); void tiny_args_usage(const char* process_name, struct tiny_args_t* args); void tiny_args_destroy(struct tiny_args_t* args); #ifdef __cplusplus } #endif #endif /* __TINYARG_H__ */
Add externs for use in C++ code
Add externs for use in C++ code
C
mit
yoink00/tinyarg
8f117e00785bbf86d94df997e08a45ae06dd73b7
src/bool.h
src/bool.h
/** * File: bool.h * Author: Cindy Norris */ #define TRUE 1 #define FALSE 0 typedef int bool;
/* * File: bool.h * Author: Cindy Norris */ #define TRUE 1 #define FALSE 0 typedef int bool;
Change file header to C style
Change file header to C style
C
isc
sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS
29e868951da7348ffa021889bfd5719bab403308
numpy/core/src/multiarray/multiarraymodule_onefile.c
numpy/core/src/multiarray/multiarraymodule_onefile.c
/* * This file includes all the .c files needed for a complete multiarray module. * This is used in the case where separate compilation is not enabled * * Note that the order of the includs matters */ #include "common.c" #include "scalartypes.c" #include "scalarapi.c" #include "datetime.c" #include "arraytypes.c" #include "hashdescr.c" #include "numpyos.c" #include "descriptor.c" #include "flagsobject.c" #include "ctors.c" #include "iterators.c" #include "mapping.c" #include "number.c" #include "getset.c" #include "sequence.c" #include "methods.c" #include "convert_datatype.c" #include "convert.c" #include "shape.c" #include "item_selection.c" #include "calculation.c" #include "usertypes.c" #include "refcount.c" #include "conversion_utils.c" #include "buffer.c" #include "new_iterator.c" #include "new_iterator_pywrap.c" #include "lowlevel_strided_loops.c" #include "dtype_transfer.c" #ifndef Py_UNICODE_WIDE #include "ucsnarrow.c" #endif #include "arrayobject.c" #include "numpymemoryview.c" #include "multiarraymodule.c"
/* * This file includes all the .c files needed for a complete multiarray module. * This is used in the case where separate compilation is not enabled * * Note that the order of the includs matters */ #include "common.c" #include "scalartypes.c" #include "scalarapi.c" #include "datetime.c" #include "arraytypes.c" #include "hashdescr.c" #include "numpyos.c" #include "descriptor.c" #include "flagsobject.c" #include "ctors.c" #include "iterators.c" #include "mapping.c" #include "number.c" #include "getset.c" #include "sequence.c" #include "methods.c" #include "convert_datatype.c" #include "convert.c" #include "shape.c" #include "item_selection.c" #include "calculation.c" #include "usertypes.c" #include "refcount.c" #include "conversion_utils.c" #include "buffer.c" #include "new_iterator.c" #include "new_iterator_pywrap.c" #include "lowlevel_strided_loops.c" #include "dtype_transfer.c" #include "einsum.c" #ifndef Py_UNICODE_WIDE #include "ucsnarrow.c" #endif #include "arrayobject.c" #include "numpymemoryview.c" #include "multiarraymodule.c"
Add einsum to the one file build
BLD: Add einsum to the one file build
C
bsd-3-clause
hainm/numpy,groutr/numpy,shoyer/numpy,njase/numpy,astrofrog/numpy,empeeu/numpy,numpy/numpy,ajdawson/numpy,gmcastil/numpy,mattip/numpy,ajdawson/numpy,maniteja123/numpy,SiccarPoint/numpy,groutr/numpy,jakirkham/numpy,rajathkumarmp/numpy,ewmoore/numpy,felipebetancur/numpy,utke1/numpy,CMartelLML/numpy,pyparallel/numpy,dwillmer/numpy,behzadnouri/numpy,seberg/numpy,dwillmer/numpy,Srisai85/numpy,b-carter/numpy,pelson/numpy,argriffing/numpy,drasmuss/numpy,leifdenby/numpy,ViralLeadership/numpy,nguyentu1602/numpy,rudimeier/numpy,SunghanKim/numpy,abalkin/numpy,SunghanKim/numpy,dch312/numpy,sigma-random/numpy,embray/numpy,jschueller/numpy,jakirkham/numpy,jankoslavic/numpy,AustereCuriosity/numpy,dimasad/numpy,ESSS/numpy,simongibbons/numpy,GrimDerp/numpy,nbeaver/numpy,behzadnouri/numpy,trankmichael/numpy,trankmichael/numpy,Eric89GXL/numpy,matthew-brett/numpy,Eric89GXL/numpy,Linkid/numpy,MSeifert04/numpy,jakirkham/numpy,MSeifert04/numpy,rhythmsosad/numpy,embray/numpy,kiwifb/numpy,brandon-rhodes/numpy,ewmoore/numpy,chiffa/numpy,tynn/numpy,solarjoe/numpy,cowlicks/numpy,WillieMaddox/numpy,pbrod/numpy,jonathanunderwood/numpy,behzadnouri/numpy,grlee77/numpy,Yusa95/numpy,Dapid/numpy,BMJHayward/numpy,anntzer/numpy,mwiebe/numpy,ChristopherHogan/numpy,MSeifert04/numpy,nguyentu1602/numpy,brandon-rhodes/numpy,pizzathief/numpy,ChristopherHogan/numpy,GaZ3ll3/numpy,cjermain/numpy,yiakwy/numpy,pdebuyl/numpy,stuarteberg/numpy,rmcgibbo/numpy,SiccarPoint/numpy,stefanv/numpy,immerrr/numpy,BMJHayward/numpy,joferkington/numpy,mathdd/numpy,tacaswell/numpy,pdebuyl/numpy,has2k1/numpy,mingwpy/numpy,pelson/numpy,mingwpy/numpy,pbrod/numpy,tacaswell/numpy,ssanderson/numpy,sonnyhu/numpy,ESSS/numpy,has2k1/numpy,nbeaver/numpy,mortada/numpy,charris/numpy,CMartelLML/numpy,moreati/numpy,cjermain/numpy,kirillzhuravlev/numpy,ssanderson/numpy,Eric89GXL/numpy,dato-code/numpy,ogrisel/numpy,bringingheavendown/numpy,numpy/numpy,MaPePeR/numpy,ewmoore/numpy,ajdawson/numpy,Yusa95/numpy,cjermain/numpy,stuarteberg/numpy,naritta/numpy,jakirkham/numpy,NextThought/pypy-numpy,empeeu/numpy,Anwesh43/numpy,astrofrog/numpy,sigma-random/numpy,Linkid/numpy,bringingheavendown/numpy,rajathkumarmp/numpy,kirillzhuravlev/numpy,mingwpy/numpy,naritta/numpy,MichaelAquilina/numpy,tdsmith/numpy,bmorris3/numpy,empeeu/numpy,joferkington/numpy,ChanderG/numpy,pbrod/numpy,MichaelAquilina/numpy,SunghanKim/numpy,astrofrog/numpy,WarrenWeckesser/numpy,Dapid/numpy,grlee77/numpy,WarrenWeckesser/numpy,nbeaver/numpy,seberg/numpy,leifdenby/numpy,bertrand-l/numpy,ChanderG/numpy,charris/numpy,chiffa/numpy,mwiebe/numpy,jschueller/numpy,stuarteberg/numpy,madphysicist/numpy,ekalosak/numpy,brandon-rhodes/numpy,jorisvandenbossche/numpy,cowlicks/numpy,rmcgibbo/numpy,ekalosak/numpy,charris/numpy,rgommers/numpy,seberg/numpy,endolith/numpy,abalkin/numpy,stuarteberg/numpy,ChristopherHogan/numpy,bmorris3/numpy,mwiebe/numpy,ahaldane/numpy,ewmoore/numpy,AustereCuriosity/numpy,embray/numpy,Anwesh43/numpy,joferkington/numpy,yiakwy/numpy,rajathkumarmp/numpy,ekalosak/numpy,ViralLeadership/numpy,dwf/numpy,NextThought/pypy-numpy,GaZ3ll3/numpy,stefanv/numpy,BabeNovelty/numpy,jonathanunderwood/numpy,mathdd/numpy,NextThought/pypy-numpy,WarrenWeckesser/numpy,ContinuumIO/numpy,ogrisel/numpy,NextThought/pypy-numpy,Yusa95/numpy,has2k1/numpy,ChristopherHogan/numpy,SiccarPoint/numpy,jankoslavic/numpy,rgommers/numpy,bmorris3/numpy,hainm/numpy,ddasilva/numpy,shoyer/numpy,chatcannon/numpy,cjermain/numpy,tynn/numpy,gfyoung/numpy,jschueller/numpy,rgommers/numpy,chatcannon/numpy,stefanv/numpy,brandon-rhodes/numpy,ContinuumIO/numpy,MSeifert04/numpy,cowlicks/numpy,skwbc/numpy,skwbc/numpy,grlee77/numpy,tdsmith/numpy,andsor/numpy,kirillzhuravlev/numpy,abalkin/numpy,rudimeier/numpy,ahaldane/numpy,gfyoung/numpy,GaZ3ll3/numpy,skymanaditya1/numpy,matthew-brett/numpy,utke1/numpy,musically-ut/numpy,pdebuyl/numpy,musically-ut/numpy,tacaswell/numpy,ContinuumIO/numpy,GrimDerp/numpy,dwillmer/numpy,KaelChen/numpy,BabeNovelty/numpy,embray/numpy,mattip/numpy,maniteja123/numpy,dch312/numpy,CMartelLML/numpy,MaPePeR/numpy,jankoslavic/numpy,mhvk/numpy,Eric89GXL/numpy,ddasilva/numpy,BabeNovelty/numpy,SunghanKim/numpy,rudimeier/numpy,sonnyhu/numpy,musically-ut/numpy,rhythmsosad/numpy,larsmans/numpy,mindw/numpy,b-carter/numpy,skwbc/numpy,MSeifert04/numpy,dwf/numpy,WillieMaddox/numpy,numpy/numpy,pelson/numpy,trankmichael/numpy,kiwifb/numpy,rhythmsosad/numpy,anntzer/numpy,jorisvandenbossche/numpy,pbrod/numpy,rherault-insa/numpy,larsmans/numpy,yiakwy/numpy,Srisai85/numpy,MichaelAquilina/numpy,mhvk/numpy,gfyoung/numpy,nguyentu1602/numpy,shoyer/numpy,mhvk/numpy,empeeu/numpy,GrimDerp/numpy,immerrr/numpy,argriffing/numpy,dato-code/numpy,mingwpy/numpy,ahaldane/numpy,mattip/numpy,rmcgibbo/numpy,gmcastil/numpy,sinhrks/numpy,maniteja123/numpy,shoyer/numpy,sigma-random/numpy,moreati/numpy,kiwifb/numpy,jankoslavic/numpy,ewmoore/numpy,skymanaditya1/numpy,embray/numpy,drasmuss/numpy,MichaelAquilina/numpy,dch312/numpy,mortada/numpy,githubmlai/numpy,ahaldane/numpy,simongibbons/numpy,mhvk/numpy,sinhrks/numpy,yiakwy/numpy,githubmlai/numpy,dimasad/numpy,andsor/numpy,ViralLeadership/numpy,GaZ3ll3/numpy,dch312/numpy,ESSS/numpy,pelson/numpy,bertrand-l/numpy,skymanaditya1/numpy,sonnyhu/numpy,dwillmer/numpy,rudimeier/numpy,b-carter/numpy,grlee77/numpy,musically-ut/numpy,kirillzhuravlev/numpy,nguyentu1602/numpy,rmcgibbo/numpy,numpy/numpy,pizzathief/numpy,utke1/numpy,endolith/numpy,madphysicist/numpy,Srisai85/numpy,dato-code/numpy,astrofrog/numpy,pyparallel/numpy,joferkington/numpy,tdsmith/numpy,KaelChen/numpy,simongibbons/numpy,leifdenby/numpy,KaelChen/numpy,dwf/numpy,githubmlai/numpy,solarjoe/numpy,felipebetancur/numpy,pizzathief/numpy,SiccarPoint/numpy,Srisai85/numpy,felipebetancur/numpy,larsmans/numpy,mathdd/numpy,mortada/numpy,naritta/numpy,stefanv/numpy,jorisvandenbossche/numpy,ahaldane/numpy,mindw/numpy,bertrand-l/numpy,KaelChen/numpy,has2k1/numpy,ogrisel/numpy,grlee77/numpy,MaPePeR/numpy,mattip/numpy,sinhrks/numpy,matthew-brett/numpy,ekalosak/numpy,chatcannon/numpy,BMJHayward/numpy,gmcastil/numpy,hainm/numpy,WarrenWeckesser/numpy,pyparallel/numpy,Linkid/numpy,simongibbons/numpy,madphysicist/numpy,ChanderG/numpy,njase/numpy,moreati/numpy,Anwesh43/numpy,BMJHayward/numpy,BabeNovelty/numpy,jorisvandenbossche/numpy,pbrod/numpy,ogrisel/numpy,dwf/numpy,Yusa95/numpy,rhythmsosad/numpy,drasmuss/numpy,jakirkham/numpy,andsor/numpy,mathdd/numpy,AustereCuriosity/numpy,charris/numpy,ajdawson/numpy,Linkid/numpy,WillieMaddox/numpy,ssanderson/numpy,njase/numpy,GrimDerp/numpy,pdebuyl/numpy,sigma-random/numpy,pizzathief/numpy,endolith/numpy,ddasilva/numpy,anntzer/numpy,matthew-brett/numpy,sinhrks/numpy,pelson/numpy,dimasad/numpy,groutr/numpy,ChanderG/numpy,jonathanunderwood/numpy,simongibbons/numpy,MaPePeR/numpy,Anwesh43/numpy,hainm/numpy,dato-code/numpy,immerrr/numpy,mindw/numpy,cowlicks/numpy,solarjoe/numpy,rherault-insa/numpy,chiffa/numpy,madphysicist/numpy,tynn/numpy,mhvk/numpy,astrofrog/numpy,sonnyhu/numpy,bringingheavendown/numpy,tdsmith/numpy,dimasad/numpy,githubmlai/numpy,mortada/numpy,shoyer/numpy,immerrr/numpy,rgommers/numpy,anntzer/numpy,rherault-insa/numpy,skymanaditya1/numpy,jorisvandenbossche/numpy,WarrenWeckesser/numpy,mindw/numpy,endolith/numpy,larsmans/numpy,pizzathief/numpy,naritta/numpy,felipebetancur/numpy,argriffing/numpy,rajathkumarmp/numpy,trankmichael/numpy,stefanv/numpy,CMartelLML/numpy,bmorris3/numpy,ogrisel/numpy,dwf/numpy,andsor/numpy,Dapid/numpy,matthew-brett/numpy,madphysicist/numpy,jschueller/numpy,seberg/numpy
f1ab4741e908aef88a7ac7f0c375b75fe51c39b4
packages/Python/lldbsuite/test/lang/c/inlines/main.c
packages/Python/lldbsuite/test/lang/c/inlines/main.c
#include <stdio.h> void test1(int) __attribute__ ((always_inline)); void test2(int) __attribute__ ((always_inline)); void test2(int b) { printf("test2(%d)\n", b); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["42"]) } void test1(int a) { printf("test1(%d)\n", a); test2(a+1);//% self.dbg.HandleCommand("step") //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["24"]) } int main() { test2(42); test1(23); }
#include <stdio.h> inline void test1(int) __attribute__ ((always_inline)); inline void test2(int) __attribute__ ((always_inline)); void test2(int b) { printf("test2(%d)\n", b); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["42"]) } void test1(int a) { printf("test1(%d)\n", a); test2(a+1);//% self.dbg.HandleCommand("step") //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["24"]) } int main() { test2(42); test1(23); }
Make sure TestRedefinitionsInInlines.py actually inlines.
Make sure TestRedefinitionsInInlines.py actually inlines. Reviewers: spyffe Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D20540 git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@270493 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb
2a60aff9425ba701f5669a6732412d30b89dd410
components/esp8266/include/internal/esp_wifi_internal.h
components/esp8266/include/internal/esp_wifi_internal.h
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by 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 _ESP_WIFI_INTERNAL_H #define _ESP_WIFI_INTERNAL_H #ifdef __cplusplus extern "C" { #endif typedef enum { WIFI_RX_PBUF_IRAM, /** save rx buffer to iram and upload to tcpip*/ WIFI_RX_PBUF_DRAM, /** save rx buffer to dram and upload to tcpip */ } wifi_rx_pbuf_mem_type_t; /** * @brief Set WIFI received TCP/IP data cache ram type * * @param type if use dram */ void esp_wifi_set_rx_pbuf_mem_type(wifi_rx_pbuf_mem_type_t type); /** * @brief get WIFI received TCP/IP data cache ram type * * @return true if use dram or false */ wifi_rx_pbuf_mem_type_t esp_wifi_get_rx_pbuf_mem_type(void); #ifdef __cplusplus } #endif #endif /* _ESP_WIFI_INTERNAL_H */
Add feature to set/get WIFI rx data ram type
feat(esp8266): Add feature to set/get WIFI rx data ram type Use iram to upload pbuf.
C
apache-2.0
espressif/ESP8266_RTOS_SDK,espressif/ESP8266_RTOS_SDK,espressif/ESP8266_RTOS_SDK,espressif/ESP8266_RTOS_SDK,espressif/ESP8266_RTOS_SDK
e157719757e4005148287de3831e4b585715ebfd
tests/regression/31-ikind-aware-ints/16-enums-compare.c
tests/regression/31-ikind-aware-ints/16-enums-compare.c
//PARAM: --enable ana.int.enums --disable ana.int.def_exc int main(){ int top = rand(); int x,y; if(top){ x = 1; } else{ x = 0; } assert(x < 2); assert(x < 1); // UNKNOWN! assert(x < 0); // FAIL assert(x <= 2); assert(x <= 1); assert(x <= 0); // UNKNOWN! assert(x <= -1); //FAIL assert(x > -1); assert(x > 0); //UNKNOWN! assert(x > 1); //FAIL assert(x >= -1); assert(x >= 0); assert(x >= 1); //UNKNOWN! assert(x >= 2); //FAIL return 0; }
//PARAM: --enable ana.int.enums --disable ana.int.def_exc int main(){ int top = rand(); int top2 = rand(); int x,y; if(top){ x = 1; } else{ x = 0; } if(top2){ y = 1; } else{ y = 0; } assert(x < 2); assert(x < 1); // UNKNOWN! assert(x < 0); // FAIL assert(x <= 2); assert(x <= 1); assert(x <= 0); // UNKNOWN! assert(x <= -1); //FAIL assert(x > -1); assert(x > 0); //UNKNOWN! assert(x > 1); //FAIL assert(x >= -1); assert(x >= 0); assert(x >= 1); //UNKNOWN! assert(x >= 2); //FAIL assert(x == y); // UNKNOWN assert(x == 1); // UNKNOWN assert(x == 2); // FAIL assert(x != y); // UNKNOWN assert(x != 1); // UNKNOWN assert(x != 2); int z = rand(); y = 3; if(z==3){ assert(y==z); assert(y!=z); //FAIL } else { assert(y==z); //FAIL assert(y!=z); } return 0; }
Add more asserts for eq and ne in Enums
Add more asserts for eq and ne in Enums
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
23db9892b5bdf8493b86ff5676d5cc29f17588ab
Modules/OpenViewCore/include/QVTKFramebufferObjectRenderer.h
Modules/OpenViewCore/include/QVTKFramebufferObjectRenderer.h
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef __QVTKFramebufferObjectRenderer_h #define __QVTKFramebufferObjectRenderer_h #include <QQuickFramebufferObject> #include "QVTKQuickItem.h" #include <MitkOpenViewCoreExports.h> class vtkInternalOpenGLRenderWindow; //! Part of Qml rendering prototype, see QmlMitkRenderWindowItem. class MITKOPENVIEWCORE_EXPORT QVTKFramebufferObjectRenderer : public QQuickFramebufferObject::Renderer { public: bool m_neverRendered; bool m_readyToRender; vtkInternalOpenGLRenderWindow *m_vtkRenderWindow; QVTKQuickItem *m_vtkQuickItem; public: QVTKFramebufferObjectRenderer(vtkInternalOpenGLRenderWindow *rw); ~QVTKFramebufferObjectRenderer(); virtual void synchronize(QQuickFramebufferObject * item); virtual void render(); QOpenGLFramebufferObject *createFramebufferObject(const QSize &size); friend class vtkInternalOpenGLRenderWindow; }; #endif
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef __QVTKFramebufferObjectRenderer_h #define __QVTKFramebufferObjectRenderer_h #include <QQuickFramebufferObject> #include "QVTKQuickItem.h" #include <MitkOpenViewCoreExports.h> class vtkInternalOpenGLRenderWindow; //! Part of Qml rendering prototype, see QmlMitkRenderWindowItem. class MITKOPENVIEWCORE_EXPORT QVTKFramebufferObjectRenderer : public QQuickFramebufferObject::Renderer { public: vtkInternalOpenGLRenderWindow *m_vtkRenderWindow; bool m_neverRendered; bool m_readyToRender; QVTKQuickItem *m_vtkQuickItem; public: QVTKFramebufferObjectRenderer(vtkInternalOpenGLRenderWindow *rw); ~QVTKFramebufferObjectRenderer(); virtual void synchronize(QQuickFramebufferObject * item); virtual void render(); QOpenGLFramebufferObject *createFramebufferObject(const QSize &size); friend class vtkInternalOpenGLRenderWindow; }; #endif
Fix warnings in OpenViewCore module
Fix warnings in OpenViewCore module
C
bsd-3-clause
MITK/MITK,fmilano/mitk,MITK/MITK,fmilano/mitk,fmilano/mitk,fmilano/mitk,MITK/MITK,MITK/MITK,fmilano/mitk,fmilano/mitk,MITK/MITK,fmilano/mitk,MITK/MITK
adb4b9f67da9152584a958671ad8aac2aad28f0f
PG/app/AppConfiguration.h
PG/app/AppConfiguration.h
#pragma once #include "PG/app/StyleSheet.h" #include "PG/core/Size.h" #include <string> namespace PG { //-------------------------------------------------------- struct AppConfiguration { std::string windowTitle; Size windowSize; int tileSize = 32; std::string resourcesFilename; StyleSheet styleSheet; }; }
#pragma once #include "PG/app/StyleSheet.h" #include "PG/core/Size.h" #include <string> namespace PG { //-------------------------------------------------------- struct AppConfiguration { std::string windowTitle; Size windowSize; int tileSize = 32; StyleSheet styleSheet; }; }
Remove resourcesFilename as it's not required
Remove resourcesFilename as it's not required
C
mit
mcdreamer/PG,mcdreamer/PG
e808ebf62fcc63e1c21f9931ffec021604043d35
libyaul/scu/bus/cpu/cpu.h
libyaul/scu/bus/cpu/cpu.h
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <[email protected]> */ #ifndef _CPU_H_ #define _CPU_H_ #include <cpu/cache.h> #include <cpu/divu.h> #include <cpu/dmac.h> #include <cpu/dual.h> #include <cpu/endian.h> #include <cpu/frt.h> #include <cpu/instructions.h> #include <cpu/intc.h> #include <cpu/registers.h> #include <cpu/sync.h> #include <cpu/wdt.h> #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ extern void cpu_init(void); extern void _slave_polling_entry(void); extern void _slave_ici_entry(void); extern void _exception_illegal_instruction(void); extern void _exception_illegal_slot(void); extern void _exception_cpu_address_error(void); extern void _exception_dma_address_error(void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* !_CPU_H_ */
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <[email protected]> */ #ifndef _CPU_H_ #define _CPU_H_ #include <cpu/cache.h> #include <cpu/divu.h> #include <cpu/dmac.h> #include <cpu/dual.h> #include <cpu/endian.h> #include <cpu/frt.h> #include <cpu/instructions.h> #include <cpu/intc.h> #include <cpu/registers.h> #include <cpu/sync.h> #include <cpu/wdt.h> #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ extern void cpu_init(void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* !_CPU_H_ */
Remove prototypes for static methods
Remove prototypes for static methods
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
11782c7860ced878fed5db2d68d8c8fe3bdfdd1d
2018/clone/clone-vm-sample.c
2018/clone/clone-vm-sample.c
#define _GNU_SOURCE #include <sched.h> #include <sys/syscall.h> #include <sys/wait.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> static int child_func(void* arg) { return 0; } int main(int argc, char** argv) { // Stack for child. const int STACK_SIZE = 65536; char* stack = malloc(STACK_SIZE); if (!stack) { perror("malloc"); exit(1); } unsigned long flags = 0; if (clone(child_func, stack + STACK_SIZE, flags | SIGCHLD, NULL) == -1) { perror("clone"); exit(1); } int status; pid_t pid = waitpid(-1, &status, 0); if (pid == -1) { perror("waitpid"); exit(1); } printf(" Child PID=%ld\n", (long)pid); return 0; }
#define _GNU_SOURCE #include <sched.h> #include <sys/syscall.h> #include <sys/wait.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> static int child_func(void* arg) { char* buf = (char*)arg; strcpy(buf, "hello"); return 0; } int main(int argc, char** argv) { // Stack for child. const int STACK_SIZE = 65536; char* stack = malloc(STACK_SIZE); if (!stack) { perror("malloc"); exit(1); } unsigned long flags = 0; if (argc > 1 && !strcmp(argv[1], "vm")) { flags |= CLONE_VM; } char buf[100] = {0}; if (clone(child_func, stack + STACK_SIZE, flags | SIGCHLD, buf) == -1) { perror("clone"); exit(1); } int status; pid_t pid = waitpid(-1, &status, 0); if (pid == -1) { perror("waitpid"); exit(1); } printf("Child exited. buf = \"%s\"\n", buf); return 0; }
Clone with/without VM sample working now
Clone with/without VM sample working now
C
unlicense
eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog
a835e62e608714541135f90a26f46e919e3e52aa
2018/clone/clone-vm-sample.c
2018/clone/clone-vm-sample.c
// We have to define the _GNU_SOURCE to get access to clone(2) and the CLONE_* // flags from sched.h #define _GNU_SOURCE #include <sched.h> #include <sys/syscall.h> #include <sys/wait.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> static int child_func(void* arg) { char* buf = (char*)arg; strcpy(buf, "hello"); return 0; } int main(int argc, char** argv) { // Allocate stack for child task. const int STACK_SIZE = 65536; char* stack = malloc(STACK_SIZE); if (!stack) { perror("malloc"); exit(1); } // When called with the command-line argument "vm", set the CLONE_VM flag on. unsigned long flags = 0; if (argc > 1 && !strcmp(argv[1], "vm")) { flags |= CLONE_VM; } char buf[100] = {0}; if (clone(child_func, stack + STACK_SIZE, flags | SIGCHLD, buf) == -1) { perror("clone"); exit(1); } int status; if (wait(&status) == -1) { perror("wait"); exit(1); } printf("Child exited with status %d. buf = \"%s\"\n", status, buf); return 0; }
// We have to define the _GNU_SOURCE to get access to clone(2) and the CLONE_* // flags from sched.h #define _GNU_SOURCE #include <sched.h> #include <sys/syscall.h> #include <sys/wait.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> static int child_func(void* arg) { char* buf = (char*)arg; printf("Child sees buf = \"%s\"\n", buf); strcpy(buf, "hello from child"); return 0; } int main(int argc, char** argv) { // Allocate stack for child task. const int STACK_SIZE = 65536; char* stack = malloc(STACK_SIZE); if (!stack) { perror("malloc"); exit(1); } // When called with the command-line argument "vm", set the CLONE_VM flag on. unsigned long flags = 0; if (argc > 1 && !strcmp(argv[1], "vm")) { flags |= CLONE_VM; } char buf[100]; strcpy(buf, "hello from parent"); if (clone(child_func, stack + STACK_SIZE, flags | SIGCHLD, buf) == -1) { perror("clone"); exit(1); } int status; if (wait(&status) == -1) { perror("wait"); exit(1); } printf("Child exited with status %d. buf = \"%s\"\n", status, buf); return 0; }
Change the sample to pass message from parent as well
Change the sample to pass message from parent as well
C
unlicense
eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog
4f515b1847d32452f9c0abbc5325eeb3ac94b7e2
tensorflow/lite/kernels/internal/reference/integer_ops/lut.h
tensorflow/lite/kernels/internal/reference/integer_ops/lut.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_LITE_KERNELS_INTERNAL_REFERENCE_INTEGER_OPS_LUT_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_INTEGER_OPS_LUT_H_ #include "tensorflow/lite/kernels/internal/common.h" namespace tflite { namespace reference_integer_ops { template <typename InputT, typename OutputT> inline void LookupTable(const InputT* input_data, int num_elements, const OutputT* lut, OutputT* output_data) { for (int i = 0; i < num_elements; i++) { output_data[i] = LUTLookup(input_data[i], lut); } } } // namespace reference_integer_ops } // namespace tflite #endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_INTEGER_OPS_LUT_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_LITE_KERNELS_INTERNAL_REFERENCE_INTEGER_OPS_LUT_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_INTEGER_OPS_LUT_H_ #include "tensorflow/lite/kernels/internal/common.h" namespace tflite { namespace reference_integer_ops { template <typename InputT, typename OutputT> inline void LookupTable(const InputT* input_data, int num_elements, const OutputT* lut, OutputT* output_data) { for (int i = 0; i < num_elements; ++i) { output_data[i] = LUTLookup(input_data[i], lut); } } } // namespace reference_integer_ops } // namespace tflite #endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_INTEGER_OPS_LUT_H_
Use ++i instead of i++
Use ++i instead of i++
C
apache-2.0
tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,yongtang/tensorflow,karllessard/tensorflow
2f2658506c4d344daa40dce57e69ca2e209ed99a
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 86 #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 87 #endif
Update Skia milestone to 87
Update Skia milestone to 87 Change-Id: Ic755236e56a0b8064c5539c0a483fffbd4d9f334 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/312156 Reviewed-by: Heather Miller <[email protected]> Commit-Queue: Heather Miller <[email protected]>
C
bsd-3-clause
google/skia,google/skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia
7af5ca84a6606374928cb5f2e15e14fff686fc63
lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.h
lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.h
//===- lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.h ---------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// /// /// \file /// \brief Declares the relocation processing pass for x86-64. This includes /// GOT and PLT entries, TLS, COPY, and ifunc. /// //===----------------------------------------------------------------------===// #ifndef LLD_READER_WRITER_ELF_AARCH64_AARCH64_RELOCATION_PASS_H #define LLD_READER_WRITER_ELF_AARCH64_AARCH64_RELOCATION_PASS_H #include <memory> namespace lld { class Pass; namespace elf { class AArch64LinkingContext; /// \brief Create AArch64 relocation pass for the given linking context. std::unique_ptr<Pass> createAArch64RelocationPass(const AArch64LinkingContext &); } } #endif
//===- lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.h ---------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// /// /// \file /// \brief Declares the relocation processing pass for AArch64. This includes /// GOT and PLT entries, TLS, COPY, and ifunc. /// //===----------------------------------------------------------------------===// #ifndef LLD_READER_WRITER_ELF_AARCH64_AARCH64_RELOCATION_PASS_H #define LLD_READER_WRITER_ELF_AARCH64_AARCH64_RELOCATION_PASS_H #include <memory> namespace lld { class Pass; namespace elf { class AArch64LinkingContext; /// \brief Create AArch64 relocation pass for the given linking context. std::unique_ptr<Pass> createAArch64RelocationPass(const AArch64LinkingContext &); } } #endif
Fix comment in AArch64 ELF backend
Fix comment in AArch64 ELF backend git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@222814 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lld,llvm-mirror/lld
f687a87560979bec5f7fc58f79e47baacb70cc25
FABOperation/FABAsyncOperation.h
FABOperation/FABAsyncOperation.h
// // FABAsyncOperation.h // FABOperation // // Copyright © 2016 Twitter. All rights reserved. // #import <Foundation/Foundation.h> /** * Completion block that can be called in your subclass implementation. It is up to you when you want to call it. */ typedef void(^FABAsyncOperationCompletionBlock)(NSError *__nullable error); /** * FABAsyncOperation is a subclass of NSOperation that allows for asynchronous work to be performed, for things like networking, IPC or UI-driven logic. Create your own subclasses to encapsulate custom logic. * @warning When subclassing to create your own operations, be sure to call -[markDone] at some point, or program execution will hang. * @see -[markDone] in FABAsyncOperation_Private.h */ @interface FABAsyncOperation : NSOperation /** * Add a callback method for consumers of your subclasses to set when the asynchronous work is marked as complete with -[markDone]. */ @property (copy, nonatomic, nullable) FABAsyncOperationCompletionBlock asyncCompletion; @end
// // FABAsyncOperation.h // FABOperation // // Copyright © 2016 Twitter. All rights reserved. // #import <Foundation/Foundation.h> /** * Completion block that can be called in your subclass implementation. It is up to you when you want to call it. */ typedef void(^FABAsyncOperationCompletionBlock)(NSError *__nullable error); /** * FABAsyncOperation is a subclass of NSOperation that allows for asynchronous work to be performed, for things like networking, IPC or UI-driven logic. Create your own subclasses to encapsulate custom logic. * @warning When subclassing to create your own operations, be sure to call -[finishWithError:] at some point, or program execution will hang. * @see -[finishWithError:] in FABAsyncOperation_Private.h */ @interface FABAsyncOperation : NSOperation /** * Add a callback method for consumers of your subclasses to set when the asynchronous work is marked as complete with -[finishWithError:]. */ @property (copy, nonatomic, nullable) FABAsyncOperationCompletionBlock asyncCompletion; @end
Update comments to refer to finishWithError
Update comments to refer to finishWithError markDone was renamed to finishWithError
C
mit
google-fabric/FABOperation,twitter-fabric/FABOperation,google-fabric/FABOperation,twitter-fabric/FABOperation
b929a1e2a5a963272516b620382684472d2d7a95
arduino/OpenROV/AConfig.h
arduino/OpenROV/AConfig.h
#ifndef __ACONFIG_H_ #define __ACONFIG_H_ /* This must be before alphabetically before all other files that reference these settings for the compiler to work * or you may get vtable errors. */ /* This section is for devices and their configuration. IF you have not setup you pins with the * standard configuration of the OpenROV kits, you should probably clone the cape or controlboard * and change the pin definitions there. Things not wired to specific pins but on the I2C bus will * have the address defined in this file. */ //Kit: #define HAS_STD_CAPE (0) #define HAS_STD_PILOT (1) #define HAS_OROV_CONTROLLERBOARD_25 (0) #define HAS_STD_LIGHTS (1) #define HAS_STD_CALIBRATIONLASERS (0) #define HAS_STD_2X1_THRUSTERS (1) #define HAS_STD_CAMERAMOUNT (1) //After Market: #define HAS_POLOLU_MINIMUV (0) #define HAS_MS5803_14BA (0) #define MS5803_14BA_I2C_ADDRESS 0x76 #define HAS_MPU9150 (0) #define MPU9150_EEPROM_START 2 #endif
#ifndef __ACONFIG_H_ #define __ACONFIG_H_ /* This must be before alphabetically before all other files that reference these settings for the compiler to work * or you may get vtable errors. */ /* This section is for devices and their configuration. IF you have not setup you pins with the * standard configuration of the OpenROV kits, you should probably clone the cape or controlboard * and change the pin definitions there. Things not wired to specific pins but on the I2C bus will * have the address defined in this file. */ //Kit: #define HAS_STD_PILOT (1) /* The definitions are done in th #define HAS_STD_CAPE (0) #define HAS_OROV_CONTROLLERBOARD_25 (0) */ #include "BoardConfig.h" #define HAS_STD_LIGHTS (1) #define HAS_STD_CALIBRATIONLASERS (1) #define HAS_STD_2X1_THRUSTERS (1) #define HAS_STD_CAMERAMOUNT (1) //After Market: #define HAS_POLOLU_MINIMUV (0) #define HAS_MS5803_14BA (0) #define MS5803_14BA_I2C_ADDRESS 0x76 #define HAS_MPU9150 (0) #define MPU9150_EEPROM_START 2 #endif
Add automation for arduino board selection for compilation
Add automation for arduino board selection for compilation
C
mit
codewithpassion/openrov-software,codewithpassion/openrov-software,codewithpassion/openrov-software,codewithpassion/openrov-software
1014b5f7f77c211a6d145240207c578de9ffda70
tests/regression/13-privatized/56-aget_extern_init_minimal.c
tests/regression/13-privatized/56-aget_extern_init_minimal.c
// SKIP #include <pthread.h> #include <stdlib.h> extern int optind ; pthread_t hthread ; void *signal_waiter(void *arg ) { } int main(int argc , char **argv ) { pthread_create(& hthread, NULL, & signal_waiter, NULL); if (optind >= argc) { if (optind == argc) { // mine-lazy priv should also read Unknown int, not Unknown here exit(1); } } return (0); }
Add manual test where mine-W is more precise than mine-lazy due to extern global init top
Add manual test where mine-W is more precise than mine-lazy due to extern global init top
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
bf562de155364372c4dd93c5471e4a709c52f7e7
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 89 #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 90 #endif
Update Skia milestone to 90
Update Skia milestone to 90 Change-Id: Ib4ef9057cb623b2d8ea57c40fb6f67ac731471f0 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/353778 Reviewed-by: Heather Miller <[email protected]> Commit-Queue: Heather Miller <[email protected]>
C
bsd-3-clause
aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_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,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia
94b6cc19ea03b5fdcdb25e0e3663b663509757e4
jobs/AsyncLog.c
jobs/AsyncLog.c
// // AsyncLog.c // Ctest // // Created by Yanjiu Huang on 3/24/14. // Copyright (c) 2014 Yanjiu Huang. All rights reserved. // #include <stdio.h> #include "AsyncLog.h" void async_log_error(const char* format,...){ } void async_log_debug(const char* format,...){ } void async_log_info(const char* format,...){ }
// // AsyncLog.c // Ctest // // Created by Yanjiu Huang on 3/24/14. // Copyright (c) 2014 Yanjiu Huang. All rights reserved. // #include <stdio.h> #include <stdarg.h> #include "AsyncLog.h" void async_log_error(const char* format, ...){ va_list arg; va_start(arg, format); vfprintf(stderr, format, arg); va_end(arg); } void async_log_debug(const char* format, ...){ va_list arg; va_start(arg, format); vfprintf(stdout, format, arg); va_end(arg); } void async_log_info(const char* format, ...){ va_list arg; va_start(arg, format); vfprintf(stdout, format, arg); va_end(arg); }
Add the Async Log implementation
Add the Async Log implementation
C
mit
yanjiuhuang/AsyncTalk,yanjiuhuang/AsyncTalk
074f128cb1a27348516a8820f4bd079bac4d6ac3
blogposting_p.h
blogposting_p.h
/* This file is part of the kblog library. Copyright (c) 2007 Christian Weilbach <[email protected]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef BLOGPOSTING_P_H #define BLOGPOSTING_P_H #include "blogposting.h" #include <KDateTime> #include <QStringList> namespace KBlog{ class BlogPostingPrivate { public: friend class Blog; bool mPublished; BlogPosting *q_ptr; QString mPostingId; QString mTitle; QString mContent; QStringList mCategories; QString mError; BlogPosting::Status mStatus; KDateTime mCreationDateTime; KDateTime mModificationDateTime; Q_DECLARE_PUBLIC(BlogPosting); }; } // namespace #endif
/* This file is part of the kblog library. Copyright (c) 2007 Christian Weilbach <[email protected]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef BLOGPOSTING_P_H #define BLOGPOSTING_P_H #include "blogposting.h" #include <KDateTime> #include <QStringList> namespace KBlog{ class BlogPostingPrivate { public: friend class Blog; bool mPublished; BlogPosting *q_ptr; QString mPostingId; QString mTitle; QString mContent; QStringList mCategories; QString mError; BlogPosting::Status mStatus; KDateTime mCreationDateTime; KDateTime mModificationDateTime; Q_DECLARE_PUBLIC(BlogPosting) }; } // namespace #endif
Fix extra semicolor causing build failure
Fix extra semicolor causing build failure svn path=/trunk/KDE/kdepimlibs/; revision=694789
C
lgpl-2.1
KDE/kblog,KDE/kblog
4d11a3161be0592729610d34e47bd2ece8d92ace
examples/6lbr/dev/enc28j60/enc28j60-arch.h
examples/6lbr/dev/enc28j60/enc28j60-arch.h
/* * Copyright (c) 2013, CETIC. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. 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. * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * 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 ENC28J60_ARCH_H #define ENC28J60_ARCH_H #include <inttypes.h> /* ENC28J60 architecture-specific SPI functions that are called by the enc28j60 driver and must be implemented by the platform code */ void enc28j60_arch_spi_init(void); void enc28j60_arch_spi_write(uint8_t data); uint8_t enc28j60_arch_spi_read(void); void enc28j60_arch_spi_select(void); void enc28j60_arch_spi_deselect(void); #endif
Add missing EC28J60 arch definition file
Add missing EC28J60 arch definition file
C
bsd-3-clause
bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr
0e83ee4322f2f7c169bbf47f86770dc7cad04ac7
examples/ghc/gen-files/ghc_boot_platform.h
examples/ghc/gen-files/ghc_boot_platform.h
#ifndef __PLATFORM_H__ #define __PLATFORM_H__ #define BuildPlatform_NAME "x86_64-unknown-linux" #define HostPlatform_NAME "x86_64-unknown-linux" #define TargetPlatform_NAME "x86_64-unknown-linux" #define x86_64_unknown_linux_BUILD 1 #define x86_64_unknown_linux_HOST 1 #define x86_64_unknown_linux_TARGET 1 #define x86_64_BUILD_ARCH 1 #define x86_64_HOST_ARCH 1 #define x86_64_TARGET_ARCH 1 #define BUILD_ARCH "x86_64" #define HOST_ARCH "x86_64" #define TARGET_ARCH "x86_64" #define LLVM_TARGET "x86_64-unknown-linux" #define linux_BUILD_OS 1 #define linux_HOST_OS 1 #define linux_TARGET_OS 1 #define BUILD_OS "linux" #define HOST_OS "linux" #define TARGET_OS "linux" #define unknown_BUILD_VENDOR 1 #define unknown_HOST_VENDOR 1 #define unknown_TARGET_VENDOR 1 #define BUILD_VENDOR "unknown" #define HOST_VENDOR "unknown" #define TARGET_VENDOR "unknown" #endif /* __PLATFORM_H__ */
Add more files into gen-files
Add more files into gen-files
C
mit
antalsz/hs-to-coq,antalsz/hs-to-coq
10ace4b69498745ef706ccc513c73be14d035f8f
test2/structs/C11/anon2.c
test2/structs/C11/anon2.c
// RUN: %ocheck 3 %s struct nest { union { struct { union { int i; }; }; }; }; int main() { struct nest n = { .i = 2 }; n.i++; return n.i; }
Add anonymous nested struct test
Add anonymous nested struct test
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
3fa6e944890353f7937fab4c04d4e4fd1ac77fdc
ui/base/ime/character_composer.h
ui/base/ime/character_composer.h
// Copyright (c) 2011 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 UI_BASE_IME_CHARACTER_COMPOSER_H_ #define UI_BASE_IME_CHARACTER_COMPOSER_H_ #pragma once #include <vector> #include "base/basictypes.h" #include "base/string_util.h" namespace ui { // A class to recognize compose and dead key sequence. // Outputs composed character. // // TODO(hashimoto): support unicode character composition starting with // Ctrl-Shift-U. http://crosbug.com/15925 class CharacterComposer { public: CharacterComposer(); ~CharacterComposer(); void Reset(); // Filters keypress. // Returns true if the keypress is recognized as a part of composition // sequence. bool FilterKeyPress(unsigned int keycode); // Returns a string consisting of composed character. // Empty string is returned when there is no composition result. const string16& composed_character() const { return composed_character_; } private: // Remembers keypresses previously filtered. std::vector<unsigned int> compose_buffer_; // A string representing the composed character. string16 composed_character_; DISALLOW_COPY_AND_ASSIGN(CharacterComposer); }; } // namespace ui #endif // UI_BASE_IME_CHARACTER_COMPOSER_H_
// Copyright (c) 2011 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 UI_BASE_IME_CHARACTER_COMPOSER_H_ #define UI_BASE_IME_CHARACTER_COMPOSER_H_ #pragma once #include <vector> #include "base/basictypes.h" #include "base/string_util.h" #include "ui/base/ui_export.h" namespace ui { // A class to recognize compose and dead key sequence. // Outputs composed character. // // TODO(hashimoto): support unicode character composition starting with // Ctrl-Shift-U. http://crosbug.com/15925 class UI_EXPORT CharacterComposer { public: CharacterComposer(); ~CharacterComposer(); void Reset(); // Filters keypress. // Returns true if the keypress is recognized as a part of composition // sequence. bool FilterKeyPress(unsigned int keycode); // Returns a string consisting of composed character. // Empty string is returned when there is no composition result. const string16& composed_character() const { return composed_character_; } private: // Remembers keypresses previously filtered. std::vector<unsigned int> compose_buffer_; // A string representing the composed character. string16 composed_character_; DISALLOW_COPY_AND_ASSIGN(CharacterComposer); }; } // namespace ui #endif // UI_BASE_IME_CHARACTER_COMPOSER_H_
Fix link error when component=shared_library is set
Fix link error when component=shared_library is set BUG=103789 TEST=Manual Review URL: http://codereview.chromium.org/8515013 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@109554 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
yitian134/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,adobe/chromium
18ea3bfa8059ab859a758a65fd006327f1da31fd
boards/posix/nrf52_bsim/cmdline.h
boards/posix/nrf52_bsim/cmdline.h
/* * Copyright (c) 2019 Oticon A/S * * SPDX-License-Identifier: Apache-2.0 */ /** * This header exists solely to allow drivers meant for the native_posix board * to be used directly in the nrf52_bsim board. * Note that such reuse should be done with great care. * * The command line arguments parsing logic from native_posix was born as a copy * of the one from the BabbleSim's libUtil library * They are therefore mostly equal except for types and functions names. * * This header converts these so the native_posix call to dynamically register * command line arguments is passed to the nrf52_bsim one */ #include "../native_posix/cmdline_common.h" static inline void native_add_command_line_opts(struct args_struct_t *args) { void bs_add_extra_dynargs(struct args_struct_t *args); bs_add_extra_dynargs(args); }
/* * Copyright (c) 2019 Oticon A/S * * SPDX-License-Identifier: Apache-2.0 */ /** * This header exists solely to allow drivers meant for the native_posix board * to be used directly in the nrf52_bsim board. * Note that such reuse should be done with great care. * * The command line arguments parsing logic from native_posix was born as a copy * of the one from the BabbleSim's libUtil library * They are therefore mostly equal except for types and functions names. * * This header converts these so the native_posix call to dynamically register * command line arguments is passed to the nrf52_bsim one */ #ifndef BOARDS_POSIX_NRF52_BSIM_CMDLINE_H #define BOARDS_POSIX_NRF52_BSIM_CMDLINE_H #include "../native_posix/cmdline_common.h" #ifdef __cplusplus extern "C" { #endif static inline void native_add_command_line_opts(struct args_struct_t *args) { void bs_add_extra_dynargs(struct args_struct_t *args); bs_add_extra_dynargs(args); } #ifdef __cplusplus } #endif #endif /* BOARDS_POSIX_NRF52_BSIM_CMDLINE_H */
Add missing header guard and extern C block
nrf52_bsim: Add missing header guard and extern C block Add a missing header guard and an extern "C" block in one of the nrf52_bsim headers Signed-off-by: Alberto Escolar Piedras <[email protected]>
C
apache-2.0
nashif/zephyr,nashif/zephyr,nashif/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,Vudentz/zephyr,Vudentz/zephyr,finikorg/zephyr,galak/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr,galak/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,galak/zephyr
6446caf75a12bccdfc9b1af81586a1340b968db4
Atomic/Atomic.h
Atomic/Atomic.h
// // Atomic.h // Atomic // // Created by Adlai Holler on 12/5/15. // Copyright © 2015 Adlai Holler. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Atomic. FOUNDATION_EXPORT double AtomicVersionNumber; //! Project version string for Atomic. FOUNDATION_EXPORT const unsigned char AtomicVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <Atomic/PublicHeader.h>
// // Atomic.h // Atomic // // Created by Adlai Holler on 12/5/15. // Copyright © 2015 Adlai Holler. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for Atomic. FOUNDATION_EXPORT double AtomicVersionNumber; //! Project version string for Atomic. FOUNDATION_EXPORT const unsigned char AtomicVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <Atomic/PublicHeader.h>
Remove silly import of UIKit
Remove silly import of UIKit
C
mit
Adlai-Holler/Atomic,Adlai-Holler/Atomic
15585314e9802d0c9d341fb9a6b396fd6520e8d4
tests/regression/28-race_reach/36-indirect_racefree.c
tests/regression/28-race_reach/36-indirect_racefree.c
#include <pthread.h> #include "racemacros.h" int g; int *g1; int *g2; pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&mutex); access(*g1); pthread_mutex_lock(&mutex); return NULL; } int main(void) { g1 = g2 = &g; create_threads(t); assert_racefree(*g2); // UNKNOWN join_threads(t); return 0; }
#include <pthread.h> #include "racemacros.h" int g; int *g1; int *g2; pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&mutex); access(*g1); pthread_mutex_lock(&mutex); return NULL; } int main(void) { g1 = g2 = &g; create_threads(t); pthread_mutex_lock(&mutex); assert_racefree(*g2); pthread_mutex_lock(&mutex); join_threads(t); return 0; }
Fix 28/36 to actually be race free
Fix 28/36 to actually be race free It was the same as 28/37.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
a863c597d08a689be2103b67bc254ff749091fb9
fw/new/libs/AdapterBoard/AdapterBoard.c
fw/new/libs/AdapterBoard/AdapterBoard.c
#ifndef ADAPTERBOARD_H #define ADAPTERBOARD_H #include <RGBLed.h> #define LED_R 13 #define LED_G 9 #define LED_B 10 #define BACKLIGHT_PIN 0 class AdapterBoard { public: AdapterBoard(); void init(); void poll(); private: RGBLed led; Backlight backlight; }; #endif
#ifndef ADAPTERBOARD_H #define ADAPTERBOARD_H #include <RGBLed.h> #define LED_R 13 #define LED_G 9 #define LED_B 10 #define BACKLIGHT_PIN 11 #define SW_ON 4 #define SW_UP 12 #define SW_DOWN 6 class AdapterBoard { public: AdapterBoard(); void init(); void poll(); private: RGBLed led; Backlight backlight; }; #endif
Add switch pin definitions, fix pin for backlight
Add switch pin definitions, fix pin for backlight
C
bsd-3-clause
OSCARAdapter/OSCAR,OSCARAdapter/OSCAR
4ae24681241a740719a370ade51d0cfa4608dbb8
apps/c_blinky/main.c
apps/c_blinky/main.c
#include <firestorm.h> #include <gpio.h> #define LED_1 1 void main(void) { gpio_enable_output(LED_0); gpio_enable_output(LED_1); while(1) { gpio_set(LED_0); gpio_clear(LED_1); delay_ms(500); gpio_set(LED_1); gpio_clear(LED_0); delay_ms(500); } }
#include <firestorm.h> #include <gpio.h> #define LED_1 1 /* Delay for for the given microseconds (approximately). * * For a 16 MHz CPU, 1us == 16 instructions (assuming each instruction takes * one cycle). */ static void busy_delay_us(int duration) { // The inner loop instructions are: 14 NOPs + 1 SUBS/ADDS + 1 CMP while (duration-- != 0) { __asm volatile ( "nop\n" "nop\n" "nop\n" "nop\n" "nop\n" "nop\n" "nop\n" "nop\n" "nop\n" "nop\n" "nop\n" "nop\n" "nop\n" "nop\n" ); } } /* Delay for for the given milliseconds (approximately). * * Note that this is not precise as there are 2 extra instructions on the inner * loop. Therefore, there is 1us added every 8 iterations. */ static void busy_delay_ms(int duration) { while (duration-- != 0) { busy_delay_us(1000); } } void main(void) { gpio_enable_output(LED_0); gpio_enable_output(LED_1); while(1) { gpio_set(LED_0); gpio_clear(LED_1); busy_delay_ms(500); gpio_set(LED_1); gpio_clear(LED_0); busy_delay_ms(500); } }
Use a "busy" delay function for blinky
WORKAROUND: Use a "busy" delay function for blinky While the timer support is not fixed, use a delay function the keeps the CPU busy using a certain amount of NOPs.
C
apache-2.0
google/tock-on-titan,google/tock-on-titan,google/tock-on-titan
c4589974f09becf2c271e03153fe5e47709186a5
include/matrix_access_impl.h
include/matrix_access_impl.h
//----------------------------------------------------------------------------- // Element Access //----------------------------------------------------------------------------- template<class T> T& matrix<T>::at( std::size_t row, std::size_t col ){ return data_.at(row*cols_+col); } template<class T> const T& matrix<T>::at( std::size_t row, std::size_t col ) const{ return data_.at(row*cols_+col); } template<class T> typename matrix<T>::matrix_row matrix<T>::operator[]( std::size_t row ){ return 0; } template<class T> const typename matrix<T>::matrix_row matrix<T>::operator[]( std::size_t row ) const{ return 0; }
//----------------------------------------------------------------------------- // Element Access //----------------------------------------------------------------------------- template<class T> T& matrix<T>::at( std::size_t row, std::size_t col ){ // TODO throw if out of bounds return data_.at(row*cols_+col); } template<class T> const T& matrix<T>::at( std::size_t row, std::size_t col ) const{ // TODO throw if out of bounds return data_.at(row*cols_+col); } template<class T> typename matrix<T>::matrix_row matrix<T>::operator[]( std::size_t row ){ return 0; } template<class T> const typename matrix<T>::matrix_row matrix<T>::operator[]( std::size_t row ) const{ return 0; }
Add todo comment on at() functions.
Add todo comment on at() functions.
C
mit
actinium/cppMatrix,actinium/cppMatrix
a0accd6f92395240ef6bddf17903880af8201937
server/Bundle.h
server/Bundle.h
typedef struct Bundle Bundle; struct Bundle { MatrixServer* matrix; Db* db; int epfd; int threadNo; //for init only, not used in the threads std::string portNo; //for init only, not used in the threads };
Move struct definition to header as it is reused in different cpp files
Move struct definition to header as it is reused in different cpp files
C
mit
BTriay/QMessenger,BTriay/QMessenger,BTriay/QMessenger
52e1beb3dfe634b6e05cd28e480fce984ba36141
bst.c
bst.c
#include "bst.h" static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v); struct BSTNode { BSTNode* left; BSTNode* right; BSTNode* p; void* k; }; struct BST { BSTNode* root; }; BST* BST_Create(void) { BST* T = (BST* )malloc(sizeof(BST)); T->root = NULL; return T; } BSTNode* BSTNode_Create(void* k) { BSTNode* n = (BSTNode* )malloc(sizeof(BSTNode)); n->left = NULL; n->right = NULL; n->p = NULL; n->k = k; }
#include "bst.h" static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v); struct BSTNode { BSTNode* left; BSTNode* right; BSTNode* p; void* k; }; struct BST { BSTNode* root; }; BST* BST_Create(void) { BST* T = (BST* )malloc(sizeof(BST)); T->root = NULL; return T; } BSTNode* BSTNode_Create(void* k) { BSTNode* n = (BSTNode* )malloc(sizeof(BSTNode)); n->left = NULL; n->right = NULL; n->p = NULL; n->k = k; } void BST_Inorder_Tree_Walk(BSTNode* n, void (f)(void*)) { if (n != NULL) { BST_Inorder_Tree_Walk(n->left, f); f(n->k); BST_Inorder_Tree_Walk(n->right, f); } }
Add BST inorder traversal function implementation
Add BST inorder traversal function implementation
C
mit
MaxLikelihood/CADT
0ce4e4a4d016a671fafd162852530e7c768b9a6c
dir.c
dir.c
#include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <string.h> static char *dircat(char *d1, char *d2) { char *new = malloc(strlen(d1) + strlen(d2) + 2); sprintf(new, "%s/%s", d1, d2); return new; } void dirwalk(char *name, void (*func)(char *, void *), void *ctx) { DIR *dir = opendir(name); struct dirent *d; func(name, ctx); readdir(dir); readdir(dir); /* Ignore "." and ".." */ while ((d = readdir(dir)) != NULL) { if (d->d_type == DT_DIR && d->d_name[0] != '.') { char *nextdir = dircat(name, d->d_name); dirwalk(nextdir, func, ctx); free(nextdir); } } closedir(dir); }
#include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <string.h> static char *dircat(char *d1, char *d2) { char *new = malloc(strlen(d1) + strlen(d2) + 2); sprintf(new, "%s/%s", d1, d2); return new; } void dirwalk(char *name, void (*func)(char *, void *), void *ctx) { DIR *dir = opendir(name); struct dirent *d; func(name, ctx); while ((d = readdir(dir)) != NULL) { if (d->d_type == DT_DIR && d->d_name[0] != '.') { char *nextdir = dircat(name, d->d_name); dirwalk(nextdir, func, ctx); free(nextdir); } } closedir(dir); }
Fix bug with . and ..
Fix bug with . and ..
C
mit
akojo/quickfind
371fd15fa3e58cda2f575d443d5c9cd06551821f
src/xedgewarp.c
src/xedgewarp.c
// vim:ts=4:sw=4:expandtab #include <stdlib.h> #include <stdio.h> #include "randr.h" #include "types.h" #include "globals.h" int main(void) { // TODO }
// vim:ts=4:sw=4:expandtab #include <stdlib.h> #include <stdio.h> #include <err.h> #include <xcb/xcb.h> #include <xcb/xcb_aux.h> #include "randr.h" #include "types.h" #include "globals.h" xcb_connection_t *connection; xcb_window_t root; static void initialize(void) { int display; connection = xcb_connect(NULL, &display); if (xcb_connection_has_error(connection)) { errx(EXIT_FAILURE, "could not connect to the X server, bailing out."); } xcb_screen_t *screen = xcb_aux_get_screen(connection, display); root = screen->root; } int main(void) { initialize(); xcb_disconnect(connection); exit(EXIT_SUCCESS); }
Initialize X11 connection and root screen.
Initialize X11 connection and root screen.
C
mit
Airblader/xedgewarp,Airblader/xedgewarp
1d40a955d93f517c1468a62896fd2ec24e3660ce
include/swift/Basic/Dwarf.h
include/swift/Basic/Dwarf.h
//===--- Dwarf.h - DWARF constants ------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// // // This file defines several temporary Swift-specific DWARF constants. // //===----------------------------------------------------------------------===// #ifndef SWIFT_BASIC_DWARF_H #define SWIFT_BASIC_DWARF_H #include "llvm/Support/Dwarf.h" namespace swift { /// The DWARF version emitted by the Swift compiler. const unsigned DWARFVersion = 4; static const char MachOASTSegmentName[] = "__SWIFT"; static const char MachOASTSectionName[] = "__ast"; static const char ELFASTSectionName[] = ".swift_ast"; static const char COFFASTSectionName[] = "swiftast"; } // end namespace swift #endif // SWIFT_BASIC_DWARF_H
//===--- Dwarf.h - DWARF constants ------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// // // This file defines several temporary Swift-specific DWARF constants. // //===----------------------------------------------------------------------===// #ifndef SWIFT_BASIC_DWARF_H #define SWIFT_BASIC_DWARF_H #include "llvm/BinaryFormat/Dwarf.h" namespace swift { /// The DWARF version emitted by the Swift compiler. const unsigned DWARFVersion = 4; static const char MachOASTSegmentName[] = "__SWIFT"; static const char MachOASTSectionName[] = "__ast"; static const char ELFASTSectionName[] = ".swift_ast"; static const char COFFASTSectionName[] = "swiftast"; } // end namespace swift #endif // SWIFT_BASIC_DWARF_H
Adjust for new LLVM BinaryFormat library in r304864.
Adjust for new LLVM BinaryFormat library in r304864.
C
apache-2.0
lorentey/swift,xedin/swift,frootloops/swift,stephentyrone/swift,ahoppen/swift,xedin/swift,stephentyrone/swift,sschiau/swift,huonw/swift,benlangmuir/swift,karwa/swift,alblue/swift,ahoppen/swift,airspeedswift/swift,OscarSwanros/swift,return/swift,practicalswift/swift,jmgc/swift,frootloops/swift,airspeedswift/swift,parkera/swift,uasys/swift,brentdax/swift,gregomni/swift,return/swift,xedin/swift,swiftix/swift,sschiau/swift,huonw/swift,apple/swift,hooman/swift,benlangmuir/swift,devincoughlin/swift,amraboelela/swift,shajrawi/swift,JGiola/swift,danielmartin/swift,return/swift,CodaFi/swift,OscarSwanros/swift,lorentey/swift,sschiau/swift,roambotics/swift,apple/swift,uasys/swift,danielmartin/swift,jckarter/swift,swiftix/swift,milseman/swift,amraboelela/swift,danielmartin/swift,CodaFi/swift,allevato/swift,tjw/swift,shahmishal/swift,karwa/swift,benlangmuir/swift,milseman/swift,deyton/swift,benlangmuir/swift,tkremenek/swift,devincoughlin/swift,xwu/swift,amraboelela/swift,airspeedswift/swift,hooman/swift,austinzheng/swift,practicalswift/swift,gribozavr/swift,benlangmuir/swift,gribozavr/swift,CodaFi/swift,hooman/swift,aschwaighofer/swift,gregomni/swift,frootloops/swift,alblue/swift,shahmishal/swift,aschwaighofer/swift,jopamer/swift,deyton/swift,nathawes/swift,swiftix/swift,JGiola/swift,amraboelela/swift,frootloops/swift,gregomni/swift,harlanhaskins/swift,alblue/swift,shahmishal/swift,JGiola/swift,OscarSwanros/swift,xwu/swift,shajrawi/swift,lorentey/swift,deyton/swift,CodaFi/swift,rudkx/swift,xedin/swift,harlanhaskins/swift,return/swift,natecook1000/swift,devincoughlin/swift,alblue/swift,jopamer/swift,airspeedswift/swift,xwu/swift,brentdax/swift,OscarSwanros/swift,milseman/swift,atrick/swift,ahoppen/swift,parkera/swift,karwa/swift,nathawes/swift,shajrawi/swift,uasys/swift,hooman/swift,zisko/swift,shahmishal/swift,xwu/swift,return/swift,natecook1000/swift,jopamer/swift,tkremenek/swift,austinzheng/swift,danielmartin/swift,zisko/swift,xedin/swift,aschwaighofer/swift,benlangmuir/swift,harlanhaskins/swift,natecook1000/swift,xwu/swift,stephentyrone/swift,gregomni/swift,glessard/swift,rudkx/swift,zisko/swift,JGiola/swift,huonw/swift,lorentey/swift,sschiau/swift,jckarter/swift,uasys/swift,tjw/swift,zisko/swift,tkremenek/swift,jckarter/swift,rudkx/swift,OscarSwanros/swift,ahoppen/swift,devincoughlin/swift,nathawes/swift,zisko/swift,parkera/swift,milseman/swift,austinzheng/swift,gregomni/swift,devincoughlin/swift,alblue/swift,jckarter/swift,jmgc/swift,jmgc/swift,swiftix/swift,nathawes/swift,rudkx/swift,practicalswift/swift,apple/swift,jmgc/swift,brentdax/swift,brentdax/swift,ahoppen/swift,shajrawi/swift,shahmishal/swift,austinzheng/swift,sschiau/swift,roambotics/swift,glessard/swift,sschiau/swift,uasys/swift,roambotics/swift,atrick/swift,amraboelela/swift,uasys/swift,sschiau/swift,alblue/swift,deyton/swift,brentdax/swift,airspeedswift/swift,return/swift,gribozavr/swift,alblue/swift,jmgc/swift,brentdax/swift,jopamer/swift,shajrawi/swift,tjw/swift,jckarter/swift,huonw/swift,parkera/swift,hooman/swift,shajrawi/swift,aschwaighofer/swift,zisko/swift,CodaFi/swift,shahmishal/swift,stephentyrone/swift,tjw/swift,hooman/swift,aschwaighofer/swift,jckarter/swift,tkremenek/swift,natecook1000/swift,danielmartin/swift,jmgc/swift,harlanhaskins/swift,devincoughlin/swift,tjw/swift,glessard/swift,jopamer/swift,atrick/swift,frootloops/swift,nathawes/swift,lorentey/swift,danielmartin/swift,hooman/swift,allevato/swift,xedin/swift,xedin/swift,deyton/swift,atrick/swift,jckarter/swift,jmgc/swift,airspeedswift/swift,allevato/swift,milseman/swift,harlanhaskins/swift,devincoughlin/swift,lorentey/swift,gribozavr/swift,xedin/swift,glessard/swift,roambotics/swift,stephentyrone/swift,allevato/swift,apple/swift,apple/swift,aschwaighofer/swift,lorentey/swift,swiftix/swift,gribozavr/swift,parkera/swift,natecook1000/swift,harlanhaskins/swift,tjw/swift,harlanhaskins/swift,natecook1000/swift,swiftix/swift,roambotics/swift,frootloops/swift,ahoppen/swift,rudkx/swift,glessard/swift,natecook1000/swift,huonw/swift,sschiau/swift,gregomni/swift,austinzheng/swift,apple/swift,OscarSwanros/swift,devincoughlin/swift,amraboelela/swift,airspeedswift/swift,JGiola/swift,amraboelela/swift,allevato/swift,parkera/swift,stephentyrone/swift,stephentyrone/swift,deyton/swift,allevato/swift,xwu/swift,jopamer/swift,atrick/swift,aschwaighofer/swift,karwa/swift,practicalswift/swift,karwa/swift,frootloops/swift,parkera/swift,karwa/swift,glessard/swift,CodaFi/swift,danielmartin/swift,jopamer/swift,xwu/swift,tkremenek/swift,shahmishal/swift,shajrawi/swift,return/swift,milseman/swift,karwa/swift,milseman/swift,lorentey/swift,nathawes/swift,karwa/swift,parkera/swift,shajrawi/swift,zisko/swift,practicalswift/swift,austinzheng/swift,brentdax/swift,tkremenek/swift,atrick/swift,huonw/swift,tkremenek/swift,OscarSwanros/swift,nathawes/swift,roambotics/swift,practicalswift/swift,austinzheng/swift,JGiola/swift,allevato/swift,rudkx/swift,deyton/swift,practicalswift/swift,uasys/swift,huonw/swift,gribozavr/swift,practicalswift/swift,gribozavr/swift,CodaFi/swift,swiftix/swift,shahmishal/swift,tjw/swift,gribozavr/swift
068f57c5ca513befac3b3b56de36eed2ee78400d
src/common/image_base.h
src/common/image_base.h
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_COMMON_IMAGE_BASE_H #define VSNRAY_COMMOM_IMAGE_BASE_H 1 #include <cstddef> #include <cstdint> #include <string> #include <vector> #include <visionaray/pixel_format.h> namespace visionaray { class image_base { public: friend class image; public: virtual bool load(std::string const& filename); virtual bool save(std::string const& filename); size_t width() const; size_t height() const; pixel_format format() const; uint8_t const* data() const; protected: size_t width_; size_t height_; pixel_format format_ = PF_RGB8; std::vector<uint8_t> data_; }; } // visionaray #endif // VSNRAY_COMMOM_IMAGE_BASE_H
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_COMMON_IMAGE_BASE_H #define VSNRAY_COMMOM_IMAGE_BASE_H 1 #include <cstddef> #include <cstdint> #include <string> #include <visionaray/aligned_vector.h> #include <visionaray/pixel_format.h> namespace visionaray { class image_base { public: friend class image; public: virtual bool load(std::string const& filename); virtual bool save(std::string const& filename); size_t width() const; size_t height() const; pixel_format format() const; uint8_t const* data() const; protected: size_t width_; size_t height_; pixel_format format_ = PF_RGB8; aligned_vector<uint8_t> data_; }; } // visionaray #endif // VSNRAY_COMMOM_IMAGE_BASE_H
Store image data in aligned_vector
Store image data in aligned_vector
C
mit
tu500/visionaray,szellmann/visionaray,ukoeln-vis/ctpperf,ukoeln-vis/ctpperf,tu500/visionaray,szellmann/visionaray
adddb65f4656b0b03b24fa3868e2a8c555af18da
src/osmo-bts-sysmo/utils.h
src/osmo-bts-sysmo/utils.h
#ifndef SYSMOBTS_UTILS_H #define SYSMOBTS_UTILS_H #include <stdint.h> #include "femtobts.h" struct gsm_bts_trx; int band_femto2osmo(GsmL1_FreqBand_t band); int sysmobts_select_femto_band(struct gsm_bts_trx *trx, uint16_t arfcn); int sysmobts_get_nominal_power(struct gsm_bts_trx *trx); int sysmobts_get_target_power(struct gsm_bts_trx *trx); void sysmobts_pa_pwr_init(struct gsm_bts_trx *trx); void sysmobts_pa_maybe_step(struct gsm_bts_trx *trx); #endif
#ifndef SYSMOBTS_UTILS_H #define SYSMOBTS_UTILS_H #include <stdint.h> #include "femtobts.h" struct gsm_bts_trx; int band_femto2osmo(GsmL1_FreqBand_t band); int sysmobts_select_femto_band(struct gsm_bts_trx *trx, uint16_t arfcn); int sysmobts_get_nominal_power(struct gsm_bts_trx *trx); #endif
Remove left-over from non-generic power control
sysmobts: Remove left-over from non-generic power control
C
agpl-3.0
geosphere/osmo-bts,osmocom/osmo-bts,geosphere/osmo-bts,telenoobie/osmo-bts,telenoobie/osmo-bts,osmocom/osmo-bts,telenoobie/osmo-bts,geosphere/osmo-bts,geosphere/osmo-bts,osmocom/osmo-bts,telenoobie/osmo-bts
6b17df768563131677401dca775cf010c846c537
features/cryptocell/FEATURE_CRYPTOCELL310/mbedtls_device.h
features/cryptocell/FEATURE_CRYPTOCELL310/mbedtls_device.h
/* * mbedtls_device.h * * Copyright (C) 2018, Arm Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the 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 __MBEDTLS_DEVICE__ #define __MBEDTLS_DEVICE__ #define MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT #define MBEDTLS_SHA1_ALT #define MBEDTLS_SHA256_ALT #define MBEDTLS_SHA512_ALT #define MBEDTLS_CCM_ALT #define MBEDTLS_ECDSA_VERIFY_ALT #define MBEDTLS_ECDSA_SIGN_ALT #define MBEDTLS_ECDSA_GENKEY_ALT #define MBEDTLS_ECDH_GEN_PUBLIC_ALT #define MBEDTLS_ECDH_COMPUTE_SHARED_ALT #endif //__MBEDTLS_DEVICE__
/* * mbedtls_device.h * * Copyright (C) 2018, Arm Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the 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 __MBEDTLS_DEVICE__ #define __MBEDTLS_DEVICE__ #define MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT #define MBEDTLS_SHA1_ALT #define MBEDTLS_SHA256_ALT //#define MBEDTLS_SHA512_ALT #define MBEDTLS_CCM_ALT #define MBEDTLS_ECDSA_VERIFY_ALT #define MBEDTLS_ECDSA_SIGN_ALT #define MBEDTLS_ECDSA_GENKEY_ALT #define MBEDTLS_ECDH_GEN_PUBLIC_ALT #define MBEDTLS_ECDH_COMPUTE_SHARED_ALT #endif //__MBEDTLS_DEVICE__
Make the alternative sha512 optional
Make the alternative sha512 optional Have the alternative sha512 undefined by default, in order not to break backwards compatability.
C
apache-2.0
kjbracey-arm/mbed,kjbracey-arm/mbed,mbedmicro/mbed,kjbracey-arm/mbed,mbedmicro/mbed,kjbracey-arm/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,mbedmicro/mbed
97ad6120c4d1d754486b845a77edc4e73eabcf39
CS_143/Router.h
CS_143/Router.h
#ifndef __CS_143__Router__ #define __CS_143__Router__ #include <string> #include "Device.h" class Router : public Device { public: // Bellman-Ford //void updateRouting(Packet); // create static routing table void addRouting(Packet); // add a link to the router void addLink(std::string link_id); // get proper routing given host id std::string getRouting(std::string targ_host); // react to a packet event void giveEvent(std::unique_ptr<PacketEvent>); private: // Routing table maps destination host ids to link ids std::map<std::string, std::string> routing_table; // All links connected to this router std::vector<std::string> links; }; #endif /* defined(__CS_143__Router__) */
#ifndef __CS_143__Router__ #define __CS_143__Router__ #include <string> #include "Device.h" class Router : public Device { public: // Bellman-Ford //void updateRouting(Packet); // create static routing table void addRouting(Packet); // add a link to the router void addLink(std::string link_id); // get proper routing given host id std::string getRouting(std::string targ_host); // react to a packet event void giveEvent(std::unique_ptr<PacketEvent>); private: // TODO: this could probably be an unordered_map // Routing table maps destination host ids to link ids std::map<std::string, std::string> routing_table; // All links connected to this router std::vector<std::string> links; }; #endif /* defined(__CS_143__Router__) */
Add comment about unordered map
Add comment about unordered map
C
mit
zatricion/NetSim,zatricion/NetSim,zatricion/NetSim,zatricion/NetSim
cefaf9c58a58eeba6034ac1ad6f64086b7e4190b
include/DgospreyRevision.h
include/DgospreyRevision.h
/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */ #ifndef DGOSPREY_REVISION_H #define DGOSPREY_REVISION_H #define DGOSPREY_REVISION "git commit 8603d37 on 2015-01-21" #endif // DGOSPREY_REVISION_H
/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */ #ifndef DGOSPREY_REVISION_H #define DGOSPREY_REVISION_H #define DGOSPREY_REVISION "git commit 660a43d on 2015-02-09" #endif // DGOSPREY_REVISION_H
Test run successful after libmesh update
Test run successful after libmesh update
C
lgpl-2.1
lindsayad/dgosprey-fork,lindsayad/dgosprey-fork,lindsayad/dgosprey-fork,aladshaw3/dgosprey,aladshaw3/dgosprey,aladshaw3/dgosprey,aladshaw3/dgosprey,lindsayad/dgosprey-fork
8c0a9b8bc56ad4a3cc29f10ae747a7cd0f1eb531
src/guacenc/image-stream.h
src/guacenc/image-stream.h
/* * Copyright (C) 2016 Glyptodon, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, 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 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 NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS 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. */ #ifndef GUACENC_IMAGE_STREAM_H #define GUACENC_IMAGE_STREAM_H #include "config.h" /** * The current state of an allocated Guacamole image stream. */ typedef struct guacenc_image_stream { /** * STUB: Placeholder property. This property exists only so that the * guacenc_image_stream struct can be defined prior to implementation. */ int __PLACEHOLDER; } guacenc_image_stream; #endif
/* * Copyright (C) 2016 Glyptodon, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, 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 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 NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS 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. */ #ifndef GUACENC_IMAGE_STREAM_H #define GUACENC_IMAGE_STREAM_H #include "config.h" /** * The current state of an allocated Guacamole image stream. */ typedef struct guacenc_image_stream { /** * The index of the destination layer or buffer. */ int index; /** * The Guacamole protocol compositing operation (channel mask) to apply * when drawing the image. */ int mask; } guacenc_image_stream; #endif
Replace placeholder with required mask and index properties.
GUAC-236: Replace placeholder with required mask and index properties.
C
apache-2.0
apache/guacamole-server,flangelo/guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,flangelo/guacamole-server,apache/guacamole-server,apache/guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,mike-jumper/incubator-guacamole-server,flangelo/guacamole-server,flangelo/guacamole-server
03aa62a6586db5c9065846140fd974de29fd363d
TrustKit/Reporting/TSKPinFailureReport.h
TrustKit/Reporting/TSKPinFailureReport.h
// // TSKPinFailureReport.h // TrustKit // // Created by Alban Diquet on 5/27/15. // Copyright (c) 2015 Data Theorem. All rights reserved. // #import <Foundation/Foundation.h> @interface TSKPinFailureReport : NSObject @property (readonly) NSString *appBundleId; @property (readonly) NSString *appVersion; @property (readonly) NSString *notedHostname; @property (readonly) NSString *serverHostname; @property (readonly) NSNumber *serverPort; @property (readonly) NSDate *dateTime; @property (readonly) BOOL includeSubdomains; @property (readonly) NSArray *validatedCertificateChain; @property (readonly) NSArray *knownPins; // Init with default bundle ID and current time as the date-time - (instancetype) initWithAppBundleId:(NSString *) appBundleId appVersion:(NSString *)appVersion notedHostname:(NSString *)notedHostname serverHostname:(NSString *)serverHostname port:(NSNumber *)serverPort dateTime:(NSDate *)dateTime includeSubdomains:(BOOL) includeSubdomains validatedCertificateChain:(NSArray *)validatedCertificateChain knownPins:(NSArray *)knownPins; // Return the report in JSON format for POSTing it - (NSData *)json; // Return a request ready to be sent with the report in JSON format in the response's body - (NSMutableURLRequest *)requestToUri:(NSURL *)reportUri; @end
// // TSKPinFailureReport.h // TrustKit // // Created by Alban Diquet on 5/27/15. // Copyright (c) 2015 Data Theorem. All rights reserved. // #import <Foundation/Foundation.h> @interface TSKPinFailureReport : NSObject @property (readonly, nonatomic) NSString *appBundleId; // Not part of the HPKP spec @property (readonly, nonatomic) NSString *appVersion; // Not part of the HPKP spec @property (readonly, nonatomic) NSString *notedHostname; @property (readonly, nonatomic) NSString *serverHostname; @property (readonly, nonatomic) NSNumber *serverPort; @property (readonly, nonatomic) NSDate *dateTime; @property (readonly, nonatomic) BOOL includeSubdomains; @property (readonly, nonatomic) NSArray *validatedCertificateChain; @property (readonly, nonatomic) NSArray *knownPins; // Init with default bundle ID and current time as the date-time - (instancetype) initWithAppBundleId:(NSString *) appBundleId appVersion:(NSString *)appVersion notedHostname:(NSString *)notedHostname serverHostname:(NSString *)serverHostname port:(NSNumber *)serverPort dateTime:(NSDate *)dateTime includeSubdomains:(BOOL) includeSubdomains validatedCertificateChain:(NSArray *)validatedCertificateChain knownPins:(NSArray *)knownPins; // Return the report in JSON format for POSTing it - (NSData *)json; // Return a request ready to be sent with the report in JSON format in the response's body - (NSMutableURLRequest *)requestToUri:(NSURL *)reportUri; @end
Switch to non atomic properties
Switch to non atomic properties
C
mit
datatheorem/TrustKit,FredericJacobs/TrustKit,FredericJacobs/TrustKit,datatheorem/TrustKit,CedarLogic/TrustKit,CedarLogic/TrustKit,FredericJacobs/TrustKit,CedarLogic/TrustKit,datatheorem/TrustKit,datatheorem/TrustKit
1c871b33812d0c7f22b0490593485f6d7d6f80d6
src/wordcounts.h
src/wordcounts.h
#ifndef __WORDCOUNTS_H__ #define __WORDCOUNTS_H__ #include <string> #include <map> #include <Rcpp.h> typedef std::unordered_map<std::string, int> hashmap; class WordCounts { private: hashmap map; public: WordCounts(); ~WordCounts(); void print(); Rcpp::DataFrame as_data_frame(); void add_word(std::string); }; #endif
#ifndef __WORDCOUNTS_H__ #define __WORDCOUNTS_H__ #include <string> #include <unordered_map> #include <Rcpp.h> typedef std::unordered_map<std::string, int> hashmap; class WordCounts { private: hashmap map; public: WordCounts(); ~WordCounts(); void print(); Rcpp::DataFrame as_data_frame(); void add_word(std::string); }; #endif
Replace include <map> with <unordered_map>
Replace include <map> with <unordered_map>
C
unlicense
zbwrnz/zwc
f26f972cf79bc911fd3997d903128b7aac8b1677
cbits/h_iconv.c
cbits/h_iconv.c
#include "h_iconv.h" // Wrapper functions, since iconv_open et al are macros in libiconv. iconv_t h_iconv_open(const char *tocode, const char *fromcode) { return iconv_open(tocode, fromcode); } void h_iconv_close(iconv_t cd) { iconv_close(cd); } size_t h_iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) { return iconv(cd, (void*)inbuf, inbytesleft, outbuf, outbytesleft); }
#include "h_iconv.h" // Wrapper functions, since iconv_open et al are macros in libiconv. iconv_t h_iconv_open(const char *tocode, const char *fromcode) { return iconv_open(tocode, fromcode); } void h_iconv_close(iconv_t cd) { iconv_close(cd); } size_t h_iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) { // Cast inbuf to (void*) so that it works both on Solaris, which expects // a (const char**), and on other platforms (e.g. Linux), which expect // a (char **). return iconv(cd, (void*)inbuf, inbytesleft, outbuf, outbytesleft); }
Add a comment explaining why iconv needs a (void*) for its parameter.
Add a comment explaining why iconv needs a (void*) for its parameter.
C
bsd-3-clause
judah/haskeline,ghc/packages-haskeline,leroux/packages-haskeline,ghc/packages-haskeline,judah/haskeline
58e986af5cca1bce399680feacaf3d394700acc2
host/WProgram.h
host/WProgram.h
#ifndef WProgram_h #define WProgram_h #ifndef HOST_MIDIDUINO #define HOST_MIDIDUINO #endif #define _BV(i) (1 << (i)) #define PSTR(s) (s) #define GUI_NUM_ENCODERS 4 #define GUI_NUM_BUTTONS 4 #define BUTTON_PRESSED(i) false #define BUTTON_RELEASED(i) false #define BUTTON_DOWN(i) false #define BUTTON_UP(i) true #include <stdio.h> void handleIncomingMidi(); #define BOARD_ID 0x89 #define SYSEX_BUF_SIZE 8192 #define setLed() #define clearLed() #define setLed2() #define clearLed2() #define PROGMEM #ifdef __cplusplus extern "C" { #endif #include <inttypes.h> #ifdef __cplusplus } #endif #include "helpers.h" #include "WMath.h" #define MIDIDUINO_HANDLE_SYSEX #include "Midi.h" #include "MidiClock.h" #include "MidiUartHost.h" #include "GUI_private.h" void hexDump(uint8_t *data, uint16_t len); #endif /* WProgram_h */
#ifndef WProgram_h #define WProgram_h #ifndef HOST_MIDIDUINO #define HOST_MIDIDUINO #endif #define _BV(i) (1 << (i)) #define PSTR(s) (s) #define GUI_NUM_ENCODERS 4 #define GUI_NUM_BUTTONS 8 #include <stdio.h> void handleIncomingMidi(); #define BOARD_ID 0x89 #define SYSEX_BUF_SIZE 8192 #define setLed() #define clearLed() #define setLed2() #define clearLed2() #define PROGMEM #ifdef __cplusplus extern "C" { #endif #include <inttypes.h> #ifdef __cplusplus } #endif #include "helpers.h" #include "WMath.h" #define MIDIDUINO_HANDLE_SYSEX #include "Midi.h" #include "MidiClock.h" #include "MidiUartHost.h" #include "GUI_private.h" void hexDump(uint8_t *data, uint16_t len); #endif /* WProgram_h */
Fix number of buttons on the host and remove the placeholder macros
Fix number of buttons on the host and remove the placeholder macros
C
lgpl-2.1
wesen/mididuino,wesen/mididuino,wesen/mididuino,wesen/mididuino,wesen/mididuino,wesen/mididuino
9e868196a26d39cd38f1f2b07876ffcea5037076
sql/sqlite/inc/TSQLiteRow.h
sql/sqlite/inc/TSQLiteRow.h
// @(#)root/sqlite:$Id$ // Author: o.freyermuth <[email protected]>, 01/06/2013 /************************************************************************* * Copyright (C) 1995-2013, 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_TPgSQLRow #define ROOT_TPgSQLRow #ifndef ROOT_TSQLRow #include "TSQLRow.h" #endif #if !defined(__CINT__) #include <sqlite3.h> #else struct sqlite3_stmt; #endif class TSQLiteRow : public TSQLRow { private: sqlite3_stmt *fResult; // current result set Bool_t IsValid(Int_t field); public: TSQLiteRow(void *result, ULong_t rowHandle); ~TSQLiteRow(); void Close(Option_t *opt=""); ULong_t GetFieldLength(Int_t field); const char *GetField(Int_t field); ClassDef(TSQLiteRow,0) // One row of SQLite query result }; #endif
// @(#)root/sqlite: // Author: o.freyermuth <[email protected]>, 01/06/2013 /************************************************************************* * Copyright (C) 1995-2013, 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_TSQLiteRow #define ROOT_TSQLiteRow #ifndef ROOT_TSQLRow #include "TSQLRow.h" #endif #if !defined(__CINT__) #include <sqlite3.h> #else struct sqlite3_stmt; #endif class TSQLiteRow : public TSQLRow { private: sqlite3_stmt *fResult; // current result set Bool_t IsValid(Int_t field); public: TSQLiteRow(void *result, ULong_t rowHandle); ~TSQLiteRow(); void Close(Option_t *opt=""); ULong_t GetFieldLength(Int_t field); const char *GetField(Int_t field); ClassDef(TSQLiteRow,0) // One row of SQLite query result }; #endif
Fix fatal typo in code guard
Fix fatal typo in code guard
C
lgpl-2.1
tc3t/qoot,kirbyherm/root-r-tools,tc3t/qoot,tc3t/qoot,Dr15Jones/root,tc3t/qoot,Dr15Jones/root,tc3t/qoot,Dr15Jones/root,Dr15Jones/root,tc3t/qoot,kirbyherm/root-r-tools,Dr15Jones/root,kirbyherm/root-r-tools,kirbyherm/root-r-tools,tc3t/qoot,tc3t/qoot,kirbyherm/root-r-tools,Dr15Jones/root,Dr15Jones/root,kirbyherm/root-r-tools,kirbyherm/root-r-tools,tc3t/qoot,tc3t/qoot
7bf1f1785e610d9d5148552963edb7b00ff77700
src/uri_judge/begginer/1098_sequence_ij_4.c
src/uri_judge/begginer/1098_sequence_ij_4.c
/** https://www.urionlinejudge.com.br/judge/en/problems/view/1098 TODO: Resolver a formatação da última impressão do loop. Está: I=2.0 J=3.0 I=2.0 J=4.0 I=2.0 J=5.0 Mas deveria estar: I=2 J=3 I=2 J=4 I=2 J=5 */ #include <stdio.h> int main(){ double i, j; i = 0; do{ for (j = 1; j <= 3; j++){ if (i == (int) i){ printf("I=%.0lf J=%.0lf\n", i, i+j); } else{ printf("I=%.1lf J=%.1lf\n", i, i+j); } } i += 0.2; //printf("Finalizando loop... Double: %lf e Float: %d\n", (double) i, (int) i); // debug } while(i <= 2.0); return 0; }
/** https://www.urionlinejudge.com.br/judge/en/problems/view/1098 */ #include <stdio.h> int main(){ int i, j; float iR, jR; for(i = 0; i <= 20; i += 2){ for (j = 10; j <= 30; j += 10){ iR = (float) i/10; jR = (float) (i+j)/10; if (i % 10) printf("I=%.1f J=%.1f\n", iR, jR); else printf("I=%.0f J=%.0f\n", iR, jR); } } return 0; }
Fix bug and solves the sequence
Fix bug and solves the sequence
C
unknown
Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/MISC-Algs
1773c647646869de8a38d0c8820100d80ae5274a
testmud/mud/home/Text/sys/bin/wiz/tool/ls.c
testmud/mud/home/Text/sys/bin/wiz/tool/ls.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <kotaka/paths.h> #include <kotaka/log.h> #include <text/paths.h> inherit LIB_WIZBIN; void main(string args) { mixed **dirinfo; dirinfo = proxy_call("get_dir", args); send_out("There are " + sizeof(dirinfo[0]) + " files there.\n"); }
Add rudimentary directory listing command
Add rudimentary directory listing command
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
b612df775fe720c879ef2d2b28f49f7ae83b9c5d
third-party/bsp/stmf4cube/pdm_filter_stub.c
third-party/bsp/stmf4cube/pdm_filter_stub.c
/** * @file * @brief * * @author Alexander Kalmuk * @date 24.08.2018 */ #include <assert.h> #include <stm32f4_discovery.h> #include <pdm_filter.h> void PDM_Filter_Init(PDMFilter_InitStruct * Filter) { assert(0); } int32_t PDM_Filter_64_MSB(uint8_t* data, uint16_t* dataOut, uint16_t MicGain, PDMFilter_InitStruct * Filter) { assert(0); return -1; } int32_t PDM_Filter_64_LSB(uint8_t* data, uint16_t* dataOut, uint16_t MicGain, PDMFilter_InitStruct * Filter) { assert(0); return -1; }
Add stub for PDM sound filter
stm32f4: Add stub for PDM sound filter
C
bsd-2-clause
embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox
38aacad3cb4842a267d2cd5a22d0e6439c0d37e6
drivers/auth/mbedtls/mbedtls_common.c
drivers/auth/mbedtls/mbedtls_common.c
/* * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <debug.h> /* mbed TLS headers */ #include <mbedtls/memory_buffer_alloc.h> #include <mbedtls/platform.h> /* * mbed TLS heap */ #if (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_ECDSA) #define MBEDTLS_HEAP_SIZE (14*1024) #elif (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_RSA) #define MBEDTLS_HEAP_SIZE (6*1024) #endif static unsigned char heap[MBEDTLS_HEAP_SIZE]; /* * mbed TLS initialization function */ void mbedtls_init(void) { static int ready; if (!ready) { /* Initialize the mbed TLS heap */ mbedtls_memory_buffer_alloc_init(heap, MBEDTLS_HEAP_SIZE); /* Use reduced version of snprintf to save space. */ mbedtls_platform_set_snprintf(tf_snprintf); ready = 1; } }
/* * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <debug.h> /* mbed TLS headers */ #include <mbedtls/memory_buffer_alloc.h> #include <mbedtls/platform.h> /* * mbed TLS heap */ #if (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_ECDSA) #define MBEDTLS_HEAP_SIZE (14*1024) #elif (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_RSA) #define MBEDTLS_HEAP_SIZE (7*1024) #endif static unsigned char heap[MBEDTLS_HEAP_SIZE]; /* * mbed TLS initialization function */ void mbedtls_init(void) { static int ready; if (!ready) { /* Initialize the mbed TLS heap */ mbedtls_memory_buffer_alloc_init(heap, MBEDTLS_HEAP_SIZE); /* Use reduced version of snprintf to save space. */ mbedtls_platform_set_snprintf(tf_snprintf); ready = 1; } }
Increase heapsize for mbedtls library
Increase heapsize for mbedtls library The mbedTLS library requires larger heap memory for verification of RSASSA-PSS signature in certificates during Trusted Board Boot. This patch increases the heap memory for the same. Change-Id: I3c3123d7142b7b7b01463516ec436734895da159 Signed-off-by: Soby Mathew <[email protected]>
C
bsd-3-clause
achingupta/arm-trusted-firmware,lsigithub/arm-trusted-firmware_public,lsigithub/arm-trusted-firmware_public,achingupta/arm-trusted-firmware
c58ad1fadf8452588badec5c236425aeba82c850
runtime/bin/socket_base_fuchsia.h
runtime/bin/socket_base_fuchsia.h
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #ifndef RUNTIME_BIN_SOCKET_BASE_FUCHSIA_H_ #define RUNTIME_BIN_SOCKET_BASE_FUCHSIA_H_ #if !defined(RUNTIME_BIN_SOCKET_BASE_H_) #error Do not include socket_base_fuchsia.h directly. Use socket_base.h. #endif #include <arpa/inet.h> #include <netdb.h> #include <sys/socket.h> #endif // RUNTIME_BIN_SOCKET_BASE_FUCHSIA_H_
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #ifndef RUNTIME_BIN_SOCKET_BASE_FUCHSIA_H_ #define RUNTIME_BIN_SOCKET_BASE_FUCHSIA_H_ #if !defined(RUNTIME_BIN_SOCKET_BASE_H_) #error Do not include socket_base_fuchsia.h directly. Use socket_base.h. #endif #include <arpa/inet.h> #include <netdb.h> #include <sys/socket.h> #include <sys/un.h> #endif // RUNTIME_BIN_SOCKET_BASE_FUCHSIA_H_
Fix Unix domain socket headers for Fuchsia
[dart:io] Fix Unix domain socket headers for Fuchsia Change-Id: I053b41e29184f5edb3d4f19573ead5124528f12c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140624 Reviewed-by: Zichang Guo <[email protected]> Commit-Queue: Jason Simmons <[email protected]>
C
bsd-3-clause
dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk
386d0f2cc405b3f65615f8d50d00ffcbb88c1a9d
src/event.c
src/event.c
#include "event.h" int init_event_system(void) { event_loop = uv_loop_new(); return 1; } void cleanup_event_system(void) { log_message(LOG_DEBUG, "cleaning up event system!\n"); uv_loop_close(event_loop); free(event_loop); } void event_process(void) { log_message(LOG_DEBUG, "processing events!\n"); uv_run(event_loop, UV_RUN_DEFAULT); }
#include "event.h" int init_event_system(void) { event_loop = malloc(sizeof *event_loop); if (!event_loop) { log_message(LOG_ERROR, "Could not allocate memory for event loop"); return 0; } if (uv_loop_init(event_loop) < 0) { log_message(LOG_ERROR, "Could not initialize event loop"); free(event_loop); return 0; } return 1; } void cleanup_event_system(void) { log_message(LOG_DEBUG, "cleaning up event system!\n"); uv_loop_close(event_loop); free(event_loop); } void event_process(void) { log_message(LOG_DEBUG, "processing events!\n"); uv_run(event_loop, UV_RUN_DEFAULT); }
Initialize loop using new API
Initialize loop using new API
C
bsd-2-clause
CloudSites/OpenBalance,CloudSites/OpenBalance,CloudSites/OpenBalance
16f93c03ba8a8c01d03f8c1b8d5f5aedc169d6a0
src/containers/hash_map.h
src/containers/hash_map.h
#ifndef JTL_HASH_MAP_H__ #define JTL_HASH_MAP_H__ #include <memory> namespace jtl { template <typename Key, typename Value> class HashMap { struct MapNode { MapNode(Key k, Value v) : key(k), value(v) {} ~MapNode() { delete key; delete value; } Key key; Value value; }; // struct MapNode class HashMapBase_ { private: // bins is an array of pointers to arrays of key-value nodes MapNode** bins_; }; // class HashMapBase_ public: private: Key* bins_; }; // class HashMap } // namespace jtl #endif
Add initial layout of hash map implementation
Add initial layout of hash map implementation
C
mit
j-haj/algorithms-datastructures
c162a1e20af4a2bb48f86f4faeb0be09dbe75c75
tests/longjmp/setlongjmp.c
tests/longjmp/setlongjmp.c
/* * Copyright 2010 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <setjmp.h> #include <stdio.h> static jmp_buf buf; int main(void) { volatile int result = -1; if (!setjmp(buf) ) { result = 55; printf("setjmp was invoked\n"); longjmp(buf, 1); printf("this print statement is not reached\n"); return -1; } else { printf("longjmp was invoked\n"); return result; } }
/* * Copyright 2010 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <setjmp.h> #include <stdio.h> #include "native_client/src/include/nacl_assert.h" static jmp_buf buf; int trysetjmp(int longjmp_arg) { volatile int result = -1; int setjmp_ret = -1; setjmp_ret = setjmp(buf); if (!setjmp_ret) { /* Check that setjmp() doesn't return 0 multiple times */ ASSERT_EQ(result, -1); result = 55; printf("setjmp was invoked\n"); longjmp(buf, longjmp_arg); printf("this print statement is not reached\n"); return -1; } else { int expected_ret = longjmp_arg != 0 ? longjmp_arg : 1; ASSERT_EQ(setjmp_ret, expected_ret); printf("longjmp was invoked\n"); return result; } } int main(void) { if (trysetjmp(1) != 55 || trysetjmp(0) != 55 || trysetjmp(-1) != 55) return -1; return 55; }
Test that invoking longjmp with an argument of 0 causes setjmp to return 1
Test that invoking longjmp with an argument of 0 causes setjmp to return 1 Newlib's x86_64 implementation of longjmp previously failed for this case. Update the setlongjmp.c test to check the return value of setjmp. Additionally fail if setjmp returns 0 twice to avoid an infinite loop in the recent failure case. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4088 [email protected] Review URL: https://codereview.chromium.org/926533003
C
bsd-3-clause
sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client
1efee7879cd4c6dda74f38f807155a8497fd046d
test/CodeGen/unsupported.c
test/CodeGen/unsupported.c
// RUN: clang -verify -emit-llvm -o - %s int f0(int x) { int vla[x]; return vla[x-1]; // expected-error {{cannot compile this return inside scope with VLA yet}} }
// RUN: clang -verify -emit-llvm -o - %s void *x = L"foo"; // expected-error {{cannot compile this wide string yet}}
Update test case; VLA's are now supported.
Update test case; VLA's are now supported. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@64168 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,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/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
2b4ca17c046947150b49eb22a7b026a29482a2a7
source/gloperate-qt/include/gloperate-qt/qt-includes-begin.h
source/gloperate-qt/include/gloperate-qt/qt-includes-begin.h
/******************************************************************************\ * gloperate * * Copyright (C) 2014 Computer Graphics Systems Group at the * Hasso-Plattner-Institut (HPI), Potsdam, Germany. \******************************************************************************/ // Turn off warnings generated by Qt headers (this project uses 'treat warning as errors') #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" #pragma GCC diagnostic ignored "-Wfloat-conversion" #pragma GCC diagnostic ignored "-Wconversion" #pragma GCC diagnostic ignored "-Wswitch" #endif
/******************************************************************************\ * gloperate * * Copyright (C) 2014 Computer Graphics Systems Group at the * Hasso-Plattner-Institut (HPI), Potsdam, Germany. \******************************************************************************/ // Turn off warnings generated by Qt headers (this project uses 'treat warning as errors') #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" #pragma GCC diagnostic ignored "-Wconversion" #pragma GCC diagnostic ignored "-Wswitch" #endif
Remove unrecognized gcc warning flag
Remove unrecognized gcc warning flag
C
mit
cginternals/gloperate,lanice/gloperate,Beta-Alf/gloperate,cginternals/gloperate,j-o/gloperate,lanice/gloperate,j-o/gloperate,hpicgs/gloperate,j-o/gloperate,Beta-Alf/gloperate,p-otto/gloperate,hpi-r2d2/gloperate,p-otto/gloperate,cginternals/gloperate,hpicgs/gloperate,p-otto/gloperate,hpicgs/gloperate,hpi-r2d2/gloperate,lanice/gloperate,p-otto/gloperate,cginternals/gloperate,lanice/gloperate,p-otto/gloperate,j-o/gloperate,hpicgs/gloperate,hpicgs/gloperate,Beta-Alf/gloperate,Beta-Alf/gloperate,lanice/gloperate,Beta-Alf/gloperate
a1da8b7f99f6b08dff4e99202d346d08f762a9d3
tests/regression/31-ikind-aware-ints/16-enums-compare.c
tests/regression/31-ikind-aware-ints/16-enums-compare.c
//PARAM: --enable ana.int.enums --disable ana.int.def_exc int main(){ int top = rand(); int x,y; if(top){ x = 1; } else{ x = 0; } assert(x<2); return 0; }
Add test case for less-than comparision on enums.
Add test case for less-than comparision on enums.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
a9c930d89e24dcb68345df73f6f8068224b34e66
src/port/gui.c
src/port/gui.c
#include "../sccs.h" /* * Copyright (c) 2001 Andrew Chang All rights reserved. */ int gui_useDisplay(void) { char *p; if ((p = getenv("BK_NO_GUI_PROMPT")) && *p) return (0); if (win32() || macosx()) return ((p = getenv("BK_GUI")) && *p); return (getenv("DISPLAY") && (p = getenv("BK_GUI")) && *p); } char * gui_displayName(void) { #ifdef WIN32 return ("monitor"); #else if (gui_useAqua()) {return ("monitor");} return (getenv("DISPLAY")); #endif } int gui_useAqua(void) { #ifdef __APPLE__ char *disp = getenv("DISPLAY"); if ((disp == 0) || strneq(disp, "/tmp/launch", 11)) return (1); #endif return 0; }
#include "../sccs.h" /* * Copyright (c) 2001 Andrew Chang All rights reserved. */ int gui_useDisplay(void) { char *p; if ((p = getenv("BK_NO_GUI_PROMPT")) && *p) return (0); if (win32() || macosx()) return ((p = getenv("BK_GUI")) && *p); return (getenv("DISPLAY") && (p = getenv("BK_GUI")) && *p); } char * gui_displayName(void) { #ifdef WIN32 return ("monitor"); #else if (gui_useAqua()) {return ("monitor");} return (getenv("DISPLAY")); #endif } int gui_useAqua(void) { #ifdef __APPLE__ char *disp = getenv("DISPLAY"); if ((disp == 0) || strneq(disp, "/tmp/launch", 11) || strstr(disp, "com.apple.launchd")) return (1); #endif return 0; }
Fix launching our GUIs in Mac OS X 10.10.
Fix launching our GUIs in Mac OS X 10.10. bk: 54947f4dZaedAuVpUTDfrtsbDBPyVA
C
apache-2.0
bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper
cc680488220415b0d04a30c5c08e23eb6dc05c96
test/main.c
test/main.c
#include <stdlib.h> #include <stdio.h> #include "../src/prompt.h" int main(void) { for (;;) { char *line = prompt("> "); if (line == NULL) break; printf("You wrote '%s'\n", line); free(line); } prompt_free(); return 0; }
#include <stdlib.h> #include <stdio.h> #ifdef DEBUG # include "../src/prompt.h" #else # include <prompt.h> #endif int main(void) { for (;;) { char *line = prompt("> "); if (line == NULL) break; printf("You wrote '%s'\n", line); free(line); } prompt_free(); return 0; }
Set header location depending on flags
Set header location depending on flags
C
isc
lollek/libprompt
f0ed4e0b35ce1473577c121148696fde18ef78ef
test/jid_test.c
test/jid_test.c
/** * xmp3 - XMPP Proxy * Copyright (c) 2012 Drexel University * * @file jid_test.c * Unit tests for JID functions. */ #include <test-dept.h> #include <stdlib.h> #include <stdio.h> #include "jid.h" void setup(void) { } void teardown(void) { restore_function(&calloc); } static void* always_failing_calloc() { return NULL; } void test_new_bad_malloc(void) { replace_function(&calloc, &always_failing_calloc); struct jid* jid = jid_new(); assert_pointer_equals(NULL, jid); } void test_from_str1(void) { struct jid* jid = jid_new_from_str("local@domain/resource"); assert_string_equals("local", jid_local(jid)); assert_string_equals("domain", jid_domain(jid)); assert_string_equals("resource", jid_resource(jid)); jid_del(jid); } void test_from_str2(void) { struct jid* jid = jid_new_from_str("local@domain"); assert_string_equals("local", jid_local(jid)); assert_string_equals("domain", jid_domain(jid)); assert_pointer_equals(NULL, jid_resource(jid)); jid_del(jid); } void test_from_str3(void) { struct jid* jid = jid_new_from_str("domain"); assert_pointer_equals(NULL, jid_local(jid)); assert_string_equals("domain", jid_domain(jid)); assert_pointer_equals(NULL, jid_resource(jid)); jid_del(jid); }
Add some beginning test functions (for jid.c).
Add some beginning test functions (for jid.c).
C
mit
BellerophonMobile/xmp3,BellerophonMobile/xmp3,BellerophonMobile/xmp3
14c4c26204b144e00e7e317f5ccbb75ed916fdc1
tests/regression/01-cpa/35-enum.c
tests/regression/01-cpa/35-enum.c
// PARAM: --disable ana.int.interval --disable ana.int.def_exc --enable ana.int.enums void main(){ int n = 1; for (; n; n++) { // fixed point not reached here } return; }
Add failing test case for enums
Add failing test case for enums
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
2453526cd6fffa027cfe80d1221eae0be0784ce0
interface/target/hal/DBG_Freescale/DBG_KL26Z/frdm_kl26z_app_config.c
interface/target/hal/DBG_Freescale/DBG_KL26Z/frdm_kl26z_app_config.c
/* CMSIS-DAP Interface Firmware * Copyright (c) 2009-2013 ARM Limited * * 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. */ #include "target_config.h" // frdm-k64f target information const target_cfg_t target_device = { .board_id = "0000", .secret = "xxxxxxxx", .sector_size = 2048, // Assume memory is regions are same size. Flash algo should ignore requests // when variable sized sectors exist // .sector_cnt = ((.flash_end - .flash_start) / .sector_size); .sector_cnt = (kB(512)/2048), .flash_start = 0, .flash_end = kB(512), .ram_start = 0x1FFF0000, .ram_end = 0x20010000, .disc_size = kB(512) };
Add target description for KL26Z
Add target description for KL26Z
C
apache-2.0
sg-/CMSIS-DAP,sg-/DAPLink,rosterloh/CMSIS-DAP,google/DAPLink-port,sg-/DAPLink,google/DAPLink-port,google/DAPLink-port,sg-/CMSIS-DAP,rosterloh/CMSIS-DAP,sg-/CMSIS-DAP,sg-/DAPLink,rosterloh/CMSIS-DAP,google/DAPLink-port
97738e2694165e58e33dadc7ec0411beb048c449
src/loginwindow.h
src/loginwindow.h
#ifndef _LOGINWINDOW_H_ #define _LOGINWINDOW_H_ #include <string> #include <iostream> #include "window.h" using namespace std; class LoginWindow : public Window { string name; string pass; public: LoginWindow():Window("Login") {} const string& getUsername() const { return name; } const string& getPassword() const { return pass; } virtual void handle() { bool passSet = false; bool nameSet = false; do { drawTitle(); cout << "User: " << name << endl; cout << "Password: " << pass << endl; cout << endl << "Write 'u' to edit the username, 'p' to edit the password." << endl; string cmd = readCommand(); if(cmd == "u") { string name = readCommand("User > "); this->name = name; nameSet = (name != ""); }else if(cmd == "p") { string pass = readCommand("Pass > "); this->pass = pass; passSet = (pass != ""); } }while(!passSet || !nameSet); } }; #endif
#ifndef _LOGINWINDOW_H_ #define _LOGINWINDOW_H_ #include <string> #include <iostream> #include "window.h" using namespace std; class LoginWindow : public Window { string name; string pass; public: LoginWindow():Window("Login") {} const string& getUsername() const { return name; } const string& getPassword() const { return pass; } virtual void handle() { bool complete = false; do { drawTitle(); cout << "User: " << name << endl; cout << "Password: " << string(pass.length(),'*') << endl; cout << endl << "Write 'u' to edit the username, 'p' to edit the password." << endl; if(pass != "" && name != "") { cout << "Write 'l' to login." << endl; } string cmd = readCommand(); if(cmd == "u") { string name = readCommand("User > "); this->name = name; }else if(cmd == "p") { string pass = readCommand("Pass > "); this->pass = pass; }else if(pass != "" && name != "" && cmd == "l") { complete = true; } }while(!complete); } }; #endif
Change login logic, add 'l' cmd
Change login logic, add 'l' cmd
C
mit
nyz93/advertapp,nyz93/advertapp
8ab0d21f8a7b364e5649abaa534304e9474c08f8
searchcore/src/vespa/searchcore/proton/bucketdb/remove_batch_entry.h
searchcore/src/vespa/searchcore/proton/bucketdb/remove_batch_entry.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/document/base/globalid.h> #include <vespa/document/bucket/bucketid.h> #include <persistence/spi/types.h> namespace proton::bucketdb { class RemoveBatchEntry { document::GlobalId _gid; document::BucketId _bucket_id; storage::spi::Timestamp _timestamp; uint32_t _doc_size; public: RemoveBatchEntry(const document::GlobalId& gid, const document::BucketId& bucket_id, const storage::spi::Timestamp& timestamp, uint32_t doc_size) noexcept : _gid(gid), _bucket_id(bucket_id), _timestamp(timestamp), _doc_size(doc_size) { } const document::GlobalId& get_gid() const noexcept { return _gid; } const document::BucketId& get_bucket_id() const noexcept { return _bucket_id; } const storage::spi::Timestamp& get_timestamp() const noexcept { return _timestamp; } uint32_t get_doc_size() const noexcept { return _doc_size; } }; }
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/document/base/globalid.h> #include <vespa/document/bucket/bucketid.h> #include <persistence/spi/types.h> namespace proton::bucketdb { /* * Class containing meta data for a single document being removed from * bucket db. */ class RemoveBatchEntry { document::GlobalId _gid; document::BucketId _bucket_id; storage::spi::Timestamp _timestamp; uint32_t _doc_size; public: RemoveBatchEntry(const document::GlobalId& gid, const document::BucketId& bucket_id, const storage::spi::Timestamp& timestamp, uint32_t doc_size) noexcept : _gid(gid), _bucket_id(bucket_id), _timestamp(timestamp), _doc_size(doc_size) { } const document::GlobalId& get_gid() const noexcept { return _gid; } const document::BucketId& get_bucket_id() const noexcept { return _bucket_id; } const storage::spi::Timestamp& get_timestamp() const noexcept { return _timestamp; } uint32_t get_doc_size() const noexcept { return _doc_size; } }; }
Add class comment for proton::bucketdb::RemoveBatchEntry.
Add class comment for proton::bucketdb::RemoveBatchEntry.
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
02e86ccfe9fc04afbd5275d4b2f27881d61e3ced
ServerMonitoringService/ServerMonitoringService/SystemMemory.h
ServerMonitoringService/ServerMonitoringService/SystemMemory.h
#ifndef _SYSTEMEMORY_H_ #define _SYSTEMEMORY_H_ #include "windows.h" class SystemMemory { private: MEMORYSTATUSEX memoryStat; private: int memoryCall(); public: int getLoadPercent(int &val); int getUsage(double &val); int getTotalByte(DWORD &val); int getFreeByte(DWORD &val); }; #endif
#ifndef _SYSTEMEMORY_H_ #define _SYSTEMEMORY_H_ #include "windows.h" typedef unsigned long DWORD; class SystemMemory { private: MEMORYSTATUSEX memoryStat; private: int memoryCall(); public: int getLoadPercent(int &val); int getUsage(double &val); int getTotalByte(DWORD &val); int getFreeByte(DWORD &val); }; #endif
Define 'unsigned long' as 'DWORD' for cross-platform
Define 'unsigned long' as 'DWORD' for cross-platform
C
mit
bg0820/SMS,bg0820/SMS
268f2a58905b8528cdc17556388dd28848fa18d0
sa.h
sa.h
#ifndef FINAL_SEQUENTIALSA_SA_H_ #define FINAL_SEQUENTIALSA_SA_H_ #endif // FINAL_SEQUENTIALSA_SA_H_
#ifndef FINAL_SEQUENTIALSA_SA_H_ #define FINAL_SEQUENTIALSA_SA_H_ #define TEMPERATURE 100 /*Initial temperature*/ #define TEMPERATURE_DECREMENT 0.99 /*The amount by which teh temperature is decrement each iteration*/ #define TEMPERATURE_FINAL 0.01 /*The coolest temperature, time to stop*/ #define NUMBER_ITERATIONS 1000 /*Total number of iterations to execute before reducing temperature*/ #define ITERATIONS_PER_FILE 5 /*Number of times to run each input file*/ #endif // FINAL_SEQUENTIALSA_SA_H_
Move constant declarations to header file
Move constant declarations to header file
C
mit
vramdhanie/sequentialsa,vramdhanie/sequentialsa
6c241d80c44336405e199ff0c96c876d17b939e4
gmtk.h
gmtk.h
#ifndef _GMTK_H_ #define _GMTK_H_ #include "half.h" #include "angle.h" #include "vector.h" #include "matrix.h" #include "quaternion.h" #endif//_GMTK_H_
#ifndef _GMTK_H_ #define _GMTK_H_ #include "half.h" #include "angle.h" #include "percent.h" #include "vector.h" #include "matrix.h" #include "quaternion.h" #endif//_GMTK_H_
Add percentage class to main header
Add percentage class to main header
C
mit
dyeo/gmtk,DanYeomans/gmtk,DanYeomans/gmtk,dyeo/gmtk
dc0e7eda7bc21434d072fb925685a82b4b0b38e2
kilo.c
kilo.c
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> struct termios orig_termios; void disable_raw_mode() { tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); } void enable_raw_mode() { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disable_raw_mode); struct termios raw = orig_termios; raw.c_lflag &= ~(ECHO | ICANON); tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw); } int main() { enable_raw_mode(); char c; while (read(STDIN_FILENO, &c, 1) == 1 && c != 'q') { if (iscntrl(c)) { printf("%d\n", c); } else { printf("%d ('%c')\n", c, c); } } return 0; }
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> struct termios orig_termios; void disable_raw_mode() { tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); } void enable_raw_mode() { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disable_raw_mode); struct termios raw = orig_termios; raw.c_lflag &= ~(ECHO | ICANON | ISIG); tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw); } int main() { enable_raw_mode(); char c; while (read(STDIN_FILENO, &c, 1) == 1 && c != 'q') { if (iscntrl(c)) { printf("%d\n", c); } else { printf("%d ('%c')\n", c, c); } } return 0; }
Disable Ctrl-C and Ctrl-Z (Ctrl-Y on macOS)
Disable Ctrl-C and Ctrl-Z (Ctrl-Y on macOS)
C
bsd-2-clause
oldsharp/kilo,oldsharp/kilo
cd84c7964893696d19844fdd281095ad57c109b2
utils/cbits/DebugCallback.c
utils/cbits/DebugCallback.c
#include <stdio.h> #include <stdlib.h> #include <vulkan/vulkan.h> VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageType, const VkDebugUtilsMessengerCallbackDataEXT *pCallbackData, void *pUserData) { fprintf(stderr, "Validation: %s\n", pCallbackData->pMessage); return VK_FALSE; } VKAPI_ATTR VkBool32 VKAPI_CALL debugCallbackFatal(VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageType, const VkDebugUtilsMessengerCallbackDataEXT *pCallbackData, void *pUserData) { int errorBitSet = VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT & messageSeverity; int isError = VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT == errorBitSet; fprintf(stderr, "Validation: %s\n", pCallbackData->pMessage); if (isError) { fprintf(stderr, "Aborting on validation error.\n"); abort(); } return VK_FALSE; }
#include <stdio.h> #include <stdlib.h> #include <vulkan/vulkan.h> VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageType, const VkDebugUtilsMessengerCallbackDataEXT *pCallbackData, void *pUserData) { fprintf(stderr, "Validation: %s\n", pCallbackData->pMessage); return VK_FALSE; } VKAPI_ATTR VkBool32 VKAPI_CALL debugCallbackFatal(VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageType, const VkDebugUtilsMessengerCallbackDataEXT *pCallbackData, void *pUserData) { debugCallback(messageSeverity, messageType, pCallbackData, pUserData); if (messageSeverity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT) { fprintf(stderr, "Aborting on validation error.\n"); abort(); } return VK_FALSE; }
Write debugCallbackFatal in terms of debugCallback
Write debugCallbackFatal in terms of debugCallback
C
bsd-3-clause
expipiplus1/vulkan,expipiplus1/vulkan,expipiplus1/vulkan
097e181807b77c8bf0427837c508bddbb8cc0330
source/threadingzeug/include/threadingzeug/parallelfor.h
source/threadingzeug/include/threadingzeug/parallelfor.h
#pragma once #include <functional> #include <vector> #include <threadingzeug/threadingzeug.h> namespace threadingzeug { template<typename T> THREADINGZEUG_API void parallel_for(const std::vector<T>& elements, std::function<void(const T& element)> callback); template<typename T> THREADINGZEUG_API void parallel_for(std::vector<T>& elements, std::function<void(T& element)> callback); THREADINGZEUG_API void parallel_for(int start, int end, std::function<void(int i)> callback); template<typename T> THREADINGZEUG_API void sequential_for(const std::vector<T>& elements, std::function<void(const T& element)> callback); template<typename T> THREADINGZEUG_API void sequential_for(std::vector<T>& elements, std::function<void(T& element)> callback); THREADINGZEUG_API void sequential_for(int start, int end, std::function<void(int i)> callback); } // namespace threadingzeug #include <threadingzeug/parallelfor.hpp>
#pragma once #include <functional> #include <vector> #include <threadingzeug/threadingzeug.h> namespace threadingzeug { template<typename T> void parallel_for(const std::vector<T>& elements, std::function<void(const T& element)> callback); template<typename T> void parallel_for(std::vector<T>& elements, std::function<void(T& element)> callback); THREADINGZEUG_API void parallel_for(int start, int end, std::function<void(int i)> callback); template<typename T> void sequential_for(const std::vector<T>& elements, std::function<void(const T& element)> callback); template<typename T> void sequential_for(std::vector<T>& elements, std::function<void(T& element)> callback); THREADINGZEUG_API void sequential_for(int start, int end, std::function<void(int i)> callback); } // namespace threadingzeug #include <threadingzeug/parallelfor.hpp>
Fix compile warning on Windows: C4273: 'threadingzeug::parallel_for' : inconsistent dll linkage
Fix compile warning on Windows: C4273: 'threadingzeug::parallel_for' : inconsistent dll linkage
C
mit
lanice/libzeug,mjendruk/libzeug,cginternals/libzeug,simonkrogmann/libzeug,hpi-r2d2/libzeug,j-o/libzeug,mjendruk/libzeug,p-otto/libzeug,kateyy/libzeug,hpi-r2d2/libzeug,mjendruk/libzeug,cginternals/libzeug,simonkrogmann/libzeug,p-otto/libzeug,lanice/libzeug,cginternals/libzeug,j-o/libzeug,lanice/libzeug,j-o/libzeug,kateyy/libzeug,cginternals/libzeug,p-otto/libzeug,lanice/libzeug,j-o/libzeug,kateyy/libzeug
807d73e3f1ae1cf89d5c000d8070c9e43d80b453
sample/sample.c
sample/sample.c
#define MODULE sample #include <sqmodule.h> #include <stdio.h> DECLARE_SQAPI static SQInteger func(HSQUIRRELVM v) { static char s[] = "Hello, modules!"; SQAPI(pushstring)(v, s, sizeof(s) - 1); return 1; } // Module init function SQRESULT MODULE_INIT(HSQUIRRELVM v, HSQAPI api) { printf("in sqmodule_load\n"); INIT_SQAPI(api); SQAPI(pushstring)(v, _SC("func"), -1); SQAPI(newclosure)(v, func, 0); SQAPI(newslot)(v, -3, SQFalse); printf("out sqmodule_load\n"); return SQ_OK; }
#define MODULE sample #include <sqmodule.h> #include <stdio.h> DECLARE_SQAPI static SQInteger func(HSQUIRRELVM v) { static char s[] = "Hello, modules!"; SQAPI(pushstring)(v, s, sizeof(s) - 1); return 1; } // Module init function SQRESULT MODULE_INIT(HSQUIRRELVM v, HSQAPI api) { printf("in sqmodule_load\n"); INIT_SQAPI(v, api); SQAPI(pushstring)(v, _SC("func"), -1); SQAPI(newclosure)(v, func, 0); SQAPI(newslot)(v, -3, SQFalse); printf("out sqmodule_load\n"); return SQ_OK; }
Update for sqmodule API change.
Update for sqmodule API change.
C
mit
pfalcon/squirrel-modules,pfalcon/squirrel-modules,pfalcon/squirrel-modules
8ef5102c2ad6f1c0cd8098cdf45473d49f62e8de
searchlib/src/vespa/searchlib/memoryindex/posting_list_entry.h
searchlib/src/vespa/searchlib/memoryindex/posting_list_entry.h
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. # pragma once #include <vespa/vespalib/datastore/entryref.h> namespace search::memoryindex { /** * Entry per document in memory index posting list. */ class PostingListEntry { mutable datastore::EntryRef _features; // reference to compressed features public: PostingListEntry(datastore::EntryRef features) : _features(features) { } PostingListEntry() : _features() { } datastore::EntryRef get_features() const { return _features; } // Reference moved data (used when compacting FeatureStore) void update_features(datastore::EntryRef features) const { _features = features; } }; }
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. # pragma once #include <vespa/vespalib/datastore/entryref.h> namespace search::memoryindex { /** * Entry per document in memory index posting list. */ class PostingListEntry { mutable datastore::EntryRef _features; // reference to compressed features public: PostingListEntry(datastore::EntryRef features) : _features(features) { } PostingListEntry() : _features() { } datastore::EntryRef get_features() const { return _features; } /* * Reference moved features (used when compacting FeatureStore). * The moved features must have the same content as the original * features. */ void update_features(datastore::EntryRef features) const { _features = features; } }; }
Fix indentation and update comment.
Fix indentation and update comment.
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
903afa33c486e3f00be40b431fb2919a6e10364b
hal/common/mbed_error.c
hal/common/mbed_error.c
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * 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. */ #include <stdlib.h> #include <stdarg.h> #include "device.h" #include "toolchain.h" #include "mbed_error.h" #include "mbed_interface.h" #if DEVICE_STDIO_MESSAGES #include <stdio.h> #endif WEAK void error(const char* format, ...) { va_list arg; va_start(arg, format); mbed_error_vfprintf(format, arg); va_end(arg); exit(1); }
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * 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. */ #include <stdlib.h> #include <stdarg.h> #include "device.h" #include "toolchain.h" #include "mbed_error.h" #include "mbed_interface.h" #if DEVICE_STDIO_MESSAGES #include <stdio.h> #endif WEAK void error(const char* format, ...) { #ifndef NDEBUG va_list arg; va_start(arg, format); mbed_error_vfprintf(format, arg); va_end(arg); #endif exit(1); }
Allow the trace output by mbed error to be conditional of NDEBUG.
Allow the trace output by mbed error to be conditional of NDEBUG. This change avoid inclusion of printf and friends code in a binary when it is compiled with the macro NDEBUG enabled (this macro is usually enabled for production builds). Unlike assert, the error function will still crash/halt the execution of the application even if NDEBUG is enabled; the traces are just not outputed.
C
apache-2.0
fanghuaqi/mbed,monkiineko/mbed-os,YarivCol/mbed-os,CalSol/mbed,adustm/mbed,mazimkhan/mbed-os,arostm/mbed-os,karsev/mbed-os,NXPmicro/mbed,theotherjimmy/mbed,svogl/mbed-os,mikaleppanen/mbed-os,nRFMesh/mbed-os,netzimme/mbed-os,svogl/mbed-os,andcor02/mbed-os,bcostm/mbed-os,RonEld/mbed,catiedev/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,adamgreen/mbed,mazimkhan/mbed-os,arostm/mbed-os,betzw/mbed-os,mazimkhan/mbed-os,kjbracey-arm/mbed,maximmbed/mbed,cvtsi2sd/mbed-os,ryankurte/mbed-os,c1728p9/mbed-os,mbedmicro/mbed,mmorenobarm/mbed-os,theotherjimmy/mbed,adustm/mbed,mikaleppanen/mbed-os,adamgreen/mbed,bcostm/mbed-os,HeadsUpDisplayInc/mbed,nvlsianpu/mbed,kl-cruz/mbed-os,mazimkhan/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,nvlsianpu/mbed,catiedev/mbed-os,bulislaw/mbed-os,cvtsi2sd/mbed-os,mikaleppanen/mbed-os,maximmbed/mbed,karsev/mbed-os,Archcady/mbed-os,ryankurte/mbed-os,svogl/mbed-os,j-greffe/mbed-os,ryankurte/mbed-os,kl-cruz/mbed-os,nvlsianpu/mbed,bulislaw/mbed-os,kl-cruz/mbed-os,adustm/mbed,CalSol/mbed,screamerbg/mbed,pradeep-gr/mbed-os5-onsemi,ryankurte/mbed-os,RonEld/mbed,Archcady/mbed-os,theotherjimmy/mbed,netzimme/mbed-os,mazimkhan/mbed-os,fanghuaqi/mbed,ryankurte/mbed-os,mmorenobarm/mbed-os,Archcady/mbed-os,fanghuaqi/mbed,bcostm/mbed-os,fahhem/mbed-os,pradeep-gr/mbed-os5-onsemi,mbedmicro/mbed,c1728p9/mbed-os,NXPmicro/mbed,arostm/mbed-os,bulislaw/mbed-os,nRFMesh/mbed-os,ryankurte/mbed-os,maximmbed/mbed,betzw/mbed-os,adamgreen/mbed,kjbracey-arm/mbed,mikaleppanen/mbed-os,adustm/mbed,andcor02/mbed-os,fahhem/mbed-os,karsev/mbed-os,netzimme/mbed-os,svogl/mbed-os,cvtsi2sd/mbed-os,j-greffe/mbed-os,HeadsUpDisplayInc/mbed,screamerbg/mbed,maximmbed/mbed,YarivCol/mbed-os,screamerbg/mbed,cvtsi2sd/mbed-os,andcor02/mbed-os,adamgreen/mbed,maximmbed/mbed,bcostm/mbed-os,Archcady/mbed-os,monkiineko/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,andcor02/mbed-os,YarivCol/mbed-os,nRFMesh/mbed-os,j-greffe/mbed-os,NXPmicro/mbed,CalSol/mbed,maximmbed/mbed,adamgreen/mbed,karsev/mbed-os,catiedev/mbed-os,svogl/mbed-os,andcor02/mbed-os,karsev/mbed-os,RonEld/mbed,Archcady/mbed-os,kl-cruz/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,fahhem/mbed-os,infinnovation/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,nRFMesh/mbed-os,catiedev/mbed-os,pradeep-gr/mbed-os5-onsemi,CalSol/mbed,mbedmicro/mbed,bcostm/mbed-os,andcor02/mbed-os,infinnovation/mbed-os,mazimkhan/mbed-os,kjbracey-arm/mbed,c1728p9/mbed-os,YarivCol/mbed-os,screamerbg/mbed,mikaleppanen/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,adustm/mbed,mmorenobarm/mbed-os,mmorenobarm/mbed-os,bcostm/mbed-os,monkiineko/mbed-os,betzw/mbed-os,screamerbg/mbed,adamgreen/mbed,mbedmicro/mbed,catiedev/mbed-os,nvlsianpu/mbed,netzimme/mbed-os,NXPmicro/mbed,HeadsUpDisplayInc/mbed,YarivCol/mbed-os,YarivCol/mbed-os,monkiineko/mbed-os,c1728p9/mbed-os,mmorenobarm/mbed-os,mbedmicro/mbed,theotherjimmy/mbed,arostm/mbed-os,kl-cruz/mbed-os,screamerbg/mbed,fahhem/mbed-os,fahhem/mbed-os,svogl/mbed-os,theotherjimmy/mbed,HeadsUpDisplayInc/mbed,RonEld/mbed,j-greffe/mbed-os,c1728p9/mbed-os,pradeep-gr/mbed-os5-onsemi,pradeep-gr/mbed-os5-onsemi,betzw/mbed-os,nRFMesh/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,catiedev/mbed-os,nvlsianpu/mbed,Archcady/mbed-os,HeadsUpDisplayInc/mbed,kl-cruz/mbed-os,arostm/mbed-os,netzimme/mbed-os,infinnovation/mbed-os,monkiineko/mbed-os,theotherjimmy/mbed,pradeep-gr/mbed-os5-onsemi,bulislaw/mbed-os,NXPmicro/mbed,CalSol/mbed,adustm/mbed,fahhem/mbed-os,infinnovation/mbed-os,bulislaw/mbed-os,mmorenobarm/mbed-os,infinnovation/mbed-os,NXPmicro/mbed,monkiineko/mbed-os,infinnovation/mbed-os,karsev/mbed-os,nvlsianpu/mbed,cvtsi2sd/mbed-os,betzw/mbed-os,RonEld/mbed,nRFMesh/mbed-os,cvtsi2sd/mbed-os,c1728p9/mbed-os,arostm/mbed-os,j-greffe/mbed-os,HeadsUpDisplayInc/mbed,bulislaw/mbed-os,fanghuaqi/mbed,fanghuaqi/mbed,RonEld/mbed,mikaleppanen/mbed-os,netzimme/mbed-os,j-greffe/mbed-os,CalSol/mbed
5f2d956f85e538af7c4b031f6b3f7e35d7a3638f
Support/ResponseDetective.h
Support/ResponseDetective.h
// // ResponseDetective.h // // Copyright (c) 2016 Netguru Sp. z o.o. All rights reserved. // Licensed under the MIT License. // /// Project version number for ResponseDetective. extern double ResponseDetectiveVersionNumber; /// Project version string for ResponseDetective. extern const unsigned char ResponseDetectiveVersionString[]; #import <ResponseDetective/RDTBodyDeserializer.h> #import <ResponseDetective/RDTXMLBodyDeserializer.h> #import <ResponseDetective/RDTHTMLBodyDeserializer.h>
// // ResponseDetective.h // // Copyright (c) 2016 Netguru Sp. z o.o. All rights reserved. // Licensed under the MIT License. // /// Project version number for ResponseDetective. extern double ResponseDetectiveVersionNumber; /// Project version string for ResponseDetective. extern const unsigned char ResponseDetectiveVersionString[]; @import Foundation; #import <ResponseDetective/RDTBodyDeserializer.h> #import <ResponseDetective/RDTXMLBodyDeserializer.h> #import <ResponseDetective/RDTHTMLBodyDeserializer.h>
Add global foundation import to umbrella header
Add global foundation import to umbrella header
C
mit
netguru/ResponseDetective,netguru/ResponseDetective
cac90afd0859ca39008f774c88fcb5239de946fe
socket/Socket.h
socket/Socket.h
#ifndef _SOCKET_H_ #define _SOCKET_H_ namespace bittorrent { namespace socket { struct Buffer { Buffer(char *b, std::size_t bl) : buf(b), buflen(bl), used(0) { } char *buf; std::size_t buflen; std::size_t used; }; class BufferAllocator { public: static Buffer AllocBuf(std::size_t size); static void DeallocBuf(Buffer& buf); }; class Socket { public: Socket(); void Send(Buffer& buf); void Recv(Buffer& buf); }; class Acceptor { public: Acceptor(); }; } // namespace socket } // namespace bittorrent #endif // _SOCKET_H_
#ifndef _SOCKET_H_ #define _SOCKET_H_ #include <WinSock2.h> #include <cstddef> namespace bittorrent { namespace socket { struct Buffer { Buffer(char *b, std::size_t bl) : buf(b), buflen(bl), used(0) { } char *buf; std::size_t buflen; std::size_t used; }; class BufferAllocator { public: static Buffer AllocBuf(std::size_t size); static void DeallocBuf(Buffer& buf); }; class Address { public: static const long any = INADDR_ANY; Address(); Address(long hladdress); Address(const char *address); operator long () const { return address_; } private: long address_; }; class Port { public: Port(short hsport); operator short () const { return port_; } private: short port_; }; class IoService; class Socket { public: Socket(); void Connect(const Address& address, const Port& port); void Send(Buffer& buf); void Recv(Buffer& buf); void Close(); SOCKET GetRawSock() const; private: SOCKET sock_; IoService *service_; }; class Acceptor { public: Acceptor(const Address& address, const Port& port); void Accept(Socket& sock); void Close(); SOCKET GetRawSock() const; private: SOCKET sock_; IoService *service_; }; class IoService { public: typedef HANDLE ServiceHandle; IoService(); void Send(Socket *socket, Buffer& buf); void Recv(Socket *socket, Buffer& buf); void Connect(Socket *socket, const sockaddr *name); void Accept(Acceptor *acceptor, Socket& socket); private: ServiceHandle handle_; }; } // namespace socket } // namespace bittorrent #endif // _SOCKET_H_
Add Address, Port and IoService classes in namespace socket, and complete classes' declaration.
Add Address, Port and IoService classes in namespace socket, and complete classes' declaration.
C
bsd-2-clause
airtrack/bitwave,airtrack/bitwave
38a4089a9ef17f3185cb6ec4506f0734b53eabea
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-k4"
/* * 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-k5"
Update driver version to 5.03.00-k5
[SCSI] qla4xxx: Update driver version to 5.03.00-k5 Signed-off-by: Vikas Chaudhary <[email protected]> Signed-off-by: James Bottomley <[email protected]>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,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
72da7bcd68b38501b1e5b4c7bffab7a1093c5a40
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-k3"
/* * 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-k4"
Update driver version to 5.03.00-k4
[SCSI] qla4xxx: Update driver version to 5.03.00-k4 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,TeamVee-Kanas/android_kernel_samsung_kanas,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
3eb59f9875a3874df94e26371dd7ab29a26efc52
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-k8"
/* * 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-k9"
Update driver version to 5.03.00-k9
[SCSI] qla4xxx: Update driver version to 5.03.00-k9 Signed-off-by: Vikas Chaudhary <[email protected]> Signed-off-by: James Bottomley <[email protected]>
C
mit
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,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
4c9654096e1e6d9cb1bf4574432a992ecdc24117
src/registers.h
src/registers.h
/* * registers.h */ #ifndef REGISTERS_H #define REGISTERS_H #define REGSIZE 8 /* number of registers */ /* Program Registers */ #define EAX 0x0 #define ECX 0x1 #define EDX 0x2 #define EBX 0x3 #define ESP 0x4 #define EBP 0x5 #define ESI 0x6 #define EDI 0x7 #define RNONE 0xf /* i.e. - no register needed */ /* Condition Codes (CC) */ #define ZF 0x2 /* zero flag - bit 2 of the CC */ #define SF 0x1 /* sign flag - bit 1 of the CC */ #define OF 0x0 /* overflow flag - bit 0 of the CC */ void clearCC(void); void clearRegisters(void); unsigned int getCC(unsigned int bitNumber); unsigned int getRegister(int regNum); void setCC(unsigned int bitNumber, unsigned int value); void setRegister(int regNum, unsigned int regValue); #endif /* REGISTERS_H */
/* * registers.h */ #ifndef REGISTERS_H #define REGISTERS_H #define REGSIZE 8 /* number of registers */ /* Program Registers */ #define EAX 0x0 #define ECX 0x1 #define EDX 0x2 #define EBX 0x3 #define ESP 0x4 #define EBP 0x5 #define ESI 0x6 #define EDI 0x7 #define RNONE 0xf /* i.e. - no register needed */ /* Condition Codes (CC) */ /* * Set with each arithmetic/logical operation (OPL). * ZF: was the result 0? * SF: was the result < 0? * OF: did the result overflow? (2's complement) */ #define ZF 0x2 /* zero flag - bit 2 of the CC */ #define SF 0x1 /* sign flag - bit 1 of the CC */ #define OF 0x0 /* overflow flag - bit 0 of the CC */ void clearCC(void); void clearRegisters(void); unsigned int getCC(unsigned int bitNumber); unsigned int getRegister(int regNum); void setCC(unsigned int bitNumber, unsigned int value); void setRegister(int regNum, unsigned int regValue); #endif /* REGISTERS_H */
Add descriptions of the CC's
Add descriptions of the CC's
C
isc
sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS
fcead07c6f0a7f919a2856257a37f9efd453c524
include/simbatch/batch.h
include/simbatch/batch.h
/****************************************************************************/ /* This file is part of the Simbatch project */ /* written by Jean-Sebastien Gay, ENS Lyon */ /* */ /* Copyright (c) 2007 Jean-Sebastien Gay. All rights reserved. */ /* */ /* This program is free software; you can redistribute it and/or modify it */ /* under the terms of the license (GNU LGPL) which comes with this package. */ /****************************************************************************/ #ifndef _BATCH_H_ #define _BATCH_H_ /* * Simulates the behavior of a Batch system * MSG_tasks to use when calling the function: * SB_TASK * SB_RES to make reservations * SB_ACK when a task has been done * SB_DIET when working with DIET * SED_PRED to perform a prediction of when the task will * be able to execute * SED_HPF * PF_INIT to initialize the batch */ int SB_batch(int argc, char ** argv); #endif
/****************************************************************************/ /* This file is part of the Simbatch project. */ /* written by Jean-Sebastien Gay and Ghislain Charrier, ENS Lyon. */ /* */ /* Copyright (c) 2007, Simbatch Team. All rights reserved. */ /* */ /* This program is free software; you can redistribute it and/or modify it */ /* under the terms of the license (GNU LGPL) which comes with this package. */ /****************************************************************************/ #ifndef _BATCH_H_ #define _BATCH_H_ /** * \file batch.h * Define the batch process. */ /** * Simulates the behavior of a Batch system. * * The behaviour of the batch process consists in responding to incoming * messages and to schedule jobs sent by clients. Messages are MSG_task * datatype provided by the simgrid library. * * Here is a short description of the different tasks received: * SB_TASK conatins the job to schedule. * SB_RES to make reservations. * SB_ACK when a task has been done on a cpu. 5 cpus for a task => 5 SB_ACK. * SB_DIET to allow Diet for using Simbatch. * SED_PRED to perform a prediction of when the task will be able to execute. * SED_HPF (work in progess) * PF_INIT to initialize the batch * * \param argc number of parameters transmitted to the SB_batch process. * \param **argv array containing the parameters. argc and argc are * automacilly filled by simgrid when parsing the deployment.xml file. * \return an error code. */ int SB_batch(int argc, char **argv); #endif
Add documentation in doxygen style (use JAVA_BRIEF)
Add documentation in doxygen style (use JAVA_BRIEF) git-svn-id: 20e1f66da029c194d4fbd4305fcdc34286e936b0@6168 48e7efb5-ca39-0410-a469-dd3cf9ba447f
C
lgpl-2.1
frs69wq/Simbatch,frs69wq/Simbatch,frs69wq/Simbatch,frs69wq/Simbatch
1760bba625b57fbe10b6c0ec8585e0c54c90b907
includes/values.h
includes/values.h
#ifndef __VALUES_H__ # define __VALUES_H__ #include "mpc.h" typedef struct { int type; long num; /* Error and Symbol types have some string data */ char* err; char* sym; /* Count and Pointer to a list of "lval*" */ int count; struct lval** cell; } lval; /* Create Enumeration of Possible lval Types */ enum { LVAL_ERR, LVAL_NUM, LVAL_SYM, LVAL_SEXPR }; /* Create Enumeration of Possible Error Types */ enum { LERR_DIV_ZERO, LERR_BAD_OP, LERR_BAD_NUM }; lval* lval_num(long); lval* lval_err(char*); lval* lval_sym(char*); lval* lval_sexpr(void); lval* lval_add(lval*, struct lval*); void lval_del(lval*); lval* lval_read_num(mpc_ast_t*); lval* lval_read(mpc_ast_t*); void lval_expr_print(lval*, char, char); void lval_print(lval*); void lval_println(lval*); #endif
#ifndef __VALUES_H__ # define __VALUES_H__ #include "mpc.h" typedef struct s_lval { int type; long num; /* Error and Symbol types have some string data */ char* err; char* sym; /* Count and Pointer to a list of "lval*" */ int count; struct s_lval** cell; } lval; /* Create Enumeration of Possible lval Types */ enum { LVAL_ERR, LVAL_NUM, LVAL_SYM, LVAL_SEXPR }; /* Create Enumeration of Possible Error Types */ enum { LERR_DIV_ZERO, LERR_BAD_OP, LERR_BAD_NUM }; lval* lval_num(long); lval* lval_err(char*); lval* lval_sym(char*); lval* lval_sexpr(void); lval* lval_add(lval*, struct lval*); void lval_del(lval*); lval* lval_read_num(mpc_ast_t*); lval* lval_read(mpc_ast_t*); void lval_expr_print(lval*, char, char); void lval_print(lval*); void lval_println(lval*); #endif
Fix forward lval struct declaration
Fix forward lval struct declaration
C
mit
oleiade/lipstick
75219476c5d5c5f418075dfe35e033fea95e7787
bluetooth/bdroid_buildcfg.h
bluetooth/bdroid_buildcfg.h
/* * Copyright 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by 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 _BDROID_BUILDCFG_H #define _BDROID_BUILDCFG_H #define BTA_DISABLE_DELAY 100 /* in milliseconds */ #define BTM_WBS_INCLUDED TRUE #define BTIF_HF_WBS_PREFERRED TRUE #endif
/* * Copyright 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by 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 _BDROID_BUILDCFG_H #define _BDROID_BUILDCFG_H #define BTA_DISABLE_DELAY 100 /* in milliseconds */ #define BTM_WBS_INCLUDED TRUE #define BTIF_HF_WBS_PREFERRED TRUE #define BLE_VND_INCLUDED TRUE #endif
Use run time parameters to control LE features
Use run time parameters to control LE features Use values read from controller to enable and control LE features such as multi advertising, RPA offload, maximum irk size etc bug 15393216
C
apache-2.0
maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead
ed02ba882c16165e6d7241e4b59cb9bacd653a4e
milestone2/1.c
milestone2/1.c
extern void print_int(int x); extern void print_string(char c[]); int x; char c; void main(void){ // check signed-ness of char -> int conversion x = -1; c = x; print_string("should get -1\ngot: "); print_int(c); print_string("\n\n"); x = -2147483647; print_string("should get -2147483647\ngot: "); print_int(x); print_string("\n\n"); // check signed-ness of char -> int conversion x = -2147483648; print_string("should get -2147483648\ngot: "); print_int(x); print_string("\n\n"); }
extern void print_int(int x); extern void print_string(char c[]); int x; char c; void main(void){ /* check signed-ness of char -> int conversion */ x = -1; c = x; print_string("should get -1\ngot: "); print_int(c); print_string("\n\n"); x = -2147483647; print_string("should get -2147483647\ngot: "); print_int(x); print_string("\n\n"); /* check signed-ness of char -> int conversion */ x = -2147483648; print_string("should get -2147483648\ngot: "); print_int(x); print_string("\n\n"); }
Edit comments so they align with our C-- spec
Edit comments so they align with our C-- spec
C
unlicense
mgaut72/cmm-examples,mgaut72/cmm-examples
20530dabfaebe04c7fdd9ca6637c0ab093f7db24
src/tool/hpcrun/unwind/mips/_unw-datatypes.h
src/tool/hpcrun/unwind/mips/_unw-datatypes.h
#ifndef _UNWIND_DATATYPE_H #define _UNWIND_DATATYPE_H #include <unwind/common/std_unw_cursor.h> typedef void* unw_word_t; #endif
Add _unw_datatypes.h to unwind/mips directory
Add _unw_datatypes.h to unwind/mips directory
C
bsd-3-clause
zcth428/hpctoolkit111,zcth428/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit111,HPCToolkit/hpctoolkit,zcth428/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,zcth428/hpctoolkit,zcth428/hpctoolkit111,HPCToolkit/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit,HPCToolkit/hpctoolkit,zcth428/hpctoolkit
00b0796e07fdb5817ed880fe622c15f0ab549a0b
MdePkg/Include/Protocol/MonotonicCounter.h
MdePkg/Include/Protocol/MonotonicCounter.h
/** @file Monotonic Counter Architectural Protocol as defined in PI SPEC VOLUME 2 DXE This code provides the services required to access the systems monotonic counter Copyright (c) 2006 - 2008, Intel Corporation All rights reserved. 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. **/ #ifndef __ARCH_PROTOCOL_MONTONIC_COUNTER_H__ #define __ARCH_PROTOCOL_MONTONIC_COUNTER_H__ /// /// Global ID for the Monotonic Counter Architectural Protocol /// #define EFI_MONTONIC_COUNTER_ARCH_PROTOCOL_GUID \ {0x1da97072, 0xbddc, 0x4b30, {0x99, 0xf1, 0x72, 0xa0, 0xb5, 0x6f, 0xff, 0x2a} } extern EFI_GUID gEfiMonotonicCounterArchProtocolGuid; #endif
/** @file Monotonic Counter Architectural Protocol as defined in PI SPEC VOLUME 2 DXE This code provides the services required to access the systems monotonic counter Copyright (c) 2006 - 2010, Intel Corporation All rights reserved. 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. **/ #ifndef __ARCH_PROTOCOL_MONTONIC_COUNTER_H__ #define __ARCH_PROTOCOL_MONTONIC_COUNTER_H__ /// /// Global ID for the Monotonic Counter Architectural Protocol /// #define EFI_MONOTONIC_COUNTER_ARCH_PROTOCOL_GUID \ {0x1da97072, 0xbddc, 0x4b30, {0x99, 0xf1, 0x72, 0xa0, 0xb5, 0x6f, 0xff, 0x2a} } extern EFI_GUID gEfiMonotonicCounterArchProtocolGuid; #endif
Fix typo in Monotonic Counter GUID macro name
Fix typo in Monotonic Counter GUID macro name git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@9806 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
0302e97ebcbb18c9b0bd97ac6641f4b79c401bd0
libs/fst/config.h
libs/fst/config.h
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). */ #define HAVE_ALLOCA_H 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `pthread' library (-lpthread). */ #define HAVE_LIBPTHREAD 1 /* Define to 1 if you have the `realpath' function. */ #define HAVE_REALPATH 1 #if defined(__MINGW32__) #undef HAVE_ALLOCA_H #undef HAVE_REALPATH #endif #if defined(_MSC_VER) #undef HAVE_ALLOCA_H #undef HAVE_REALPATH #undef HAVE_LIBPTHREAD #undef HAVE_FSEEKO #endif # ifndef __STDC_FORMAT_MACROS # define __STDC_FORMAT_MACROS 1 # endif
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). */ #define HAVE_ALLOCA_H 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `pthread' library (-lpthread). */ #define HAVE_LIBPTHREAD 1 /* Define to 1 if you have the `realpath' function. */ #define HAVE_REALPATH 1 #if defined(__MINGW32__) #undef HAVE_ALLOCA_H #undef HAVE_REALPATH #endif #if defined(_MSC_VER) #undef HAVE_ALLOCA_H #undef HAVE_REALPATH #undef HAVE_LIBPTHREAD #undef HAVE_FSEEKO #endif #ifdef __FreeBSD__ #undef HAVE_ALLOCA_H #endif # ifndef __STDC_FORMAT_MACROS # define __STDC_FORMAT_MACROS 1 # endif
Fix build on FreeBSD, which has no alloca.h
Fix build on FreeBSD, which has no alloca.h
C
isc
YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys
97a1b20724963af57de4e08b4baf17e8243ba4d5
src/datablocks/kreborder.h
src/datablocks/kreborder.h
/*************************************************************************** * Copyright © 2004 Jason Kivlighn <[email protected]> * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef KREBORDER_H #define KREBORDER_H #include <QColor> #include <QString> //typedef enum KreBorderStyle { None = 0, Dotted, Dashed, Solid, Double, Groove, Ridge, Inset, Outset }; class KreBorder { public: KreBorder( int w = 1, const QString & s = "none", const QColor &c = Qt::black ); int width; QString style; QColor color; }; #endif //KREBORDER_H
/*************************************************************************** * Copyright © 2004 Jason Kivlighn <[email protected]> * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef KREBORDER_H #define KREBORDER_H #include <QColor> #include <QString> //typedef enum KreBorderStyle { None = 0, Dotted, Dashed, Solid, Double, Groove, Ridge, Inset, Outset }; class KreBorder { public: explicit KreBorder( int w = 1, const QString & s = "none", const QColor &c = Qt::black ); int width; QString style; QColor color; }; #endif //KREBORDER_H
Fix Krazy warnings: explicit - KreBorder
Fix Krazy warnings: explicit - KreBorder svn path=/trunk/extragear/utils/krecipes/; revision=1119814
C
lgpl-2.1
eliovir/krecipes,eliovir/krecipes,eliovir/krecipes,eliovir/krecipes
d239760f811873271d32388f649c69e73802da8d
tests/regression/06-symbeq/31-var_eq-unknown-invalidate.c
tests/regression/06-symbeq/31-var_eq-unknown-invalidate.c
// PARAM: --set ana.activated[+] var_eq // ldv-benchmarks: u__linux-concurrency_safety__drivers---net---ethernet---ethoc.ko.cil.c #include <assert.h> struct resource { char const *name ; unsigned long flags ; struct resource *parent ; struct resource *sibling ; struct resource *child ; }; struct resource *magic(); int main() { struct resource *res = (struct resource *)0; res = magic(); if (res == (struct resource *)0) assert(1); // reachable else assert(1); // TODO reachable return 0; }
Add var_eq unsound unknown function invalidate test
Add var_eq unsound unknown function invalidate test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
3fd3731b09766f04091941d7bf5ffab824394a0d
sift/recorder/threads.h
sift/recorder/threads.h
#ifndef __THREAD_INFO_H #define __THREAD_INFO_H #include "globals.h" #include "sift_writer.h" #include "bbv_count.h" #include "pin.H" #include <deque> typedef struct { Sift::Writer *output; std::deque<ADDRINT> *dyn_address_queue; Bbv *bbv; UINT64 thread_num; ADDRINT bbv_base; UINT64 bbv_count; ADDRINT bbv_last; BOOL bbv_end; UINT64 blocknum; UINT64 icount; UINT64 icount_detailed; UINT32 last_syscall_number; UINT32 last_syscall_returnval; UINT64 flowcontrol_target; ADDRINT tid_ptr; ADDRINT last_routine; BOOL last_syscall_emulated; BOOL running; #if defined(TARGET_IA32) uint8_t __pad[41]; #elif defined(TARGET_INTEL64) uint8_t __pad[13]; #endif } __attribute__((packed)) thread_data_t; extern thread_data_t *thread_data; void initThreads(); #endif // __THREAD_INFO_H
#ifndef __THREAD_INFO_H #define __THREAD_INFO_H #include "globals.h" #include "sift_writer.h" #include "bbv_count.h" #include "pin.H" #include <deque> typedef struct { Sift::Writer *output; std::deque<ADDRINT> *dyn_address_queue; Bbv *bbv; UINT64 thread_num; ADDRINT bbv_base; UINT64 bbv_count; ADDRINT bbv_last; BOOL bbv_end; UINT64 blocknum; UINT64 icount; UINT64 icount_detailed; ADDRINT last_syscall_number; ADDRINT last_syscall_returnval; UINT64 flowcontrol_target; ADDRINT tid_ptr; ADDRINT last_routine; BOOL last_syscall_emulated; BOOL running; #if defined(TARGET_IA32) uint8_t __pad[41]; #elif defined(TARGET_INTEL64) uint8_t __pad[5]; #endif } __attribute__((packed)) thread_data_t; extern thread_data_t *thread_data; void initThreads(); #endif // __THREAD_INFO_H
Fix data type for syscall return value to be native word size (ADDRINT rather than INT32) so negative system call return values are passed back correctly
[sift] Fix data type for syscall return value to be native word size (ADDRINT rather than INT32) so negative system call return values are passed back correctly
C
mit
abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper
391385fc4ec94084cebabd40dde97217645bf274
src/lib/pk_pad/eme_oaep/oaep.h
src/lib/pk_pad/eme_oaep/oaep.h
/* * OAEP * (C) 1999-2007 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_OAEP_H_ #define BOTAN_OAEP_H_ #include <botan/eme.h> #include <botan/hash.h> namespace Botan { /** * OAEP (called EME1 in IEEE 1363 and in earlier versions of the library) */ class BOTAN_PUBLIC_API(2,0) OAEP final : public EME { public: size_t maximum_input_size(size_t) const override; /** * @param hash function to use for hashing (takes ownership) * @param P an optional label. Normally empty. */ OAEP(HashFunction* hash, const std::string& P = ""); private: secure_vector<uint8_t> pad(const uint8_t in[], size_t in_length, size_t key_length, RandomNumberGenerator& rng) const override; secure_vector<uint8_t> unpad(uint8_t& valid_mask, const uint8_t in[], size_t in_len) const override; secure_vector<uint8_t> m_Phash; std::unique_ptr<HashFunction> m_hash; }; } #endif
/* * OAEP * (C) 1999-2007 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_OAEP_H_ #define BOTAN_OAEP_H_ #include <botan/eme.h> #include <botan/hash.h> namespace Botan { /** * OAEP (called EME1 in IEEE 1363 and in earlier versions of the library) * as specified in PKCS#1 v2.0 (RFC 2437) */ class BOTAN_PUBLIC_API(2,0) OAEP final : public EME { public: size_t maximum_input_size(size_t) const override; /** * @param hash function to use for hashing (takes ownership) * @param P an optional label. Normally empty. */ OAEP(HashFunction* hash, const std::string& P = ""); private: secure_vector<uint8_t> pad(const uint8_t in[], size_t in_length, size_t key_length, RandomNumberGenerator& rng) const override; secure_vector<uint8_t> unpad(uint8_t& valid_mask, const uint8_t in[], size_t in_len) const override; secure_vector<uint8_t> m_Phash; std::unique_ptr<HashFunction> m_hash; }; } #endif
Add note on OAEP version implemented
Add note on OAEP version implemented [ci skip]
C
bsd-2-clause
randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan
6972c7b3cb1c3b4e58b4205e221cdce2e0dfee68
include/HubFramework/HUBComponentCategories.h
include/HubFramework/HUBComponentCategories.h
#import <Foundation/Foundation.h> /** * Type for objects that describe a component category to use for fallbacks using `HUBComponentFallbackHandler` * * An application using the Hub Framework can declare any number of categories to use when performing fallback logic * for components, in case an unknown component namespace/name combo was encountered. * * Ideally, a component category should be generic enough to apply to a range of components with similar visuals and * behavior, but still contain enough information for a `HUBComponentFallbackHandler` to create appropriate fallback * components based on them. */ typedef NSObject<NSCopying, NSCoding> HUBComponentCategory; /// Category for components that have a row-like appearance, with a full screen width and a compact height static HUBComponentCategory * const HUBComponentCategoryRow = @"row"; /// Category for components that have a card-like appearance, that are placable in a grid with compact width & height static HUBComponentCategory * const HUBComponentCategoryCard = @"card"; /// Category for components that have a carousel-like apperance, with a swipeable horizontal set of child components static HUBComponentCategory * const HUBComponentCategoryCarousel = @"carousel";
#import <Foundation/Foundation.h> /** * Type for objects that describe a component category to use for fallbacks using `HUBComponentFallbackHandler` * * An application using the Hub Framework can declare any number of categories to use when performing fallback logic * for components, in case an unknown component namespace/name combo was encountered. * * Ideally, a component category should be generic enough to apply to a range of components with similar visuals and * behavior, but still contain enough information for a `HUBComponentFallbackHandler` to create appropriate fallback * components based on them. */ typedef NSObject<NSCopying, NSCoding> HUBComponentCategory; /// Category for components that have a row-like appearance, with a full screen width and a compact height static HUBComponentCategory * const HUBComponentCategoryRow = @"row"; /// Category for components that have a card-like appearance, that are placable in a grid with compact width & height static HUBComponentCategory * const HUBComponentCategoryCard = @"card"; /// Category for components that have a carousel-like apperance, with a swipeable horizontal set of child components static HUBComponentCategory * const HUBComponentCategoryCarousel = @"carousel"; /// Category for components that have a banner-like appearance, imagery-heavy with a full screen width and compact height static HUBComponentCategory * const HUBComponentCategoryBanner = @"banner";
Add component category for banners
Add component category for banners Needed for components like billboards, promotions etc that are neither cards or rows.
C
apache-2.0
spotify/HubFramework,spotify/HubFramework,spotify/HubFramework,spotify/HubFramework