Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
49 user(s) are online (10 user(s) are browsing Forums)

Members: 0
Guests: 49

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: NetSurf development builds

Subject: Re: NetSurf development builds
by Gazelle on 2012/11/7 14:30:57

Looking at the source of ami_font_scan_list()

...
        for(
0afh->afh_NumEntriesi++) {
            
LOG(("AvailFonts entry %ld"i));
            if(
af[i].af_Attr.ta_Style == FS_NORMAL) {
                if(
af[i].af_Attr.ta_Name != NULL) {
                    
LOG(("Checking font %s"af[i].af_Attr.ta_Name));
                    
node = (struct nsObject *)FindIName((struct List *)list,
                                
af[i].af_Attr.ta_Name);
                    
LOG(("Node address %lx"node));
                    if(
node == NULL) {
                        
LOG(("Node address (2) %lx"node));
                        
node AddObject(list, AMINS_UNKNOWN);
                        if(
node) {
                            
node->dtz_Node.ln_Name strdup(af[i].af_Attr.ta_Name);
                            
found++;
                            
LOG(("Added %s"af[i].af_Attr.ta_Name));
                        }
                    }
                }
            }
            
af++;
        }
...


Isn't the "af++" too much? You are using af[i] ...

Powered by XOOPS 2.0 © 2001-2014 The XOOPS Project