summaryrefslogtreecommitdiff
path: root/amiga/font_scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/font_scan.c')
-rw-r--r--amiga/font_scan.c33
1 files changed, 3 insertions, 30 deletions
diff --git a/amiga/font_scan.c b/amiga/font_scan.c
index 549ea5064..a58acf01b 100644
--- a/amiga/font_scan.c
+++ b/amiga/font_scan.c
@@ -259,10 +259,10 @@ ULONG ami_font_scan_fonts(struct MinList *list,
do {
nnode = (struct nsObject *)GetSucc((struct Node *)node);
ami_font_scan_gui_update(win, node->dtz_Node.ln_Name, font_num, total);
- LOG(("Scanning %s\n", node->dtz_Node.ln_Name));
+ LOG(("Scanning %s", node->dtz_Node.ln_Name));
found = ami_font_scan_font(node->dtz_Node.ln_Name, glypharray);
total += found;
- LOG(("Found %ld new glyphs (total = %ld)\n", found, total));
+ LOG(("Found %ld new glyphs (total = %ld)", found, total));
font_num++;
} while(node = nnode);
@@ -308,7 +308,7 @@ ULONG ami_font_scan_list(struct MinList *list)
if(node) {
node->dtz_Node.ln_Name = strdup(af[i].af_Attr.ta_Name);
found++;
- LOG(("Added %s\n", af[i].af_Attr.ta_Name));
+ LOG(("Added %s", af[i].af_Attr.ta_Name));
}
}
}
@@ -493,31 +493,4 @@ void ami_font_scan_init(const char *filename, bool force_scan, bool save,
LOG(("Initialised with %ld glyphs", found));
}
-#ifdef AMI_FONT_SCAN_STANDALONE
-/* This can be compiled as standalone using:
-* gcc -o font_scan font_scan.c object.c -lwapcaplet -lauto -I .. -D__USE_INLINE__ -DAMI_FONT_SCAN_STANDALONE
-*/
-int main(int argc, char** argv)
-{
- lwc_string *glypharray[0xffff + 1];
- ULONG found = 0;
- BPTR fh;
- struct MinList *list;
-
- if(argc < 2) return 5;
-
- printf("%s\n",argv[1]);
-
- list = NewObjList();
- ami_font_scan_init(argv[1], list, glypharray);
- FreeObjList(list);
-
- ami_font_scan_fini(glypharray);
-
- return 0;
-}
-
-void ami_font_close(APTR discard) { }
-void ami_mime_entry_free(APTR discard) { }
-#endif