Changeset 0784869 in mainline for uspace/lib/bithenge/transform.c
- Timestamp:
- 2012-08-20T17:32:00Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1f136a27
- Parents:
- 1a3b953
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/bithenge/transform.c
r1a3b953 r0784869 184 184 /** Create a transform scope. It must be dereferenced with @a 185 185 * bithenge_scope_dec_ref after it is used. Takes ownership of nothing. 186 * @memberof bithenge_scope_t 186 187 * @param[out] out Holds the new scope. 187 188 * @param outer The outer scope, or NULL. … … 207 208 208 209 /** Dereference a transform scope. 209 * @param self The scope to dereference. */ 210 * @memberof bithenge_scope_t 211 * @param self The scope to dereference, or NULL. */ 210 212 void bithenge_scope_dec_ref(bithenge_scope_t *self) 211 213 { … … 224 226 225 227 /** Get the outer scope of a scope, which may be NULL. 228 * @memberof bithenge_scope_t 226 229 * @param self The scope to examine. 227 230 * @return The outer scope, which may be NULL. */ … … 233 236 /** Get the error message stored in the scope, which may be NULL. The error 234 237 * message only exists as long as the scope does. 238 * @memberof bithenge_scope_t 235 239 * @param scope The scope to get the error message from. 236 240 * @return The error message, or NULL. */ … … 243 247 * outermost scope, but if any scope already has an error message this error 244 248 * message is ignored. 249 * @memberof bithenge_scope_t 245 250 * @param scope The scope. 246 251 * @param format The format string. … … 292 297 293 298 /** Get the current node being created, which may be NULL. 299 * @memberof bithenge_scope_t 294 300 * @param scope The scope to get the current node from. 295 301 * @return The node being created, or NULL. */ … … 302 308 303 309 /** Set the current node being created. Takes a reference to @a node. 310 * @memberof bithenge_scope_t 304 311 * @param scope The scope to set the current node in. 305 312 * @param node The current node being created, or NULL. */ … … 312 319 313 320 /** Get the current input node, which may be NULL. 321 * @memberof bithenge_scope_t 314 322 * @param scope The scope to get the current input node from. 315 323 * @return The input node, or NULL. */ … … 322 330 323 331 /** Set the current input node. Takes a reference to @a node. 332 * @memberof bithenge_scope_t 324 333 * @param scope The scope to set the input node in. 325 334 * @param node The input node, or NULL. */ … … 331 340 332 341 /** Set a scope as a barrier. 342 * @memberof bithenge_scope_t 333 343 * @param self The scope to change. */ 334 344 void bithenge_scope_set_barrier(bithenge_scope_t *self) … … 339 349 /** Check whether a scope is a barrier, meaning that variable lookup stops at 340 350 * it. 351 * @memberof bithenge_scope_t 341 352 * @param self The scope to check. 342 353 * @return Whether the scope is a barrier. */ … … 349 360 * bithenge_scope_set_param. This must not be called on a scope that already 350 361 * has parameters. 362 * @memberof bithenge_scope_t 351 363 * @param scope The scope in which to allocate parameters. 352 364 * @param num_params The number of parameters to allocate. … … 363 375 } 364 376 365 /** Set a parameter. Takes a reference to @a value. Note that range checking is377 /** Set a parameter. Takes a reference to @a node. Note that range checking is 366 378 * not done in release builds. 379 * @memberof bithenge_scope_t 367 380 * @param scope The scope in which to allocate parameters. 368 381 * @param i The index of the parameter to set. 369 * @param value The value to store in the parameter.382 * @param node The value to store in the parameter. 370 383 * @return EOK on success or an error code from errno.h. */ 371 384 int bithenge_scope_set_param( bithenge_scope_t *scope, int i, … … 383 396 384 397 /** Get a parameter. Note that range checking is not done in release builds. 398 * @memberof bithenge_scope_t 385 399 * @param scope The scope to get the parameter from. 386 400 * @param i The index of the parameter to set. … … 867 881 } 868 882 883 /** @cond internal */ 869 884 #define MAKE_UINT_TRANSFORM(NAME, TYPE, ENDIAN, PREFIX_LENGTH_FUNC) \ 870 885 static int NAME##_apply(bithenge_transform_t *self, \ … … 906 921 MAKE_UINT_TRANSFORM(uint64le, uint64_t, uint64_t_le2host, prefix_length_8); 907 922 MAKE_UINT_TRANSFORM(uint64be, uint64_t, uint64_t_be2host, prefix_length_8); 923 /** @endcond */ 908 924 909 925
Note:
See TracChangeset
for help on using the changeset viewer.