mirror of
https://github.com/uffejakobsen/acme.git
synced 2025-08-08 05:25:00 +00:00
inputstate enum is now only used in input.c
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@381 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
@@ -739,6 +739,13 @@ bits input_get_force_bit(void)
|
|||||||
return force_bit;
|
return force_bit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// force input system to return "end of file" on next read
|
||||||
|
// (back end function for "!eof" pseudo opcode)
|
||||||
|
void input_force_eof(void)
|
||||||
|
{
|
||||||
|
input_now->state = INPUTSTATE_EOF;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static STRUCT_DYNABUF_REF(pathbuf, 256); // to combine search path and file spec
|
static STRUCT_DYNABUF_REF(pathbuf, 256); // to combine search path and file spec
|
||||||
|
|
||||||
|
@@ -158,6 +158,10 @@ extern int input_expect(int chr);
|
|||||||
// FIXME - move to different file!
|
// FIXME - move to different file!
|
||||||
extern bits input_get_force_bit(void);
|
extern bits input_get_force_bit(void);
|
||||||
|
|
||||||
|
// force input system to return "end of file" on next read
|
||||||
|
// (back end function for "!eof" pseudo opcode)
|
||||||
|
extern void input_force_eof(void);
|
||||||
|
|
||||||
|
|
||||||
// "input change" stuff:
|
// "input change" stuff:
|
||||||
|
|
||||||
|
@@ -1411,9 +1411,8 @@ static enum eos po_serious(void)
|
|||||||
// end of source file ("!endoffile" or "!eof")
|
// end of source file ("!endoffile" or "!eof")
|
||||||
static enum eos po_endoffile(void)
|
static enum eos po_endoffile(void)
|
||||||
{
|
{
|
||||||
// well, it doesn't end right here and now, but at end-of-line! :-)
|
input_ensure_EOS(); // make sure there are no args
|
||||||
input_ensure_EOS();
|
input_force_eof(); // fake end of file
|
||||||
input_now->state = INPUTSTATE_EOF;
|
|
||||||
return AT_EOS_ANYWAY;
|
return AT_EOS_ANYWAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#define RELEASE "0.97" // update before release FIXME
|
#define RELEASE "0.97" // update before release FIXME
|
||||||
#define CODENAME "Zem" // update before release
|
#define CODENAME "Zem" // update before release
|
||||||
#define CHANGE_DATE "18 Jul" // update before release FIXME
|
#define CHANGE_DATE "19 Jul" // update before release FIXME
|
||||||
#define CHANGE_YEAR "2024" // update before release
|
#define CHANGE_YEAR "2024" // update before release
|
||||||
//#define HOME_PAGE "http://home.pages.de/~mac_bacon/smorbrod/acme/"
|
//#define HOME_PAGE "http://home.pages.de/~mac_bacon/smorbrod/acme/"
|
||||||
#define HOME_PAGE "http://sourceforge.net/p/acme-crossass/" // FIXME
|
#define HOME_PAGE "http://sourceforge.net/p/acme-crossass/" // FIXME
|
||||||
|
Reference in New Issue
Block a user