■掲示板に戻る■ 全部 1- 101- 201- 301- 401- 501- 601- 701- 801- 901- 1001- 最新50
レス数が1000を超えています。残念ながら全部は表示しません。 |
初心者もOK! FreeBSD質問スレッド その11
- 819 :ネカマだと教えてくれるだろうが残念ながらオレは男だ。 :02/02/01 19:55
- ※参考資料mod_encoding.cのERROR部分付近。
左端は:set nu
150 }
151
152 /* Allocate space for conversion. Note max bloat factor is 4 of UCS-4 */
153 marker = outbuf = (char *)ap_palloc(r->pool, outlen = srclen * 4 + 1);
154
155 if (outbuf == NULL) {
156 LOG(APLOG_WARNING, r->server, "iconv_string: no more memory");
157 return srcbuf;
158 }
159
160 /* Convert every character within input string. */
161 while (srclen > 0) {
162 if (iconv(cd, &srcbuf, &srclen, &outbuf, &outlen) == (size_t)(-1)) {
163 LOG(APLOG_WARNING, r->server, "iconv_string: conversion error");
164 return srcbuf;
165 }
166 }
167
168 /* Everything done. Flush buffer/state and return result */
169 iconv(cd, NULL, NULL, &outbuf, &outlen);
170 iconv(cd, NULL, NULL, NULL, NULL);
373 /***************************************************************************
374 * exported module structure
375 ***************************************************************************/
376
377 module MODULE_VAR_EXPORT encoding_module = {
378 STANDARD_MODULE_STUFF,
379 NULL, /* initializer */
380 NULL, /* dir config */
381 NULL, /* dir config merger */
382 config_setup, /* server config */
383 config_merge, /* server config merger */
384 mod_enc_commands, /* command table */
385 NULL, /* handlers */
386 NULL, /* filename translation */
387 NULL, /* check_user_id */
388 NULL, /* check auth */
389 NULL, /* check access */
390 NULL, /* type_checker */
391 NULL, /* fixups */
392 NULL, /* logger */
393 NULL, /* header parser */
394 NULL, /* child_init */
395 NULL, /* child_exit */
396 mod_enc_postread, /* post read-request */
397 #ifdef EAPI
398 NULL, /* EAPI: add_module */
399 NULL, /* EAPI: remove_module */
400 NULL, /* EAPI: rewrite_command */
401 NULL, /* EAPI: new_connection */
402 #endif
403 };
掲示板に戻る 全部 前100 次100 最新50read.cgi ver5.26+ (01/10/21-)