• R/O
  • SSH
  • HTTPS

bathyscaphe: Commit


Commit MetaInfo

Revisão1816 (tree)
Hora2015-03-23 16:07:18
Autortsawada2

Mensagem de Log

Omake-commit: add utility function.

Mudança Sumário

Diff

--- bathyscaphe/trunk/frameworks/CocoMonar/framework/src/CMRHostTypes.h (revision 1815)
+++ bathyscaphe/trunk/frameworks/CocoMonar/framework/src/CMRHostTypes.h (revision 1816)
@@ -3,7 +3,7 @@
33 // BathyScaphe
44 //
55 // Updated by Tsutomu Sawada on 10/03/07.
6-// Copyright 2005-2014 BathyScaphe Project. All rights reserved.
6+// Copyright 2005-2015 BathyScaphe Project. All rights reserved.
77 // encoding="UTF-8"
88 //
99
@@ -81,6 +81,7 @@
8181 */
8282 extern bool is_2ch_sc(const char *host);
8383
84+extern bool is_bbspink(const char *host);
8485
8586
8687
--- bathyscaphe/trunk/frameworks/CocoMonar/framework/src/CMRHostTypes.m (revision 1815)
+++ bathyscaphe/trunk/frameworks/CocoMonar/framework/src/CMRHostTypes.m (revision 1816)
@@ -3,7 +3,7 @@
33 // BathyScaphe
44 //
55 // Updated by Tsutomu Sawada on 10/03/07.
6-// Copyright 2005-2014 BathyScaphe Project. All rights reserved.
6+// Copyright 2005-2015 BathyScaphe Project. All rights reserved.
77 // encoding="UTF-8"
88 //
99
@@ -155,6 +155,17 @@
155155 return can_readcgi(host);
156156 }
157157
158+bool is_bbspink(const char *host)
159+{
160+ if (host == NULL) {
161+ return false;
162+ }
163+ if (strstr(host, ".bbspink.com")) {
164+ return !strstr(host, "www.");
165+ }
166+ return false;
167+}
168+
158169 bool is_2ch_except_pink(const char *host)
159170 {
160171 if (host == NULL) {
--- bathyscaphe/trunk/changelog.txt (revision 1815)
+++ bathyscaphe/trunk/changelog.txt (revision 1816)
@@ -1,4 +1,6 @@
11 2015-03-23 tsawada2 <tsawada2@users.sourceforge.jp>
2+ * frameworks/CocoMonar/framework/src/CMRHostTypes.m
3+ is_bbspink() ユーティリティ関数を追加。
24 * application/subproj/reply/error/SG2chErrorHandler.m
35 書き込み時に title タグまたは <!-- 2ch_X:... --> からエラー内容を決定できない場合に、クッキー確認である
46 可能性を考慮できていなかった問題を修正。
Show on old repository browser