Преглед изворни кода

Fix copyrights, formatting

Craig Tiller пре 9 година
родитељ
комит
2d50f37047

+ 2 - 2
include/grpc/support/avl.h

@@ -1,6 +1,6 @@
 /*
 /*
  *
  *
- * Copyright 2015, Google Inc.
+ * Copyright 2015-2016, Google Inc.
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -89,4 +89,4 @@ gpr_avl gpr_avl_remove(gpr_avl avl, void *key);
     returns NULL if key is not found. */
     returns NULL if key is not found. */
 void *gpr_avl_get(gpr_avl avl, void *key);
 void *gpr_avl_get(gpr_avl avl, void *key);
 
 
-#endif
+#endif /* GRPC_SUPPORT_AVL_H */

+ 1 - 1
src/core/client_config/subchannel_index.h

@@ -56,7 +56,7 @@ void grpc_subchannel_key_destroy(grpc_exec_ctx *exec_ctx,
 grpc_subchannel *grpc_subchannel_index_find(grpc_exec_ctx *exec_ctx,
 grpc_subchannel *grpc_subchannel_index_find(grpc_exec_ctx *exec_ctx,
                                             grpc_subchannel_key *key);
                                             grpc_subchannel_key *key);
 
 
-/** Register a subchannel against a key. 
+/** Register a subchannel against a key.
     Takes ownership of \a constructed.
     Takes ownership of \a constructed.
     Returns the registered subchannel. This may be different from
     Returns the registered subchannel. This may be different from
     \a constructed in the case of a registration race. */
     \a constructed in the case of a registration race. */

+ 1 - 1
src/core/support/avl.c

@@ -1,6 +1,6 @@
 /*
 /*
  *
  *
- * Copyright 2015, Google Inc.
+ * Copyright 2015-2016, Google Inc.
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without

+ 3 - 3
tools/distrib/check_copyright.py

@@ -68,9 +68,9 @@ with open('LICENSE') as f:
 # that given a line of license text, returns what should
 # that given a line of license text, returns what should
 # be in the file
 # be in the file
 LICENSE_PREFIX = {
 LICENSE_PREFIX = {
-  '.c':         r'\s*(//|\*)\s*',
-  '.cc':        r'\s*(//|\*)\s*',
-  '.h':         r'\s*(//|\*)\s*',
+  '.c':         r'\s*(?://|\*)\s*',
+  '.cc':        r'\s*(?://|\*)\s*',
+  '.h':         r'\s*(?://|\*)\s*',
   '.m':         r'\s*\*\s*',
   '.m':         r'\s*\*\s*',
   '.php':       r'\s*\*\s*',
   '.php':       r'\s*\*\s*',
   '.js':        r'\s*\*\s*',
   '.js':        r'\s*\*\s*',