Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(761)

Unified Diff: lib/libpkix/pkix_pl_nss/system/pkix_pl_common.h

Issue 201830043: Bug 1118245 - Apply uniform style across NSS
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/libpkix/pkix_pl_nss/system/pkix_pl_bytearray.c ('k') | lib/libpkix/pkix_pl_nss/system/pkix_pl_common.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/libpkix/pkix_pl_nss/system/pkix_pl_common.h
===================================================================
old mode 100755
new mode 100644
--- a/lib/libpkix/pkix_pl_nss/system/pkix_pl_common.h
+++ b/lib/libpkix/pkix_pl_nss/system/pkix_pl_common.h
@@ -70,90 +70,57 @@
#include "pkix_pl_ldapresponse.h"
#endif /* !NSS_PKIX_NO_LDAP */
#include "pkix_pl_nsscontext.h"
#include "pkix_pl_httpcertstore.h"
#include "pkix_pl_httpdefaultclient.h"
#include "pkix_pl_infoaccess.h"
#include "pkix_sample_modules.h"
-#define MAX_DIGITS_32 (PKIX_UInt32) 10
+#define MAX_DIGITS_32 (PKIX_UInt32)10
-#define PKIX_PL_NSSCALL(type, func, args) \
- PKIX_ ## type ## _DEBUG_ARG("( Calling %s).\n", #func); \
- (func args)
+#define PKIX_PL_NSSCALL(type, func, args) \
+ PKIX_##type##_DEBUG_ARG("( Calling %s).\n", #func); \
+ (func args)
-#define PKIX_PL_NSSCALLRV(type, lvalue, func, args) \
- PKIX_ ## type ## _DEBUG_ARG("( Calling %s).\n", #func); \
- lvalue = (func args)
+#define PKIX_PL_NSSCALLRV(type, lvalue, func, args) \
+ PKIX_##type##_DEBUG_ARG("( Calling %s).\n", #func); \
+ lvalue = (func args)
/* see source file for function documentation */
-PKIX_Error *
-pkix_LockObject(
- PKIX_PL_Object *object,
- void *plContext);
+PKIX_Error *pkix_LockObject(PKIX_PL_Object *object, void *plContext);
-PKIX_Error *
-pkix_UnlockObject(
- PKIX_PL_Object *object,
- void *plContext);
+PKIX_Error *pkix_UnlockObject(PKIX_PL_Object *object, void *plContext);
-PKIX_Boolean
-pkix_pl_UInt32_Overflows(char *string);
+PKIX_Boolean pkix_pl_UInt32_Overflows(char *string);
-PKIX_Error *
-pkix_pl_helperBytes2Ascii(
- PKIX_UInt32 *tokens,
- PKIX_UInt32 numTokens,
- char **pAscii,
- void *plContext);
+PKIX_Error *pkix_pl_helperBytes2Ascii(PKIX_UInt32 *tokens,
+ PKIX_UInt32 numTokens, char **pAscii,
+ void *plContext);
-PKIX_Error *
-pkix_pl_ipAddrBytes2Ascii(
- SECItem *secItem,
- char **pAscii,
- void *plContext);
+PKIX_Error *pkix_pl_ipAddrBytes2Ascii(SECItem *secItem, char **pAscii,
+ void *plContext);
-PKIX_Error *
-pkix_pl_oidBytes2Ascii(
- SECItem *secItem,
- char **pAscii,
- void *plContext);
+PKIX_Error *pkix_pl_oidBytes2Ascii(SECItem *secItem, char **pAscii,
+ void *plContext);
/* --String-Encoding-Conversion-Functions------------------------ */
-PKIX_Error *
-pkix_UTF16_to_EscASCII(
- const void *utf16String,
- PKIX_UInt32 utf16Length,
- PKIX_Boolean debug,
- char **pDest,
- PKIX_UInt32 *pLength,
- void *plContext);
+PKIX_Error *pkix_UTF16_to_EscASCII(const void *utf16String,
+ PKIX_UInt32 utf16Length, PKIX_Boolean debug,
+ char **pDest, PKIX_UInt32 *pLength,
+ void *plContext);
-PKIX_Error *
-pkix_EscASCII_to_UTF16(
- const char *escAsciiString,
- PKIX_UInt32 escAsciiLen,
- PKIX_Boolean debug,
- void **pDest,
- PKIX_UInt32 *pLength,
- void *plContext);
+PKIX_Error *pkix_EscASCII_to_UTF16(const char *escAsciiString,
+ PKIX_UInt32 escAsciiLen, PKIX_Boolean debug,
+ void **pDest, PKIX_UInt32 *pLength,
+ void *plContext);
-PKIX_Error *
-pkix_UTF16_to_UTF8(
- const void *utf16String,
- PKIX_UInt32 utf16Length,
- PKIX_Boolean null_Term,
- void **pDest,
- PKIX_UInt32 *pLength,
- void *plContext);
+PKIX_Error *pkix_UTF16_to_UTF8(const void *utf16String, PKIX_UInt32 utf16Length,
+ PKIX_Boolean null_Term, void **pDest,
+ PKIX_UInt32 *pLength, void *plContext);
-PKIX_Error *
-pkix_UTF8_to_UTF16(
- const void *utf8Source,
- PKIX_UInt32 utf8Length,
- void **pDest,
- PKIX_UInt32 *pLength,
- void *plContext);
+PKIX_Error *pkix_UTF8_to_UTF16(const void *utf8Source, PKIX_UInt32 utf8Length,
+ void **pDest, PKIX_UInt32 *pLength,
+ void *plContext);
#endif /* _PKIX_PL_COMMON_H */
« no previous file with comments | « lib/libpkix/pkix_pl_nss/system/pkix_pl_bytearray.c ('k') | lib/libpkix/pkix_pl_nss/system/pkix_pl_common.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b