summaryrefslogtreecommitdiff
path: root/fluid/nodes/factory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/nodes/factory.cxx')
-rw-r--r--fluid/nodes/factory.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/fluid/nodes/factory.cxx b/fluid/nodes/factory.cxx
index 7e6726a41..c901c9945 100644
--- a/fluid/nodes/factory.cxx
+++ b/fluid/nodes/factory.cxx
@@ -158,7 +158,8 @@ public:
// Avoid this when compiling so it works w/o a display:
if (!Fluid.batch_mode) {
char buffer[20];
- for (int i = 1; i <= 20; i++) {
+ int i;
+ for (i = 1; i <= 20; i++) {
sprintf(buffer,"Browser Line %d",i);
b->add(buffer);
}
@@ -193,7 +194,8 @@ public:
// Avoid this when compiling so it works w/o a display:
if (!Fluid.batch_mode) {
char buffer[20];
- for (int i = 1; i <= 20; i++) {
+ int i;
+ for (i = 1; i <= 20; i++) {
sprintf(buffer,"Browser Line %d",i);
b->add(buffer);
}
@@ -1560,7 +1562,8 @@ static void make_iconlabel(Fl_Menu_Item *mi, Fl_Image *ic, const char *txt)
Names and icons are taken from the referenced prototypes.
*/
void fill_in_New_Menu() {
- for (unsigned i = 0; i < sizeof(New_Menu)/sizeof(*New_Menu); i++) {
+ unsigned i;
+ for (i = 0; i < sizeof(New_Menu)/sizeof(*New_Menu); i++) {
Fl_Menu_Item *m = New_Menu+i;
if (m->user_data()) {
Node *t = (Node*)m->user_data();
@@ -1586,7 +1589,8 @@ Node *typename_to_prototype(const char *inName)
{
if (inName==0 || *inName==0)
return 0;
- for (unsigned i = 0; i < sizeof(known_types)/sizeof(*known_types); i++) {
+ unsigned i;
+ for (i = 0; i < sizeof(known_types)/sizeof(*known_types); i++) {
Node *prototype = known_types[i];
if (fl_ascii_strcasecmp(inName, prototype->type_name())==0)
return prototype;
@@ -1774,7 +1778,8 @@ static symbol table[] = {
int lookup_symbol(const char *name, int &v, int numberok) {
if ((name[0]=='F') && (name[1]=='L') && (name[2]=='_'))
name += 3;
- for (int i=0; i < int(sizeof(table)/sizeof(*table)); i++) {
+ int i;
+ for (i =0; i < int(sizeof(table)/sizeof(*table)); i++) {
if (!fl_ascii_strcasecmp(name,table[i].name)) {
v = table[i].value;
return 1;