src/chxj_hdml.c
/**
 * The HDML structure is initialized. 
 * 
 * @param hdml [i/o] The pointer to the HDML structure that wants to be 
 *                   initialized is specified. 
 * @param doc  [i]   The Doc structure that should be set to the initialized 
 *                   HDML structure is specified. 
 * @param r    [i]   To use POOL, the pointer to request_rec is specified. 
 * @param spec [i]   The pointer to the device_table
 */
The HDML structure is initialized.

@param hdml [i/o] The pointer to the HDML structure that wants to be
initialized is specified.
@param doc  [i]   The Doc structure that should be set to the initialized
HDML structure is specified.
@param r    [i]   To use POOL, the pointer to request_rec is specified.
@param spec [i]   The pointer to the device_table
The HDML structure is initialized . @param hdml [ i / o ] The pointer to the HDML structure that wants to be initialized is specified . @param doc [ i ] The Doc structure that should be set to the initialized HDML structure is specified . @param r [ i ] To use POOL the pointer to request_rec is specified . @param spec [ i ] The pointer to the device_table
static void 
s_init_hdml(hdml_t *hdml, Doc *doc, request_rec *r, device_table *spec)
{
  int     ii;
  int     jj;
  memset(hdml, 0, sizeof(hdml_t));
  hdml->doc      = doc;
  hdml->card     = qs_alloc_zero_byte_string(r->pool);
  hdml->spec     = spec;
  hdml->conf     = chxj_get_module_config(r->per_dir_config, &chxj_module);
  hdml->doc->parse_mode = PARSE_MODE_CHTML;
  for (ii=0; ii<MAX_FORM_COUNT; ii++) {
    hdml->var_cnt[ii]     = 0;
    hdml->postdata[ii]    = qs_alloc_zero_byte_string(r->pool);
  }
  for (ii=0; ii<MAX_RADIO_COUNT; ii++) {
    for (jj=0; jj<MAX_RADIO_VALUE_COUNT; jj++) 
      hdml->radio_value_list[ii][jj] = NULL;
    hdml->radio_name_list[ii]     = NULL;
    hdml->radio_out_cnt[ii]       = 0;
    hdml->radio_checked_value[ii] = NULL;
  }
  for (ii=0; ii<MAX_SUBMIT_BUTTON_COUNT; ii++) 
    hdml->submit_button[ii] = NULL;
  hdml->init_vars      = qs_alloc_zero_byte_string(r->pool);
  doc->r               = r;
  hdml->form_cnt = apr_time_now();
  hdml->out = qs_alloc_zero_byte_string(r->pool);
}
static void s_init_hdml ( hdml_t * hdml , Doc * doc , request_rec * r , device_table * spec ) { int ii ; int jj ; memset ( hdml , 0 , sizeof ( hdml_t ) ) ; hdml -> doc = doc ; hdml -> card = qs_alloc_zero_byte_string ( r -> pool ) ; hdml -> spec = spec ; hdml -> conf = chxj_get_module_config ( r -> per_dir_config , & chxj_module ) ; hdml -> doc -> parse_mode = PARSE_MODE_CHTML ; for ( ii = 0 ; ii < MAX_FORM_COUNT ; ii ++ ) { hdml -> var_cnt [ ii ] = 0 ; hdml -> postdata [ ii ] = qs_alloc_zero_byte_string ( r -> pool ) ; } for ( ii = 0 ; ii < MAX_RADIO_COUNT ; ii ++ ) { for ( jj = 0 ; jj < MAX_RADIO_VALUE_COUNT ; jj ++ ) hdml -> radio_value_list [ ii ] [ jj ] = NULL ; hdml -> radio_name_list [ ii ] = NULL ; hdml -> radio_out_cnt [ ii ] = 0 ; hdml -> radio_checked_value [ ii ] = NULL ; } for ( ii = 0 ; ii < MAX_SUBMIT_BUTTON_COUNT ; ii ++ ) hdml -> submit_button [ ii ] = NULL ; hdml -> init_vars = qs_alloc_zero_byte_string ( r -> pool ) ; doc -> r = r ; hdml -> form_cnt = apr_time_now ( ) ; hdml -> out = qs_alloc_zero_byte_string ( r -> pool ) ; }
The HDML structure is initialized.
The HDML structure is initialized .
/*--------------------------------------------------------------------------*/ /* init hdml structure value                                                */ /*--------------------------------------------------------------------------*/