Home
last modified time | relevance | path

Searched refs:ent (Results 1 – 25 of 155) sorted by relevance

1234567

/external/quake/quake/src/WinQuake/
Dsv_phys.cpp54 void SV_Physics_Toss (edict_t *ent);
90 void SV_CheckVelocity (edict_t *ent) in SV_CheckVelocity() argument
99 if (IS_NAN(ent->u.v.velocity[i])) in SV_CheckVelocity()
101 Con_Printf ("Got a NaN velocity on %s\n", pr_strings + ent->u.v.classname); in SV_CheckVelocity()
102 ent->u.v.velocity[i] = 0; in SV_CheckVelocity()
104 if (IS_NAN(ent->u.v.origin[i])) in SV_CheckVelocity()
106 Con_Printf ("Got a NaN origin on %s\n", pr_strings + ent->u.v.classname); in SV_CheckVelocity()
107 ent->u.v.origin[i] = 0; in SV_CheckVelocity()
109 if (ent->u.v.velocity[i] > sv_maxvelocity.value) in SV_CheckVelocity()
110 ent->u.v.velocity[i] = sv_maxvelocity.value; in SV_CheckVelocity()
[all …]
Dsv_move.cpp37 qboolean SV_CheckBottom (edict_t *ent) in SV_CheckBottom() argument
44 VectorAdd (ent->u.v.origin, ent->u.v.mins, mins); in SV_CheckBottom()
45 VectorAdd (ent->u.v.origin, ent->u.v.maxs, maxs); in SV_CheckBottom()
74 trace = SV_Move (start, vec3_origin, vec3_origin, stop, true, ent); in SV_CheckBottom()
87 trace = SV_Move (start, vec3_origin, vec3_origin, stop, true, ent); in SV_CheckBottom()
110 qboolean SV_movestep (edict_t *ent, vec3_t move, qboolean relink) in SV_movestep() argument
119 VectorCopy (ent->u.v.origin, oldorg); in SV_movestep()
120 VectorAdd (ent->u.v.origin, move, neworg); in SV_movestep()
123 if ( (int)ent->u.v.flags & (FL_SWIM | FL_FLY) ) in SV_movestep()
128 VectorAdd (ent->u.v.origin, move, neworg); in SV_movestep()
[all …]
Dcl_parse.cpp104 int channel, ent; in CL_ParseStartSoundPacket() local
126 ent = channel >> 3; in CL_ParseStartSoundPacket()
129 if (ent > MAX_EDICTS) in CL_ParseStartSoundPacket()
130 Host_Error ("CL_ParseStartSoundPacket: ent = %i", ent); in CL_ParseStartSoundPacket()
135 S_StartSound (ent, channel, cl.sound_precache[sound_num], pos, volume/255.0, attenuation); in CL_ParseStartSoundPacket()
336 entity_t *ent; in CL_ParseUpdate() local
357 ent = CL_EntityNum (num); in CL_ParseUpdate()
363 if (ent->msgtime != cl.mtime[1]) in CL_ParseUpdate()
368 ent->msgtime = cl.mtime[0]; in CL_ParseUpdate()
377 modnum = ent->baseline.modelindex; in CL_ParseUpdate()
[all …]
Dcl_main.cpp251 entity_t *ent; in CL_PrintEntities_f() local
254 for (i=0,ent=cl_entities ; i<cl.num_entities ; i++,ent++) in CL_PrintEntities_f()
257 if (!ent->model) in CL_PrintEntities_f()
263 …,ent->model->name,ent->frame, ent->origin[0], ent->origin[1], ent->origin[2], ent->angles[0], ent-… in CL_PrintEntities_f()
444 entity_t *ent; in CL_RelinkEntities() local
481 for (i=1,ent=cl_entities+1 ; i<cl.num_entities ; i++,ent++) in CL_RelinkEntities()
483 if (!ent->model) in CL_RelinkEntities()
485 if (ent->forcelink) in CL_RelinkEntities()
486 R_RemoveEfrags (ent); // just became empty in CL_RelinkEntities()
491 if (ent->msgtime != cl.mtime[0]) in CL_RelinkEntities()
[all …]
Dworld.cpp129 hull_t *SV_HullForEntity (edict_t *ent, vec3_t mins, vec3_t maxs, vec3_t offset) in SV_HullForEntity() argument
137 if (ent->u.v.solid == SOLID_BSP) in SV_HullForEntity()
139 if (ent->u.v.movetype != MOVETYPE_PUSH) in SV_HullForEntity()
142 model = sv.models[ (int)ent->u.v.modelindex ]; in SV_HullForEntity()
157 VectorAdd (offset, ent->u.v.origin, offset); in SV_HullForEntity()
162 VectorSubtract (ent->u.v.mins, maxs, hullmins); in SV_HullForEntity()
163 VectorSubtract (ent->u.v.maxs, mins, hullmaxs); in SV_HullForEntity()
166 VectorCopy (ent->u.v.origin, offset); in SV_HullForEntity()
263 void SV_UnlinkEdict (edict_t *ent) in SV_UnlinkEdict() argument
265 if (!ent->area.prev) in SV_UnlinkEdict()
[all …]
Dsv_main.cpp124 int ent; in SV_StartSound() local
150 ent = NUM_FOR_EDICT(entity); in SV_StartSound()
152 channel = (ent<<3) | channel; in SV_StartSound()
245 edict_t *ent; in SV_ConnectClient() local
258 ent = EDICT_NUM(edictnum); in SV_ConnectClient()
271 client->edict = ent; in SV_ConnectClient()
434 edict_t *ent; in SV_WriteEntitiesToClient() local
441 ent = NEXT_EDICT(sv.edicts); in SV_WriteEntitiesToClient()
442 for (e=1 ; e<sv.num_edicts ; e++, ent = NEXT_EDICT(ent)) in SV_WriteEntitiesToClient()
446 if (ent->u.v.effects == EF_NODRAW) in SV_WriteEntitiesToClient()
[all …]
Dpr_cmds.cpp614 edict_t *ent; in PF_traceline() local
619 ent = G_EDICT(OFS_PARM3); in PF_traceline()
621 trace = SV_Move (v1, vec3_origin, vec3_origin, v2, nomonsters, ent); in PF_traceline()
631 if (trace.ent) in PF_traceline()
632 pr_global_struct->trace_ent = EDICT_TO_PROG(trace.ent); in PF_traceline()
639 extern trace_t SV_Trace_Toss (edict_t *ent, edict_t *ignore);
644 edict_t *ent; in PF_TraceToss() local
647 ent = G_EDICT(OFS_PARM0); in PF_TraceToss()
650 trace = SV_Trace_Toss (ent, ignore); in PF_TraceToss()
660 if (trace.ent) in PF_TraceToss()
[all …]
Dcl_tent.cpp67 int ent; in CL_ParseBeam() local
72 ent = MSG_ReadShort (); in CL_ParseBeam()
84 if (b->entity == ent) in CL_ParseBeam()
86 b->entity = ent; in CL_ParseBeam()
99 b->entity = ent; in CL_ParseBeam()
303 entity_t *ent; in CL_NewTempEntity() local
309 ent = &cl_temp_entities[num_temp_entities]; in CL_NewTempEntity()
310 memset (ent, 0, sizeof(*ent)); in CL_NewTempEntity()
312 cl_visedicts[cl_numvisedicts] = ent; in CL_NewTempEntity()
315 ent->colormap = vid.colormap; in CL_NewTempEntity()
[all …]
Dr_efrag.cpp52 void R_RemoveEfrags (entity_t *ent) in R_RemoveEfrags() argument
56 ef = ent->efrag; in R_RemoveEfrags()
83 ent->efrag = NULL; in R_RemoveEfrags()
202 void R_AddEfrags (entity_t *ent) in R_AddEfrags() argument
207 if (!ent->model) in R_AddEfrags()
210 if (ent == cl_entities) in R_AddEfrags()
213 r_addent = ent; in R_AddEfrags()
215 lastlink = &ent->efrag; in R_AddEfrags()
218 entmodel = ent->model; in R_AddEfrags()
222 r_emins[i] = ent->origin[i] + entmodel->mins[i]; in R_AddEfrags()
[all …]
/external/quake/quake/src/QW/server/
Dsv_phys.c57 void SV_Physics_Toss (edict_t *ent);
90 void SV_CheckVelocity (edict_t *ent) in SV_CheckVelocity() argument
99 if (IS_NAN(ent->v.velocity[i])) in SV_CheckVelocity()
101 Con_Printf ("Got a NaN velocity on %s\n", PR_GetString(ent->v.classname)); in SV_CheckVelocity()
102 ent->v.velocity[i] = 0; in SV_CheckVelocity()
104 if (IS_NAN(ent->v.origin[i])) in SV_CheckVelocity()
106 Con_Printf ("Got a NaN origin on %s\n", PR_GetString(ent->v.classname)); in SV_CheckVelocity()
107 ent->v.origin[i] = 0; in SV_CheckVelocity()
109 if (ent->v.velocity[i] > sv_maxvelocity.value) in SV_CheckVelocity()
110 ent->v.velocity[i] = sv_maxvelocity.value; in SV_CheckVelocity()
[all …]
Dsv_move.c37 qboolean SV_CheckBottom (edict_t *ent) in SV_CheckBottom() argument
44 VectorAdd (ent->v.origin, ent->v.mins, mins); in SV_CheckBottom()
45 VectorAdd (ent->v.origin, ent->v.maxs, maxs); in SV_CheckBottom()
74 trace = SV_Move (start, vec3_origin, vec3_origin, stop, true, ent); in SV_CheckBottom()
87 trace = SV_Move (start, vec3_origin, vec3_origin, stop, true, ent); in SV_CheckBottom()
110 qboolean SV_movestep (edict_t *ent, vec3_t move, qboolean relink) in SV_movestep() argument
119 VectorCopy (ent->v.origin, oldorg); in SV_movestep()
120 VectorAdd (ent->v.origin, move, neworg); in SV_movestep()
123 if ( (int)ent->v.flags & (FL_SWIM | FL_FLY) ) in SV_movestep()
128 VectorAdd (ent->v.origin, move, neworg); in SV_movestep()
[all …]
Dsv_ents.c98 qboolean SV_AddNailUpdate (edict_t *ent) in SV_AddNailUpdate() argument
100 if (ent->v.modelindex != sv_nailmodel in SV_AddNailUpdate()
101 && ent->v.modelindex != sv_supernailmodel) in SV_AddNailUpdate()
105 nails[numnails] = ent; in SV_AddNailUpdate()
114 edict_t *ent; in SV_EmitNailUpdate() local
125 ent = nails[n]; in SV_EmitNailUpdate()
126 x = (int)(ent->v.origin[0]+4096)>>1; in SV_EmitNailUpdate()
127 y = (int)(ent->v.origin[1]+4096)>>1; in SV_EmitNailUpdate()
128 z = (int)(ent->v.origin[2]+4096)>>1; in SV_EmitNailUpdate()
129 p = (int)(16*ent->v.angles[0]/360)&15; in SV_EmitNailUpdate()
[all …]
Dworld.c129 hull_t *SV_HullForEntity (edict_t *ent, vec3_t mins, vec3_t maxs, vec3_t offset) in SV_HullForEntity() argument
137 if (ent->v.solid == SOLID_BSP) in SV_HullForEntity()
139 if (ent->v.movetype != MOVETYPE_PUSH) in SV_HullForEntity()
142 model = sv.models[ (int)ent->v.modelindex ]; in SV_HullForEntity()
157 VectorAdd (offset, ent->v.origin, offset); in SV_HullForEntity()
162 VectorSubtract (ent->v.mins, maxs, hullmins); in SV_HullForEntity()
163 VectorSubtract (ent->v.maxs, mins, hullmaxs); in SV_HullForEntity()
166 VectorCopy (ent->v.origin, offset); in SV_HullForEntity()
252 void SV_UnlinkEdict (edict_t *ent) in SV_UnlinkEdict() argument
254 if (!ent->area.prev) in SV_UnlinkEdict()
[all …]
Dpr_cmds.c522 edict_t *ent; in PF_traceline() local
527 ent = G_EDICT(OFS_PARM3); in PF_traceline()
529 trace = SV_Move (v1, vec3_origin, vec3_origin, v2, nomonsters, ent); in PF_traceline()
539 if (trace.ent) in PF_traceline()
540 pr_global_struct->trace_ent = EDICT_TO_PROG(trace.ent); in PF_traceline()
567 edict_t *ent; in PF_newcheckclient() local
588 ent = EDICT_NUM(i); in PF_newcheckclient()
593 if (ent->free) in PF_newcheckclient()
595 if (ent->v.health <= 0) in PF_newcheckclient()
597 if ((int)ent->v.flags & FL_NOTARGET) in PF_newcheckclient()
[all …]
/external/libusb-compat/libusb/
Dusbi.h25 #define LIST_ADD(begin, ent) \ argument
28 ent->next = begin; \
29 ent->next->prev = ent; \
31 ent->next = NULL; \
32 ent->prev = NULL; \
33 begin = ent; \
36 #define LIST_DEL(begin, ent) \ argument
38 if (ent->prev) \
39 ent->prev->next = ent->next; \
41 begin = ent->next; \
[all …]
/external/e2fsprogs/util/
Dsubst.c37 struct subst_entry *ent = 0; in add_subst() local
41 ent = (struct subst_entry *) malloc(sizeof(struct subst_entry)); in add_subst()
42 if (!ent) in add_subst()
44 ent->name = (char *) malloc(strlen(name)+1); in add_subst()
45 if (!ent->name) in add_subst()
47 ent->value = (char *) malloc(strlen(value)+1); in add_subst()
48 if (!ent->value) in add_subst()
50 strcpy(ent->name, name); in add_subst()
51 strcpy(ent->value, value); in add_subst()
52 ent->next = subst_table; in add_subst()
[all …]
/external/quake/quake/src/QW/client/
Dcl_ents.c410 entity_t *ent; in CL_LinkPacketEntities() local
452 ent = &cl_visedicts[cl_numvisedicts]; in CL_LinkPacketEntities()
455 ent->keynum = s1->number; in CL_LinkPacketEntities()
456 ent->model = model = cl.model_precache[s1->modelindex]; in CL_LinkPacketEntities()
460 && !strcmp(ent->model->name,"progs/player.mdl") ) in CL_LinkPacketEntities()
462 ent->colormap = cl.players[s1->colormap-1].translations; in CL_LinkPacketEntities()
463 ent->scoreboard = &cl.players[s1->colormap-1]; in CL_LinkPacketEntities()
467 ent->colormap = vid.colormap; in CL_LinkPacketEntities()
468 ent->scoreboard = NULL; in CL_LinkPacketEntities()
472 ent->skinnum = s1->skinnum; in CL_LinkPacketEntities()
[all …]
Dcl_tent.c116 int ent; in CL_ParseBeam() local
121 ent = MSG_ReadShort (); in CL_ParseBeam()
133 if (b->entity == ent) in CL_ParseBeam()
135 b->entity = ent; in CL_ParseBeam()
148 b->entity = ent; in CL_ParseBeam()
330 entity_t *ent; in CL_NewTempEntity() local
334 ent = &cl_visedicts[cl_numvisedicts]; in CL_NewTempEntity()
336 ent->keynum = 0; in CL_NewTempEntity()
338 memset (ent, 0, sizeof(*ent)); in CL_NewTempEntity()
340 ent->colormap = vid.colormap; in CL_NewTempEntity()
[all …]
/external/e2fsprogs/resize/
Dextent.c82 struct ext2_extent_entry *ent; in ext2fs_add_extent_entry() local
98 ent = extent->list + curr; in ext2fs_add_extent_entry()
104 ent--; in ext2fs_add_extent_entry()
105 if ((ent->old_loc + ent->size == old_loc) && in ext2fs_add_extent_entry()
106 (ent->new_loc + ent->size == new_loc)) { in ext2fs_add_extent_entry()
107 ent->size++; in ext2fs_add_extent_entry()
113 if (ent->old_loc + ent->size > old_loc) in ext2fs_add_extent_entry()
115 ent++; in ext2fs_add_extent_entry()
117 ent->old_loc = old_loc; in ext2fs_add_extent_entry()
118 ent->new_loc = new_loc; in ext2fs_add_extent_entry()
[all …]
/external/openssl/crypto/x509/
Dby_dir.c187 static void by_dir_entry_free(BY_DIR_ENTRY *ent) in by_dir_entry_free() argument
189 if (ent->dir) in by_dir_entry_free()
190 OPENSSL_free(ent->dir); in by_dir_entry_free()
191 if (ent->hashes) in by_dir_entry_free()
192 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free()
193 OPENSSL_free(ent); in by_dir_entry_free()
225 BY_DIR_ENTRY *ent; in add_cert_dir() local
232 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j); in add_cert_dir()
233 if (strlen(ent->dir) == (size_t)len && in add_cert_dir()
234 strncmp(ent->dir,ss,(unsigned int)len) == 0) in add_cert_dir()
[all …]
/external/openssh/
Dauth-sia.c56 SIAENTITY *ent = NULL; in sys_auth_passwd() local
64 if (sia_ses_init(&ent, saved_argc, saved_argv, host, authctxt->user, in sys_auth_passwd()
68 if ((ret = sia_ses_authent(NULL, pass, ent)) != SIASUCCESS) { in sys_auth_passwd()
72 sia_ses_release(&ent); in sys_auth_passwd()
77 sia_ses_release(&ent); in sys_auth_passwd()
85 SIAENTITY *ent = NULL; in session_setup_sia() local
90 if (sia_ses_init(&ent, saved_argc, saved_argv, host, pw->pw_name, in session_setup_sia()
94 if (sia_make_entity_pwd(pw, ent) != SIASUCCESS) { in session_setup_sia()
95 sia_ses_release(&ent); in session_setup_sia()
99 ent->authtype = SIA_A_NONE; in session_setup_sia()
[all …]
/external/chromium/third_party/libjingle/source/talk/base/
Dnethelpers.cc70 hostent* ent = gethostbyname(hostname); in SafeGetHostByName() local
71 if (!ent) { in SafeGetHostByName()
79 total_len += strlen(ent->h_name) + 1; in SafeGetHostByName()
80 while (ent->h_aliases[num_aliases]) { in SafeGetHostByName()
81 total_len += sizeof(char*) + strlen(ent->h_aliases[num_aliases]) + 1; in SafeGetHostByName()
85 while (ent->h_addr_list[num_addrs]) { in SafeGetHostByName()
86 total_len += sizeof(char*) + ent->h_length; in SafeGetHostByName()
99 memcpy(p, ent->h_name, strlen(ent->h_name) + 1); in SafeGetHostByName()
100 p += strlen(ent->h_name) + 1; in SafeGetHostByName()
106 memcpy(p, ent->h_aliases[i], strlen(ent->h_aliases[i]) + 1); in SafeGetHostByName()
[all …]
/external/e2fsprogs/tests/progs/
Dtest_rel.c93 struct ext2_block_relocate_entry *ent) in display_brel_entry() argument
95 printf("Old= %u, New= %u, Owner= %u:%u\n", old, ent->new, in display_brel_entry()
96 ent->owner.block_ref, ent->offset); in display_brel_entry()
103 struct ext2_inode_relocate_entry *ent, in display_irel_entry() argument
111 ent->new, ent->orig, ent->max_refs); in display_irel_entry()
176 struct ext2_block_relocate_entry ent; in do_brel_put() local
200 ent.new = new; in do_brel_put()
201 ent.offset = (__u16) offset; in do_brel_put()
202 ent.flags = 0; in do_brel_put()
203 ent.owner.block_ref = owner; in do_brel_put()
[all …]
/external/libxml2/
Dentities.c827 xmlCopyEntity(xmlEntityPtr ent) { in xmlCopyEntity() argument
838 cur->etype = ent->etype; in xmlCopyEntity()
839 if (ent->name != NULL) in xmlCopyEntity()
840 cur->name = xmlStrdup(ent->name); in xmlCopyEntity()
841 if (ent->ExternalID != NULL) in xmlCopyEntity()
842 cur->ExternalID = xmlStrdup(ent->ExternalID); in xmlCopyEntity()
843 if (ent->SystemID != NULL) in xmlCopyEntity()
844 cur->SystemID = xmlStrdup(ent->SystemID); in xmlCopyEntity()
845 if (ent->content != NULL) in xmlCopyEntity()
846 cur->content = xmlStrdup(ent->content); in xmlCopyEntity()
[all …]
/external/e2fsprogs/lib/ext2fs/
Direl.h36 struct ext2_inode_relocate_entry *ent);
41 struct ext2_inode_relocate_entry *ent);
47 struct ext2_inode_relocate_entry *ent);
59 struct ext2_inode_relocate_entry *ent);
103 #define ext2fs_irel_put(irel, old, ent) ((irel)->put((irel), old, ent)) argument
104 #define ext2fs_irel_get(irel, old, ent) ((irel)->get((irel), old, ent)) argument
105 #define ext2fs_irel_get_by_orig(irel, orig, old, ent) \ argument
106 ((irel)->get_by_orig((irel), orig, old, ent))
108 #define ext2fs_irel_next(irel, old, ent) ((irel)->next((irel), old, ent)) argument

1234567