Deleted
Added
nxt_application.h (584:28e8e1877e62) | nxt_application.h (611:323e11065f83) |
---|---|
1 2/* 3 * Copyright (C) Max Romanov 4 * Copyright (C) Valentin V. Bartenev 5 * Copyright (C) NGINX, Inc. 6 */ 7 8#ifndef _NXT_APPLICATION_H_INCLUDED_ --- 278 unchanged lines hidden (view full) --- 287nxt_inline u_char * 288nxt_app_msg_read_length(u_char *src, size_t *length) 289{ 290 if (src[0] < 128) { 291 *length = src[0]; 292 src++; 293 294 } else { | 1 2/* 3 * Copyright (C) Max Romanov 4 * Copyright (C) Valentin V. Bartenev 5 * Copyright (C) NGINX, Inc. 6 */ 7 8#ifndef _NXT_APPLICATION_H_INCLUDED_ --- 278 unchanged lines hidden (view full) --- 287nxt_inline u_char * 288nxt_app_msg_read_length(u_char *src, size_t *length) 289{ 290 if (src[0] < 128) { 291 *length = src[0]; 292 src++; 293 294 } else { |
295 *length = ((src[0] & 0x7fU) << 24) + | 295 *length = ((src[0] & 0x7FU) << 24) + |
296 (src[1] << 16) + 297 (src[2] << 8) + 298 src[3]; 299 src += 4; 300 } 301 302 return src; 303} 304 305 306nxt_app_lang_module_t *nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name); 307nxt_app_type_t nxt_app_parse_type(u_char *p, size_t length); 308 309extern nxt_application_module_t nxt_go_module; 310 311 312#endif /* _NXT_APPLICATION_H_INCLIDED_ */ | 296 (src[1] << 16) + 297 (src[2] << 8) + 298 src[3]; 299 src += 4; 300 } 301 302 return src; 303} 304 305 306nxt_app_lang_module_t *nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name); 307nxt_app_type_t nxt_app_parse_type(u_char *p, size_t length); 308 309extern nxt_application_module_t nxt_go_module; 310 311 312#endif /* _NXT_APPLICATION_H_INCLIDED_ */ |