From 38b7ad8d312410679bfc1eae38296aeea46d5341 Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Sat, 19 Aug 2000 03:56:25 +0000 Subject: [PATCH] Changing C++ comments to C comments. Please do not put C++ comments in C files, since it breaks some compilers. r=jst git-svn-id: svn://10.0.0.236/trunk@76684 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libpref/src/prefapi.c | 10 ++++++---- mozilla/modules/libpref/src/prefapi.cpp | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/mozilla/modules/libpref/src/prefapi.c b/mozilla/modules/libpref/src/prefapi.c index eadb660d084..d956d1d61d0 100644 --- a/mozilla/modules/libpref/src/prefapi.c +++ b/mozilla/modules/libpref/src/prefapi.c @@ -879,8 +879,9 @@ pref_saveLIPref(PLHashEntry *he, int i, void *arg) { char *tmp_str = str_escape(pref->userPref.stringVal); - //Error checks to be sure length not too long. - //18 refers to the number of characters in the "user_pref..." string. + /* Error checks to be sure length not too long. + 18 refers to the number of characters in the "user_pref..." + string. */ if(((PL_strlen((char *) he->key)+PL_strlen(tmp_str))+18)>2048) return PREF_BAD_PARAMETER; @@ -955,8 +956,9 @@ pref_savePref(PLHashEntry *he, int i, void *arg) { char *tmp_str = str_escape(pref->userPref.stringVal); - //Error checks to be sure length not too long. - //18 refers to the number of characters in the "user_pref..." string. + /* Error checks to be sure length not too long. + 18 refers to the number of characters in the "user_pref..." + string. */ if(((PL_strlen((char *) he->key)+PL_strlen(tmp_str))+18)>2048) return PREF_BAD_PARAMETER; diff --git a/mozilla/modules/libpref/src/prefapi.cpp b/mozilla/modules/libpref/src/prefapi.cpp index eadb660d084..d956d1d61d0 100644 --- a/mozilla/modules/libpref/src/prefapi.cpp +++ b/mozilla/modules/libpref/src/prefapi.cpp @@ -879,8 +879,9 @@ pref_saveLIPref(PLHashEntry *he, int i, void *arg) { char *tmp_str = str_escape(pref->userPref.stringVal); - //Error checks to be sure length not too long. - //18 refers to the number of characters in the "user_pref..." string. + /* Error checks to be sure length not too long. + 18 refers to the number of characters in the "user_pref..." + string. */ if(((PL_strlen((char *) he->key)+PL_strlen(tmp_str))+18)>2048) return PREF_BAD_PARAMETER; @@ -955,8 +956,9 @@ pref_savePref(PLHashEntry *he, int i, void *arg) { char *tmp_str = str_escape(pref->userPref.stringVal); - //Error checks to be sure length not too long. - //18 refers to the number of characters in the "user_pref..." string. + /* Error checks to be sure length not too long. + 18 refers to the number of characters in the "user_pref..." + string. */ if(((PL_strlen((char *) he->key)+PL_strlen(tmp_str))+18)>2048) return PREF_BAD_PARAMETER;