antiright-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Antiright-devel] antiright Makefile description-pak config.mk li...


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright Makefile description-pak config.mk li...
Date: Sat, 12 Aug 2006 03:52:48 +0000

CVSROOT:        /sources/antiright
Module name:    antiright
Changes by:     Jeffrey Bedard <jefbed> 06/08/12 03:52:48

Modified files:
        .              : Makefile description-pak 
Added files:
        .              : config.mk 
        libantiright   : Makefile library.h pipe.c pipe.h string.c 
                         string.h system.c system.h util.c util.h 

Log message:
        Changed description to indicate FLTK as being the toolkit.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/Makefile?cvsroot=antiright&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/antiright/description-pak?cvsroot=antiright&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/antiright/config.mk?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/Makefile?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/library.h?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/pipe.c?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/pipe.h?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/string.c?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/string.h?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/system.c?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/system.h?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/util.c?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/util.h?cvsroot=antiright&rev=1.1

Patches:
Index: Makefile
===================================================================
RCS file: /sources/antiright/antiright/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- Makefile    24 Jul 2006 21:53:15 -0000      1.3
+++ Makefile    12 Aug 2006 03:52:48 -0000      1.4
@@ -27,9 +27,11 @@
 CFLAGS += $(INCLUDE) $(DEFS) -Wall -W -g
 
 all: 
+       cd libantiright && make
        cd flshell && make
 
 clean:
+       cd libantiright && make clean
        cd flshell && make clean
 
 distclean: clean

Index: description-pak
===================================================================
RCS file: /sources/antiright/antiright/description-pak,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- description-pak     31 Jul 2005 16:25:28 -0000      1.6
+++ description-pak     12 Aug 2006 03:52:48 -0000      1.7
@@ -1,4 +1,4 @@
 
-AntiRight is a lightweight, scripted desktop environment which utilizes the 
Motif toolkit.  The arshell utility allows for graphical applications to be 
created from within shell scripts.  It is upon this utility that the sample 
desktop environment, ACE, is defined.   
+AntiRight is a lightweight, scripted desktop environment which utilizes the 
FLTK toolkit.  The arshell utility allows for graphical applications to be 
created from within shell scripts.  It is upon this utility that the sample 
desktop environment, ACE, is defined.   
 
 

Index: config.mk
===================================================================
RCS file: config.mk
diff -N config.mk
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ config.mk   12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,8 @@
+# Local Build Configuration
+PREFIX=/usr/local
+INCLUDE= -I/usr/pkg/include -I/usr/local/include -I/usr/X11R6/include
+LIBDIR= -L/usr/pkg/lib -L/usr/local/lib -L/usr/X11R6/lib
+ICONDIR=
+CPPFLAGS=
+DEFS= -DPACKAGE_STRING='"AntiRight_3.0"' -DPREFIX='"/usr/local"' -D_GNU_SOURCE
+RESDIR=

Index: libantiright/Makefile
===================================================================
RCS file: libantiright/Makefile
diff -N libantiright/Makefile
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libantiright/Makefile       12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,6 @@
+
+all: pipe.o string.o system.o util.o
+       ar rcs libantiright.a pipe.o string.o system.o util.o
+clean:
+       rm -f *.o *.a
+

Index: libantiright/library.h
===================================================================
RCS file: libantiright/library.h
diff -N libantiright/library.h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libantiright/library.h      12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,38 @@
+
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight 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.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#ifndef LIBAR_LIBRARY_H
+#define LIBAR_LIBRARY_H
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <assert.h>
+
+#include "pipe.h"
+#include "string.h"
+#include "system.h"
+#include "util.h"
+
+#endif /* LIBAR_LIBRARY_H */
+

Index: libantiright/pipe.c
===================================================================
RCS file: libantiright/pipe.c
diff -N libantiright/pipe.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libantiright/pipe.c 12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,81 @@
+
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight 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.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#include "library.h"
+
+/* Make sure that you free the returned string.  */
+char*
+antiright_pipe_read(char *command_string)
+{
+       char *text_string;
+       char buffer[BUFSIZ];
+       FILE *pipe_fp;
+       unsigned int buffer_size=BUFSIZ;
+
+       /* Execute the command indicated by command_string.  */
+       /* Pipe is read-only.  Stdout will be directed to it.  */
+       pipe_fp=popen(command_string, "r"); 
+
+       /* Read the command's stdout.  */
+       /* Read in the first buffer segment.  */
+       fgets(buffer, BUFSIZ, pipe_fp);
+       asprintf(&text_string, "%s", buffer);
+       /* Read in the rest of the buffer segments.  */
+       while(fgets(buffer, BUFSIZ, pipe_fp))
+       {
+               buffer_size+=BUFSIZ;
+               text_string=(char*)realloc(text_string,
+                       (unsigned long)buffer_size);
+               snprintf(text_string, buffer_size, 
+                       "%s%s", text_string, (unsigned long)buffer);
+       }
+       /* Close the pipe once fgets() returns a false condition.  */
+       pclose(pipe_fp);
+
+       return(text_string);
+}
+
+/* void */
+/* antiright_pipe_write(char *command_string, char* data) */
+/* { */
+/*   FILE *pipe_fp=popen(command_string, "w"); */
+/*   fprintf(pipe_fp, data); */
+/*   pclose(pipe_fp); */
+/* } */
+
+/* void */
+/* antiright_fifo_server(char *command_string, char *fifo) */
+/* { */
+/*   FILE *fifo_fp; */
+/*   FILE *pipe_fp=popen(command_string, "w"); */
+/*   char buffer[80]; */
+/*   while(0) */
+/*     { */
+/*       fifo_fp=fopen(fifo, "r"); */
+/*       fgets(buffer, 80, fifo_fp); */
+/*       fprintf(pipe_fp, buffer); */
+/*       fclose(fifo_fp); */
+/*     } */
+/* } */
+
+

Index: libantiright/pipe.h
===================================================================
RCS file: libantiright/pipe.h
diff -N libantiright/pipe.h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libantiright/pipe.h 12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,31 @@
+/*  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+
+  This file is part of AntiRight.
+
+  AntiRight 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.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#ifndef LIBAR_PIPE_H
+#define LIBAR_PIPE_H
+char*
+antiright_pipe_read(char *command_string);
+/* void */
+/* antiright_pipe_write(char *command_string, char* data); */
+/* void */
+/* antiright_fifo_server(char *command_string, char *fifo); */
+#endif
+

Index: libantiright/string.c
===================================================================
RCS file: libantiright/string.c
diff -N libantiright/string.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libantiright/string.c       12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,168 @@
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight 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.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#include "library.h"
+
+/* Free the returned value!  */
+char*
+antiright_beautified_label(char* current_argument_string)
+{
+      char *label_string=xmalloc(strlen(current_argument_string));
+      int parse_counter;
+      int label_counter;
+      
+      for(parse_counter=strlen(current_argument_string);
+         ((current_argument_string[parse_counter])!=' ' && (parse_counter>0));
+         parse_counter--);
+
+      for(label_counter=0;
+         current_argument_string[parse_counter]!='\0';
+         parse_counter++)
+       {
+         if(current_argument_string[parse_counter] == ' ')
+           {
+             parse_counter++; /* This gets rid of an extra leading
+                                 space.  */
+           }
+         if(current_argument_string[parse_counter] != '_')
+           {
+             label_string[label_counter]=
+               current_argument_string[parse_counter];
+           }
+         else
+           {
+             label_string[label_counter]=' ';
+           }
+         label_counter++;
+       }
+
+      /* Ensure that the string is null-terminated.  */
+      label_string[label_counter]='\0';
+
+      return(label_string);
+}
+
+/* char* */
+/* antiright_insert_string(char *text, char *insertion, unsigned int position) 
*/
+/* { */
+/*   /\* Declare a counter for the output text.  *\/ */
+/*   unsigned int output_counter=0; */
+/*   /\* Declare a counter for the initial text.  *\/ */
+/*   unsigned int text_counter=0; */
+/*   /\* Declare a counter for the inserted text.  *\/ */
+/*   unsigned int insertion_counter=0; */
+/*   /\* Store these lengths to avoid excessive function calls.  *\/ */
+/*   const unsigned int text_length=strlen(text); */
+/*   const unsigned int insertion_length=strlen(insertion); */
+/*   /\* Allocate enough memory to hold both strings and a null */
+/*      character.  *\/ */
+/*   char *output=(char*)xmalloc(text_length+insertion_length+1); */
+/*   /\* Put all text before insertion point into output buffer.  *\/ */
+/*   while(text_counter < position) */
+/*     { */
+/*       output[text_counter]=text[text_counter]; */
+/*       text_counter++; */
+/*     } */
+/*   /\* Start inserting at position.  *\/ */
+/*   output_counter=position; */
+/*   while(insertion_counter <= insertion_length) */
+/*     { */
+/*       output[output_counter]=insertion[insertion_counter]; */
+/*       output_counter++; */
+/*       insertion_counter++; */
+/*     } */
+/*   /\* Add the rest of the initial text to the output.  *\/ */
+/*   while(text_counter <= text_length) */
+/*     { */
+/*       output[output_counter]=text[text_counter]; */
+/*       text_counter++; */
+/*       output_counter++; */
+/*     } */
+/*   /\* Set the end of the output to be null terminated.  *\/ */
+/*   output[output_counter]='\0'; */
+/*   /\* The function user must make sure that the returned string is */
+/*      freed after use.  *\/ */
+/*   return(output); */
+/* } */
+
+/* char* */
+/* antiright_delete_range(char *text, unsigned int start, unsigned int end) */
+/* { */
+/*   /\* Store the length of TEXT.  *\/ */
+/*   const unsigned int text_length=strlen(text); */
+/*   /\* Create an output string large enough to hold TEXT.  *\/ */
+/*   char *output=(char*)xmalloc(text_length+1); */
+/*   /\* Declare a counter for the text.  *\/ */
+/*   unsigned int text_counter=0; */
+/*   /\* Declare a counter for the output.  *\/ */
+/*   unsigned int output_counter=0; */
+/*   /\* Assign OUTPUT until START.  *\/ */
+/*   while(text_counter < start) */
+/*     { */
+/*       /\* TEXT_COUNTER could be used but it is a clearer design to use */
+/*      OUTPUT_CONUTER for assignment to OUTPUT.  *\/ */
+/*       output[output_counter]=text[text_counter]; */
+/*       output_counter++; */
+/*       text_counter++; */
+/*     } */
+/*   /\* This sets the position at which assignment will once again start, */
+/*      removing all text between start and end through such.  *\/ */
+/*   text_counter=end+1; */
+/*   /\* Start assignment from the character after END.  *\/ */
+/*   while(text_counter <= text_length) */
+/*     { */
+/*       output[output_counter]=text[text_counter]; */
+/*       text_counter++; */
+/*       output_counter++; */
+/*     } */
+/*   /\* Set the end of the output to be null terminated.  *\/ */
+/*   output[output_counter]='\0'; */
+/*   /\* The function user must make sure that the returned string is */
+/*      freed after use.  *\/ */
+/*   return(output); */
+/* } */
+
+/* char* */
+/* ar_insert_txt(char* source, char* text, unsigned int position) */
+/* { */
+/*     unsigned int text_length, source_length, counter, text_counter; */
+/*     char* new_txt; */
+
+/*     source_length=strlen(source); */
+/*     text_length=strlen(text); */
+
+/*     new_txt=(char*)xmalloc(source_length+text_length+1); */
+/*     for(counter=0; counter<position; counter++) */
+/*     { */
+/*             new_txt[counter]=source[counter]; */
+/*     } */
+/*     for(text_counter=0; text_counter<=text_length; text_counter++) */
+/*     { */
+/*             new_txt[counter+text_counter]=text[text_counter]; */
+/*     } */
+/*     for(;counter<=(source_length+text_length); counter++) */
+/*     { */
+/*             new_txt[counter+text_counter]=source[counter]; */
+/*     } */
+/*     return(new_txt); */
+/* } */
+

Index: libantiright/string.h
===================================================================
RCS file: libantiright/string.h
diff -N libantiright/string.h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libantiright/string.h       12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,34 @@
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+
+  This file is part of AntiRight.
+
+  AntiRight 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.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#ifndef LIBAR_STRING_H
+#define LIBAR_STRING_H
+char*
+antiright_beautified_label(char* current_argument_string);
+/* char*      */
+/* antiright_insert_string(char *text, char *insertion, unsigned int 
position); */
+/* char* */
+/* antiright_delete_range(char *text, unsigned int start, unsigned int end); */
+/* char* */
+/* ar_insert_txt(char* source, char* text, unsigned int position); */
+#endif
+

Index: libantiright/system.c
===================================================================
RCS file: libantiright/system.c
diff -N libantiright/system.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libantiright/system.c       12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,66 @@
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight 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.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#include "library.h"
+
+int 
+antiright_system(char *field_string)
+{
+  /* Ensure that FIELD_STRING is not empty.  */
+  if((field_string != NULL) & (strlen(field_string)>0))
+    {
+      int system_return_value=0;
+      if(field_string[strlen(field_string)-1] != '&') /* Do the
+                                                        following if
+                                                        there is no
+                                                        ampersand at
+                                                        the end of
+                                                        FIELD_STRING.  */
+       {
+         char *system_string;
+         /* Append an ampersand to FIELD_STRING.  Place the resulting
+            string in SYSTEM_STRING.  */
+         asprintf(&system_string, "%s &", field_string);
+         /* Ensure that SYSTEM_STRING was correctly allocated.  */
+         assert(system_string != NULL);
+         /* Execute SYSTEM_STRING.  */
+         system_return_value=system(system_string);
+         /* Clean up.  */
+         free(system_string);
+       }
+      else /* The input command already includes an ampersand and will
+             become a background operation.  */
+       {
+         /* Execute raw FIELD_STRING.  */
+         system_return_value=system(field_string);
+       }
+      /* Return result of system call.  */
+      return(system_return_value);
+    }
+  else /*  The user input is empty.  */
+    {
+      /* Generate an error.  */
+      perror("FIELD_STRING is empty.");
+      return(-1);
+    }  
+}
+

Index: libantiright/system.h
===================================================================
RCS file: libantiright/system.h
diff -N libantiright/system.h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libantiright/system.h       12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,28 @@
+/*
+  AntiRight
+  (c) 2002-2005 Jeffrey Bedard
+  address@hidden
+
+  This file is part of AntiRight.
+
+  AntiRight 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.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#ifndef LIBAR_SYSTEM_H
+#define LIBAR_SYSTEM_H
+int
+antiright_system(char *field_string);
+#endif
+

Index: libantiright/util.c
===================================================================
RCS file: libantiright/util.c
diff -N libantiright/util.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libantiright/util.c 12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,52 @@
+/*
+  AntiRight
+  (c) 2002-2005 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight 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.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#include "library.h"
+
+void *
+xmalloc(size_t size)
+{
+  void *pointer;
+  pointer=malloc(size);
+  assert(pointer != NULL); /* Ensure that the allocation was
+                             successful.  */
+  return(pointer);
+}
+
+/* char * */
+/* antiright_get_file_extension(char *filename) */
+/* { */
+/*   char *extension=(char*)xmalloc((size_t)4); */
+/*   unsigned int filename_length=strlen(filename); */
+/*   unsigned int counter=filename_length-3; */
+/*   unsigned int extension_counter=0; */
+
+  
+/*   while(counter < filename_length) */
+/*     { */
+/*       extension[extension_counter]=filename[counter]; */
+/*       counter++; */
+/*       extension_counter++; */
+/*     } */
+/*   extension[extension_counter]='\0'; */
+/*   return(extension); */
+/* } */

Index: libantiright/util.h
===================================================================
RCS file: libantiright/util.h
diff -N libantiright/util.h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libantiright/util.h 12 Aug 2006 03:52:48 -0000      1.1
@@ -0,0 +1,31 @@
+/*
+  AntiRight
+  (c) 2002-2005 Jeffrey Bedard
+  address@hidden
+
+  This file is part of AntiRight.
+
+  AntiRight 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.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#ifndef LIBAR_UTIL_H
+#define LIBAR_UTIL_H
+void *
+xmalloc(size_t size);
+/* char *  */
+/* antiright_get_file_extension(char *filename); */
+
+#endif
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]