OSDN Git Service

Fix: build failure of nkf32.dll. [#41578] [#41580]
authorNARUSE, Yui <naruse@users.sourceforge.jp>
Sun, 1 Feb 2009 11:43:05 +0000 (20:43 +0900)
committerNARUSE, Yui <naruse@users.sourceforge.jp>
Sun, 1 Feb 2009 11:43:05 +0000 (20:43 +0900)
nkf32dll.c

index b85f2ea..9fa272e 100644 (file)
@@ -127,8 +127,8 @@ int
 std_getc(f)
 FILE *f;
 {
 std_getc(f)
 FILE *f;
 {
-    if (std_gc_ndx){
-        return std_gc_buf[--std_gc_ndx];
+    if (!nkf_buf_empty_p(nkf_state->std_gc_buf)) {
+       >        return nkf_buf_pop(nkf_state->std_gc_buf);
     } else {
         if ( std_getc_mode == 1 ) {
             return getc(f);
     } else {
         if ( std_getc_mode == 1 ) {
             return getc(f);