pike.git / src / modules / PDF / pdf_module.c

version» Context lines:

pike.git/src/modules/PDF/pdf_module.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information.   */    - #include "global.h" - #include "stralloc.h" - #include "global.h" + #include "module.h"   #include "pike_macros.h"   #include "interpret.h"   #include "program.h" - #include "object.h" +    #include "operators.h" - #include "module.h" +       #include "pdf_machine.h"         #define sp Pike_sp   #define fp Pike_fp      #define PDF_INITER      /* #define DEBUG */
pike.git/src/modules/PDF/pdf_module.c:81:   } submagic[]=   {   #undef PDF_SUBMODULE   #undef PDF_SUBMODMAG   #define PDF_SUBMODULE(a,b,c)   #define PDF_SUBMODMAG(name,init,exit) { name,init,exit,NULL,NULL },   #include "initstuff.h"    PDF_SUBMODMAG(NULL,NULL,NULL)   };    - /* Avoid loss of precision warnings. */ - #ifdef __ECL - static inline long TO_LONG(ptrdiff_t x) - { -  return DO_NOT_WARN((long)x); - } - #else /* !__ECL */ - #define TO_LONG(x) ((long)(x)) - #endif /* __ECL */ -  +    #ifdef PIKE_DEBUG   #define PDF_CHECK_STACK(X) do { \    if (save_sp != sp) { \    Pike_fatal("%s:%d: %ld droppings on stack! previous init: %s\n", \ -  __FILE__, __LINE__, TO_LONG(sp - save_sp), X); \ +  __FILE__, __LINE__, (long)(sp - save_sp), X); \    } \    } while(0)   #else   #define PDF_CHECK_STACK(X)   #endif /* PIKE_DEBUG */         static void pdf_magic_index(INT32 args)   {    int i;
pike.git/src/modules/PDF/pdf_module.c:148:       stack_dup();    ref_push_object(fp->current_object);    stack_swap();    f_arrow(2);       if (TYPEOF(sp[-1]) == T_INT)    {    pop_stack();    stack_dup(); -  push_text("_PDF_"); +  push_static_text("_PDF_");    stack_swap();    f_add(2);    SAFE_APPLY_MASTER("resolv",1);    }    if (TYPEOF(sp[-1]) == T_INT)    {    pop_stack();    stack_dup(); -  push_text("_PDF"); +  push_static_text("_PDF");    SAFE_APPLY_MASTER("resolv",1);    stack_swap();    f_index(2);    }    stack_swap();    pop_stack();   }      PIKE_MODULE_INIT   {