/*************************************************************************** * * * Copyright (C) 2005 Piotr Wawrzyniak (piti@piti.vsv.pl) * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /* Tutaj tylko analizuję linie poleceń i sprawdzam co należy zrobić ponumerować czy wrócić do etykiet. Here I analyze only commandline and check what is to do. */ #include #include"operacje.h" #include"dl_wiersza.h" #include #include"operacje_na_tex.h" #include"system_zapisu.h" #define Def_version "0.2.4 (04.01.2008)" #define Def_email "wopozka@gmail.com" kol_etykiet*wierzcholek; r_numerow klasa_obslugi_etykiet(1,1,1,1,1); char numer_czy_etykieta='n'; int zacznij_numery_od=1; char polecenie[DL_WIERSZA]; //what latex command will be use for label inserting int language=1; //language 0 - polish; 1 - english int srf=1; int sRf=1; int saf=1; int slf=1; int sLf=1; int dns=2; int test=0; int debug_level=0; int ignore_set_counter_to=0; int ignore_formating=0; int help=0; int version=0; void pomoc(); //help function declaration int main(int argc,char *argv[]) { char **env=environ; while(*env) { if(!strncmp(*env,"LANG=pl_PL",10)) { language=0; break; } env++; } if(argc<2) { pomoc(); return 1; } strcpy(polecenie,"\\nrzw{");//Initialization command default is \nrzw if(!strcmp(argv[0],"konwerter"))numer_czy_etykieta='n'; if(!strcmp(argv[0],"etykietuj"))numer_czy_etykieta='e'; int i; //============================================================================ //Command line analyzing for (i=1;iDL_WIERSZA-2) { if(language==0) { cout<<"Ha. Nie uda ci się przepełnić tutaj bufora hakerze!" <DL_WIERSZA-2) { if(language==0) { cout<<"Ha. Nie uda ci się przepełnić tutaj bufora hakerze!" <=argc&&!help&&!version) { if(language==0) cout<<"Brak nazwy pliku"<nast; delete wierzcholek; wierzcholek=usuwany; } //end of memory cleaning if(language==0) { cout<