word__tools.c 977 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* FILE
  2. *
  3. * file: word.cpp
  4. *
  5. *
  6. */
  7. /* */
  8. # include <stddef.h>
  9. /* INCLUDE
  10. *
  11. * NULL
  12. *
  13. *
  14. */
  15. /* */
  16. # include "word.h"
  17. /* INCLUDE
  18. *
  19. * Word
  20. * word__get (struct Word *this)
  21. * word__set (struct Word *this, char *value)
  22. * word__copy (struct Word *this, struct Word *word)
  23. * word__init (struct Word *this)
  24. *
  25. *
  26. */
  27. /* tools for value */
  28. /* */
  29. char*
  30. word__get (struct Word *this)
  31. {
  32. /* */
  33. return this->value;
  34. }
  35. /* */
  36. void
  37. word__set (struct Word *this, char *value)
  38. {
  39. /* */
  40. this->value = value;
  41. }
  42. /* Word (Word *word) */
  43. void
  44. word__copy (struct Word *this, struct Word *word)
  45. {
  46. /* */
  47. this->value = word->value;
  48. /* */
  49. this->previous = word->previous;
  50. /* */
  51. this->next = word->next;
  52. }
  53. /* tools wich point */
  54. /* INITIALIZATION Word */
  55. void
  56. word__init (struct Word *this)
  57. {
  58. /* */
  59. this->previous = NULL;
  60. /* */
  61. this->next = NULL;
  62. }