cgi_main.c1 매크로 사용하기(php소스 쪼개서 사용하기) 매크로 사용하기 부제 : php소스 쪼개서 사용하기(php7.0.8-src/sapi/cgi/cgi_main.c) 발췌 소스 if (!env_document_root && PG(doc_root)) { env_document_root = CGI_PUTENV("DOCUMENT_ROOT", PG(doc_root)); /* fix docroot */ TRANSLATE_SLASHES(env_document_root); } 1.소스 #include #include #define TRANSLATE_SLASHES(path) \ { \ char *tmp = path; \ while (*tmp) { \ if (*tmp == '\\') *tmp = '/'; \ tmp++; \ } \ } int main( int argc , .. 2016. 7. 21. 이전 1 다음