Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/fips181/fips181.h

Issue 2571113002: Remove unnecessary typedefs in third_party/fips181. (Closed)
Patch Set: Solve for MSVC warning C4805. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/fips181/convert.cc ('k') | third_party/fips181/fips181.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/fips181/fips181.h
diff --git a/third_party/fips181/fips181.h b/third_party/fips181/fips181.h
index 524da59beb6a353a126b0e371be7a886131a0bc2..952256decc089aee2c5474243367161612b9e918 100644
--- a/third_party/fips181/fips181.h
+++ b/third_party/fips181/fips181.h
@@ -34,12 +34,8 @@
*/
-#ifndef APG_PRONPASS_H
-#define APG_PRONPASS_H 1
-
-#ifndef APG_OWN_TYPES_H
-#include "owntypes.h"
-#endif /* APG_OWN_TYPES_H */
+#ifndef FIPS181_H
+#define FIPS181_H 1
#define RULE_SIZE (sizeof(rules)/sizeof(struct unit))
#define ALLOWED(flag) (digram[units_in_syllable[current_unit -1]][unit] & (flag))
@@ -69,16 +65,18 @@
#define S_SL 0x08 /* Small */
#define S_RS 0x10 /* Restricted Symbol*/
+#define APG_MAX_PASSWORD_LENGTH 255
+
extern int gen_pron_pass (char *word, char* hypenated_word,
- USHORT minlen, USHORT maxlen, unsigned int pass_mode);
-USHORT random_unit (USHORT type);
-USHORT get_random (USHORT minlen, USHORT maxlen);
-boolean have_initial_y (USHORT *units, USHORT unit_size);
-boolean illegal_placement (USHORT *units, USHORT pwlen);
-boolean improper_word (USHORT *units, USHORT word_size);
-boolean have_final_split (USHORT *units, USHORT unit_size);
-int gen_word (char *word, char *hyphenated_word, USHORT pwlen, unsigned int pass_mode);
-char *gen_syllable(char *syllable, USHORT pwlen, USHORT *units_in_syllable,
- USHORT *syllable_length);
+ unsigned short minlen, unsigned short maxlen, unsigned int pass_mode);
+unsigned short random_unit (unsigned short type);
+unsigned short get_random (unsigned short minlen, unsigned short maxlen);
+bool have_initial_y (unsigned short *units, unsigned short unit_size);
+bool illegal_placement (unsigned short *units, unsigned short pwlen);
+bool improper_word (unsigned short *units, unsigned short word_size);
+bool have_final_split (unsigned short *units, unsigned short unit_size);
+int gen_word (char *word, char *hyphenated_word, unsigned short pwlen, unsigned int pass_mode);
+char *gen_syllable(char *syllable, unsigned short pwlen, unsigned short *units_in_syllable,
+ unsigned short *syllable_length);
-#endif /* APG_PRONPASS_H */
+#endif /* FIPS181_H */
« no previous file with comments | « third_party/fips181/convert.cc ('k') | third_party/fips181/fips181.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698