Segment 1 was back at 27 KB. Settings, Contacts, Channel, Home, Node, convos, messages, contacts, channels, rowlist and draw move to vmcode2: segment 1 is now 10.3 KB, segment 2 23.4 KB. tools/sect2.py adds the VM_SECT2 static declarations. Checked in the compiled code, the rules in sections.h were too cautious: literals in a vmcode2 function are emitted into vmcode2, a file's static const data and calls to unannotated functions go through the __text__ base, and taking a vmcode2 function's address (event handlers, callbacks) gives its real address. The real traps are shared extern const tables and -fwritable-strings (PC-relative into .data). tools/check_sections.py runs after every link and fails the build on any PC-relative reference from vmcode2 to outside it; python3 added to the toolchain image for it. Unicode: characters past Latin-1 all became '?', and Windows-1252 quotes and dashes had no glyph in the small font. Now arrows, check marks, stars, bullets and node-type marks map to the font's UI symbols, typographic quotes and dashes to ASCII, any emoji to a new smiley glyph, and variation selectors / zero-width joiners are dropped.
10 lines
204 B
C
10 lines
204 B
C
#ifndef VM_NODE_FORM_H
|
|
#define VM_NODE_FORM_H
|
|
|
|
#include <PalmOS.h>
|
|
#include "sections.h" /* this module is in the second code segment */
|
|
|
|
Boolean NodeFormHandleEvent(EventType *event) VM_SECT2;
|
|
|
|
#endif
|