Keywords: xcoral

Next: mouse.sc Up: SmacLib Previous: default mode

# mode-ext.sc

This file contains some functions to handle C/C++ forms (i.e. symbol, bracketed expression) in the current buffer. These functions call mode.sc functions.

- char* current_form(); returns current form as string.

  Attention Be careful, the string is allocated each time the function is called, use free() to release it.

- void transpose_forms(); transposes previous form and current form.
- char* next_form(); returns next form.

  Attention Be careful, the string is allocated each time the function is called, use free() to release it.

- char* next_form_and_delete(); returns next form and deletes it.

  Attention Be careful, the string is allocated each time the function is called, use free() to release it.