Very old versions for history.
[opsoft_archive.git] / silentbob / silent_bob-1.2 / src / sb_prname.cpp
blob3666c5df534a8bac0c3cf27f90e2374d8d75fd6f
1 /*
2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
5 */
7 #include "head.h"
9 int sb_prname (char *arg)
11 int i_cmd = 0;
12 char * d_ptr;
13 d_ptr = arg + strlen (arg);
14 d_ptr--;
16 while (*d_ptr != '\\' &&
17 d_ptr > arg)
18 d_ptr--;
20 if (*d_ptr == '\\')
21 d_ptr++;
23 if (EQ (d_ptr, "tags"))
24 i_cmd = cmd_tags;
25 else if (EQ (d_ptr, "the_tt"))
26 i_cmd = cmd_the_tt;
27 else if (EQ (d_ptr, "gc_indent"))
28 i_cmd = cmd_indent;
29 else if (EQ (d_ptr, "structs"))
30 i_cmd = cmd_give_structs;
32 return i_cmd;