mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
Patch from Dmitry Potapov for fluid to not crash on (I think)
identifiers with trailing whitespace. Fluid can now read in .xpm files with more than 2048 lines in them. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: code.cxx,v 1.9.2.7 2000/06/05 21:20:42 mike Exp $"
|
||||
// "$Id: code.cxx,v 1.9.2.8 2000/06/16 07:08:16 bill Exp $"
|
||||
//
|
||||
// Code output routines for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -76,7 +76,7 @@ const char* unique_id(void* o, const char* type, const char* name, const char* l
|
||||
const char* n = name;
|
||||
if (!n || !*n) n = label;
|
||||
if (n && *n) {
|
||||
while (!is_id(*n)) n++;
|
||||
while (*n && !is_id(*n)) n++;
|
||||
while (is_id(*n)) *q++ = *n++;
|
||||
}
|
||||
*q = 0;
|
||||
@@ -405,5 +405,5 @@ void Fl_Type::write_code1() {
|
||||
void Fl_Type::write_code2() {}
|
||||
|
||||
//
|
||||
// End of "$Id: code.cxx,v 1.9.2.7 2000/06/05 21:20:42 mike Exp $".
|
||||
// End of "$Id: code.cxx,v 1.9.2.8 2000/06/16 07:08:16 bill Exp $".
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user