Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 25 of 174) sorted by relevance

1234567

/external/bison/lib/
Dhash.c183 struct hash_entry const *cursor = bucket; in hash_get_max_bucket_length() local
186 while (cursor = cursor->next, cursor) in hash_get_max_bucket_length()
211 struct hash_entry const *cursor = bucket; in hash_table_ok() local
218 while (cursor = cursor->next, cursor) in hash_table_ok()
254 struct hash_entry const *cursor; in hash_lookup() local
262 for (cursor = bucket; cursor; cursor = cursor->next) in hash_lookup()
263 if (table->comparator (entry, cursor->data)) in hash_lookup()
264 return cursor->data; in hash_lookup()
302 struct hash_entry const *cursor; in hash_get_next() local
308 for (cursor = bucket; cursor; cursor = cursor->next) in hash_get_next()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/photon/
DSDL_ph_mouse.c34 void ph_FreeWMCursor(_THIS, WMcursor *cursor) in ph_FreeWMCursor() argument
48 SDL_free(cursor); in ph_FreeWMCursor()
53 WMcursor* cursor; in ph_CreateWMCursor() local
58 if ((cursor = (WMcursor*)SDL_malloc(sizeof(WMcursor))) == NULL) in ph_CreateWMCursor()
63 SDL_memset(cursor,0,sizeof(WMcursor)); in ph_CreateWMCursor()
65 cursor->ph_cursor = (PhCursorDef_t *) SDL_malloc(sizeof(PhCursorDef_t) + 32*4*2); in ph_CreateWMCursor()
67 if (cursor->ph_cursor == NULL) in ph_CreateWMCursor()
73 SDL_memset(cursor->ph_cursor,0,(sizeof(PhCursorDef_t) + 32*4*2)); in ph_CreateWMCursor()
75 cursor->ph_cursor->hdr.type =Ph_RDATA_CURSOR; in ph_CreateWMCursor()
76 cursor->ph_cursor->size1.x = (short)w; in ph_CreateWMCursor()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/wincommon/
DSDL_sysmouse.c90 void WIN_FreeWMCursor(_THIS, WMcursor *cursor) in WIN_FreeWMCursor() argument
93 if ( cursor->curs == GetCursor() ) in WIN_FreeWMCursor()
95 if ( cursor->curs != NULL ) in WIN_FreeWMCursor()
96 DestroyCursor(cursor->curs); in WIN_FreeWMCursor()
97 if ( cursor->ands != NULL ) in WIN_FreeWMCursor()
98 SDL_free(cursor->ands); in WIN_FreeWMCursor()
99 if ( cursor->xors != NULL ) in WIN_FreeWMCursor()
100 SDL_free(cursor->xors); in WIN_FreeWMCursor()
102 SDL_free(cursor); in WIN_FreeWMCursor()
109 WMcursor *cursor; in WIN_CreateWMCursor() local
[all …]
/external/apache-http/src/org/apache/http/message/
DBasicHeaderValueParser.java107 ParserCursor cursor = new ParserCursor(0, value.length()); in parseElements() local
108 return parser.parseElements(buffer, cursor); in parseElements()
114 final ParserCursor cursor) { in parseElements() argument
119 if (cursor == null) { in parseElements()
124 while (!cursor.atEnd()) { in parseElements()
125 HeaderElement element = parseHeaderElement(buffer, cursor); in parseElements()
158 ParserCursor cursor = new ParserCursor(0, value.length()); in parseHeaderElement() local
159 return parser.parseHeaderElement(buffer, cursor); in parseHeaderElement()
165 final ParserCursor cursor) { in parseHeaderElement() argument
170 if (cursor == null) { in parseHeaderElement()
[all …]
DBasicLineParser.java122 ParserCursor cursor = new ParserCursor(0, value.length()); in parseProtocolVersion() local
123 return parser.parseProtocolVersion(buffer, cursor); in parseProtocolVersion()
129 final ParserCursor cursor) in parseProtocolVersion() argument
135 if (cursor == null) { in parseProtocolVersion()
142 int indexFrom = cursor.getPos(); in parseProtocolVersion()
143 int indexTo = cursor.getUpperBound(); in parseProtocolVersion()
145 skipWhitespace(buffer, cursor); in parseProtocolVersion()
147 int i = cursor.getPos(); in parseProtocolVersion()
201 cursor.updatePos(blank); in parseProtocolVersion()
225 final ParserCursor cursor) { in hasProtocolVersion() argument
[all …]
DBasicHeaderElementIterator.java58 private ParserCursor cursor = null; field in BasicHeaderElementIterator
83 this.cursor = null; in bufferHeaderValue()
89 this.cursor = new ParserCursor(0, this.buffer.length()); in bufferHeaderValue()
90 this.cursor.updatePos(((FormattedHeader) h).getValuePos()); in bufferHeaderValue()
97 this.cursor = new ParserCursor(0, this.buffer.length()); in bufferHeaderValue()
106 while (this.headerIt.hasNext() || this.cursor != null) { in parseNextElement()
107 if (this.cursor == null || this.cursor.atEnd()) { in parseNextElement()
112 if (this.cursor != null) { in parseNextElement()
114 while (!this.cursor.atEnd()) { in parseNextElement()
115 HeaderElement e = this.parser.parseHeaderElement(this.buffer, this.cursor); in parseNextElement()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/riscos/
DSDL_riscosmouse.c58 void RISCOS_FreeWMCursor(_THIS, WMcursor *cursor) in RISCOS_FreeWMCursor() argument
60 SDL_free(cursor->data); in RISCOS_FreeWMCursor()
61 SDL_free(cursor); in RISCOS_FreeWMCursor()
67 WMcursor *cursor; in RISCOS_CreateWMCursor() local
80 cursor = (WMcursor *)SDL_malloc(sizeof(*cursor)); in RISCOS_CreateWMCursor()
81 if ( cursor == NULL ) { in RISCOS_CreateWMCursor()
90 SDL_free(cursor); in RISCOS_CreateWMCursor()
95 cursor->w = w; in RISCOS_CreateWMCursor()
96 cursor->h = h; in RISCOS_CreateWMCursor()
97 cursor->hot_x = hot_x; in RISCOS_CreateWMCursor()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/bwindow/
DSDL_sysmouse.cc45 WMcursor *cursor; in BE_CreateWMCursor() local
60 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); in BE_CreateWMCursor()
61 if ( cursor == NULL ) { in BE_CreateWMCursor()
65 cursor->bits = (char *)SDL_malloc(4+2*((allowed_x/8)*allowed_y)); in BE_CreateWMCursor()
66 if ( cursor->bits == NULL ) { in BE_CreateWMCursor()
67 SDL_free(cursor); in BE_CreateWMCursor()
71 cursor->bits[0] = allowed_y; /* Size of the cursor */ in BE_CreateWMCursor()
72 cursor->bits[1] = 1; /* Bit depth of cursor */ in BE_CreateWMCursor()
73 cursor->bits[2] = hot_y; in BE_CreateWMCursor()
74 cursor->bits[3] = hot_x; in BE_CreateWMCursor()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/maccommon/
DSDL_macmouse.c47 void Mac_FreeWMCursor(_THIS, WMcursor *cursor) in Mac_FreeWMCursor() argument
49 SDL_free(cursor); in Mac_FreeWMCursor()
55 WMcursor *cursor; in Mac_CreateWMCursor() local
59 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); in Mac_CreateWMCursor()
60 if ( cursor == NULL ) { in Mac_CreateWMCursor()
64 SDL_memset(cursor, 0, sizeof(*cursor)); in Mac_CreateWMCursor()
75 SDL_memcpy(&cursor->curs.data[row], data, bytes); in Mac_CreateWMCursor()
79 SDL_memcpy(&cursor->curs.mask[row], mask, bytes); in Mac_CreateWMCursor()
82 cursor->curs.hotSpot.h = hot_x; in Mac_CreateWMCursor()
83 cursor->curs.hotSpot.v = hot_y; in Mac_CreateWMCursor()
[all …]
/external/clearsilver/python/examples/base/
Dodb_sqlite.py48 def listTables(self, cursor=None): argument
49 if cursor is None: cursor = self.defaultCursor()
50 cursor.execute("select name from sqlite_master where type='table'")
51 rows = cursor.fetchall()
56 def listIndices(self, cursor=None): argument
57 if cursor is None: cursor = self.defaultCursor()
58 cursor.execute("select name from sqlite_master where type='index'")
59 rows = cursor.fetchall()
64 def listFieldsDict(self, table_name, cursor=None): argument
65 if cursor is None: cursor = self.defaultCursor()
[all …]
Dodb.py106 self._cursor = self.db.cursor()
149 def beginTransaction(self, cursor=None): argument
150 if cursor is None:
151 cursor = self.defaultCursor()
153 cursor.execute("begin")
155 def commitTransaction(self, cursor=None): argument
156 if cursor is None:
157 cursor = self.defaultCursor()
159 cursor.execute("commit")
161 def rollbackTransaction(self, cursor=None): argument
[all …]
Dodb_mysql.py24 def listTables(self, cursor=None): argument
25 if cursor is None: cursor = self.defaultCursor()
26 cursor.execute("show tables")
27 rows = cursor.fetchall()
33 def listIndices(self, cursor=None): argument
36 def listFieldsDict(self, table_name, cursor=None): argument
37 if cursor is None: cursor = self.defaultCursor()
39 cursor.execute(sql)
40 rows = cursor.fetchall()
/external/freetype/src/base/
Dftstream.c42 stream->cursor = 0; in FT_Stream_OpenMemory()
199 *pbytes = (FT_Byte*)stream->cursor; in FT_Stream_ExtractFrame()
202 stream->cursor = 0; in FT_Stream_ExtractFrame()
238 FT_ASSERT( stream && stream->cursor == 0 ); in FT_Stream_EnterFrame()
266 stream->cursor = stream->base; in FT_Stream_EnterFrame()
267 stream->limit = stream->cursor + count; in FT_Stream_EnterFrame()
285 stream->cursor = stream->base + stream->pos; in FT_Stream_EnterFrame()
286 stream->limit = stream->cursor + count; in FT_Stream_EnterFrame()
320 stream->cursor = 0; in FT_Stream_ExitFrame()
331 FT_ASSERT( stream && stream->cursor ); in FT_Stream_GetChar()
[all …]
/external/freetype/src/psaux/
Dpsconv.c75 PS_Conv_Strtol( FT_Byte** cursor, in PS_Conv_Strtol() argument
79 FT_Byte* p = *cursor; in PS_Conv_Strtol()
115 *cursor = p; in PS_Conv_Strtol()
122 PS_Conv_ToInt( FT_Byte** cursor, in PS_Conv_ToInt() argument
130 num = PS_Conv_Strtol( cursor, limit, 10 ); in PS_Conv_ToInt()
131 p = *cursor; in PS_Conv_ToInt()
135 *cursor = p + 1; in PS_Conv_ToInt()
137 return PS_Conv_Strtol( cursor, limit, num ); in PS_Conv_ToInt()
145 PS_Conv_ToFixed( FT_Byte** cursor, in PS_Conv_ToFixed() argument
149 FT_Byte* p = *cursor; in PS_Conv_ToFixed()
[all …]
Dpsobjs.c85 table->cursor = 0; in ps_table_new()
185 if ( table->cursor + length > table->capacity ) in ps_table_add()
196 while ( new_size < table->cursor + length ) in ps_table_add()
213 table->elements[idx] = table->block + table->cursor; in ps_table_add()
215 FT_MEM_COPY( table->block + table->cursor, object, length ); in ps_table_add()
217 table->cursor += length; in ps_table_add()
250 if ( FT_ALLOC( table->block, table->cursor ) ) in ps_table_done()
252 FT_MEM_COPY( table->block, old_base, table->cursor ); in ps_table_done()
255 table->capacity = table->cursor; in ps_table_done()
519 FT_Byte* cur = parser->cursor; in ps_parser_skip_PS_token()
[all …]
/external/webkit/WebCore/manual-tests/
Dsvg-cursor-changes.svg2 <cursor id="mycursor" x="10" y="10" xlink:href="resources/webkit-background.png"/>
4 <!-- Clicking this circle should result in an instant update of the cursor location of this and the…
5 …ycursor').setAttribute('x', '100');" cx="80" cy="150" r="70" fill="green" cursor="url(#mycursor)"/>
7 <!-- Clicking this circle should result in an instant update of the cursor location of this and the…
8 …'mycursor').x.baseVal.value = 100;" cx="230" cy="150" r="70" fill="green" cursor="url(#mycursor)"/>
10 <cursor id="mycursor2" x="10" y="10" xlink:href="resources/webkit-background.png"/>
11 <cursor id="mycursor3" x="10" y="10" xlink:href="resources/webkit-background.png"/>
13 <!-- Clicking this circle should result in an instant update of the cursor location (tested using D…
14 …ursor2').setAttribute('x', '100');" cx="80" cy="310" r="70" fill="green" cursor="url(#mycursor2)"/>
16 <!-- Clicking this circle should result in an instant update of the cursor location (tested using S…
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/
DSDL_cursor.c47 SDL_Cursor *cursor; in SDL_CursorQuit() local
55 cursor = SDL_defcursor; in SDL_CursorQuit()
57 SDL_FreeCursor(cursor); in SDL_CursorQuit()
114 SDL_Cursor *cursor; in SDL_CreateCursor() local
126 cursor = (SDL_Cursor *)SDL_malloc(sizeof *cursor); in SDL_CreateCursor()
127 if ( cursor == NULL ) { in SDL_CreateCursor()
132 cursor->area.x = 0; in SDL_CreateCursor()
133 cursor->area.y = 0; in SDL_CreateCursor()
134 cursor->area.w = w; in SDL_CreateCursor()
135 cursor->area.h = h; in SDL_CreateCursor()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/gem/
DSDL_gemmouse.c45 void GEM_FreeWMCursor(_THIS, WMcursor *cursor) in GEM_FreeWMCursor() argument
51 if (cursor == NULL) in GEM_FreeWMCursor()
56 if (cursor->mform_p != NULL) in GEM_FreeWMCursor()
57 SDL_free(cursor->mform_p); in GEM_FreeWMCursor()
59 SDL_free(cursor); in GEM_FreeWMCursor()
65 WMcursor *cursor; in GEM_CreateWMCursor() local
83 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); in GEM_CreateWMCursor()
84 if ( cursor == NULL ) { in GEM_CreateWMCursor()
92 SDL_free(cursor); in GEM_CreateWMCursor()
97 cursor->mform_p = new_mform; in GEM_CreateWMCursor()
[all …]
/external/icu4c/i18n/
Dname2uni.cpp128 int32_t cursor = offsets.start; in handleTransliterate() local
138 while (cursor < limit) { in handleTransliterate()
139 c = text.char32At(cursor); in handleTransliterate()
144 openPos = cursor; in handleTransliterate()
146 ICU_Utility::parsePattern(openPat, text, cursor, limit); in handleTransliterate()
150 cursor = i; in handleTransliterate()
196 cursor++; // advance over CLOSE_DELIM in handleTransliterate()
200 text.handleReplaceBetween(openPos, cursor, str); in handleTransliterate()
205 int32_t delta = cursor - openPos - str.length(); in handleTransliterate()
206 cursor -= delta; in handleTransliterate()
[all …]
Dstrmatch.cpp88 int32_t cursor = offset; in matches() local
89 if (limit < cursor) { in matches()
95 if (cursor > limit && in matches()
96 keyChar == text.charAt(cursor)) { in matches()
97 --cursor; in matches()
103 subm->matches(text, cursor, limit, incremental); in matches()
113 matchStart = cursor+1; in matches()
118 if (incremental && cursor == limit) { in matches()
129 if (cursor < limit && in matches()
130 keyChar == text.charAt(cursor)) { in matches()
[all …]
Duni2name.cpp88 int32_t cursor = offsets.start; in handleTransliterate() local
95 while (cursor < limit) { in handleTransliterate()
96 UChar32 c = text.char32At(cursor); in handleTransliterate()
102 text.handleReplaceBetween(cursor, cursor+clen, str); in handleTransliterate()
104 cursor += len; // advance cursor and adjust for new text in handleTransliterate()
107 cursor += clen; in handleTransliterate()
113 offsets.start = cursor; in handleTransliterate()
/external/qemu/distrib/sdl-1.2.12/src/video/ps2gs/
DSDL_gsmouse.c39 void GS_FreeWMCursor(_THIS, WMcursor *cursor) in GS_FreeWMCursor() argument
51 static void GS_MoveCursor(_THIS, SDL_Cursor *cursor, int x, int y) in GS_MoveCursor() argument
86 if ( cursor ) { in GS_MoveCursor()
88 cursor->area.x = (x - cursor->hot_x); in GS_MoveCursor()
89 cursor->area.y = (y - cursor->hot_y); in GS_MoveCursor()
134 SDL_Cursor *cursor; in GS_ShowWMCursor() local
140 cursor = SDL_cursor; in GS_ShowWMCursor()
142 cursor = NULL; in GS_ShowWMCursor()
144 GS_MoveCursor(this, cursor, x, y); in GS_ShowWMCursor()
/external/qemu/distrib/sdl-1.2.12/src/video/nanox/
DSDL_nxmouse.c40 WMcursor * cursor ; in NX_CreateWMCursor() local
44 cursor = (WMcursor *) SDL_malloc (sizeof (WMcursor)) ; in NX_CreateWMCursor()
45 if (cursor == NULL) { in NX_CreateWMCursor()
51 return cursor ; in NX_CreateWMCursor()
54 void NX_FreeWMCursor (_THIS, WMcursor * cursor) in NX_FreeWMCursor() argument
57 SDL_free (cursor) ; in NX_FreeWMCursor()
75 int NX_ShowWMCursor (_THIS, WMcursor * cursor) in NX_ShowWMCursor() argument
/external/qemu/distrib/sdl-1.2.12/src/video/x11/
DSDL_x11mouse.c40 void X11_FreeWMCursor(_THIS, WMcursor *cursor) in X11_FreeWMCursor() argument
44 XFreeCursor(SDL_Display, cursor->x_cursor); in X11_FreeWMCursor()
48 SDL_free(cursor); in X11_FreeWMCursor()
54 WMcursor *cursor; in X11_CreateWMCursor() local
65 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); in X11_CreateWMCursor()
66 if ( cursor == NULL ) { in X11_CreateWMCursor()
75 SDL_free(cursor); in X11_CreateWMCursor()
81 SDL_free(cursor); in X11_CreateWMCursor()
134 cursor->x_cursor = XCreatePixmapCursor(SDL_Display, data_pixmap, in X11_CreateWMCursor()
143 return(cursor); in X11_CreateWMCursor()
[all …]
/external/oprofile/libpopt/
Dpopthelp.c585 static size_t singleOptionUsage(FILE * fp, size_t cursor, in singleOptionUsage() argument
610 if (len == 4) return cursor; in singleOptionUsage()
631 if ((cursor + len) > 79) { in singleOptionUsage()
633 cursor = 7; in singleOptionUsage()
650 return cursor + len + 1; in singleOptionUsage()
661 static size_t itemUsage(FILE * fp, size_t cursor, in itemUsage() argument
678 cursor = singleOptionUsage(fp, cursor, opt, translation_domain); in itemUsage()
683 return cursor; in itemUsage()
705 static size_t singleTableUsage(poptContext con, FILE * fp, size_t cursor, in singleTableUsage() argument
736 cursor = singleTableUsage(con, fp, cursor, opt->arg, in singleTableUsage()
[all …]

1234567