summaryrefslogtreecommitdiff
path: root/src/upb_srcsink.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb_srcsink.h')
-rw-r--r--src/upb_srcsink.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/upb_srcsink.h b/src/upb_srcsink.h
index 8e5a09d..199149d 100644
--- a/src/upb_srcsink.h
+++ b/src/upb_srcsink.h
@@ -26,6 +26,11 @@
extern "C" {
#endif
+// Note! The "eof" flags work like feof() in C; they cannot report end-of-file
+// until a read has failed due to eof. They cannot preemptively tell you that
+// the next call will fail due to eof. Since these are the semantics that C
+// and UNIX provide, we're stuck with them if we want to support eg. stdio.
+
/* upb_src ********************************************************************/
// TODO: decide how to handle unknown fields.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback